1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Osi 0.108.6.
5#
6# Report bugs to <osi@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77	 X"$0" : 'X\(//\)$' \| \
78	 X"$0" : 'X\(/\)$' \| \
79	 .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
83  	  /^X\/\(\/\).*/{ s//\1/; q; }
84  	  s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145	 case $as_dir in
146	 /*)
147	   if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155	     CONFIG_SHELL=$as_dir/$as_base
156	     export CONFIG_SHELL
157	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158	   fi;;
159	 esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='	' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS=" 	$as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Osi'
432PACKAGE_TARNAME='osi'
433PACKAGE_VERSION='0.108.6'
434PACKAGE_STRING='Osi 0.108.6'
435PACKAGE_BUGREPORT='osi@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/SoPlex"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
480ac_subdirs_all="$ac_subdirs_all Data/Sample"
481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482ac_subdirs_all="$ac_subdirs_all CoinUtils"
483ac_subdirs_all="$ac_subdirs_all Osi"
484ac_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 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 CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_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 CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
485ac_subst_files=''
486
487# Initialize some variables set by options.
488ac_init_help=
489ac_init_version=false
490# The variables have the same names as the options, with
491# dashes changed to underlines.
492cache_file=/dev/null
493exec_prefix=NONE
494no_create=
495no_recursion=
496prefix=NONE
497program_prefix=NONE
498program_suffix=NONE
499program_transform_name=s,x,x,
500silent=
501site=
502srcdir=
503verbose=
504x_includes=NONE
505x_libraries=NONE
506
507# Installation directory options.
508# These are left unexpanded so users can "make install exec_prefix=/foo"
509# and all the variables that are supposed to be based on exec_prefix
510# by default will actually change.
511# Use braces instead of parens because sh, perl, etc. also accept them.
512bindir='${exec_prefix}/bin'
513sbindir='${exec_prefix}/sbin'
514libexecdir='${exec_prefix}/libexec'
515datadir='${prefix}/share'
516sysconfdir='${prefix}/etc'
517sharedstatedir='${prefix}/com'
518localstatedir='${prefix}/var'
519libdir='${exec_prefix}/lib'
520includedir='${prefix}/include'
521oldincludedir='/usr/include'
522infodir='${prefix}/info'
523mandir='${prefix}/man'
524
525ac_prev=
526for ac_option
527do
528  # If the previous option needs an argument, assign it.
529  if test -n "$ac_prev"; then
530    eval "$ac_prev=\$ac_option"
531    ac_prev=
532    continue
533  fi
534
535  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
536
537  # Accept the important Cygnus configure options, so we can diagnose typos.
538
539  case $ac_option in
540
541  -bindir | --bindir | --bindi | --bind | --bin | --bi)
542    ac_prev=bindir ;;
543  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
544    bindir=$ac_optarg ;;
545
546  -build | --build | --buil | --bui | --bu)
547    ac_prev=build_alias ;;
548  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
549    build_alias=$ac_optarg ;;
550
551  -cache-file | --cache-file | --cache-fil | --cache-fi \
552  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
553    ac_prev=cache_file ;;
554  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
555  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
556    cache_file=$ac_optarg ;;
557
558  --config-cache | -C)
559    cache_file=config.cache ;;
560
561  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
562    ac_prev=datadir ;;
563  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
564  | --da=*)
565    datadir=$ac_optarg ;;
566
567  -disable-* | --disable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    eval "enable_$ac_feature=no" ;;
575
576  -enable-* | --enable-*)
577    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
578    # Reject names that are not valid shell variable names.
579    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
581   { (exit 1); exit 1; }; }
582    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
583    case $ac_option in
584      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585      *) ac_optarg=yes ;;
586    esac
587    eval "enable_$ac_feature='$ac_optarg'" ;;
588
589  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
590  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
591  | --exec | --exe | --ex)
592    ac_prev=exec_prefix ;;
593  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
594  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
595  | --exec=* | --exe=* | --ex=*)
596    exec_prefix=$ac_optarg ;;
597
598  -gas | --gas | --ga | --g)
599    # Obsolete; use --with-gas.
600    with_gas=yes ;;
601
602  -help | --help | --hel | --he | -h)
603    ac_init_help=long ;;
604  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
605    ac_init_help=recursive ;;
606  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
607    ac_init_help=short ;;
608
609  -host | --host | --hos | --ho)
610    ac_prev=host_alias ;;
611  -host=* | --host=* | --hos=* | --ho=*)
612    host_alias=$ac_optarg ;;
613
614  -includedir | --includedir | --includedi | --included | --include \
615  | --includ | --inclu | --incl | --inc)
616    ac_prev=includedir ;;
617  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
618  | --includ=* | --inclu=* | --incl=* | --inc=*)
619    includedir=$ac_optarg ;;
620
621  -infodir | --infodir | --infodi | --infod | --info | --inf)
622    ac_prev=infodir ;;
623  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
624    infodir=$ac_optarg ;;
625
626  -libdir | --libdir | --libdi | --libd)
627    ac_prev=libdir ;;
628  -libdir=* | --libdir=* | --libdi=* | --libd=*)
629    libdir=$ac_optarg ;;
630
631  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
632  | --libexe | --libex | --libe)
633    ac_prev=libexecdir ;;
634  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
635  | --libexe=* | --libex=* | --libe=*)
636    libexecdir=$ac_optarg ;;
637
638  -localstatedir | --localstatedir | --localstatedi | --localstated \
639  | --localstate | --localstat | --localsta | --localst \
640  | --locals | --local | --loca | --loc | --lo)
641    ac_prev=localstatedir ;;
642  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
643  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
644  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
645    localstatedir=$ac_optarg ;;
646
647  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
648    ac_prev=mandir ;;
649  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
650    mandir=$ac_optarg ;;
651
652  -nfp | --nfp | --nf)
653    # Obsolete; use --without-fp.
654    with_fp=no ;;
655
656  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
657  | --no-cr | --no-c | -n)
658    no_create=yes ;;
659
660  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
661  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
662    no_recursion=yes ;;
663
664  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
665  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
666  | --oldin | --oldi | --old | --ol | --o)
667    ac_prev=oldincludedir ;;
668  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
669  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
670  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
671    oldincludedir=$ac_optarg ;;
672
673  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
674    ac_prev=prefix ;;
675  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
676    prefix=$ac_optarg ;;
677
678  -program-prefix | --program-prefix | --program-prefi | --program-pref \
679  | --program-pre | --program-pr | --program-p)
680    ac_prev=program_prefix ;;
681  -program-prefix=* | --program-prefix=* | --program-prefi=* \
682  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
683    program_prefix=$ac_optarg ;;
684
685  -program-suffix | --program-suffix | --program-suffi | --program-suff \
686  | --program-suf | --program-su | --program-s)
687    ac_prev=program_suffix ;;
688  -program-suffix=* | --program-suffix=* | --program-suffi=* \
689  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
690    program_suffix=$ac_optarg ;;
691
692  -program-transform-name | --program-transform-name \
693  | --program-transform-nam | --program-transform-na \
694  | --program-transform-n | --program-transform- \
695  | --program-transform | --program-transfor \
696  | --program-transfo | --program-transf \
697  | --program-trans | --program-tran \
698  | --progr-tra | --program-tr | --program-t)
699    ac_prev=program_transform_name ;;
700  -program-transform-name=* | --program-transform-name=* \
701  | --program-transform-nam=* | --program-transform-na=* \
702  | --program-transform-n=* | --program-transform-=* \
703  | --program-transform=* | --program-transfor=* \
704  | --program-transfo=* | --program-transf=* \
705  | --program-trans=* | --program-tran=* \
706  | --progr-tra=* | --program-tr=* | --program-t=*)
707    program_transform_name=$ac_optarg ;;
708
709  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
710  | -silent | --silent | --silen | --sile | --sil)
711    silent=yes ;;
712
713  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
714    ac_prev=sbindir ;;
715  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
716  | --sbi=* | --sb=*)
717    sbindir=$ac_optarg ;;
718
719  -sharedstatedir | --sharedstatedir | --sharedstatedi \
720  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
721  | --sharedst | --shareds | --shared | --share | --shar \
722  | --sha | --sh)
723    ac_prev=sharedstatedir ;;
724  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
725  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
726  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
727  | --sha=* | --sh=*)
728    sharedstatedir=$ac_optarg ;;
729
730  -site | --site | --sit)
731    ac_prev=site ;;
732  -site=* | --site=* | --sit=*)
733    site=$ac_optarg ;;
734
735  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
736    ac_prev=srcdir ;;
737  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
738    srcdir=$ac_optarg ;;
739
740  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
741  | --syscon | --sysco | --sysc | --sys | --sy)
742    ac_prev=sysconfdir ;;
743  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
744  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
745    sysconfdir=$ac_optarg ;;
746
747  -target | --target | --targe | --targ | --tar | --ta | --t)
748    ac_prev=target_alias ;;
749  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
750    target_alias=$ac_optarg ;;
751
752  -v | -verbose | --verbose | --verbos | --verbo | --verb)
753    verbose=yes ;;
754
755  -version | --version | --versio | --versi | --vers | -V)
756    ac_init_version=: ;;
757
758  -with-* | --with-*)
759    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
760    # Reject names that are not valid shell variable names.
761    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762      { echo "$as_me: error: invalid package name: $ac_package" >&2
763   { (exit 1); exit 1; }; }
764    ac_package=`echo $ac_package| sed 's/-/_/g'`
765    case $ac_option in
766      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
767      *) ac_optarg=yes ;;
768    esac
769    eval "with_$ac_package='$ac_optarg'" ;;
770
771  -without-* | --without-*)
772    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
773    # Reject names that are not valid shell variable names.
774    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
775      { echo "$as_me: error: invalid package name: $ac_package" >&2
776   { (exit 1); exit 1; }; }
777    ac_package=`echo $ac_package | sed 's/-/_/g'`
778    eval "with_$ac_package=no" ;;
779
780  --x)
781    # Obsolete; use --with-x.
782    with_x=yes ;;
783
784  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
785  | --x-incl | --x-inc | --x-in | --x-i)
786    ac_prev=x_includes ;;
787  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
788  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
789    x_includes=$ac_optarg ;;
790
791  -x-libraries | --x-libraries | --x-librarie | --x-librari \
792  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
793    ac_prev=x_libraries ;;
794  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
795  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
796    x_libraries=$ac_optarg ;;
797
798  -*) { echo "$as_me: error: unrecognized option: $ac_option
799Try \`$0 --help' for more information." >&2
800   { (exit 1); exit 1; }; }
801    ;;
802
803  *=*)
804    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
805    # Reject names that are not valid shell variable names.
806    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
807      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
808   { (exit 1); exit 1; }; }
809    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
810    eval "$ac_envvar='$ac_optarg'"
811    export $ac_envvar ;;
812
813  *)
814    # FIXME: should be removed in autoconf 3.0.
815    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
816    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
818    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819    ;;
820
821  esac
822done
823
824if test -n "$ac_prev"; then
825  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
826  { echo "$as_me: error: missing argument to $ac_option" >&2
827   { (exit 1); exit 1; }; }
828fi
829
830# Be sure to have absolute paths.
831for ac_var in exec_prefix prefix
832do
833  eval ac_val=$`echo $ac_var`
834  case $ac_val in
835    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
836    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837   { (exit 1); exit 1; }; };;
838  esac
839done
840
841# Be sure to have absolute paths.
842for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
843	      localstatedir libdir includedir oldincludedir infodir mandir
844do
845  eval ac_val=$`echo $ac_var`
846  case $ac_val in
847    [\\/$]* | ?:[\\/]* ) ;;
848    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
849   { (exit 1); exit 1; }; };;
850  esac
851done
852
853# There might be people who depend on the old broken behavior: `$host'
854# used to hold the argument of --host etc.
855# FIXME: To remove some day.
856build=$build_alias
857host=$host_alias
858target=$target_alias
859
860# FIXME: To remove some day.
861if test "x$host_alias" != x; then
862  if test "x$build_alias" = x; then
863    cross_compiling=maybe
864    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
865    If a cross compiler is detected then cross compile mode will be used." >&2
866  elif test "x$build_alias" != "x$host_alias"; then
867    cross_compiling=yes
868  fi
869fi
870
871ac_tool_prefix=
872test -n "$host_alias" && ac_tool_prefix=$host_alias-
873
874test "$silent" = yes && exec 6>/dev/null
875
876
877# Find the source files, if location was not specified.
878if test -z "$srcdir"; then
879  ac_srcdir_defaulted=yes
880  # Try the directory containing this script, then its parent.
881  ac_confdir=`(dirname "$0") 2>/dev/null ||
882$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
883	 X"$0" : 'X\(//\)[^/]' \| \
884	 X"$0" : 'X\(//\)$' \| \
885	 X"$0" : 'X\(/\)' \| \
886	 .     : '\(.\)' 2>/dev/null ||
887echo X"$0" |
888    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
889  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
890  	  /^X\(\/\/\)$/{ s//\1/; q; }
891  	  /^X\(\/\).*/{ s//\1/; q; }
892  	  s/.*/./; q'`
893  srcdir=$ac_confdir
894  if test ! -r $srcdir/$ac_unique_file; then
895    srcdir=..
896  fi
897else
898  ac_srcdir_defaulted=no
899fi
900if test ! -r $srcdir/$ac_unique_file; then
901  if test "$ac_srcdir_defaulted" = yes; then
902    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
903   { (exit 1); exit 1; }; }
904  else
905    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
906   { (exit 1); exit 1; }; }
907  fi
908fi
909(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
910  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
911   { (exit 1); exit 1; }; }
912srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
913ac_env_build_alias_set=${build_alias+set}
914ac_env_build_alias_value=$build_alias
915ac_cv_env_build_alias_set=${build_alias+set}
916ac_cv_env_build_alias_value=$build_alias
917ac_env_host_alias_set=${host_alias+set}
918ac_env_host_alias_value=$host_alias
919ac_cv_env_host_alias_set=${host_alias+set}
920ac_cv_env_host_alias_value=$host_alias
921ac_env_target_alias_set=${target_alias+set}
922ac_env_target_alias_value=$target_alias
923ac_cv_env_target_alias_set=${target_alias+set}
924ac_cv_env_target_alias_value=$target_alias
925ac_env_CDEFS_set=${CDEFS+set}
926ac_env_CDEFS_value=$CDEFS
927ac_cv_env_CDEFS_set=${CDEFS+set}
928ac_cv_env_CDEFS_value=$CDEFS
929ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
930ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
931ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
934ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
935ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
938ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
939ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_env_CC_set=${CC+set}
942ac_env_CC_value=$CC
943ac_cv_env_CC_set=${CC+set}
944ac_cv_env_CC_value=$CC
945ac_env_CFLAGS_set=${CFLAGS+set}
946ac_env_CFLAGS_value=$CFLAGS
947ac_cv_env_CFLAGS_set=${CFLAGS+set}
948ac_cv_env_CFLAGS_value=$CFLAGS
949ac_env_LDFLAGS_set=${LDFLAGS+set}
950ac_env_LDFLAGS_value=$LDFLAGS
951ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
952ac_cv_env_LDFLAGS_value=$LDFLAGS
953ac_env_CPPFLAGS_set=${CPPFLAGS+set}
954ac_env_CPPFLAGS_value=$CPPFLAGS
955ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_cv_env_CPPFLAGS_value=$CPPFLAGS
957ac_env_MPICC_set=${MPICC+set}
958ac_env_MPICC_value=$MPICC
959ac_cv_env_MPICC_set=${MPICC+set}
960ac_cv_env_MPICC_value=$MPICC
961ac_env_CXXDEFS_set=${CXXDEFS+set}
962ac_env_CXXDEFS_value=$CXXDEFS
963ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
964ac_cv_env_CXXDEFS_value=$CXXDEFS
965ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
966ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
967ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
970ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
971ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
974ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
975ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_env_CXX_set=${CXX+set}
978ac_env_CXX_value=$CXX
979ac_cv_env_CXX_set=${CXX+set}
980ac_cv_env_CXX_value=$CXX
981ac_env_CXXFLAGS_set=${CXXFLAGS+set}
982ac_env_CXXFLAGS_value=$CXXFLAGS
983ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_cv_env_CXXFLAGS_value=$CXXFLAGS
985ac_env_MPICXX_set=${MPICXX+set}
986ac_env_MPICXX_value=$MPICXX
987ac_cv_env_MPICXX_set=${MPICXX+set}
988ac_cv_env_MPICXX_value=$MPICXX
989ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
990ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
991ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
994ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
995ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
998ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
999ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_env_F77_set=${F77+set}
1002ac_env_F77_value=$F77
1003ac_cv_env_F77_set=${F77+set}
1004ac_cv_env_F77_value=$F77
1005ac_env_FFLAGS_set=${FFLAGS+set}
1006ac_env_FFLAGS_value=$FFLAGS
1007ac_cv_env_FFLAGS_set=${FFLAGS+set}
1008ac_cv_env_FFLAGS_value=$FFLAGS
1009ac_env_MPIF77_set=${MPIF77+set}
1010ac_env_MPIF77_value=$MPIF77
1011ac_cv_env_MPIF77_set=${MPIF77+set}
1012ac_cv_env_MPIF77_value=$MPIF77
1013ac_env_CPP_set=${CPP+set}
1014ac_env_CPP_value=$CPP
1015ac_cv_env_CPP_set=${CPP+set}
1016ac_cv_env_CPP_value=$CPP
1017ac_env_CXXCPP_set=${CXXCPP+set}
1018ac_env_CXXCPP_value=$CXXCPP
1019ac_cv_env_CXXCPP_set=${CXXCPP+set}
1020ac_cv_env_CXXCPP_value=$CXXCPP
1021ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1022ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1023ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025
1026#
1027# Report the --help message.
1028#
1029if test "$ac_init_help" = "long"; then
1030  # Omit some internal or obsolete options to make the list less imposing.
1031  # This message is too long to be a string in the A/UX 3.1 sh.
1032  cat <<_ACEOF
1033\`configure' configures Osi 0.108.6 to adapt to many kinds of systems.
1034
1035Usage: $0 [OPTION]... [VAR=VALUE]...
1036
1037To assign environment variables (e.g., CC, CFLAGS...), specify them as
1038VAR=VALUE.  See below for descriptions of some of the useful variables.
1039
1040Defaults for the options are specified in brackets.
1041
1042Configuration:
1043  -h, --help              display this help and exit
1044      --help=short        display options specific to this package
1045      --help=recursive    display the short help of all the included packages
1046  -V, --version           display version information and exit
1047  -q, --quiet, --silent   do not print \`checking...' messages
1048      --cache-file=FILE   cache test results in FILE [disabled]
1049  -C, --config-cache      alias for \`--cache-file=config.cache'
1050  -n, --no-create         do not create output files
1051      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1052
1053_ACEOF
1054
1055  cat <<_ACEOF
1056Installation directories:
1057  --prefix=PREFIX         install architecture-independent files in PREFIX
1058			  [$ac_default_prefix]
1059  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1060			  [PREFIX]
1061
1062By default, \`make install' will install all the files in
1063\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1064an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1065for instance \`--prefix=\$HOME'.
1066
1067For better control, use the options below.
1068
1069Fine tuning of the installation directories:
1070  --bindir=DIR           user executables [EPREFIX/bin]
1071  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1072  --libexecdir=DIR       program executables [EPREFIX/libexec]
1073  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1074  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1075  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1076  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1077  --libdir=DIR           object code libraries [EPREFIX/lib]
1078  --includedir=DIR       C header files [PREFIX/include]
1079  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1080  --infodir=DIR          info documentation [PREFIX/info]
1081  --mandir=DIR           man documentation [PREFIX/man]
1082_ACEOF
1083
1084  cat <<\_ACEOF
1085
1086Program names:
1087  --program-prefix=PREFIX            prepend PREFIX to installed program names
1088  --program-suffix=SUFFIX            append SUFFIX to installed program names
1089  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1090
1091System types:
1092  --build=BUILD     configure for building on BUILD [guessed]
1093  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1094_ACEOF
1095fi
1096
1097if test -n "$ac_init_help"; then
1098  case $ac_init_help in
1099     short | recursive ) echo "Configuration of Osi 0.108.6:";;
1100   esac
1101  cat <<\_ACEOF
1102
1103Optional Features:
1104  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1105  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1106  --enable-debug          compile all projects with debug options tests
1107                          (implies --disable-shared)
1108
1109  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1110  --enable-static[=PKGS]
1111                          build static libraries [default=no]
1112  --disable-dependency-tracking  speeds up one-time build
1113  --enable-dependency-tracking   do not reject slow dependency extractors
1114  --enable-maintainer-mode  enable make rules and dependencies not useful
1115			  (and sometimes confusing) to the casual installer
1116  --enable-shared[=PKGS]
1117                          build shared libraries [default=yes]
1118  --enable-fast-install[=PKGS]
1119                          optimize for fast installation [default=yes]
1120  --disable-libtool-lock  avoid locking (might break parallel builds)
1121  --disable-dependency-linking
1122                          disable linking library dependencies into shared
1123                          libraries
1124
1125Optional Packages:
1126  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1127  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133
1134  --with-glpk-lib linker flags for using project Glpk
1135  --with-glpk-incdir directory with header files for using project Glpk
1136  --with-glpk-datadir directory with data files for using project Glpk
1137  --with-soplex-lib linker flags for using project SoPlex
1138  --with-soplex-incdir directory with header files for using project SoPlex
1139  --with-soplex-datadir directory with data files for using project SoPlex
1140  --with-blas-lib linker flags for using project Blas
1141  --with-blas-incdir directory with header files for using project Blas
1142  --with-blas-datadir directory with data files for using project Blas
1143  --with-blas             specify BLAS library (or BUILD to enforce use of
1144                          ThirdParty/Blas)
1145  --with-lapack-lib linker flags for using project Lapack
1146  --with-lapack-incdir directory with header files for using project Lapack
1147  --with-lapack-datadir directory with data files for using project Lapack
1148  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1149                          ThirdParty/Lapack)
1150  --with-sample-lib linker flags for using project Sample
1151  --with-sample-incdir directory with header files for using project Sample
1152  --with-sample-datadir directory with data files for using project Sample
1153  --with-netlib-lib linker flags for using project Netlib
1154  --with-netlib-incdir directory with header files for using project Netlib
1155  --with-netlib-datadir directory with data files for using project Netlib
1156  --with-coinutils-lib linker flags for using project CoinUtils
1157  --with-coinutils-incdir directory with header files for using project
1158                          CoinUtils
1159  --with-coinutils-datadir
1160                          directory with data files for using project
1161                          CoinUtils
1162  --with-osi-lib linker flags for using project Osi
1163  --with-osi-incdir directory with header files for using project Osi
1164  --with-osi-datadir directory with data files for using project Osi
1165  --with-dot              use dot (from graphviz) when creating documentation
1166                          with doxygen if available; --without-dot to disable
1167
1168Some influential environment variables:
1169  CDEFS       Additional -D flags to be used when compiling C code.
1170  ADD_CFLAGS  Additional C compiler options
1171  DBG_CFLAGS  Debug C compiler options
1172  OPT_CFLAGS  Optimize C compiler options
1173  CC          C compiler command
1174  CFLAGS      C compiler flags
1175  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1176              nonstandard directory <lib dir>
1177  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1178              headers in a nonstandard directory <include dir>
1179  MPICC       C MPI Compiler
1180  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1181  ADD_CXXFLAGS
1182              Additional C++ compiler options
1183  DBG_CXXFLAGS
1184              Debug C++ compiler options
1185  OPT_CXXFLAGS
1186              Optimize C++ compiler options
1187  CXX         C++ compiler command
1188  CXXFLAGS    C++ compiler flags
1189  MPICXX      C++ MPI Compiler
1190  ADD_FFLAGS  Additional Fortran compiler options
1191  DBG_FFLAGS  Debug Fortran compiler options
1192  OPT_FFLAGS  Optimize Fortran compiler options
1193  F77         Fortran 77 compiler command
1194  FFLAGS      Fortran 77 compiler flags
1195  MPIF77      Fortran MPI Compiler
1196  CPP         C preprocessor
1197  CXXCPP      C++ preprocessor
1198  COIN_SKIP_PROJECTS
1199              Set to the subdirectories of projects that should be skipped in
1200              the configuration
1201
1202Use these variables to override the choices made by `configure' or to help
1203it to find libraries and programs with nonstandard names/locations.
1204
1205Report bugs to <osi@lists.coin-or.org>.
1206_ACEOF
1207fi
1208
1209if test "$ac_init_help" = "recursive"; then
1210  # If there are subdirs, report their specific --help.
1211  ac_popdir=`pwd`
1212  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1213    test -d $ac_dir || continue
1214    ac_builddir=.
1215
1216if test "$ac_dir" != .; then
1217  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1218  # A "../" for each directory in $ac_dir_suffix.
1219  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1220else
1221  ac_dir_suffix= ac_top_builddir=
1222fi
1223
1224case $srcdir in
1225  .)  # No --srcdir option.  We are building in place.
1226    ac_srcdir=.
1227    if test -z "$ac_top_builddir"; then
1228       ac_top_srcdir=.
1229    else
1230       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1231    fi ;;
1232  [\\/]* | ?:[\\/]* )  # Absolute path.
1233    ac_srcdir=$srcdir$ac_dir_suffix;
1234    ac_top_srcdir=$srcdir ;;
1235  *) # Relative path.
1236    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1237    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1238esac
1239
1240# Do not use `cd foo && pwd` to compute absolute paths, because
1241# the directories may not exist.
1242case `pwd` in
1243.) ac_abs_builddir="$ac_dir";;
1244*)
1245  case "$ac_dir" in
1246  .) ac_abs_builddir=`pwd`;;
1247  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1248  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1249  esac;;
1250esac
1251case $ac_abs_builddir in
1252.) ac_abs_top_builddir=${ac_top_builddir}.;;
1253*)
1254  case ${ac_top_builddir}. in
1255  .) ac_abs_top_builddir=$ac_abs_builddir;;
1256  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1257  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1258  esac;;
1259esac
1260case $ac_abs_builddir in
1261.) ac_abs_srcdir=$ac_srcdir;;
1262*)
1263  case $ac_srcdir in
1264  .) ac_abs_srcdir=$ac_abs_builddir;;
1265  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1266  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1267  esac;;
1268esac
1269case $ac_abs_builddir in
1270.) ac_abs_top_srcdir=$ac_top_srcdir;;
1271*)
1272  case $ac_top_srcdir in
1273  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1274  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1275  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1276  esac;;
1277esac
1278
1279    cd $ac_dir
1280    # Check for guested configure; otherwise get Cygnus style configure.
1281    if test -f $ac_srcdir/configure.gnu; then
1282      echo
1283      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1284    elif test -f $ac_srcdir/configure; then
1285      echo
1286      $SHELL $ac_srcdir/configure  --help=recursive
1287    elif test -f $ac_srcdir/configure.ac ||
1288	   test -f $ac_srcdir/configure.in; then
1289      echo
1290      $ac_configure --help
1291    else
1292      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1293    fi
1294    cd $ac_popdir
1295  done
1296fi
1297
1298test -n "$ac_init_help" && exit 0
1299if $ac_init_version; then
1300  cat <<\_ACEOF
1301Osi configure 0.108.6
1302generated by GNU Autoconf 2.59
1303
1304Copyright (C) 2003 Free Software Foundation, Inc.
1305This configure script is free software; the Free Software Foundation
1306gives unlimited permission to copy, distribute and modify it.
1307
1308
1309Copyright 2006 International Business Machines and others.
1310All Rights Reserved.
1311This file is part of the open source package Coin which is distributed
1312under the Eclipse Public License.
1313_ACEOF
1314  exit 0
1315fi
1316exec 5>config.log
1317cat >&5 <<_ACEOF
1318This file contains any messages produced by compilers while
1319running configure, to aid debugging if configure makes a mistake.
1320
1321It was created by Osi $as_me 0.108.6, which was
1322generated by GNU Autoconf 2.59.  Invocation command line was
1323
1324  $ $0 $@
1325
1326_ACEOF
1327{
1328cat <<_ASUNAME
1329## --------- ##
1330## Platform. ##
1331## --------- ##
1332
1333hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1334uname -m = `(uname -m) 2>/dev/null || echo unknown`
1335uname -r = `(uname -r) 2>/dev/null || echo unknown`
1336uname -s = `(uname -s) 2>/dev/null || echo unknown`
1337uname -v = `(uname -v) 2>/dev/null || echo unknown`
1338
1339/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1340/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1341
1342/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1343/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1344/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1345hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1346/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1347/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1348/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1349
1350_ASUNAME
1351
1352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353for as_dir in $PATH
1354do
1355  IFS=$as_save_IFS
1356  test -z "$as_dir" && as_dir=.
1357  echo "PATH: $as_dir"
1358done
1359
1360} >&5
1361
1362cat >&5 <<_ACEOF
1363
1364
1365## ----------- ##
1366## Core tests. ##
1367## ----------- ##
1368
1369_ACEOF
1370
1371
1372# Keep a trace of the command line.
1373# Strip out --no-create and --no-recursion so they do not pile up.
1374# Strip out --silent because we don't want to record it for future runs.
1375# Also quote any args containing shell meta-characters.
1376# Make two passes to allow for proper duplicate-argument suppression.
1377ac_configure_args=
1378ac_configure_args0=
1379ac_configure_args1=
1380ac_sep=
1381ac_must_keep_next=false
1382for ac_pass in 1 2
1383do
1384  for ac_arg
1385  do
1386    case $ac_arg in
1387    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1388    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1389    | -silent | --silent | --silen | --sile | --sil)
1390      continue ;;
1391    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1392      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1393    esac
1394    case $ac_pass in
1395    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1396    2)
1397      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1398      if test $ac_must_keep_next = true; then
1399	ac_must_keep_next=false # Got value, back to normal.
1400      else
1401	case $ac_arg in
1402	  *=* | --config-cache | -C | -disable-* | --disable-* \
1403	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1404	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1405	  | -with-* | --with-* | -without-* | --without-* | --x)
1406	    case "$ac_configure_args0 " in
1407	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1408	    esac
1409	    ;;
1410	  -* ) ac_must_keep_next=true ;;
1411	esac
1412      fi
1413      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1414      # Get rid of the leading space.
1415      ac_sep=" "
1416      ;;
1417    esac
1418  done
1419done
1420$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1421$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1422
1423# When interrupted or exit'd, cleanup temporary files, and complete
1424# config.log.  We remove comments because anyway the quotes in there
1425# would cause problems or look ugly.
1426# WARNING: Be sure not to use single quotes in there, as some shells,
1427# such as our DU 5.0 friend, will then `close' the trap.
1428trap 'exit_status=$?
1429  # Save into config.log some information that might help in debugging.
1430  {
1431    echo
1432
1433    cat <<\_ASBOX
1434## ---------------- ##
1435## Cache variables. ##
1436## ---------------- ##
1437_ASBOX
1438    echo
1439    # The following way of writing the cache mishandles newlines in values,
1440{
1441  (set) 2>&1 |
1442    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1443    *ac_space=\ *)
1444      sed -n \
1445	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1446	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1447      ;;
1448    *)
1449      sed -n \
1450	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1451      ;;
1452    esac;
1453}
1454    echo
1455
1456    cat <<\_ASBOX
1457## ----------------- ##
1458## Output variables. ##
1459## ----------------- ##
1460_ASBOX
1461    echo
1462    for ac_var in $ac_subst_vars
1463    do
1464      eval ac_val=$`echo $ac_var`
1465      echo "$ac_var='"'"'$ac_val'"'"'"
1466    done | sort
1467    echo
1468
1469    if test -n "$ac_subst_files"; then
1470      cat <<\_ASBOX
1471## ------------- ##
1472## Output files. ##
1473## ------------- ##
1474_ASBOX
1475      echo
1476      for ac_var in $ac_subst_files
1477      do
1478	eval ac_val=$`echo $ac_var`
1479	echo "$ac_var='"'"'$ac_val'"'"'"
1480      done | sort
1481      echo
1482    fi
1483
1484    if test -s confdefs.h; then
1485      cat <<\_ASBOX
1486## ----------- ##
1487## confdefs.h. ##
1488## ----------- ##
1489_ASBOX
1490      echo
1491      sed "/^$/d" confdefs.h | sort
1492      echo
1493    fi
1494    test "$ac_signal" != 0 &&
1495      echo "$as_me: caught signal $ac_signal"
1496    echo "$as_me: exit $exit_status"
1497  } >&5
1498  rm -f core *.core &&
1499  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1500    exit $exit_status
1501     ' 0
1502for ac_signal in 1 2 13 15; do
1503  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1504done
1505ac_signal=0
1506
1507# confdefs.h avoids OS command line length limits that DEFS can exceed.
1508rm -rf conftest* confdefs.h
1509# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1510echo >confdefs.h
1511
1512# Predefined preprocessor variables.
1513
1514cat >>confdefs.h <<_ACEOF
1515#define PACKAGE_NAME "$PACKAGE_NAME"
1516_ACEOF
1517
1518
1519cat >>confdefs.h <<_ACEOF
1520#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1521_ACEOF
1522
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_VERSION "$PACKAGE_VERSION"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_STRING "$PACKAGE_STRING"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1536_ACEOF
1537
1538
1539# Let the site file select an alternate cache file if it wants to.
1540# Prefer explicitly selected file to automatically selected ones.
1541if test -z "$CONFIG_SITE"; then
1542  if test "x$prefix" != xNONE; then
1543    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1544  else
1545    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1546  fi
1547fi
1548for ac_site_file in $CONFIG_SITE; do
1549  if test -r "$ac_site_file"; then
1550    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1551echo "$as_me: loading site script $ac_site_file" >&6;}
1552    sed 's/^/| /' "$ac_site_file" >&5
1553    . "$ac_site_file"
1554  fi
1555done
1556
1557if test -r "$cache_file"; then
1558  # Some versions of bash will fail to source /dev/null (special
1559  # files actually), so we avoid doing that.
1560  if test -f "$cache_file"; then
1561    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1562echo "$as_me: loading cache $cache_file" >&6;}
1563    case $cache_file in
1564      [\\/]* | ?:[\\/]* ) . $cache_file;;
1565      *)                      . ./$cache_file;;
1566    esac
1567  fi
1568else
1569  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1570echo "$as_me: creating cache $cache_file" >&6;}
1571  >$cache_file
1572fi
1573
1574# Check that the precious variables saved in the cache have kept the same
1575# value.
1576ac_cache_corrupted=false
1577for ac_var in `(set) 2>&1 |
1578	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1579  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1580  eval ac_new_set=\$ac_env_${ac_var}_set
1581  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1582  eval ac_new_val="\$ac_env_${ac_var}_value"
1583  case $ac_old_set,$ac_new_set in
1584    set,)
1585      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1586echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1587      ac_cache_corrupted=: ;;
1588    ,set)
1589      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1590echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1591      ac_cache_corrupted=: ;;
1592    ,);;
1593    *)
1594      if test "x$ac_old_val" != "x$ac_new_val"; then
1595	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1596echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1597	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1598echo "$as_me:   former value:  $ac_old_val" >&2;}
1599	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1600echo "$as_me:   current value: $ac_new_val" >&2;}
1601	ac_cache_corrupted=:
1602      fi;;
1603  esac
1604  # Pass precious variables to config.status.
1605  if test "$ac_new_set" = set; then
1606    case $ac_new_val in
1607    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1608      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1609    *) ac_arg=$ac_var=$ac_new_val ;;
1610    esac
1611    case " $ac_configure_args " in
1612      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1613      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1614    esac
1615  fi
1616done
1617if $ac_cache_corrupted; then
1618  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1619echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1620  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1621echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1622   { (exit 1); exit 1; }; }
1623fi
1624
1625ac_ext=c
1626ac_cpp='$CPP $CPPFLAGS'
1627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1629ac_compiler_gnu=$ac_cv_c_compiler_gnu
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662# List one file in the package so that the configure script can test
1663# whether the package is actually there
1664
1665
1666# Where should everything be installed by default?  Here, we want it
1667# to be installed directly in 'bin', 'lib', 'include' subdirectories
1668# of the directory where configure is run.  The default would be
1669# /usr/local.
1670
1671
1672#############################################################################
1673#  Do the tests necessary to configure compilers and initialise autotools   #
1674#############################################################################
1675
1676ac_aux_dir=
1677for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1678  if test -f $ac_dir/install-sh; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/install-sh -c"
1681    break
1682  elif test -f $ac_dir/install.sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install.sh -c"
1685    break
1686  elif test -f $ac_dir/shtool; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/shtool install -c"
1689    break
1690  fi
1691done
1692if test -z "$ac_aux_dir"; then
1693  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1694echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1695   { (exit 1); exit 1; }; }
1696fi
1697ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1698ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1699ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1700
1701# Make sure we can run config.sub.
1702$ac_config_sub sun4 >/dev/null 2>&1 ||
1703  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1704echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1705   { (exit 1); exit 1; }; }
1706
1707echo "$as_me:$LINENO: checking build system type" >&5
1708echo $ECHO_N "checking build system type... $ECHO_C" >&6
1709if test "${ac_cv_build+set}" = set; then
1710  echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712  ac_cv_build_alias=$build_alias
1713test -z "$ac_cv_build_alias" &&
1714  ac_cv_build_alias=`$ac_config_guess`
1715test -z "$ac_cv_build_alias" &&
1716  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1717echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1718   { (exit 1); exit 1; }; }
1719ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1720  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1721echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1722   { (exit 1); exit 1; }; }
1723
1724fi
1725echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1726echo "${ECHO_T}$ac_cv_build" >&6
1727build=$ac_cv_build
1728build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731
1732
1733
1734# Check if user wants to produce debugging code
1735
1736echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1737echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1738
1739# Check whether --enable-debug or --disable-debug was given.
1740if test "${enable_debug+set}" = set; then
1741  enableval="$enable_debug"
1742  case "${enableval}" in
1743   yes) coin_debug_compile=true
1744        if test "${enable_shared+set}" = set; then :; else
1745          enable_shared=no
1746        fi
1747        ;;
1748   no)  coin_debug_compile=false
1749        ;;
1750   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1751echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1752   { (exit 1); exit 1; }; }
1753        ;;
1754esac
1755else
1756  coin_debug_compile=false
1757fi;
1758
1759 # m4_ifvaln([],
1760
1761if test $coin_debug_compile = true; then
1762  echo "$as_me:$LINENO: result: yes" >&5
1763echo "${ECHO_T}yes" >&6
1764else
1765  echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769 # m4_ifvaln([],
1770
1771
1772
1773# Get the name of the C compiler and appropriate compiler options
1774
1775
1776  # for backward compatibility
1777  # Check whether --enable-doscompile or --disable-doscompile was given.
1778if test "${enable_doscompile+set}" = set; then
1779  enableval="$enable_doscompile"
1780  enable_doscompile=$enableval
1781else
1782  enable_doscompile=no
1783fi;
1784
1785  # Check whether --enable-msvc or --disable-msvc was given.
1786if test "${enable_msvc+set}" = set; then
1787  enableval="$enable_msvc"
1788  enable_msvc=$enableval
1789else
1790  enable_msvc=no
1791     if test "$enable_doscompile" = msvc ; then
1792       enable_msvc=yes
1793     elif test "$enable_doscompile" != no ; then
1794       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1795echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1796   { (exit 1); exit 1; }; }
1797     fi
1798
1799fi;
1800
1801  if test "$enable_msvc" = MD; then
1802    enable_shared=yes
1803    enable_msvc=yes
1804  fi
1805
1806  if test "$enable_msvc" = yes; then
1807    case $build in
1808      *-cygwin* | *-mingw*) ;;
1809      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1810echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1811   { (exit 1); exit 1; }; } ;;
1812    esac
1813  fi
1814
1815
1816
1817ac_ext=c
1818ac_cpp='$CPP $CPPFLAGS'
1819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822
1823
1824# For consistency, we set the C compiler to the same value of the C++
1825# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1826if test x"$CXX" != x; then
1827  case "$CXX" in
1828    clang* ) ;;
1829    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1830      if test x"$CC" = x; then
1831        CC="$CXX"
1832        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1833echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1834      fi
1835      ;;
1836  esac
1837fi
1838
1839
1840
1841
1842
1843
1844coin_has_cc=yes
1845
1846save_cflags="$CFLAGS"
1847
1848# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1849# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1850# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1851# compiler. In this case, put cc after gcc.
1852
1853case $build in
1854  *-cygwin* | *-mingw*)
1855  	     if test "$enable_msvc" = yes ; then
1856	       comps="icl cl gcc"
1857	     else
1858	       comps="gcc icl cl"
1859	     fi ;;
1860  *-*-solaris*)
1861	     # Extract the first word of "cc", so it can be a program name with args.
1862set dummy cc; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if test -n "$sol_cc_compiler"; then
1869  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1870else
1871  ac_prog_rejected=no
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875  IFS=$as_save_IFS
1876  test -z "$as_dir" && as_dir=.
1877  for ac_exec_ext in '' $ac_executable_extensions; do
1878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1880       ac_prog_rejected=yes
1881       continue
1882     fi
1883    ac_cv_prog_sol_cc_compiler="cc"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890if test $ac_prog_rejected = yes; then
1891  # We found a bogon in the path, so make sure we never use it.
1892  set dummy $ac_cv_prog_sol_cc_compiler
1893  shift
1894  if test $# != 0; then
1895    # We chose a different compiler from the bogus one.
1896    # However, it has the same basename, so the bogon will be chosen
1897    # first if we set sol_cc_compiler to just the basename; use the full file name.
1898    shift
1899    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1900  fi
1901fi
1902fi
1903fi
1904sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1905if test -n "$sol_cc_compiler"; then
1906  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1907echo "${ECHO_T}$sol_cc_compiler" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913	     if test "$sol_cc_compiler" = "cc" ; then
1914	       comps="cc xlc gcc pgcc icc"
1915	     else
1916	       comps="xlc gcc pgcc icc cc"
1917	     fi
1918	     ;;
1919  *-*-darwin*) comps="clang gcc cc" ;;
1920  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1921  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1922  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1923esac
1924
1925# We delete the cached value, since the test might not have been
1926# performed with our choice of compilers earlier
1927$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1928# AC_MSG_NOTICE([C compiler candidates: $comps])
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934if test -n "$ac_tool_prefix"; then
1935  for ac_prog in $comps
1936  do
1937    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_CC+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test -n "$CC"; then
1945  ac_cv_prog_CC="$CC" # Let the user override the test.
1946else
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956    break 2
1957  fi
1958done
1959done
1960
1961fi
1962fi
1963CC=$ac_cv_prog_CC
1964if test -n "$CC"; then
1965  echo "$as_me:$LINENO: result: $CC" >&5
1966echo "${ECHO_T}$CC" >&6
1967else
1968  echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
1970fi
1971
1972    test -n "$CC" && break
1973  done
1974fi
1975if test -z "$CC"; then
1976  ac_ct_CC=$CC
1977  for ac_prog in $comps
1978do
1979  # Extract the first word of "$ac_prog", so it can be a program name with args.
1980set dummy $ac_prog; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$ac_ct_CC"; then
1987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  for ac_exec_ext in '' $ac_executable_extensions; do
1995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996    ac_cv_prog_ac_ct_CC="$ac_prog"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003fi
2004fi
2005ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006if test -n "$ac_ct_CC"; then
2007  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008echo "${ECHO_T}$ac_ct_CC" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014  test -n "$ac_ct_CC" && break
2015done
2016
2017  CC=$ac_ct_CC
2018fi
2019
2020
2021test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2022See \`config.log' for more details." >&5
2023echo "$as_me: error: no acceptable C compiler found in \$PATH
2024See \`config.log' for more details." >&2;}
2025   { (exit 1); exit 1; }; }
2026
2027# Provide some information about the compiler.
2028echo "$as_me:$LINENO:" \
2029     "checking for C compiler version" >&5
2030ac_compiler=`set X $ac_compile; echo $2`
2031{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2032  (eval $ac_compiler --version </dev/null >&5) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }
2036{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2037  (eval $ac_compiler -v </dev/null >&5) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }
2041{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2042  (eval $ac_compiler -V </dev/null >&5) 2>&5
2043  ac_status=$?
2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045  (exit $ac_status); }
2046
2047cat >conftest.$ac_ext <<_ACEOF
2048/* confdefs.h.  */
2049_ACEOF
2050cat confdefs.h >>conftest.$ac_ext
2051cat >>conftest.$ac_ext <<_ACEOF
2052/* end confdefs.h.  */
2053
2054int
2055main ()
2056{
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062ac_clean_files_save=$ac_clean_files
2063ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064# Try to create an executable without -o first, disregard a.out.
2065# It will help us diagnose broken compilers, and finding out an intuition
2066# of exeext.
2067echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2068echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2069ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071  (eval $ac_link_default) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # Find the output, starting from the most likely.  This scheme is
2076# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077# resort.
2078
2079# Be careful to initialize this variable, since it used to be cached.
2080# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081ac_cv_exeext=
2082# b.out is created by i960 compilers.
2083for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2084do
2085  test -f "$ac_file" || continue
2086  case $ac_file in
2087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088	;;
2089    conftest.$ac_ext )
2090	# This is the source file.
2091	;;
2092    [ab].out )
2093	# We found the default executable, but exeext='' is most
2094	# certainly right.
2095	break;;
2096    *.* )
2097	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098	# FIXME: I believe we export ac_cv_exeext for Libtool,
2099	# but it would be cool to find out if it's true.  Does anybody
2100	# maintain Libtool? --akim.
2101	export ac_cv_exeext
2102	break;;
2103    * )
2104	break;;
2105  esac
2106done
2107else
2108  echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: C compiler cannot create executables
2114See \`config.log' for more details." >&2;}
2115   { (exit 77); exit 77; }; }
2116fi
2117
2118ac_exeext=$ac_cv_exeext
2119echo "$as_me:$LINENO: result: $ac_file" >&5
2120echo "${ECHO_T}$ac_file" >&6
2121
2122# Check the compiler produces executables we can run.  If not, either
2123# the compiler is broken, or we cross compile.
2124echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2125echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2126# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127# If not cross compiling, check that we can run a simple program.
2128if test "$cross_compiling" != yes; then
2129  if { ac_try='./$ac_file'
2130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131  (eval $ac_try) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }; }; then
2135    cross_compiling=no
2136  else
2137    if test "$cross_compiling" = maybe; then
2138	cross_compiling=yes
2139    else
2140	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2141If you meant to cross compile, use \`--host'.
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot run C compiled programs.
2144If you meant to cross compile, use \`--host'.
2145See \`config.log' for more details." >&2;}
2146   { (exit 1); exit 1; }; }
2147    fi
2148  fi
2149fi
2150echo "$as_me:$LINENO: result: yes" >&5
2151echo "${ECHO_T}yes" >&6
2152
2153rm -f a.out a.exe conftest$ac_cv_exeext b.out
2154ac_clean_files=$ac_clean_files_save
2155# Check the compiler produces executables we can run.  If not, either
2156# the compiler is broken, or we cross compile.
2157echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160echo "${ECHO_T}$cross_compiling" >&6
2161
2162echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165  (eval $ac_link) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; then
2169  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2171# work properly (i.e., refer to `conftest.exe'), while it won't with
2172# `rm'.
2173for ac_file in conftest.exe conftest conftest.*; do
2174  test -f "$ac_file" || continue
2175  case $ac_file in
2176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2177    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178	  export ac_cv_exeext
2179	  break;;
2180    * ) break;;
2181  esac
2182done
2183else
2184  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2185See \`config.log' for more details." >&5
2186echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2187See \`config.log' for more details." >&2;}
2188   { (exit 1); exit 1; }; }
2189fi
2190
2191rm -f conftest$ac_cv_exeext
2192echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2193echo "${ECHO_T}$ac_cv_exeext" >&6
2194
2195rm -f conftest.$ac_ext
2196EXEEXT=$ac_cv_exeext
2197ac_exeext=$EXEEXT
2198echo "$as_me:$LINENO: checking for suffix of object files" >&5
2199echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2200if test "${ac_cv_objext+set}" = set; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209
2210int
2211main ()
2212{
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218rm -f conftest.o conftest.obj
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220  (eval $ac_compile) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; then
2224  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2225  case $ac_file in
2226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2227    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2228       break;;
2229  esac
2230done
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of object files: cannot compile
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest.$ac_cv_objext conftest.$ac_ext
2243fi
2244echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2245echo "${ECHO_T}$ac_cv_objext" >&6
2246OBJEXT=$ac_cv_objext
2247ac_objext=$OBJEXT
2248echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2249echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2250if test "${ac_cv_c_compiler_gnu+set}" = set; then
2251  echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253  cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h.  */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h.  */
2259
2260int
2261main ()
2262{
2263#ifndef __GNUC__
2264       choke me
2265#endif
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271rm -f conftest.$ac_objext
2272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273  (eval $ac_compile) 2>conftest.er1
2274  ac_status=$?
2275  grep -v '^ *+' conftest.er1 >conftest.err
2276  rm -f conftest.er1
2277  cat conftest.err >&5
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); } &&
2280	 { ac_try='test -z "$ac_c_werror_flag"
2281			 || test ! -s conftest.err'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; } &&
2287	 { ac_try='test -s conftest.$ac_objext'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; }; then
2293  ac_compiler_gnu=yes
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298ac_compiler_gnu=no
2299fi
2300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301ac_cv_c_compiler_gnu=$ac_compiler_gnu
2302
2303fi
2304echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2305echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2306GCC=`test $ac_compiler_gnu = yes && echo yes`
2307ac_test_CFLAGS=${CFLAGS+set}
2308ac_save_CFLAGS=$CFLAGS
2309CFLAGS="-g"
2310echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2311echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2312if test "${ac_cv_prog_cc_g+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321
2322int
2323main ()
2324{
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>conftest.er1
2333  ac_status=$?
2334  grep -v '^ *+' conftest.er1 >conftest.err
2335  rm -f conftest.er1
2336  cat conftest.err >&5
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339	 { ac_try='test -z "$ac_c_werror_flag"
2340			 || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346	 { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  ac_cv_prog_cc_g=yes
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357ac_cv_prog_cc_g=no
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363if test "$ac_test_CFLAGS" = set; then
2364  CFLAGS=$ac_save_CFLAGS
2365elif test $ac_cv_prog_cc_g = yes; then
2366  if test "$GCC" = yes; then
2367    CFLAGS="-g -O2"
2368  else
2369    CFLAGS="-g"
2370  fi
2371else
2372  if test "$GCC" = yes; then
2373    CFLAGS="-O2"
2374  else
2375    CFLAGS=
2376  fi
2377fi
2378echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2379echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2380if test "${ac_cv_prog_cc_stdc+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  ac_cv_prog_cc_stdc=no
2384ac_save_CC=$CC
2385cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h.  */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h.  */
2391#include <stdarg.h>
2392#include <stdio.h>
2393#include <sys/types.h>
2394#include <sys/stat.h>
2395/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2396struct buf { int x; };
2397FILE * (*rcsopen) (struct buf *, struct stat *, int);
2398static char *e (p, i)
2399     char **p;
2400     int i;
2401{
2402  return p[i];
2403}
2404static char *f (char * (*g) (char **, int), char **p, ...)
2405{
2406  char *s;
2407  va_list v;
2408  va_start (v,p);
2409  s = g (p, va_arg (v,int));
2410  va_end (v);
2411  return s;
2412}
2413
2414/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2415   function prototypes and stuff, but not '\xHH' hex character constants.
2416   These don't provoke an error unfortunately, instead are silently treated
2417   as 'x'.  The following induces an error, until -std1 is added to get
2418   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2419   array size at least.  It's necessary to write '\x00'==0 to get something
2420   that's true only with -std1.  */
2421int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2422
2423int test (int i, double x);
2424struct s1 {int (*f) (int a);};
2425struct s2 {int (*f) (double a);};
2426int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2427int argc;
2428char **argv;
2429int
2430main ()
2431{
2432return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437# Don't try gcc -ansi; that turns off useful extensions and
2438# breaks some systems' header files.
2439# AIX			-qlanglvl=ansi
2440# Ultrix and OSF/1	-std1
2441# HP-UX 10.20 and later	-Ae
2442# HP-UX older versions	-Aa -D_HPUX_SOURCE
2443# SVR4			-Xc -D__EXTENSIONS__
2444for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2445do
2446  CC="$ac_save_CC $ac_arg"
2447  rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456	 { ac_try='test -z "$ac_c_werror_flag"
2457			 || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463	 { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_cv_prog_cc_stdc=$ac_arg
2470break
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475fi
2476rm -f conftest.err conftest.$ac_objext
2477done
2478rm -f conftest.$ac_ext conftest.$ac_objext
2479CC=$ac_save_CC
2480
2481fi
2482
2483case "x$ac_cv_prog_cc_stdc" in
2484  x|xno)
2485    echo "$as_me:$LINENO: result: none needed" >&5
2486echo "${ECHO_T}none needed" >&6 ;;
2487  *)
2488    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2489echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2490    CC="$CC $ac_cv_prog_cc_stdc" ;;
2491esac
2492
2493# Some people use a C++ compiler to compile C.  Since we use `exit',
2494# in C++ we need to declare it.  In case someone uses the same compiler
2495# for both compiling C and C++ we need to have the C++ compiler decide
2496# the declaration of exit, since it's the most demanding environment.
2497cat >conftest.$ac_ext <<_ACEOF
2498#ifndef __cplusplus
2499  choke me
2500#endif
2501_ACEOF
2502rm -f conftest.$ac_objext
2503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504  (eval $ac_compile) 2>conftest.er1
2505  ac_status=$?
2506  grep -v '^ *+' conftest.er1 >conftest.err
2507  rm -f conftest.er1
2508  cat conftest.err >&5
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); } &&
2511	 { ac_try='test -z "$ac_c_werror_flag"
2512			 || test ! -s conftest.err'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; } &&
2518	 { ac_try='test -s conftest.$ac_objext'
2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520  (eval $ac_try) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }; }; then
2524  for ac_declaration in \
2525   '' \
2526   'extern "C" void std::exit (int) throw (); using std::exit;' \
2527   'extern "C" void std::exit (int); using std::exit;' \
2528   'extern "C" void exit (int) throw ();' \
2529   'extern "C" void exit (int);' \
2530   'void exit (int);'
2531do
2532  cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h.  */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h.  */
2538$ac_declaration
2539#include <stdlib.h>
2540int
2541main ()
2542{
2543exit (42);
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548rm -f conftest.$ac_objext
2549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550  (eval $ac_compile) 2>conftest.er1
2551  ac_status=$?
2552  grep -v '^ *+' conftest.er1 >conftest.err
2553  rm -f conftest.er1
2554  cat conftest.err >&5
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); } &&
2557	 { ac_try='test -z "$ac_c_werror_flag"
2558			 || test ! -s conftest.err'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; } &&
2564	 { ac_try='test -s conftest.$ac_objext'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; }; then
2570  :
2571else
2572  echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575continue
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578  cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584$ac_declaration
2585int
2586main ()
2587{
2588exit (42);
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595  (eval $ac_compile) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602	 { ac_try='test -z "$ac_c_werror_flag"
2603			 || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609	 { ac_try='test -s conftest.$ac_objext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  break
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620fi
2621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622done
2623rm -f conftest*
2624if test -n "$ac_declaration"; then
2625  echo '#ifdef __cplusplus' >>confdefs.h
2626  echo $ac_declaration      >>confdefs.h
2627  echo '#endif'             >>confdefs.h
2628fi
2629
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642if test -z "$CC" ; then
2643  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2644echo "$as_me: error: Failed to find a C compiler!" >&2;}
2645   { (exit 1); exit 1; }; }
2646fi
2647# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2648case "$CC" in
2649  clang* ) ;;
2650  cl* | */cl* | CL* | */CL* )
2651    if test "$ac_cv_prog_cc_g" = yes ; then
2652      ac_cv_prog_cc_g=no
2653      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2654echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2655    fi ;;
2656  * )
2657    if test x"$CYGPATH_W" = x ; then
2658      CYGPATH_W=echo
2659    fi
2660    ;;
2661esac
2662CFLAGS="$save_cflags"
2663
2664# add automake conditional so we can recognize cl compiler in makefile
2665coin_cc_is_cl=false
2666case "$CC" in
2667  clang* ) ;;
2668  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2669    coin_cc_is_cl=true
2670    ;;
2671esac
2672
2673
2674if test $coin_cc_is_cl = true; then
2675  COIN_CC_IS_CL_TRUE=
2676  COIN_CC_IS_CL_FALSE='#'
2677else
2678  COIN_CC_IS_CL_TRUE='#'
2679  COIN_CC_IS_CL_FALSE=
2680fi
2681
2682
2683# Check if a project specific CFLAGS variable has been set
2684if test x$COIN_PRJCT != x; then
2685  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2686  if test x$coin_tmp = xset; then
2687    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2688  fi
2689fi
2690
2691if test x"$CFLAGS" = x; then
2692
2693  coin_add_cflags=
2694  coin_opt_cflags=
2695  coin_dbg_cflags=
2696  coin_warn_cflags=
2697
2698  if test "$GCC" = "yes"; then
2699    case "$CC" in
2700      icc* | */icc*)
2701        ;;
2702      *)
2703        coin_opt_cflags="-O3"
2704        coin_add_cflags="-pipe"
2705        coin_dbg_cflags="-g -O0"
2706        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2707    esac
2708  fi
2709  if test -z "$coin_opt_cflags"; then
2710    case $build in
2711      *-cygwin* | *-mingw*)
2712        case "$CC" in
2713          clang* ) ;;
2714          cl* | */cl* | CL* | */CL*)
2715            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2716              coin_opt_cflags='-MD -O2'
2717              coin_dbg_cflags='-MDd'
2718            else
2719              coin_opt_cflags='-MT -O2'
2720              coin_dbg_cflags='-MTd'
2721            fi
2722            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2723            ;;
2724          icl* | */icl* | ICL* | */ICL*)
2725            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2726              coin_opt_cflags='-MD -Ox'
2727              coin_dbg_cflags='-MDd -debug'
2728            else
2729              coin_opt_cflags='-MT -Ox'
2730              coin_dbg_cflags='-MTd -debug'
2731            fi
2732            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2733            ;;
2734        esac
2735        ;;
2736      *-linux-*)
2737        case "$CC" in
2738          icc* | */icc*)
2739            coin_opt_cflags="-O3 -ip -mp1"
2740            coin_add_cflags=""
2741            coin_dbg_cflags="-g"
2742            # Check if -i_dynamic is necessary (for new glibc library)
2743            CFLAGS=
2744            cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h.  */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h.  */
2750
2751int
2752main ()
2753{
2754int i=0; i++;
2755  ;
2756  return 0;
2757}
2758_ACEOF
2759rm -f conftest.$ac_objext conftest$ac_exeext
2760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761  (eval $ac_link) 2>conftest.er1
2762  ac_status=$?
2763  grep -v '^ *+' conftest.er1 >conftest.err
2764  rm -f conftest.er1
2765  cat conftest.err >&5
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); } &&
2768	 { ac_try='test -z "$ac_c_werror_flag"
2769			 || test ! -s conftest.err'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; } &&
2775	 { ac_try='test -s conftest$ac_exeext'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; }; then
2781  :
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786coin_add_cflags="-i_dynamic $coin_add_cflags"
2787fi
2788rm -f conftest.err conftest.$ac_objext \
2789      conftest$ac_exeext conftest.$ac_ext
2790            ;;
2791          pgcc* | */pgcc*)
2792            coin_opt_cflags="-fast"
2793            coin_add_cflags="-Kieee -pc 64"
2794            coin_dbg_cflags="-g"
2795            ;;
2796        esac
2797        ;;
2798      *-ibm-*)
2799        case "$CC" in
2800          xlc* | */xlc* | mpxlc* | */mpxlc*)
2801            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2802            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2803            coin_dbg_cflags="-g"
2804          ;;
2805        esac
2806        ;;
2807      *-hp-*)
2808        coin_opt_cflags="-O"
2809        coin_add_cflags="-Ae"
2810        coin_dbg_cflags="-g"
2811        ;;
2812      *-*-solaris*)
2813        coin_opt_cflags="-xO4"
2814        coin_dbg_cflags="-g"
2815        ;;
2816      *-sgi-*)
2817        coin_opt_cflags="-O -OPT:Olimit=0"
2818        coin_dbg_cflags="-g"
2819        ;;
2820    esac
2821  fi
2822
2823  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2824    coin_dbg_cflags="-g"
2825  fi
2826
2827  if test -z "$coin_opt_cflags"; then
2828    # Try if -O option works if nothing else is set
2829    CFLAGS="-O"
2830    cat >conftest.$ac_ext <<_ACEOF
2831/* confdefs.h.  */
2832_ACEOF
2833cat confdefs.h >>conftest.$ac_ext
2834cat >>conftest.$ac_ext <<_ACEOF
2835/* end confdefs.h.  */
2836
2837int
2838main ()
2839{
2840int i=0; i++;
2841  ;
2842  return 0;
2843}
2844_ACEOF
2845rm -f conftest.$ac_objext conftest$ac_exeext
2846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2847  (eval $ac_link) 2>conftest.er1
2848  ac_status=$?
2849  grep -v '^ *+' conftest.er1 >conftest.err
2850  rm -f conftest.er1
2851  cat conftest.err >&5
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); } &&
2854	 { ac_try='test -z "$ac_c_werror_flag"
2855			 || test ! -s conftest.err'
2856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857  (eval $ac_try) 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; } &&
2861	 { ac_try='test -s conftest$ac_exeext'
2862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863  (eval $ac_try) 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; }; then
2867  coin_opt_cflags="-O"
2868else
2869  echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872fi
2873rm -f conftest.err conftest.$ac_objext \
2874      conftest$ac_exeext conftest.$ac_ext
2875  fi
2876
2877  # if PM doesn't want the warning messages, take them out
2878  if test x"$coin_skip_warn_cflags" = xyes; then
2879    coin_warn_cflags=
2880  fi
2881
2882  if test x${DBG_CFLAGS+set} != xset; then
2883    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2884  fi
2885  if test x${OPT_CFLAGS+set} != xset; then
2886    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2887  fi
2888
2889  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2890  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2891
2892  if test "$coin_debug_compile" = "true"; then
2893    CFLAGS="$DBG_CFLAGS"
2894  else
2895    CFLAGS="$OPT_CFLAGS"
2896  fi
2897else
2898  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2899  if test x${DBG_CFLAGS+set} != xset; then
2900    DBG_CFLAGS="$CFLAGS"
2901  fi
2902  if test x${OPT_CFLAGS+set} != xset; then
2903    OPT_CFLAGS="$CFLAGS"
2904  fi
2905fi
2906
2907# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2908if test x$COIN_PRJCT != x; then
2909  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2910fi
2911
2912# Try if CFLAGS works
2913save_CFLAGS="$CFLAGS"
2914cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924int i=0; i++;
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
2930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931  (eval $ac_link) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } &&
2938	 { ac_try='test -z "$ac_c_werror_flag"
2939			 || test ! -s conftest.err'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; } &&
2945	 { ac_try='test -s conftest$ac_exeext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  :
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956CFLAGS=
2957fi
2958rm -f conftest.err conftest.$ac_objext \
2959      conftest$ac_exeext conftest.$ac_ext
2960if test -z "$CFLAGS"; then
2961  { 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
2962echo "$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;}
2963  CFLAGS='-O'
2964  cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h.  */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h.  */
2970
2971int
2972main ()
2973{
2974int i=0; i++;
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext conftest$ac_exeext
2980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981  (eval $ac_link) 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988	 { ac_try='test -z "$ac_c_werror_flag"
2989			 || test ! -s conftest.err'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; } &&
2995	 { ac_try='test -s conftest$ac_exeext'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001  :
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006CFLAGS=
3007fi
3008rm -f conftest.err conftest.$ac_objext \
3009      conftest$ac_exeext conftest.$ac_ext
3010  if test -z "$CFLAGS"; then
3011    { 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
3012echo "$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;}
3013  fi
3014fi
3015
3016{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3017echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3018
3019
3020if test x"$MPICC" = x; then :; else
3021  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3022echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3023  CC="$MPICC"
3024fi
3025
3026# Correct the LD variable if we are using the MS or Intel-windows compiler
3027case "$CC" in
3028  clang* ) ;;
3029  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3030    LD=link
3031    ;;
3032esac
3033
3034ac_ext=c
3035ac_cpp='$CPP $CPPFLAGS'
3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040
3041
3042# Get the name of the C++ compiler and appropriate compiler options
3043
3044 #Let's try if that overcomes configuration problem with VC++ 6.0
3045
3046ac_ext=cc
3047ac_cpp='$CXXCPP $CPPFLAGS'
3048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3051
3052
3053
3054
3055
3056
3057
3058coin_has_cxx=yes
3059
3060save_cxxflags="$CXXFLAGS"
3061# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3062case $build in
3063  *-cygwin* | *-mingw*)
3064      if test "$enable_msvc" = yes ; then
3065         comps="icl cl g++"
3066      else
3067         comps="g++ icl cl"
3068      fi ;;
3069  *-*-solaris*)
3070  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3071  *-darwin*) comps="clang++ g++ c++ CC" ;;
3072  *-linux-gnu*)
3073             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3074          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3075esac
3076
3077# We delete the cached value, since the test might not have been
3078# performed with our choice of compilers earlier
3079$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3080# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3081ac_ext=cc
3082ac_cpp='$CXXCPP $CPPFLAGS'
3083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3086if test -n "$ac_tool_prefix"; then
3087  for ac_prog in $CCC $comps
3088  do
3089    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_CXX+set}" = set; then
3094  echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096  if test -n "$CXX"; then
3097  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104  for ac_exec_ext in '' $ac_executable_extensions; do
3105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111done
3112
3113fi
3114fi
3115CXX=$ac_cv_prog_CXX
3116if test -n "$CXX"; then
3117  echo "$as_me:$LINENO: result: $CXX" >&5
3118echo "${ECHO_T}$CXX" >&6
3119else
3120  echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122fi
3123
3124    test -n "$CXX" && break
3125  done
3126fi
3127if test -z "$CXX"; then
3128  ac_ct_CXX=$CXX
3129  for ac_prog in $CCC $comps
3130do
3131  # Extract the first word of "$ac_prog", so it can be a program name with args.
3132set dummy $ac_prog; ac_word=$2
3133echo "$as_me:$LINENO: checking for $ac_word" >&5
3134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3136  echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138  if test -n "$ac_ct_CXX"; then
3139  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  test -z "$as_dir" && as_dir=.
3146  for ac_exec_ext in '' $ac_executable_extensions; do
3147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_ac_ct_CXX="$ac_prog"
3149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153done
3154
3155fi
3156fi
3157ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3158if test -n "$ac_ct_CXX"; then
3159  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3160echo "${ECHO_T}$ac_ct_CXX" >&6
3161else
3162  echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164fi
3165
3166  test -n "$ac_ct_CXX" && break
3167done
3168test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3169
3170  CXX=$ac_ct_CXX
3171fi
3172
3173
3174# Provide some information about the compiler.
3175echo "$as_me:$LINENO:" \
3176     "checking for C++ compiler version" >&5
3177ac_compiler=`set X $ac_compile; echo $2`
3178{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3179  (eval $ac_compiler --version </dev/null >&5) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }
3183{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3184  (eval $ac_compiler -v </dev/null >&5) 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }
3188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3189  (eval $ac_compiler -V </dev/null >&5) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }
3193
3194echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3195echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3196if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h.  */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209#ifndef __GNUC__
3210       choke me
3211#endif
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219  (eval $ac_compile) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226	 { ac_try='test -z "$ac_cxx_werror_flag"
3227			 || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233	 { ac_try='test -s conftest.$ac_objext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  ac_compiler_gnu=yes
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244ac_compiler_gnu=no
3245fi
3246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3248
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3251echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3252GXX=`test $ac_compiler_gnu = yes && echo yes`
3253ac_test_CXXFLAGS=${CXXFLAGS+set}
3254ac_save_CXXFLAGS=$CXXFLAGS
3255CXXFLAGS="-g"
3256echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3257echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3258if test "${ac_cv_prog_cxx_g+set}" = set; then
3259  echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261  cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278  (eval $ac_compile) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285	 { ac_try='test -z "$ac_cxx_werror_flag"
3286			 || test ! -s conftest.err'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; } &&
3292	 { ac_try='test -s conftest.$ac_objext'
3293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294  (eval $ac_try) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }; }; then
3298  ac_cv_prog_cxx_g=yes
3299else
3300  echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303ac_cv_prog_cxx_g=no
3304fi
3305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3309if test "$ac_test_CXXFLAGS" = set; then
3310  CXXFLAGS=$ac_save_CXXFLAGS
3311elif test $ac_cv_prog_cxx_g = yes; then
3312  if test "$GXX" = yes; then
3313    CXXFLAGS="-g -O2"
3314  else
3315    CXXFLAGS="-g"
3316  fi
3317else
3318  if test "$GXX" = yes; then
3319    CXXFLAGS="-O2"
3320  else
3321    CXXFLAGS=
3322  fi
3323fi
3324for ac_declaration in \
3325   '' \
3326   'extern "C" void std::exit (int) throw (); using std::exit;' \
3327   'extern "C" void std::exit (int); using std::exit;' \
3328   'extern "C" void exit (int) throw ();' \
3329   'extern "C" void exit (int);' \
3330   'void exit (int);'
3331do
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338$ac_declaration
3339#include <stdlib.h>
3340int
3341main ()
3342{
3343exit (42);
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350  (eval $ac_compile) 2>conftest.er1
3351  ac_status=$?
3352  grep -v '^ *+' conftest.er1 >conftest.err
3353  rm -f conftest.er1
3354  cat conftest.err >&5
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); } &&
3357	 { ac_try='test -z "$ac_cxx_werror_flag"
3358			 || test ! -s conftest.err'
3359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360  (eval $ac_try) 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); }; } &&
3364	 { ac_try='test -s conftest.$ac_objext'
3365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  :
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375continue
3376fi
3377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378  cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384$ac_declaration
3385int
3386main ()
3387{
3388exit (42);
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395  (eval $ac_compile) 2>conftest.er1
3396  ac_status=$?
3397  grep -v '^ *+' conftest.er1 >conftest.err
3398  rm -f conftest.er1
3399  cat conftest.err >&5
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); } &&
3402	 { ac_try='test -z "$ac_cxx_werror_flag"
3403			 || test ! -s conftest.err'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; } &&
3409	 { ac_try='test -s conftest.$ac_objext'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; }; then
3415  break
3416else
3417  echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420fi
3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422done
3423rm -f conftest*
3424if test -n "$ac_declaration"; then
3425  echo '#ifdef __cplusplus' >>confdefs.h
3426  echo $ac_declaration      >>confdefs.h
3427  echo '#endif'             >>confdefs.h
3428fi
3429
3430ac_ext=cc
3431ac_cpp='$CXXCPP $CPPFLAGS'
3432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3435
3436
3437#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3438#thus, we test here whether $CXX is actually working
3439ac_ext=cc
3440ac_cpp='$CXXCPP $CPPFLAGS'
3441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3444
3445echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3446echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3447cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h.  */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h.  */
3453
3454int
3455main ()
3456{
3457int i=0;
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464  (eval $ac_compile) 2>conftest.er1
3465  ac_status=$?
3466  grep -v '^ *+' conftest.er1 >conftest.err
3467  rm -f conftest.er1
3468  cat conftest.err >&5
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); } &&
3471	 { ac_try='test -z "$ac_cxx_werror_flag"
3472			 || test ! -s conftest.err'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478	 { ac_try='test -s conftest.$ac_objext'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; }; then
3484  echo "$as_me:$LINENO: result: yes" >&5
3485echo "${ECHO_T}yes" >&6
3486else
3487  echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6
3492   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3493echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3494   { (exit 1); exit 1; }; }
3495
3496fi
3497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498ac_ext=cc
3499ac_cpp='$CXXCPP $CPPFLAGS'
3500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503
3504
3505coin_cxx_is_cl=false
3506# It seems that we need to cleanup something here for the Windows
3507case "$CXX" in
3508  clang* | */clang*) ;;
3509  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3510    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3511    mv confdefs.hh confdefs.h
3512    coin_cxx_is_cl=true
3513    ;;
3514esac
3515
3516# add automake conditional so we can recognize cl compiler in makefile
3517
3518
3519if test $coin_cxx_is_cl = true; then
3520  COIN_CXX_IS_CL_TRUE=
3521  COIN_CXX_IS_CL_FALSE='#'
3522else
3523  COIN_CXX_IS_CL_TRUE='#'
3524  COIN_CXX_IS_CL_FALSE=
3525fi
3526
3527
3528# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3529case "$CXX" in
3530  clang* ) ;;
3531  cl* | */cl* | CL* | */CL* )
3532    if test "$ac_cv_prog_cxx_g" = yes ; then
3533      ac_cv_prog_cxx_g=no
3534      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3535echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3536    fi ;;
3537  * )
3538    if test x"$CYGPATH_W" = x ; then
3539      CYGPATH_W=echo
3540    fi
3541    ;;
3542esac
3543CXXFLAGS="$save_cxxflags"
3544
3545# Check if a project specific CXXFLAGS variable has been set
3546if test x$COIN_PRJCT != x; then
3547  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3548  if test x$coin_tmp = xset; then
3549    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3550  fi
3551fi
3552
3553if test x"$CXXFLAGS" = x; then
3554
3555# ToDo decide whether we want -DNDEBUG for optimization
3556  coin_add_cxxflags=
3557  coin_opt_cxxflags=
3558  coin_dbg_cxxflags=
3559  coin_warn_cxxflags=
3560
3561  if test "$GXX" = "yes"; then
3562    case "$CXX" in
3563      icpc* | */icpc*)
3564        ;;
3565      *)
3566# ToDo decide about unroll-loops
3567        coin_opt_cxxflags="-O3"
3568        coin_add_cxxflags="-pipe"
3569        coin_dbg_cxxflags="-g -O0"
3570        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3571    esac
3572  fi
3573
3574# Note that we do not need to cover GCC in the following tests.
3575
3576  if test -z "$coin_opt_cxxflags"; then
3577    case $build in
3578      *-cygwin* | *-mingw*)
3579        case "$CXX" in
3580          clang* ) ;;
3581          cl* | */cl* | CL* | */CL*)
3582            # The MT and MTd options are mutually exclusive
3583            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3584               coin_opt_cxxflags='-MD -O2'
3585               coin_dbg_cxxflags='-MDd'
3586            else
3587               coin_opt_cxxflags='-MT -O2'
3588               coin_dbg_cxxflags='-MTd'
3589            fi
3590            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3591            ;;
3592          icl* | */icl* | ICL* | */ICL*)
3593          # The MT and MTd options are mutually exclusive
3594            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3595              coin_opt_cxxflags='-MD -Ox'
3596              coin_dbg_cxxflags='-MDd -debug'
3597            else
3598              coin_opt_cxxflags='-MT -Ox'
3599              coin_dbg_cxxflags='-MTd -debug'
3600            fi
3601            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3602            ;;
3603        esac
3604        ;;
3605      *-linux-*)
3606        case "$CXX" in
3607          icpc* | */icpc*)
3608            coin_opt_cxxflags="-O3 -ip -mp1"
3609            coin_add_cxxflags=""
3610            coin_dbg_cxxflags="-g"
3611            # Check if -i_dynamic is necessary (for new glibc library)
3612            CXXFLAGS=
3613            cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h.  */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623int i=0; i++;
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628rm -f conftest.$ac_objext conftest$ac_exeext
3629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630  (eval $ac_link) 2>conftest.er1
3631  ac_status=$?
3632  grep -v '^ *+' conftest.er1 >conftest.err
3633  rm -f conftest.er1
3634  cat conftest.err >&5
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); } &&
3637	 { ac_try='test -z "$ac_cxx_werror_flag"
3638			 || test ! -s conftest.err'
3639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640  (eval $ac_try) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; } &&
3644	 { ac_try='test -s conftest$ac_exeext'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; }; then
3650  :
3651else
3652  echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3656fi
3657rm -f conftest.err conftest.$ac_objext \
3658      conftest$ac_exeext conftest.$ac_ext
3659            ;;
3660          pgCC* | */pgCC*)
3661            coin_opt_cxxflags="-fast"
3662            coin_add_cxxflags="-Kieee -pc 64"
3663            coin_dbg_cxxflags="-g"
3664            ;;
3665        esac
3666        ;;
3667      *-ibm-*)
3668        case "$CXX" in
3669          xlC* | */xlC* | mpxlC* | */mpxlC*)
3670            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3671            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3672            coin_dbg_cxxflags="-g"
3673            ;;
3674        esac
3675        ;;
3676      *-hp-*)
3677        case "$CXX" in
3678          aCC* | */aCC* )
3679            coin_opt_cxxflags="-O"
3680            coin_add_cxxflags="-AA"
3681            coin_dbg_cxxflags="-g"
3682            ;;
3683        esac
3684        ;;
3685      *-*-solaris*)
3686          coin_opt_cxxflags="-O4"
3687          coin_dbg_cxxflags="-g"
3688        ;;
3689    esac
3690  fi
3691
3692# Generic flag settings. If these don't work, add a case above.
3693
3694  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3695    coin_dbg_cxxflags="-g"
3696  fi
3697
3698  if test -z "$coin_opt_cxxflags"; then
3699    # Try if -O option works if nothing else is set
3700    CXXFLAGS=-O
3701    cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h.  */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711int i=0; i++;
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716rm -f conftest.$ac_objext conftest$ac_exeext
3717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718  (eval $ac_link) 2>conftest.er1
3719  ac_status=$?
3720  grep -v '^ *+' conftest.er1 >conftest.err
3721  rm -f conftest.er1
3722  cat conftest.err >&5
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); } &&
3725	 { ac_try='test -z "$ac_cxx_werror_flag"
3726			 || test ! -s conftest.err'
3727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728  (eval $ac_try) 2>&5
3729  ac_status=$?
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); }; } &&
3732	 { ac_try='test -s conftest$ac_exeext'
3733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734  (eval $ac_try) 2>&5
3735  ac_status=$?
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); }; }; then
3738  coin_opt_cxxflags="-O"
3739else
3740  echo "$as_me: failed program was:" >&5
3741sed 's/^/| /' conftest.$ac_ext >&5
3742
3743fi
3744rm -f conftest.err conftest.$ac_objext \
3745      conftest$ac_exeext conftest.$ac_ext
3746  fi
3747
3748  # if PM doesn't want the warning messages, take them out
3749  if test x"$coin_skip_warn_cxxflags" = xyes; then
3750    coin_warn_cxxflags=
3751  fi
3752
3753# Do final setup of flags based on values determined above.
3754
3755  if test x${DBG_CXXFLAGS+set} != xset; then
3756    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3757  fi
3758  if test x${OPT_CXXFLAGS+set} != xset; then
3759    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3760  fi
3761
3762  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3763  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3764
3765  if test "$coin_debug_compile" = "true"; then
3766    CXXFLAGS="$DBG_CXXFLAGS"
3767  else
3768    CXXFLAGS="$OPT_CXXFLAGS"
3769  fi
3770
3771# Handle the case where CXXFLAGS was set externally.
3772else
3773  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3774  if test x${DBG_CXXFLAGS+set} != xset; then
3775    DBG_CXXFLAGS="$CXXFLAGS"
3776  fi
3777  if test x${OPT_CXXFLAGS+set} != xset; then
3778    OPT_CXXFLAGS="$CXXFLAGS"
3779  fi
3780fi
3781
3782# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3783if test x$COIN_PRJCT != x; then
3784  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3785fi
3786
3787# Try if CXXFLAGS works
3788save_CXXFLAGS="$CXXFLAGS"
3789cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h.  */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h.  */
3795
3796int
3797main ()
3798{
3799int i=0; i++;
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext conftest$ac_exeext
3805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806  (eval $ac_link) 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } &&
3813	 { ac_try='test -z "$ac_cxx_werror_flag"
3814			 || test ! -s conftest.err'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; } &&
3820	 { ac_try='test -s conftest$ac_exeext'
3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822  (eval $ac_try) 2>&5
3823  ac_status=$?
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); }; }; then
3826  :
3827else
3828  echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831CXXFLAGS=
3832fi
3833rm -f conftest.err conftest.$ac_objext \
3834      conftest$ac_exeext conftest.$ac_ext
3835if test -z "$CXXFLAGS"; then
3836  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3837echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3838  CXXFLAGS='-O'
3839  cat >conftest.$ac_ext <<_ACEOF
3840/* confdefs.h.  */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
3844/* end confdefs.h.  */
3845
3846int
3847main ()
3848{
3849int i=0; i++;
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854rm -f conftest.$ac_objext conftest$ac_exeext
3855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3856  (eval $ac_link) 2>conftest.er1
3857  ac_status=$?
3858  grep -v '^ *+' conftest.er1 >conftest.err
3859  rm -f conftest.er1
3860  cat conftest.err >&5
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); } &&
3863	 { ac_try='test -z "$ac_cxx_werror_flag"
3864			 || test ! -s conftest.err'
3865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866  (eval $ac_try) 2>&5
3867  ac_status=$?
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); }; } &&
3870	 { ac_try='test -s conftest$ac_exeext'
3871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872  (eval $ac_try) 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); }; }; then
3876  :
3877else
3878  echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881CXXFLAGS=
3882fi
3883rm -f conftest.err conftest.$ac_objext \
3884      conftest$ac_exeext conftest.$ac_ext
3885  if test -z "$CXXFLAGS"; then
3886    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3887echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3888  fi
3889fi
3890
3891{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3892echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3893
3894
3895if test x"$MPICXX" = x; then :; else
3896  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3897echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3898  CXX="$MPICXX"
3899fi
3900
3901# correct the LD variable in a build with MS or Intel-windows compiler
3902case "$CXX" in
3903  clang* ) ;;
3904  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3905    LD=link
3906    ;;
3907esac
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916
3917# Get the name of the Fortran compiler and appropriate compiler options
3918case $build in
3919  *-cygwin* | *-mingw*)
3920     if test "$enable_msvc" = yes ; then
3921       coin_f77_comps="ifort fl32 compile_f2c"
3922     else
3923       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3924     fi ;;
3925  *-*-solaris*)
3926     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3927  *-linux-gnu*)
3928     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3929  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3930 esac
3931
3932
3933
3934
3935
3936ac_ext=f
3937ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3938ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3940
3941
3942
3943
3944
3945
3946coin_has_f77=yes
3947
3948save_fflags="$FFLAGS"
3949
3950# We delete the cached value, since the test might not have been
3951# performed with our choice of compilers earlier
3952$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3953
3954# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3955# coin_f77_comps to see if there's a program that matches one of the names.
3956# If there's no such program, F77 = unavailable. If we match the name,
3957# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3958# compiler.
3959# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3960
3961
3962{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3963echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3964if test -n "$ac_tool_prefix"; then
3965  for ac_prog in $coin_f77_comps
3966  do
3967    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3969echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971if test "${ac_cv_prog_F77+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  if test -n "$F77"; then
3975  ac_cv_prog_F77="$F77" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982  for ac_exec_ext in '' $ac_executable_extensions; do
3983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989done
3990
3991fi
3992fi
3993F77=$ac_cv_prog_F77
3994if test -n "$F77"; then
3995  echo "$as_me:$LINENO: result: $F77" >&5
3996echo "${ECHO_T}$F77" >&6
3997else
3998  echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
4000fi
4001
4002    test -n "$F77" && break
4003  done
4004fi
4005if test -z "$F77"; then
4006  ac_ct_F77=$F77
4007  for ac_prog in $coin_f77_comps
4008do
4009  # Extract the first word of "$ac_prog", so it can be a program name with args.
4010set dummy $ac_prog; ac_word=$2
4011echo "$as_me:$LINENO: checking for $ac_word" >&5
4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  if test -n "$ac_ct_F77"; then
4017  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024  for ac_exec_ext in '' $ac_executable_extensions; do
4025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026    ac_cv_prog_ac_ct_F77="$ac_prog"
4027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031done
4032
4033fi
4034fi
4035ac_ct_F77=$ac_cv_prog_ac_ct_F77
4036if test -n "$ac_ct_F77"; then
4037  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4038echo "${ECHO_T}$ac_ct_F77" >&6
4039else
4040  echo "$as_me:$LINENO: result: no" >&5
4041echo "${ECHO_T}no" >&6
4042fi
4043
4044  test -n "$ac_ct_F77" && break
4045done
4046test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4047
4048  F77=$ac_ct_F77
4049fi
4050
4051
4052if test "$F77" != "unavailable" ; then
4053  ac_ext=f
4054ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4055ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4057if test -n "$ac_tool_prefix"; then
4058  for ac_prog in $coin_f77_comps
4059  do
4060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4062echo "$as_me:$LINENO: checking for $ac_word" >&5
4063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064if test "${ac_cv_prog_F77+set}" = set; then
4065  echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067  if test -n "$F77"; then
4068  ac_cv_prog_F77="$F77" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075  for ac_exec_ext in '' $ac_executable_extensions; do
4076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082done
4083
4084fi
4085fi
4086F77=$ac_cv_prog_F77
4087if test -n "$F77"; then
4088  echo "$as_me:$LINENO: result: $F77" >&5
4089echo "${ECHO_T}$F77" >&6
4090else
4091  echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093fi
4094
4095    test -n "$F77" && break
4096  done
4097fi
4098if test -z "$F77"; then
4099  ac_ct_F77=$F77
4100  for ac_prog in $coin_f77_comps
4101do
4102  # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
4104echo "$as_me:$LINENO: checking for $ac_word" >&5
4105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4106if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  if test -n "$ac_ct_F77"; then
4110  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117  for ac_exec_ext in '' $ac_executable_extensions; do
4118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119    ac_cv_prog_ac_ct_F77="$ac_prog"
4120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121    break 2
4122  fi
4123done
4124done
4125
4126fi
4127fi
4128ac_ct_F77=$ac_cv_prog_ac_ct_F77
4129if test -n "$ac_ct_F77"; then
4130  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4131echo "${ECHO_T}$ac_ct_F77" >&6
4132else
4133  echo "$as_me:$LINENO: result: no" >&5
4134echo "${ECHO_T}no" >&6
4135fi
4136
4137  test -n "$ac_ct_F77" && break
4138done
4139
4140  F77=$ac_ct_F77
4141fi
4142
4143
4144# Provide some information about the compiler.
4145echo "$as_me:4145:" \
4146     "checking for Fortran 77 compiler version" >&5
4147ac_compiler=`set X $ac_compile; echo $2`
4148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4149  (eval $ac_compiler --version </dev/null >&5) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }
4153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4154  (eval $ac_compiler -v </dev/null >&5) 2>&5
4155  ac_status=$?
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); }
4158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4159  (eval $ac_compiler -V </dev/null >&5) 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }
4163rm -f a.out
4164
4165# If we don't use `.F' as extension, the preprocessor is not run on the
4166# input file.  (Note that this only needs to work for GNU compilers.)
4167ac_save_ext=$ac_ext
4168ac_ext=F
4169echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4170echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4171if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  cat >conftest.$ac_ext <<_ACEOF
4175      program main
4176#ifndef __GNUC__
4177       choke me
4178#endif
4179
4180      end
4181_ACEOF
4182rm -f conftest.$ac_objext
4183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184  (eval $ac_compile) 2>conftest.er1
4185  ac_status=$?
4186  grep -v '^ *+' conftest.er1 >conftest.err
4187  rm -f conftest.er1
4188  cat conftest.err >&5
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); } &&
4191	 { ac_try='test -z "$ac_f77_werror_flag"
4192			 || test ! -s conftest.err'
4193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194  (eval $ac_try) 2>&5
4195  ac_status=$?
4196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197  (exit $ac_status); }; } &&
4198	 { ac_try='test -s conftest.$ac_objext'
4199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200  (eval $ac_try) 2>&5
4201  ac_status=$?
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); }; }; then
4204  ac_compiler_gnu=yes
4205else
4206  echo "$as_me: failed program was:" >&5
4207sed 's/^/| /' conftest.$ac_ext >&5
4208
4209ac_compiler_gnu=no
4210fi
4211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4213
4214fi
4215echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4216echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4217ac_ext=$ac_save_ext
4218ac_test_FFLAGS=${FFLAGS+set}
4219ac_save_FFLAGS=$FFLAGS
4220FFLAGS=
4221echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4222echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4223if test "${ac_cv_prog_f77_g+set}" = set; then
4224  echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
4226  FFLAGS=-g
4227cat >conftest.$ac_ext <<_ACEOF
4228      program main
4229
4230      end
4231_ACEOF
4232rm -f conftest.$ac_objext
4233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234  (eval $ac_compile) 2>conftest.er1
4235  ac_status=$?
4236  grep -v '^ *+' conftest.er1 >conftest.err
4237  rm -f conftest.er1
4238  cat conftest.err >&5
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); } &&
4241	 { ac_try='test -z "$ac_f77_werror_flag"
4242			 || test ! -s conftest.err'
4243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244  (eval $ac_try) 2>&5
4245  ac_status=$?
4246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247  (exit $ac_status); }; } &&
4248	 { ac_try='test -s conftest.$ac_objext'
4249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250  (eval $ac_try) 2>&5
4251  ac_status=$?
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); }; }; then
4254  ac_cv_prog_f77_g=yes
4255else
4256  echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259ac_cv_prog_f77_g=no
4260fi
4261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262
4263fi
4264echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4265echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4266if test "$ac_test_FFLAGS" = set; then
4267  FFLAGS=$ac_save_FFLAGS
4268elif test $ac_cv_prog_f77_g = yes; then
4269  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4270    FFLAGS="-g -O2"
4271  else
4272    FFLAGS="-g"
4273  fi
4274else
4275  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4276    FFLAGS="-O2"
4277  else
4278    FFLAGS=
4279  fi
4280fi
4281
4282G77=`test $ac_compiler_gnu = yes && echo yes`
4283ac_ext=f
4284ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4285ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4287
4288else
4289  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4290echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4291fi
4292
4293FFLAGS="$save_fflags"
4294
4295# Check if a project specific FFLAGS variable has been set
4296if test x$COIN_PRJCT != x; then
4297  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4298  if test x$coin_tmp = xset; then
4299    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4300  fi
4301fi
4302
4303if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4304
4305  coin_add_fflags=
4306  coin_opt_fflags=
4307  coin_dbg_fflags=
4308  coin_warn_fflags=
4309
4310  if test "$G77" = "yes"; then
4311    coin_opt_fflags="-O3"
4312    coin_add_fflags="-pipe"
4313    coin_dbg_fflags="-g -O0"
4314  else
4315    case $build in
4316      *-cygwin* | *-mingw*)
4317        case $F77 in
4318          ifort* | */ifort* | IFORT* | */IFORT* )
4319            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4320              coin_opt_fflags='-MD -O3'
4321              coin_dbg_fflags='-MDd -debug'
4322            else
4323              coin_opt_fflags='-MT -O3'
4324              coin_dbg_fflags='-MTd -debug'
4325            fi
4326            coin_add_fflags='-fpp -nologo'
4327          ;;
4328          compile_f2c*)
4329            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4330              coin_opt_fflags='-MD -O2'
4331              coin_dbg_fflags='-MDd'
4332            else
4333              coin_opt_fflags='-MT -O2'
4334              coin_dbg_fflags='-MTd'
4335            fi
4336            coin_add_fflags='-nologo -wd4996'
4337          ;;
4338        esac
4339        ;;
4340      *-linux-*)
4341        case $F77 in
4342          ifc* | */ifc* | ifort* | */ifort*)
4343            coin_opt_fflags="-O3 -ip"
4344            coin_add_fflags="-cm -w90 -w95"
4345            coin_dbg_fflags="-g -CA -CB -CS"
4346            # Check if -i_dynamic is necessary (for new glibc library)
4347            FFLAGS=
4348            cat >conftest.$ac_ext <<_ACEOF
4349      program main
4350      write(*,*) 'Hello world'
4351      end
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355  (eval $ac_link) 2>conftest.er1
4356  ac_status=$?
4357  grep -v '^ *+' conftest.er1 >conftest.err
4358  rm -f conftest.er1
4359  cat conftest.err >&5
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); } &&
4362	 { ac_try='test -z "$ac_f77_werror_flag"
4363			 || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369	 { ac_try='test -s conftest$ac_exeext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  :
4376else
4377  echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380coin_add_fflags="-i_dynamic $coin_add_fflags"
4381fi
4382rm -f conftest.err conftest.$ac_objext \
4383      conftest$ac_exeext conftest.$ac_ext
4384            ;;
4385          pgf77* | */pgf77* | pgf90* | */pgf90*)
4386            coin_opt_fflags="-fast"
4387            coin_add_fflags="-Kieee -pc 64"
4388            coin_dbg_fflags="-g"
4389          ;;
4390        esac
4391        ;;
4392      *-ibm-*)
4393        case "$F77" in
4394          xlf* | */xlf* | mpxlf* | */mpxlf* )
4395            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4396            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4397            coin_dbg_fflags="-g -C"
4398            ;;
4399        esac
4400        ;;
4401      *-hp-*)
4402        coin_opt_fflags="+O3"
4403        coin_add_fflags="+U77"
4404        coin_dbg_fflags="-C -g"
4405        ;;
4406      *-*-solaris*)
4407        coin_opt_fflags="-O4"
4408        coin_dbg_fflags="-g"
4409        ;;
4410      *-sgi-*)
4411        coin_opt_fflags="-O5 -OPT:Olimit=0"
4412        coin_dbg_fflags="-g"
4413        ;;
4414    esac
4415  fi
4416
4417  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4418    coin_dbg_fflags="-g"
4419  fi
4420
4421  if test -z "$coin_opt_fflags"; then
4422    # Try if -O option works if nothing else is set
4423    FFLAGS=-O
4424    cat >conftest.$ac_ext <<_ACEOF
4425      program main
4426      integer i
4427      end
4428_ACEOF
4429rm -f conftest.$ac_objext conftest$ac_exeext
4430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431  (eval $ac_link) 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438	 { ac_try='test -z "$ac_f77_werror_flag"
4439			 || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445	 { ac_try='test -s conftest$ac_exeext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  coin_opt_fflags="-O"
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456fi
4457rm -f conftest.err conftest.$ac_objext \
4458      conftest$ac_exeext conftest.$ac_ext
4459  fi
4460
4461  # if PM doesn't want the warning messages, take them out
4462  if test x"$coin_skip_warn_fflags" = xyes; then
4463    coin_warn_fflags=
4464  fi
4465
4466  if test x${DBG_FFLAGS+set} != xset; then
4467    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4468  fi
4469  if test x${OPT_FFLAGS+set} != xset; then
4470    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4471  fi
4472
4473  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4474  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4475
4476  if test "$coin_debug_compile" = "true"; then
4477    FFLAGS="$DBG_FFLAGS"
4478  else
4479    FFLAGS="$OPT_FFLAGS"
4480  fi
4481else
4482  FFLAGS="$FFLAGS $ADD_FFLAGS"
4483  if test x${DBG_FFLAGS+set} != xset; then
4484    DBG_FFLAGS="$FFLAGS"
4485  fi
4486  if test x${OPT_FFLAGS+set} != xset; then
4487    OPT_FFLAGS="$FFLAGS"
4488  fi
4489fi
4490
4491# Try if FFLAGS works
4492if test "$F77" != "unavailable" ; then
4493  orig_FFLAGS="FFLAGS"
4494  cat >conftest.$ac_ext <<_ACEOF
4495      program main
4496      integer i
4497      end
4498_ACEOF
4499rm -f conftest.$ac_objext conftest$ac_exeext
4500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501  (eval $ac_link) 2>conftest.er1
4502  ac_status=$?
4503  grep -v '^ *+' conftest.er1 >conftest.err
4504  rm -f conftest.er1
4505  cat conftest.err >&5
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); } &&
4508	 { ac_try='test -z "$ac_f77_werror_flag"
4509			 || test ! -s conftest.err'
4510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511  (eval $ac_try) 2>&5
4512  ac_status=$?
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); }; } &&
4515	 { ac_try='test -s conftest$ac_exeext'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; }; then
4521  :
4522else
4523  echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526FFLAGS=
4527fi
4528rm -f conftest.err conftest.$ac_objext \
4529      conftest$ac_exeext conftest.$ac_ext
4530  if test -z "$FFLAGS"; then
4531    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4532echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4533    FFLAGS='-O'
4534    cat >conftest.$ac_ext <<_ACEOF
4535      program main
4536      integer i
4537      end
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541  (eval $ac_link) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548	 { ac_try='test -z "$ac_f77_werror_flag"
4549			 || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555	 { ac_try='test -s conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  :
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566FFLAGS=
4567fi
4568rm -f conftest.err conftest.$ac_objext \
4569      conftest$ac_exeext conftest.$ac_ext
4570    if test -z "$FFLAGS"; then
4571      { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4572echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4573    fi
4574  fi
4575fi
4576
4577{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4578echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4579
4580
4581if test x"$MPIF77" = x; then :; else
4582  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4583echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4584  F77="$MPIF77"
4585fi
4586
4587# correct the LD variable if we use the intel fortran compiler in windows
4588case $build in
4589  *-cygwin* | *-mingw*)
4590    case "$F77" in
4591      ifort* | */ifort* | IFORT* | */IFORT*)
4592        LD=link
4593      ;;
4594    esac
4595  ;;
4596esac
4597
4598ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604
4605
4606# Initialize automake and libtool
4607# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4608{
4609
4610
4611
4612# START
4613
4614coin_disable_shared=no
4615# Test if force_shared has been set
4616if test "x" = xforce_shared; then
4617  if test x$enable_shared = xno; then
4618    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4619echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4620   { (exit 1); exit 1; }; }
4621  fi
4622  enable_shared=yes;
4623else
4624  case $build in
4625    *-cygwin* | *-mingw*)
4626      coin_disable_shared=yes
4627      if test x"$enable_shared" = xyes; then
4628        case "$CC" in
4629          clang* )
4630            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4631echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4632            ;;
4633          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4634            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4635echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4636            ;;
4637          *gcc*)
4638            if test x"$enable_dependency_linking" = xyes; then
4639              coin_disable_shared=no
4640            else
4641              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4642echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4643            fi
4644            ;;
4645          *)
4646            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4647echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4648            ;;
4649        esac
4650      fi
4651    ;;
4652    *-aix*)
4653      coin_disable_shared=yes
4654      platform=AIX
4655      if test x"$enable_shared" = xyes; then
4656        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4657echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4658      fi
4659    ;;
4660  esac
4661fi
4662if test x"$coin_disable_shared" = xyes; then
4663  if test x"$enable_shared" = xyes; then
4664    :
4665  else
4666    # we don't disable shared, because it was not selected anyway
4667    coin_disable_shared=no
4668  fi
4669  enable_shared=no
4670fi
4671# By default, we only want the shared objects to be compiled
4672# Check whether --enable-static or --disable-static was given.
4673if test "${enable_static+set}" = set; then
4674  enableval="$enable_static"
4675  p=${PACKAGE-default}
4676    case $enableval in
4677    yes) enable_static=yes ;;
4678    no) enable_static=no ;;
4679    *)
4680     enable_static=no
4681      # Look at the argument we got.  We use all the common list separators.
4682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4683      for pkg in $enableval; do
4684	IFS="$lt_save_ifs"
4685	if test "X$pkg" = "X$p"; then
4686	  enable_static=yes
4687	fi
4688      done
4689      IFS="$lt_save_ifs"
4690      ;;
4691    esac
4692else
4693  enable_static=no
4694fi;
4695
4696
4697
4698
4699# Initialize automake
4700echo "$as_me:$LINENO: checking for egrep" >&5
4701echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4702if test "${ac_cv_prog_egrep+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4706    then ac_cv_prog_egrep='grep -E'
4707    else ac_cv_prog_egrep='egrep'
4708    fi
4709fi
4710echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4711echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4712 EGREP=$ac_cv_prog_egrep
4713
4714
4715echo "$as_me:$LINENO: checking whether ln -s works" >&5
4716echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4717LN_S=$as_ln_s
4718if test "$LN_S" = "ln -s"; then
4719  echo "$as_me:$LINENO: result: yes" >&5
4720echo "${ECHO_T}yes" >&6
4721else
4722  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4723echo "${ECHO_T}no, using $LN_S" >&6
4724fi
4725
4726am__api_version="1.9"
4727# Find a good install program.  We prefer a C program (faster),
4728# so one script is as good as another.  But avoid the broken or
4729# incompatible versions:
4730# SysV /etc/install, /usr/sbin/install
4731# SunOS /usr/etc/install
4732# IRIX /sbin/install
4733# AIX /bin/install
4734# AmigaOS /C/install, which installs bootblocks on floppy discs
4735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4738# OS/2's system install, which has a completely different semantic
4739# ./install, which can be erroneously created by make from ./install.sh.
4740echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4741echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4742if test -z "$INSTALL"; then
4743if test "${ac_cv_path_install+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751  # Account for people who put trailing slashes in PATH elements.
4752case $as_dir/ in
4753  ./ | .// | /cC/* | \
4754  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4755  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4756  /usr/ucb/* ) ;;
4757  *)
4758    # OSF1 and SCO ODT 3.0 have their own names for install.
4759    # Don't use installbsd from OSF since it installs stuff as root
4760    # by default.
4761    for ac_prog in ginstall scoinst install; do
4762      for ac_exec_ext in '' $ac_executable_extensions; do
4763	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4764	  if test $ac_prog = install &&
4765	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4766	    # AIX install.  It has an incompatible calling convention.
4767	    :
4768	  elif test $ac_prog = install &&
4769	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4770	    # program-specific install script used by HP pwplus--don't use.
4771	    :
4772	  else
4773	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4774	    break 3
4775	  fi
4776	fi
4777      done
4778    done
4779    ;;
4780esac
4781done
4782
4783
4784fi
4785  if test "${ac_cv_path_install+set}" = set; then
4786    INSTALL=$ac_cv_path_install
4787  else
4788    # As a last resort, use the slow shell script.  We don't cache a
4789    # path for INSTALL within a source directory, because that will
4790    # break other packages using the cache if that directory is
4791    # removed, or if the path is relative.
4792    INSTALL=$ac_install_sh
4793  fi
4794fi
4795echo "$as_me:$LINENO: result: $INSTALL" >&5
4796echo "${ECHO_T}$INSTALL" >&6
4797
4798# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4799# It thinks the first close brace ends the variable substitution.
4800test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4801
4802test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4803
4804test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4805
4806echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4807echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4808# Just in case
4809sleep 1
4810echo timestamp > conftest.file
4811# Do `set' in a subshell so we don't clobber the current shell's
4812# arguments.  Must try -L first in case configure is actually a
4813# symlink; some systems play weird games with the mod time of symlinks
4814# (eg FreeBSD returns the mod time of the symlink's containing
4815# directory).
4816if (
4817   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4818   if test "$*" = "X"; then
4819      # -L didn't work.
4820      set X `ls -t $srcdir/configure conftest.file`
4821   fi
4822   rm -f conftest.file
4823   if test "$*" != "X $srcdir/configure conftest.file" \
4824      && test "$*" != "X conftest.file $srcdir/configure"; then
4825
4826      # If neither matched, then we have a broken ls.  This can happen
4827      # if, for instance, CONFIG_SHELL is bash and it inherits a
4828      # broken ls alias from the environment.  This has actually
4829      # happened.  Such a system could not be considered "sane".
4830      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4831alias in your environment" >&5
4832echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4833alias in your environment" >&2;}
4834   { (exit 1); exit 1; }; }
4835   fi
4836
4837   test "$2" = conftest.file
4838   )
4839then
4840   # Ok.
4841   :
4842else
4843   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4844Check your system clock" >&5
4845echo "$as_me: error: newly created file is older than distributed files!
4846Check your system clock" >&2;}
4847   { (exit 1); exit 1; }; }
4848fi
4849echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851test "$program_prefix" != NONE &&
4852  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4853# Use a double $ so make ignores it.
4854test "$program_suffix" != NONE &&
4855  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4856# Double any \ or $.  echo might interpret backslashes.
4857# By default was `s,x,x', remove it if useless.
4858cat <<\_ACEOF >conftest.sed
4859s/[\\$]/&&/g;s/;s,x,x,$//
4860_ACEOF
4861program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4862rm conftest.sed
4863
4864# expand $ac_aux_dir to an absolute path
4865am_aux_dir=`cd $ac_aux_dir && pwd`
4866
4867test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4868# Use eval to expand $SHELL
4869if eval "$MISSING --run true"; then
4870  am_missing_run="$MISSING --run "
4871else
4872  am_missing_run=
4873  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4874echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4875fi
4876
4877if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4878  # We used to keeping the `.' as first argument, in order to
4879  # allow $(mkdir_p) to be used without argument.  As in
4880  #   $(mkdir_p) $(somedir)
4881  # where $(somedir) is conditionally defined.  However this is wrong
4882  # for two reasons:
4883  #  1. if the package is installed by a user who cannot write `.'
4884  #     make install will fail,
4885  #  2. the above comment should most certainly read
4886  #     $(mkdir_p) $(DESTDIR)$(somedir)
4887  #     so it does not work when $(somedir) is undefined and
4888  #     $(DESTDIR) is not.
4889  #  To support the latter case, we have to write
4890  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4891  #  so the `.' trick is pointless.
4892  mkdir_p='mkdir -p --'
4893else
4894  # On NextStep and OpenStep, the `mkdir' command does not
4895  # recognize any option.  It will interpret all options as
4896  # directories to create, and then abort because `.' already
4897  # exists.
4898  for d in ./-p ./--version;
4899  do
4900    test -d $d && rmdir $d
4901  done
4902  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4903  if test -f "$ac_aux_dir/mkinstalldirs"; then
4904    mkdir_p='$(mkinstalldirs)'
4905  else
4906    mkdir_p='$(install_sh) -d'
4907  fi
4908fi
4909
4910for ac_prog in gawk mawk nawk awk
4911do
4912  # Extract the first word of "$ac_prog", so it can be a program name with args.
4913set dummy $ac_prog; ac_word=$2
4914echo "$as_me:$LINENO: checking for $ac_word" >&5
4915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916if test "${ac_cv_prog_AWK+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919  if test -n "$AWK"; then
4920  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925  IFS=$as_save_IFS
4926  test -z "$as_dir" && as_dir=.
4927  for ac_exec_ext in '' $ac_executable_extensions; do
4928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929    ac_cv_prog_AWK="$ac_prog"
4930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931    break 2
4932  fi
4933done
4934done
4935
4936fi
4937fi
4938AWK=$ac_cv_prog_AWK
4939if test -n "$AWK"; then
4940  echo "$as_me:$LINENO: result: $AWK" >&5
4941echo "${ECHO_T}$AWK" >&6
4942else
4943  echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947  test -n "$AWK" && break
4948done
4949
4950echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4951echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4952set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4953if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  cat >conftest.make <<\_ACEOF
4957all:
4958	@echo 'ac_maketemp="$(MAKE)"'
4959_ACEOF
4960# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4961eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4962if test -n "$ac_maketemp"; then
4963  eval ac_cv_prog_make_${ac_make}_set=yes
4964else
4965  eval ac_cv_prog_make_${ac_make}_set=no
4966fi
4967rm -f conftest.make
4968fi
4969if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4970  echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4972  SET_MAKE=
4973else
4974  echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
4976  SET_MAKE="MAKE=${MAKE-make}"
4977fi
4978
4979rm -rf .tst 2>/dev/null
4980mkdir .tst 2>/dev/null
4981if test -d .tst; then
4982  am__leading_dot=.
4983else
4984  am__leading_dot=_
4985fi
4986rmdir .tst 2>/dev/null
4987
4988DEPDIR="${am__leading_dot}deps"
4989
4990          ac_config_commands="$ac_config_commands depfiles"
4991
4992
4993am_make=${MAKE-make}
4994cat > confinc << 'END'
4995am__doit:
4996	@echo done
4997.PHONY: am__doit
4998END
4999# If we don't find an include directive, just comment out the code.
5000echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5001echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5002am__include="#"
5003am__quote=
5004_am_result=none
5005# First try GNU make style include.
5006echo "include confinc" > confmf
5007# We grep out `Entering directory' and `Leaving directory'
5008# messages which can occur if `w' ends up in MAKEFLAGS.
5009# In particular we don't look at `^make:' because GNU make might
5010# be invoked under some other name (usually "gmake"), in which
5011# case it prints its new name instead of `make'.
5012if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5013   am__include=include
5014   am__quote=
5015   _am_result=GNU
5016fi
5017# Now try BSD make style include.
5018if test "$am__include" = "#"; then
5019   echo '.include "confinc"' > confmf
5020   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5021      am__include=.include
5022      am__quote="\""
5023      _am_result=BSD
5024   fi
5025fi
5026
5027
5028echo "$as_me:$LINENO: result: $_am_result" >&5
5029echo "${ECHO_T}$_am_result" >&6
5030rm -f confinc confmf
5031
5032# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5033if test "${enable_dependency_tracking+set}" = set; then
5034  enableval="$enable_dependency_tracking"
5035
5036fi;
5037if test "x$enable_dependency_tracking" != xno; then
5038  am_depcomp="$ac_aux_dir/depcomp"
5039  AMDEPBACKSLASH='\'
5040fi
5041
5042
5043if test "x$enable_dependency_tracking" != xno; then
5044  AMDEP_TRUE=
5045  AMDEP_FALSE='#'
5046else
5047  AMDEP_TRUE='#'
5048  AMDEP_FALSE=
5049fi
5050
5051
5052
5053
5054
5055
5056# AC_MSG_NOTICE([Beginning automake initialisation.])
5057# Stuff for automake
5058# test to see if srcdir already configured
5059if test "`cd $srcdir && pwd`" != "`pwd`" &&
5060   test -f $srcdir/config.status; then
5061  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5062echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5063   { (exit 1); exit 1; }; }
5064fi
5065
5066# test whether we have cygpath
5067if test -z "$CYGPATH_W"; then
5068  if (cygpath --version) >/dev/null 2>/dev/null; then
5069    CYGPATH_W='cygpath -w'
5070  else
5071    CYGPATH_W=echo
5072  fi
5073fi
5074
5075
5076# Define the identity of the package.
5077 PACKAGE='osi'
5078 VERSION='0.108.6'
5079
5080
5081cat >>confdefs.h <<_ACEOF
5082#define PACKAGE "$PACKAGE"
5083_ACEOF
5084
5085
5086cat >>confdefs.h <<_ACEOF
5087#define VERSION "$VERSION"
5088_ACEOF
5089
5090# Some tools Automake needs.
5091
5092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5093
5094
5095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5096
5097
5098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5099
5100
5101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5102
5103
5104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5105
5106install_sh=${install_sh-"$am_aux_dir/install-sh"}
5107
5108# Installed binaries are usually stripped using `strip' when the user
5109# run `make install-strip'.  However `strip' might not be the right
5110# tool to use in cross-compilation environments, therefore Automake
5111# will honor the `STRIP' environment variable to overrule this program.
5112if test "$cross_compiling" != no; then
5113  if test -n "$ac_tool_prefix"; then
5114  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5115set dummy ${ac_tool_prefix}strip; ac_word=$2
5116echo "$as_me:$LINENO: checking for $ac_word" >&5
5117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118if test "${ac_cv_prog_STRIP+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if test -n "$STRIP"; then
5122  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129  for ac_exec_ext in '' $ac_executable_extensions; do
5130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136done
5137
5138fi
5139fi
5140STRIP=$ac_cv_prog_STRIP
5141if test -n "$STRIP"; then
5142  echo "$as_me:$LINENO: result: $STRIP" >&5
5143echo "${ECHO_T}$STRIP" >&6
5144else
5145  echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6
5147fi
5148
5149fi
5150if test -z "$ac_cv_prog_STRIP"; then
5151  ac_ct_STRIP=$STRIP
5152  # Extract the first word of "strip", so it can be a program name with args.
5153set dummy strip; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  if test -n "$ac_ct_STRIP"; then
5160  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167  for ac_exec_ext in '' $ac_executable_extensions; do
5168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169    ac_cv_prog_ac_ct_STRIP="strip"
5170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174done
5175
5176  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5177fi
5178fi
5179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5180if test -n "$ac_ct_STRIP"; then
5181  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5182echo "${ECHO_T}$ac_ct_STRIP" >&6
5183else
5184  echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
5187
5188  STRIP=$ac_ct_STRIP
5189else
5190  STRIP="$ac_cv_prog_STRIP"
5191fi
5192
5193fi
5194INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5195
5196# We need awk for the "check" target.  The system "awk" is bad on
5197# some platforms.
5198# Always define AMTAR for backward compatibility.
5199
5200AMTAR=${AMTAR-"${am_missing_run}tar"}
5201
5202am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5203
5204
5205
5206
5207depcc="$CC"   am_compiler_list=
5208
5209echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5210echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5211if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5215  # We make a subdir and do the tests there.  Otherwise we can end up
5216  # making bogus files that we don't know about and never remove.  For
5217  # instance it was reported that on HP-UX the gcc test will end up
5218  # making a dummy file named `D' -- because `-MD' means `put the output
5219  # in D'.
5220  mkdir conftest.dir
5221  # Copy depcomp to subdir because otherwise we won't find it if we're
5222  # using a relative directory.
5223  cp "$am_depcomp" conftest.dir
5224  cd conftest.dir
5225  # We will build objects and dependencies in a subdirectory because
5226  # it helps to detect inapplicable dependency modes.  For instance
5227  # both Tru64's cc and ICC support -MD to output dependencies as a
5228  # side effect of compilation, but ICC will put the dependencies in
5229  # the current directory while Tru64 will put them in the object
5230  # directory.
5231  mkdir sub
5232
5233  am_cv_CC_dependencies_compiler_type=none
5234  if test "$am_compiler_list" = ""; then
5235     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5236  fi
5237  for depmode in $am_compiler_list; do
5238    # Setup a source with many dependencies, because some compilers
5239    # like to wrap large dependency lists on column 80 (with \), and
5240    # we should not choose a depcomp mode which is confused by this.
5241    #
5242    # We need to recreate these files for each test, as the compiler may
5243    # overwrite some of them when testing with obscure command lines.
5244    # This happens at least with the AIX C compiler.
5245    : > sub/conftest.c
5246    for i in 1 2 3 4 5 6; do
5247      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5248      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5249      # Solaris 8's {/usr,}/bin/sh.
5250      touch sub/conftst$i.h
5251    done
5252    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5253
5254    case $depmode in
5255    nosideeffect)
5256      # after this tag, mechanisms are not by side-effect, so they'll
5257      # only be used when explicitly requested
5258      if test "x$enable_dependency_tracking" = xyes; then
5259	continue
5260      else
5261	break
5262      fi
5263      ;;
5264    none) break ;;
5265    esac
5266    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5267    # mode.  It turns out that the SunPro C++ compiler does not properly
5268    # handle `-M -o', and we need to detect this.
5269    if depmode=$depmode \
5270       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5271       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5272       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5273         >/dev/null 2>conftest.err &&
5274       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5275       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5276       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5277      # icc doesn't choke on unknown options, it will just issue warnings
5278      # or remarks (even with -Werror).  So we grep stderr for any message
5279      # that says an option was ignored or not supported.
5280      # When given -MP, icc 7.0 and 7.1 complain thusly:
5281      #   icc: Command line warning: ignoring option '-M'; no argument required
5282      # The diagnosis changed in icc 8.0:
5283      #   icc: Command line remark: option '-MP' not supported
5284      if (grep 'ignoring option' conftest.err ||
5285          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5286        am_cv_CC_dependencies_compiler_type=$depmode
5287        break
5288      fi
5289    fi
5290  done
5291
5292  cd ..
5293  rm -rf conftest.dir
5294else
5295  am_cv_CC_dependencies_compiler_type=none
5296fi
5297
5298fi
5299echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5300echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5301CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5302
5303
5304
5305if
5306  test "x$enable_dependency_tracking" != xno \
5307  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5308  am__fastdepCC_TRUE=
5309  am__fastdepCC_FALSE='#'
5310else
5311  am__fastdepCC_TRUE='#'
5312  am__fastdepCC_FALSE=
5313fi
5314
5315
5316depcc="$CXX"  am_compiler_list=
5317
5318echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5319echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5320if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5324  # We make a subdir and do the tests there.  Otherwise we can end up
5325  # making bogus files that we don't know about and never remove.  For
5326  # instance it was reported that on HP-UX the gcc test will end up
5327  # making a dummy file named `D' -- because `-MD' means `put the output
5328  # in D'.
5329  mkdir conftest.dir
5330  # Copy depcomp to subdir because otherwise we won't find it if we're
5331  # using a relative directory.
5332  cp "$am_depcomp" conftest.dir
5333  cd conftest.dir
5334  # We will build objects and dependencies in a subdirectory because
5335  # it helps to detect inapplicable dependency modes.  For instance
5336  # both Tru64's cc and ICC support -MD to output dependencies as a
5337  # side effect of compilation, but ICC will put the dependencies in
5338  # the current directory while Tru64 will put them in the object
5339  # directory.
5340  mkdir sub
5341
5342  am_cv_CXX_dependencies_compiler_type=none
5343  if test "$am_compiler_list" = ""; then
5344     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5345  fi
5346  for depmode in $am_compiler_list; do
5347    # Setup a source with many dependencies, because some compilers
5348    # like to wrap large dependency lists on column 80 (with \), and
5349    # we should not choose a depcomp mode which is confused by this.
5350    #
5351    # We need to recreate these files for each test, as the compiler may
5352    # overwrite some of them when testing with obscure command lines.
5353    # This happens at least with the AIX C compiler.
5354    : > sub/conftest.c
5355    for i in 1 2 3 4 5 6; do
5356      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5357      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5358      # Solaris 8's {/usr,}/bin/sh.
5359      touch sub/conftst$i.h
5360    done
5361    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5362
5363    case $depmode in
5364    nosideeffect)
5365      # after this tag, mechanisms are not by side-effect, so they'll
5366      # only be used when explicitly requested
5367      if test "x$enable_dependency_tracking" = xyes; then
5368	continue
5369      else
5370	break
5371      fi
5372      ;;
5373    none) break ;;
5374    esac
5375    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5376    # mode.  It turns out that the SunPro C++ compiler does not properly
5377    # handle `-M -o', and we need to detect this.
5378    if depmode=$depmode \
5379       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5380       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5381       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5382         >/dev/null 2>conftest.err &&
5383       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5384       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5385       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5386      # icc doesn't choke on unknown options, it will just issue warnings
5387      # or remarks (even with -Werror).  So we grep stderr for any message
5388      # that says an option was ignored or not supported.
5389      # When given -MP, icc 7.0 and 7.1 complain thusly:
5390      #   icc: Command line warning: ignoring option '-M'; no argument required
5391      # The diagnosis changed in icc 8.0:
5392      #   icc: Command line remark: option '-MP' not supported
5393      if (grep 'ignoring option' conftest.err ||
5394          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5395        am_cv_CXX_dependencies_compiler_type=$depmode
5396        break
5397      fi
5398    fi
5399  done
5400
5401  cd ..
5402  rm -rf conftest.dir
5403else
5404  am_cv_CXX_dependencies_compiler_type=none
5405fi
5406
5407fi
5408echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5409echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5410CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5411
5412
5413
5414if
5415  test "x$enable_dependency_tracking" != xno \
5416  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5417  am__fastdepCXX_TRUE=
5418  am__fastdepCXX_FALSE='#'
5419else
5420  am__fastdepCXX_TRUE='#'
5421  am__fastdepCXX_FALSE=
5422fi
5423
5424
5425
5426echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5427echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5428    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5429if test "${enable_maintainer_mode+set}" = set; then
5430  enableval="$enable_maintainer_mode"
5431  USE_MAINTAINER_MODE=$enableval
5432else
5433  USE_MAINTAINER_MODE=no
5434fi;
5435  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5436echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5437
5438
5439if test $USE_MAINTAINER_MODE = yes; then
5440  MAINTAINER_MODE_TRUE=
5441  MAINTAINER_MODE_FALSE='#'
5442else
5443  MAINTAINER_MODE_TRUE='#'
5444  MAINTAINER_MODE_FALSE=
5445fi
5446
5447  MAINT=$MAINTAINER_MODE_TRUE
5448
5449
5450
5451coin_have_externals=no
5452if test "$enable_maintainer_mode" = yes; then
5453
5454  # If maintainer mode is chosen, we make sure that the correct versions
5455  # of the tools are used, and that we know where libtool.m4 is (to
5456  # recreate acinclude.m4)
5457
5458
5459  LIBTOOLM4=
5460  # Normally, $HOME
5461  AUTOTOOLS_DFLT=$HOME
5462
5463  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5464echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5465if test "${ac_cv_use_correct_autotools+set}" = set; then
5466  echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468  ac_cv_use_correct_autotools=check
5469fi
5470echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5471echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5472
5473  if test $ac_cv_use_correct_autotools = check; then
5474    ac_cv_use_correct_autotools=yes
5475    # Check if we have autoconf
5476    # Extract the first word of "autoconf", so it can be a program name with args.
5477set dummy autoconf; ac_word=$2
5478echo "$as_me:$LINENO: checking for $ac_word" >&5
5479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480if test "${ac_cv_prog_have_autoconf+set}" = set; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483  if test -n "$have_autoconf"; then
5484  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491  for ac_exec_ext in '' $ac_executable_extensions; do
5492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_have_autoconf="yes"
5494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498done
5499
5500  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5501fi
5502fi
5503have_autoconf=$ac_cv_prog_have_autoconf
5504if test -n "$have_autoconf"; then
5505  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5506echo "${ECHO_T}$have_autoconf" >&6
5507else
5508  echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
5512    if test $have_autoconf = no; then
5513      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5514echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5515   { (exit 1); exit 1; }; }
5516    fi
5517
5518    # Check whether autoconf is the correct version
5519    correct_version='2.59'
5520    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5521    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5522echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5523    autoconf --version > confauto.out 2>&1
5524    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5525      echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
5527    else
5528      rm -f confauto.out
5529      echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5532echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5533   { (exit 1); exit 1; }; }
5534    fi
5535    rm -f confauto.out
5536
5537    # Check if the executable autoconf is picked up from the correct location
5538    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5539echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5540    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5541    autoconf_dir=`cd $autoconf_dir; pwd`
5542    if test x$AUTOTOOLS_DIR = x; then
5543      want_dir=$AUTOTOOLS_DFLT/bin
5544    else
5545      want_dir=$AUTOTOOLS_DIR/bin
5546    fi
5547    if test $autoconf_dir = `cd $want_dir; pwd`; then
5548      echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550    else
5551      rm -f confauto.out
5552      echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5555echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5556   { (exit 1); exit 1; }; }
5557    fi
5558
5559    # Check if we have automake
5560    # Extract the first word of "automake", so it can be a program name with args.
5561set dummy automake; ac_word=$2
5562echo "$as_me:$LINENO: checking for $ac_word" >&5
5563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564if test "${ac_cv_prog_have_automake+set}" = set; then
5565  echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567  if test -n "$have_automake"; then
5568  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573  IFS=$as_save_IFS
5574  test -z "$as_dir" && as_dir=.
5575  for ac_exec_ext in '' $ac_executable_extensions; do
5576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577    ac_cv_prog_have_automake="yes"
5578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582done
5583
5584  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5585fi
5586fi
5587have_automake=$ac_cv_prog_have_automake
5588if test -n "$have_automake"; then
5589  echo "$as_me:$LINENO: result: $have_automake" >&5
5590echo "${ECHO_T}$have_automake" >&6
5591else
5592  echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596    if test $have_automake = no; then
5597      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5598echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5599   { (exit 1); exit 1; }; }
5600    fi
5601
5602    # Check whether automake is the correct version
5603    correct_version='1.9.6'
5604    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5605    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5606echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5607    automake --version > confauto.out 2>&1
5608    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5609      echo "$as_me:$LINENO: result: yes" >&5
5610echo "${ECHO_T}yes" >&6
5611    else
5612      rm -f confauto.out
5613      echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5616echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5617   { (exit 1); exit 1; }; }
5618    fi
5619    rm -f confauto.out
5620
5621    # Check if the executable automake is picked up from the correct location
5622    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5623echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5624    automake_dir=`which automake | sed -e 's=/automake=='`
5625    automake_dir=`cd $automake_dir; pwd`
5626    if test x$AUTOTOOLS_DIR = x; then
5627      want_dir=$AUTOTOOLS_DFLT/bin
5628    else
5629      want_dir=$AUTOTOOLS_DIR/bin
5630    fi
5631    if test $automake_dir = `cd $want_dir; pwd`; then
5632      echo "$as_me:$LINENO: result: yes" >&5
5633echo "${ECHO_T}yes" >&6
5634    else
5635      rm -f confauto.out
5636      echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5639echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5640   { (exit 1); exit 1; }; }
5641    fi
5642
5643    # Check if this is the correct version of libtool (with escaped dots)
5644    if test x$AUTOTOOLS_DIR = x; then
5645      want_dir=$AUTOTOOLS_DFLT/share
5646    else
5647      want_dir=$AUTOTOOLS_DIR/share
5648    fi
5649    correct_version='1.5.22'
5650    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5651    if test -r $want_dir/libtool/ltmain.sh; then
5652  have_ltmain=yes
5653  :
5654else
5655  have_ltmain=no
5656  :
5657fi
5658
5659    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5660echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5661    if test $have_ltmain = yes; then
5662    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5663        echo "$as_me:$LINENO: result: yes" >&5
5664echo "${ECHO_T}yes" >&6
5665      else
5666        echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6
5668        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5669echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5670   { (exit 1); exit 1; }; }
5671      fi
5672    else
5673      echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6
5675      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5676echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5677   { (exit 1); exit 1; }; }
5678    fi
5679  fi
5680
5681  # Check if we can find the libtool file
5682  if test x$AUTOTOOLS_DIR = x; then
5683    want_dir=$AUTOTOOLS_DFLT/share
5684  else
5685    want_dir=$AUTOTOOLS_DIR/share
5686  fi
5687  if test -r $want_dir/aclocal/libtool.m4; then
5688  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5689  :
5690else
5691  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5692echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5693   { (exit 1); exit 1; }; }
5694  :
5695fi
5696
5697
5698  # Check if we have an Dependencies file
5699  if test -r $srcdir/Dependencies; then
5700    coin_have_externals=yes
5701  fi
5702  # Check if subversion is installed and understands https
5703  # Extract the first word of "svn", so it can be a program name with args.
5704set dummy svn; ac_word=$2
5705echo "$as_me:$LINENO: checking for $ac_word" >&5
5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707if test "${ac_cv_prog_have_svn+set}" = set; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  if test -n "$have_svn"; then
5711  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718  for ac_exec_ext in '' $ac_executable_extensions; do
5719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720    ac_cv_prog_have_svn="yes"
5721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725done
5726
5727  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5728fi
5729fi
5730have_svn=$ac_cv_prog_have_svn
5731if test -n "$have_svn"; then
5732  echo "$as_me:$LINENO: result: $have_svn" >&5
5733echo "${ECHO_T}$have_svn" >&6
5734else
5735  echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739  if test x$have_svn = xyes; then
5740    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5741echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5742if test "${ac_cv_svn_understands_https+set}" = set; then
5743  echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745  svn --version > confauto.out 2>&1
5746                    if $EGREP https confauto.out >/dev/null 2>&1; then
5747                      ac_cv_svn_understands_https=yes
5748                    else
5749                      ac_cv_svn_understands_https=no
5750                      have_svn=no
5751                      ac_cv_prog_have_svn=no
5752                    fi
5753                    rm -f confauto.out
5754fi
5755echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5756echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5757  fi
5758
5759  # Find the location of the BuildTools directory
5760  BUILDTOOLSDIR=
5761  if test -r $srcdir/BuildTools/coin.m4; then
5762    BUILDTOOLSDIR=$srcdir/BuildTools
5763  elif test -r $srcdir/../BuildTools/coin.m4; then
5764    BUILDTOOLSDIR=$srcdir/../BuildTools
5765  elif test -r $srcdir/../../BuildTools/coin.m4; then
5766    BUILDTOOLSDIR=$srcdir/../../BuildTools
5767  elif test -r $srcdir/../../../BuildTools/coin.m4; then
5768    BUILDTOOLSDIR=$srcdir/../../../BuildTools
5769  else
5770    { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5771echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5772   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5773  fi
5774
5775
5776  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5777  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5778    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5779  fi
5780
5781  # The following variable is set to the name of the directory where
5782  # the autotool scripts are located
5783
5784  AUX_DIR=$ac_aux_dir
5785fi
5786
5787# helpful variable for the base directory of this package
5788abs_source_dir=`cd $srcdir; pwd`
5789
5790
5791# Stuff for example Makefiles
5792if test x$prefix = xNONE; then
5793  full_prefix=$ac_default_prefix
5794else
5795  full_prefix=$prefix
5796fi
5797
5798
5799abs_lib_dir=$full_prefix/lib
5800
5801abs_include_dir=$full_prefix/include
5802
5803abs_bin_dir=$full_prefix/bin
5804
5805
5806
5807if test $coin_have_externals = yes && test x$have_svn = xyes; then
5808  HAVE_EXTERNALS_TRUE=
5809  HAVE_EXTERNALS_FALSE='#'
5810else
5811  HAVE_EXTERNALS_TRUE='#'
5812  HAVE_EXTERNALS_FALSE=
5813fi
5814
5815
5816# AC_MSG_NOTICE([End automake initialisation.])
5817
5818
5819
5820LIBTOOL=
5821if test -f ../libtool; then
5822  coin_config_dir=..
5823  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5824fi
5825if test "x$LIBTOOL" = x; then
5826  if test -f ../../libtool; then
5827    coin_config_dir=../..
5828    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5829  fi
5830fi
5831
5832if test "x$LIBTOOL" = x; then
5833# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5834  # Stuff for libtool
5835  # Check whether --enable-shared or --disable-shared was given.
5836if test "${enable_shared+set}" = set; then
5837  enableval="$enable_shared"
5838  p=${PACKAGE-default}
5839    case $enableval in
5840    yes) enable_shared=yes ;;
5841    no) enable_shared=no ;;
5842    *)
5843      enable_shared=no
5844      # Look at the argument we got.  We use all the common list separators.
5845      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5846      for pkg in $enableval; do
5847	IFS="$lt_save_ifs"
5848	if test "X$pkg" = "X$p"; then
5849	  enable_shared=yes
5850	fi
5851      done
5852      IFS="$lt_save_ifs"
5853      ;;
5854    esac
5855else
5856  enable_shared=yes
5857fi;
5858
5859# Check whether --enable-fast-install or --disable-fast-install was given.
5860if test "${enable_fast_install+set}" = set; then
5861  enableval="$enable_fast_install"
5862  p=${PACKAGE-default}
5863    case $enableval in
5864    yes) enable_fast_install=yes ;;
5865    no) enable_fast_install=no ;;
5866    *)
5867      enable_fast_install=no
5868      # Look at the argument we got.  We use all the common list separators.
5869      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5870      for pkg in $enableval; do
5871	IFS="$lt_save_ifs"
5872	if test "X$pkg" = "X$p"; then
5873	  enable_fast_install=yes
5874	fi
5875      done
5876      IFS="$lt_save_ifs"
5877      ;;
5878    esac
5879else
5880  enable_fast_install=yes
5881fi;
5882
5883echo "$as_me:$LINENO: checking host system type" >&5
5884echo $ECHO_N "checking host system type... $ECHO_C" >&6
5885if test "${ac_cv_host+set}" = set; then
5886  echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888  ac_cv_host_alias=$host_alias
5889test -z "$ac_cv_host_alias" &&
5890  ac_cv_host_alias=$ac_cv_build_alias
5891ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5892  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5893echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5894   { (exit 1); exit 1; }; }
5895
5896fi
5897echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5898echo "${ECHO_T}$ac_cv_host" >&6
5899host=$ac_cv_host
5900host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5901host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5902host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5903
5904
5905echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5906echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5907if test "${lt_cv_path_SED+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  # Loop through the user's path and test for sed and gsed.
5911# Then use that list of sed's as ones to test for truncation.
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  test -z "$as_dir" && as_dir=.
5917  for lt_ac_prog in sed gsed; do
5918    for ac_exec_ext in '' $ac_executable_extensions; do
5919      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5920        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5921      fi
5922    done
5923  done
5924done
5925lt_ac_max=0
5926lt_ac_count=0
5927# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5928# along with /bin/sed that truncates output.
5929for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5930  test ! -f $lt_ac_sed && continue
5931  cat /dev/null > conftest.in
5932  lt_ac_count=0
5933  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5934  # Check for GNU sed and select it if it is found.
5935  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5936    lt_cv_path_SED=$lt_ac_sed
5937    break
5938  fi
5939  while true; do
5940    cat conftest.in conftest.in >conftest.tmp
5941    mv conftest.tmp conftest.in
5942    cp conftest.in conftest.nl
5943    echo >>conftest.nl
5944    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5945    cmp -s conftest.out conftest.nl || break
5946    # 10000 chars as input seems more than enough
5947    test $lt_ac_count -gt 10 && break
5948    lt_ac_count=`expr $lt_ac_count + 1`
5949    if test $lt_ac_count -gt $lt_ac_max; then
5950      lt_ac_max=$lt_ac_count
5951      lt_cv_path_SED=$lt_ac_sed
5952    fi
5953  done
5954done
5955
5956fi
5957
5958SED=$lt_cv_path_SED
5959echo "$as_me:$LINENO: result: $SED" >&5
5960echo "${ECHO_T}$SED" >&6
5961
5962
5963# Check whether --with-gnu-ld or --without-gnu-ld was given.
5964if test "${with_gnu_ld+set}" = set; then
5965  withval="$with_gnu_ld"
5966  test "$withval" = no || with_gnu_ld=yes
5967else
5968  with_gnu_ld=no
5969fi;
5970ac_prog=ld
5971if test "$GCC" = yes; then
5972  # Check if gcc -print-prog-name=ld gives a path.
5973  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5974echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5975  case $host in
5976  *-*-mingw*)
5977    # gcc leaves a trailing carriage return which upsets mingw
5978    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5979  *)
5980    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5981  esac
5982  case $ac_prog in
5983    # Accept absolute paths.
5984    [\\/]* | ?:[\\/]*)
5985      re_direlt='/[^/][^/]*/\.\./'
5986      # Canonicalize the pathname of ld
5987      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5988      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5989	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5990      done
5991      test -z "$LD" && LD="$ac_prog"
5992      ;;
5993  "")
5994    # If it fails, then pretend we aren't using GCC.
5995    ac_prog=ld
5996    ;;
5997  *)
5998    # If it is relative, then search for the first ld in PATH.
5999    with_gnu_ld=unknown
6000    ;;
6001  esac
6002elif test "$with_gnu_ld" = yes; then
6003  echo "$as_me:$LINENO: checking for GNU ld" >&5
6004echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6005else
6006  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6007echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6008fi
6009if test "${lt_cv_path_LD+set}" = set; then
6010  echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012  if test -z "$LD"; then
6013  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6014  for ac_dir in $PATH; do
6015    IFS="$lt_save_ifs"
6016    test -z "$ac_dir" && ac_dir=.
6017    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6018      lt_cv_path_LD="$ac_dir/$ac_prog"
6019      # Check to see if the program is GNU ld.  I'd rather use --version,
6020      # but apparently some variants of GNU ld only accept -v.
6021      # Break only if it was the GNU/non-GNU ld that we prefer.
6022      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6023      *GNU* | *'with BFD'*)
6024	test "$with_gnu_ld" != no && break
6025	;;
6026      *)
6027	test "$with_gnu_ld" != yes && break
6028	;;
6029      esac
6030    fi
6031  done
6032  IFS="$lt_save_ifs"
6033else
6034  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6035fi
6036fi
6037
6038LD="$lt_cv_path_LD"
6039if test -n "$LD"; then
6040  echo "$as_me:$LINENO: result: $LD" >&5
6041echo "${ECHO_T}$LD" >&6
6042else
6043  echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045fi
6046test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6047echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6048   { (exit 1); exit 1; }; }
6049echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6050echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6051if test "${lt_cv_prog_gnu_ld+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6055case `$LD -v 2>&1 </dev/null` in
6056*GNU* | *'with BFD'*)
6057  lt_cv_prog_gnu_ld=yes
6058  ;;
6059*)
6060  lt_cv_prog_gnu_ld=no
6061  ;;
6062esac
6063fi
6064echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6065echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6066with_gnu_ld=$lt_cv_prog_gnu_ld
6067
6068
6069echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6070echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6071if test "${lt_cv_ld_reload_flag+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  lt_cv_ld_reload_flag='-r'
6075fi
6076echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6077echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6078reload_flag=$lt_cv_ld_reload_flag
6079case $reload_flag in
6080"" | " "*) ;;
6081*) reload_flag=" $reload_flag" ;;
6082esac
6083reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084case $host_os in
6085  darwin*)
6086    if test "$GCC" = yes; then
6087      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088    else
6089      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090    fi
6091    ;;
6092esac
6093
6094echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6095echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6096if test "${lt_cv_path_NM+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  if test -n "$NM"; then
6100  # Let the user override the test.
6101  lt_cv_path_NM="$NM"
6102else
6103  lt_nm_to_check="${ac_tool_prefix}nm"
6104  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6105    lt_nm_to_check="$lt_nm_to_check nm"
6106  fi
6107  for lt_tmp_nm in $lt_nm_to_check; do
6108    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6110      IFS="$lt_save_ifs"
6111      test -z "$ac_dir" && ac_dir=.
6112      tmp_nm="$ac_dir/$lt_tmp_nm"
6113      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6114	# Check to see if the nm accepts a BSD-compat flag.
6115	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6116	#   nm: unknown option "B" ignored
6117	# Tru64's nm complains that /dev/null is an invalid object file
6118	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6119	*/dev/null* | *'Invalid file or object type'*)
6120	  lt_cv_path_NM="$tmp_nm -B"
6121	  break
6122	  ;;
6123	*)
6124	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6125	  */dev/null*)
6126	    lt_cv_path_NM="$tmp_nm -p"
6127	    break
6128	    ;;
6129	  *)
6130	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6131	    continue # so that we can try to find one that supports BSD flags
6132	    ;;
6133	  esac
6134	  ;;
6135	esac
6136      fi
6137    done
6138    IFS="$lt_save_ifs"
6139  done
6140  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6141fi
6142fi
6143echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6144echo "${ECHO_T}$lt_cv_path_NM" >&6
6145NM="$lt_cv_path_NM"
6146
6147echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6148echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6149if test "${lt_cv_deplibs_check_method+set}" = set; then
6150  echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152  lt_cv_file_magic_cmd='$MAGIC_CMD'
6153lt_cv_file_magic_test_file=
6154lt_cv_deplibs_check_method='unknown'
6155# Need to set the preceding variable on all platforms that support
6156# interlibrary dependencies.
6157# 'none' -- dependencies not supported.
6158# `unknown' -- same as none, but documents that we really don't know.
6159# 'pass_all' -- all dependencies passed with no checks.
6160# 'test_compile' -- check by making test program.
6161# 'file_magic [[regex]]' -- check by looking for files in library path
6162# which responds to the $file_magic_cmd with a given extended regex.
6163# If you have `file' or equivalent on your system and you're not sure
6164# whether `pass_all' will *always* work, you probably want this one.
6165
6166case $host_os in
6167aix4* | aix5*)
6168  lt_cv_deplibs_check_method=pass_all
6169  ;;
6170
6171beos*)
6172  lt_cv_deplibs_check_method=pass_all
6173  ;;
6174
6175bsdi[45]*)
6176  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6177  lt_cv_file_magic_cmd='/usr/bin/file -L'
6178  lt_cv_file_magic_test_file=/shlib/libc.so
6179  ;;
6180
6181cygwin*)
6182  # func_win32_libid is a shell function defined in ltmain.sh
6183  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6184  lt_cv_file_magic_cmd='func_win32_libid'
6185  ;;
6186
6187mingw* | pw32*)
6188  # Base MSYS/MinGW do not provide the 'file' command needed by
6189  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6190  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6191  lt_cv_file_magic_cmd='$OBJDUMP -f'
6192  ;;
6193
6194darwin* | rhapsody*)
6195  lt_cv_deplibs_check_method=pass_all
6196  ;;
6197
6198freebsd* | kfreebsd*-gnu | dragonfly*)
6199  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6200    case $host_cpu in
6201    i*86 )
6202      # Not sure whether the presence of OpenBSD here was a mistake.
6203      # Let's accept both of them until this is cleared up.
6204      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6205      lt_cv_file_magic_cmd=/usr/bin/file
6206      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6207      ;;
6208    esac
6209  else
6210    lt_cv_deplibs_check_method=pass_all
6211  fi
6212  ;;
6213
6214gnu*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218hpux10.20* | hpux11*)
6219  lt_cv_file_magic_cmd=/usr/bin/file
6220  case $host_cpu in
6221  ia64*)
6222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6223    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6224    ;;
6225  hppa*64*)
6226    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]'
6227    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6228    ;;
6229  *)
6230    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6231    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6232    ;;
6233  esac
6234  ;;
6235
6236interix3*)
6237  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6238  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6239  ;;
6240
6241irix5* | irix6* | nonstopux*)
6242  case $LD in
6243  *-32|*"-32 ") libmagic=32-bit;;
6244  *-n32|*"-n32 ") libmagic=N32;;
6245  *-64|*"-64 ") libmagic=64-bit;;
6246  *) libmagic=never-match;;
6247  esac
6248  lt_cv_deplibs_check_method=pass_all
6249  ;;
6250
6251# This must be Linux ELF.
6252linux*)
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256netbsd*)
6257  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6259  else
6260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6261  fi
6262  ;;
6263
6264newos6*)
6265  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6266  lt_cv_file_magic_cmd=/usr/bin/file
6267  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6268  ;;
6269
6270nto-qnx*)
6271  lt_cv_deplibs_check_method=unknown
6272  ;;
6273
6274openbsd*)
6275  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6277  else
6278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6279  fi
6280  ;;
6281
6282osf3* | osf4* | osf5*)
6283  lt_cv_deplibs_check_method=pass_all
6284  ;;
6285
6286solaris*)
6287  lt_cv_deplibs_check_method=pass_all
6288  ;;
6289
6290sysv4 | sysv4.3*)
6291  case $host_vendor in
6292  motorola)
6293    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]'
6294    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6295    ;;
6296  ncr)
6297    lt_cv_deplibs_check_method=pass_all
6298    ;;
6299  sequent)
6300    lt_cv_file_magic_cmd='/bin/file'
6301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6302    ;;
6303  sni)
6304    lt_cv_file_magic_cmd='/bin/file'
6305    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6306    lt_cv_file_magic_test_file=/lib/libc.so
6307    ;;
6308  siemens)
6309    lt_cv_deplibs_check_method=pass_all
6310    ;;
6311  pc)
6312    lt_cv_deplibs_check_method=pass_all
6313    ;;
6314  esac
6315  ;;
6316
6317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6318  lt_cv_deplibs_check_method=pass_all
6319  ;;
6320esac
6321
6322fi
6323echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6324echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6325file_magic_cmd=$lt_cv_file_magic_cmd
6326deplibs_check_method=$lt_cv_deplibs_check_method
6327test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328
6329
6330
6331
6332# If no C compiler was specified, use CC.
6333LTCC=${LTCC-"$CC"}
6334
6335# If no C compiler flags were specified, use CFLAGS.
6336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6337
6338# Allow CC to be a program name with arguments.
6339compiler=$CC
6340
6341# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6342if test "${enable_libtool_lock+set}" = set; then
6343  enableval="$enable_libtool_lock"
6344
6345fi;
6346test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6347
6348# Some flags need to be propagated to the compiler or linker for good
6349# libtool support.
6350case $host in
6351ia64-*-hpux*)
6352  # Find out which ABI we are using.
6353  echo 'int i;' > conftest.$ac_ext
6354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355  (eval $ac_compile) 2>&5
6356  ac_status=$?
6357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358  (exit $ac_status); }; then
6359    case `/usr/bin/file conftest.$ac_objext` in
6360    *ELF-32*)
6361      HPUX_IA64_MODE="32"
6362      ;;
6363    *ELF-64*)
6364      HPUX_IA64_MODE="64"
6365      ;;
6366    esac
6367  fi
6368  rm -rf conftest*
6369  ;;
6370*-*-irix6*)
6371  # Find out which ABI we are using.
6372  echo '#line 6372 "configure"' > conftest.$ac_ext
6373  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374  (eval $ac_compile) 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; then
6378   if test "$lt_cv_prog_gnu_ld" = yes; then
6379    case `/usr/bin/file conftest.$ac_objext` in
6380    *32-bit*)
6381      LD="${LD-ld} -melf32bsmip"
6382      ;;
6383    *N32*)
6384      LD="${LD-ld} -melf32bmipn32"
6385      ;;
6386    *64-bit*)
6387      LD="${LD-ld} -melf64bmip"
6388      ;;
6389    esac
6390   else
6391    case `/usr/bin/file conftest.$ac_objext` in
6392    *32-bit*)
6393      LD="${LD-ld} -32"
6394      ;;
6395    *N32*)
6396      LD="${LD-ld} -n32"
6397      ;;
6398    *64-bit*)
6399      LD="${LD-ld} -64"
6400      ;;
6401    esac
6402   fi
6403  fi
6404  rm -rf conftest*
6405  ;;
6406
6407x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6408  # Find out which ABI we are using.
6409  echo 'int i;' > conftest.$ac_ext
6410  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411  (eval $ac_compile) 2>&5
6412  ac_status=$?
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); }; then
6415    case `/usr/bin/file conftest.o` in
6416    *32-bit*)
6417      case $host in
6418        x86_64-*linux*)
6419          LD="${LD-ld} -m elf_i386"
6420          ;;
6421        ppc64-*linux*|powerpc64-*linux*)
6422          LD="${LD-ld} -m elf32ppclinux"
6423          ;;
6424        s390x-*linux*)
6425          LD="${LD-ld} -m elf_s390"
6426          ;;
6427        sparc64-*linux*)
6428          LD="${LD-ld} -m elf32_sparc"
6429          ;;
6430      esac
6431      ;;
6432    *64-bit*)
6433      case $host in
6434        x86_64-*linux*)
6435          LD="${LD-ld} -m elf_x86_64"
6436          ;;
6437        ppc*-*linux*|powerpc*-*linux*)
6438          LD="${LD-ld} -m elf64ppc"
6439          ;;
6440        s390*-*linux*)
6441          LD="${LD-ld} -m elf64_s390"
6442          ;;
6443        sparc*-*linux*)
6444          LD="${LD-ld} -m elf64_sparc"
6445          ;;
6446      esac
6447      ;;
6448    esac
6449  fi
6450  rm -rf conftest*
6451  ;;
6452
6453*-*-sco3.2v5*)
6454  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6455  SAVE_CFLAGS="$CFLAGS"
6456  CFLAGS="$CFLAGS -belf"
6457  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6458echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6459if test "${lt_cv_cc_needs_belf+set}" = set; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462  ac_ext=c
6463ac_cpp='$CPP $CPPFLAGS'
6464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467
6468     cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474
6475int
6476main ()
6477{
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext conftest$ac_exeext
6484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485  (eval $ac_link) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492	 { ac_try='test -z "$ac_c_werror_flag"
6493			 || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499	 { ac_try='test -s conftest$ac_exeext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  lt_cv_cc_needs_belf=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510lt_cv_cc_needs_belf=no
6511fi
6512rm -f conftest.err conftest.$ac_objext \
6513      conftest$ac_exeext conftest.$ac_ext
6514     ac_ext=c
6515ac_cpp='$CPP $CPPFLAGS'
6516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519
6520fi
6521echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6522echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6523  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6524    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6525    CFLAGS="$SAVE_CFLAGS"
6526  fi
6527  ;;
6528sparc*-*solaris*)
6529  # Find out which ABI we are using.
6530  echo 'int i;' > conftest.$ac_ext
6531  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532  (eval $ac_compile) 2>&5
6533  ac_status=$?
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); }; then
6536    case `/usr/bin/file conftest.o` in
6537    *64-bit*)
6538      case $lt_cv_prog_gnu_ld in
6539      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6540      *)    LD="${LD-ld} -64" ;;
6541      esac
6542      ;;
6543    esac
6544  fi
6545  rm -rf conftest*
6546  ;;
6547
6548
6549esac
6550
6551need_locks="$enable_libtool_lock"
6552
6553
6554ac_ext=c
6555ac_cpp='$CPP $CPPFLAGS'
6556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558ac_compiler_gnu=$ac_cv_c_compiler_gnu
6559echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6560echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6561# On Suns, sometimes $CPP names a directory.
6562if test -n "$CPP" && test -d "$CPP"; then
6563  CPP=
6564fi
6565if test -z "$CPP"; then
6566  if test "${ac_cv_prog_CPP+set}" = set; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569      # Double quotes because CPP needs to be expanded
6570    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6571    do
6572      ac_preproc_ok=false
6573for ac_c_preproc_warn_flag in '' yes
6574do
6575  # Use a header file that comes with gcc, so configuring glibc
6576  # with a fresh cross-compiler works.
6577  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578  # <limits.h> exists even on freestanding compilers.
6579  # On the NeXT, cc -E runs the code through the compiler's parser,
6580  # not just through cpp. "Syntax error" is here to catch this case.
6581  cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h.  */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h.  */
6587#ifdef __STDC__
6588# include <limits.h>
6589#else
6590# include <assert.h>
6591#endif
6592		     Syntax error
6593_ACEOF
6594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } >/dev/null; then
6602  if test -s conftest.err; then
6603    ac_cpp_err=$ac_c_preproc_warn_flag
6604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6605  else
6606    ac_cpp_err=
6607  fi
6608else
6609  ac_cpp_err=yes
6610fi
6611if test -z "$ac_cpp_err"; then
6612  :
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617  # Broken: fails on valid input.
6618continue
6619fi
6620rm -f conftest.err conftest.$ac_ext
6621
6622  # OK, works on sane cases.  Now check whether non-existent headers
6623  # can be detected and how.
6624  cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h.  */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h.  */
6630#include <ac_nonexistent.h>
6631_ACEOF
6632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634  ac_status=$?
6635  grep -v '^ *+' conftest.er1 >conftest.err
6636  rm -f conftest.er1
6637  cat conftest.err >&5
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); } >/dev/null; then
6640  if test -s conftest.err; then
6641    ac_cpp_err=$ac_c_preproc_warn_flag
6642    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6643  else
6644    ac_cpp_err=
6645  fi
6646else
6647  ac_cpp_err=yes
6648fi
6649if test -z "$ac_cpp_err"; then
6650  # Broken: success on invalid input.
6651continue
6652else
6653  echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656  # Passes both tests.
6657ac_preproc_ok=:
6658break
6659fi
6660rm -f conftest.err conftest.$ac_ext
6661
6662done
6663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664rm -f conftest.err conftest.$ac_ext
6665if $ac_preproc_ok; then
6666  break
6667fi
6668
6669    done
6670    ac_cv_prog_CPP=$CPP
6671
6672fi
6673  CPP=$ac_cv_prog_CPP
6674else
6675  ac_cv_prog_CPP=$CPP
6676fi
6677echo "$as_me:$LINENO: result: $CPP" >&5
6678echo "${ECHO_T}$CPP" >&6
6679ac_preproc_ok=false
6680for ac_c_preproc_warn_flag in '' yes
6681do
6682  # Use a header file that comes with gcc, so configuring glibc
6683  # with a fresh cross-compiler works.
6684  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685  # <limits.h> exists even on freestanding compilers.
6686  # On the NeXT, cc -E runs the code through the compiler's parser,
6687  # not just through cpp. "Syntax error" is here to catch this case.
6688  cat >conftest.$ac_ext <<_ACEOF
6689/* confdefs.h.  */
6690_ACEOF
6691cat confdefs.h >>conftest.$ac_ext
6692cat >>conftest.$ac_ext <<_ACEOF
6693/* end confdefs.h.  */
6694#ifdef __STDC__
6695# include <limits.h>
6696#else
6697# include <assert.h>
6698#endif
6699		     Syntax error
6700_ACEOF
6701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703  ac_status=$?
6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } >/dev/null; then
6709  if test -s conftest.err; then
6710    ac_cpp_err=$ac_c_preproc_warn_flag
6711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6712  else
6713    ac_cpp_err=
6714  fi
6715else
6716  ac_cpp_err=yes
6717fi
6718if test -z "$ac_cpp_err"; then
6719  :
6720else
6721  echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724  # Broken: fails on valid input.
6725continue
6726fi
6727rm -f conftest.err conftest.$ac_ext
6728
6729  # OK, works on sane cases.  Now check whether non-existent headers
6730  # can be detected and how.
6731  cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h.  */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h.  */
6737#include <ac_nonexistent.h>
6738_ACEOF
6739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741  ac_status=$?
6742  grep -v '^ *+' conftest.er1 >conftest.err
6743  rm -f conftest.er1
6744  cat conftest.err >&5
6745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } >/dev/null; then
6747  if test -s conftest.err; then
6748    ac_cpp_err=$ac_c_preproc_warn_flag
6749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750  else
6751    ac_cpp_err=
6752  fi
6753else
6754  ac_cpp_err=yes
6755fi
6756if test -z "$ac_cpp_err"; then
6757  # Broken: success on invalid input.
6758continue
6759else
6760  echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
6763  # Passes both tests.
6764ac_preproc_ok=:
6765break
6766fi
6767rm -f conftest.err conftest.$ac_ext
6768
6769done
6770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6771rm -f conftest.err conftest.$ac_ext
6772if $ac_preproc_ok; then
6773  :
6774else
6775  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6776See \`config.log' for more details." >&5
6777echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6778See \`config.log' for more details." >&2;}
6779   { (exit 1); exit 1; }; }
6780fi
6781
6782ac_ext=c
6783ac_cpp='$CPP $CPPFLAGS'
6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
6788
6789echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6790echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6791if test "${ac_cv_header_stdc+set}" = set; then
6792  echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794  cat >conftest.$ac_ext <<_ACEOF
6795/* confdefs.h.  */
6796_ACEOF
6797cat confdefs.h >>conftest.$ac_ext
6798cat >>conftest.$ac_ext <<_ACEOF
6799/* end confdefs.h.  */
6800#include <stdlib.h>
6801#include <stdarg.h>
6802#include <string.h>
6803#include <float.h>
6804
6805int
6806main ()
6807{
6808
6809  ;
6810  return 0;
6811}
6812_ACEOF
6813rm -f conftest.$ac_objext
6814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815  (eval $ac_compile) 2>conftest.er1
6816  ac_status=$?
6817  grep -v '^ *+' conftest.er1 >conftest.err
6818  rm -f conftest.er1
6819  cat conftest.err >&5
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); } &&
6822	 { ac_try='test -z "$ac_c_werror_flag"
6823			 || test ! -s conftest.err'
6824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825  (eval $ac_try) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }; } &&
6829	 { ac_try='test -s conftest.$ac_objext'
6830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831  (eval $ac_try) 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }; }; then
6835  ac_cv_header_stdc=yes
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840ac_cv_header_stdc=no
6841fi
6842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843
6844if test $ac_cv_header_stdc = yes; then
6845  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6846  cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h.  */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h.  */
6852#include <string.h>
6853
6854_ACEOF
6855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6856  $EGREP "memchr" >/dev/null 2>&1; then
6857  :
6858else
6859  ac_cv_header_stdc=no
6860fi
6861rm -f conftest*
6862
6863fi
6864
6865if test $ac_cv_header_stdc = yes; then
6866  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6867  cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873#include <stdlib.h>
6874
6875_ACEOF
6876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877  $EGREP "free" >/dev/null 2>&1; then
6878  :
6879else
6880  ac_cv_header_stdc=no
6881fi
6882rm -f conftest*
6883
6884fi
6885
6886if test $ac_cv_header_stdc = yes; then
6887  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6888  if test "$cross_compiling" = yes; then
6889  :
6890else
6891  cat >conftest.$ac_ext <<_ACEOF
6892/* confdefs.h.  */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h.  */
6897#include <ctype.h>
6898#if ((' ' & 0x0FF) == 0x020)
6899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6901#else
6902# define ISLOWER(c) \
6903		   (('a' <= (c) && (c) <= 'i') \
6904		     || ('j' <= (c) && (c) <= 'r') \
6905		     || ('s' <= (c) && (c) <= 'z'))
6906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907#endif
6908
6909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910int
6911main ()
6912{
6913  int i;
6914  for (i = 0; i < 256; i++)
6915    if (XOR (islower (i), ISLOWER (i))
6916	|| toupper (i) != TOUPPER (i))
6917      exit(2);
6918  exit (0);
6919}
6920_ACEOF
6921rm -f conftest$ac_exeext
6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923  (eval $ac_link) 2>&5
6924  ac_status=$?
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928  (eval $ac_try) 2>&5
6929  ac_status=$?
6930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931  (exit $ac_status); }; }; then
6932  :
6933else
6934  echo "$as_me: program exited with status $ac_status" >&5
6935echo "$as_me: failed program was:" >&5
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938( exit $ac_status )
6939ac_cv_header_stdc=no
6940fi
6941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6942fi
6943fi
6944fi
6945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6946echo "${ECHO_T}$ac_cv_header_stdc" >&6
6947if test $ac_cv_header_stdc = yes; then
6948
6949cat >>confdefs.h <<\_ACEOF
6950#define STDC_HEADERS 1
6951_ACEOF
6952
6953fi
6954
6955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6966		  inttypes.h stdint.h unistd.h
6967do
6968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974  cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h.  */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h.  */
6980$ac_includes_default
6981
6982#include <$ac_header>
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986  (eval $ac_compile) 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } &&
6993	 { ac_try='test -z "$ac_c_werror_flag"
6994			 || test ! -s conftest.err'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; } &&
7000	 { ac_try='test -s conftest.$ac_objext'
7001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002  (eval $ac_try) 2>&5
7003  ac_status=$?
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); }; }; then
7006  eval "$as_ac_Header=yes"
7007else
7008  echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011eval "$as_ac_Header=no"
7012fi
7013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7017if test `eval echo '${'$as_ac_Header'}'` = yes; then
7018  cat >>confdefs.h <<_ACEOF
7019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7020_ACEOF
7021
7022fi
7023
7024done
7025
7026
7027
7028for ac_header in dlfcn.h
7029do
7030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032  echo "$as_me:$LINENO: checking for $ac_header" >&5
7033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7034if eval "test \"\${$as_ac_Header+set}\" = set"; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036fi
7037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7039else
7040  # Is the header compilable?
7041echo "$as_me:$LINENO: checking $ac_header usability" >&5
7042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7043cat >conftest.$ac_ext <<_ACEOF
7044/* confdefs.h.  */
7045_ACEOF
7046cat confdefs.h >>conftest.$ac_ext
7047cat >>conftest.$ac_ext <<_ACEOF
7048/* end confdefs.h.  */
7049$ac_includes_default
7050#include <$ac_header>
7051_ACEOF
7052rm -f conftest.$ac_objext
7053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054  (eval $ac_compile) 2>conftest.er1
7055  ac_status=$?
7056  grep -v '^ *+' conftest.er1 >conftest.err
7057  rm -f conftest.er1
7058  cat conftest.err >&5
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); } &&
7061	 { ac_try='test -z "$ac_c_werror_flag"
7062			 || test ! -s conftest.err'
7063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064  (eval $ac_try) 2>&5
7065  ac_status=$?
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); }; } &&
7068	 { ac_try='test -s conftest.$ac_objext'
7069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070  (eval $ac_try) 2>&5
7071  ac_status=$?
7072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073  (exit $ac_status); }; }; then
7074  ac_header_compiler=yes
7075else
7076  echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079ac_header_compiler=no
7080fi
7081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7083echo "${ECHO_T}$ac_header_compiler" >&6
7084
7085# Is the header present?
7086echo "$as_me:$LINENO: checking $ac_header presence" >&5
7087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7088cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h.  */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h.  */
7094#include <$ac_header>
7095_ACEOF
7096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7098  ac_status=$?
7099  grep -v '^ *+' conftest.er1 >conftest.err
7100  rm -f conftest.er1
7101  cat conftest.err >&5
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); } >/dev/null; then
7104  if test -s conftest.err; then
7105    ac_cpp_err=$ac_c_preproc_warn_flag
7106    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7107  else
7108    ac_cpp_err=
7109  fi
7110else
7111  ac_cpp_err=yes
7112fi
7113if test -z "$ac_cpp_err"; then
7114  ac_header_preproc=yes
7115else
7116  echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119  ac_header_preproc=no
7120fi
7121rm -f conftest.err conftest.$ac_ext
7122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7123echo "${ECHO_T}$ac_header_preproc" >&6
7124
7125# So?  What about this header?
7126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7127  yes:no: )
7128    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7132    ac_header_preproc=yes
7133    ;;
7134  no:yes:* )
7135    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7137    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7138echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7139    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7141    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7142echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7145    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7147    (
7148      cat <<\_ASBOX
7149## ------------------------------------ ##
7150## Report this to osi@lists.coin-or.org ##
7151## ------------------------------------ ##
7152_ASBOX
7153    ) |
7154      sed "s/^/$as_me: WARNING:     /" >&2
7155    ;;
7156esac
7157echo "$as_me:$LINENO: checking for $ac_header" >&5
7158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7159if eval "test \"\${$as_ac_Header+set}\" = set"; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  eval "$as_ac_Header=\$ac_header_preproc"
7163fi
7164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7166
7167fi
7168if test `eval echo '${'$as_ac_Header'}'` = yes; then
7169  cat >>confdefs.h <<_ACEOF
7170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171_ACEOF
7172
7173fi
7174
7175done
7176
7177
7178
7179if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7180    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7181    (test "X$CXX" != "Xg++"))) ; then
7182  ac_ext=cc
7183ac_cpp='$CXXCPP $CPPFLAGS'
7184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7187echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7188echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7189if test -z "$CXXCPP"; then
7190  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193      # Double quotes because CXXCPP needs to be expanded
7194    for CXXCPP in "$CXX -E" "/lib/cpp"
7195    do
7196      ac_preproc_ok=false
7197for ac_cxx_preproc_warn_flag in '' yes
7198do
7199  # Use a header file that comes with gcc, so configuring glibc
7200  # with a fresh cross-compiler works.
7201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202  # <limits.h> exists even on freestanding compilers.
7203  # On the NeXT, cc -E runs the code through the compiler's parser,
7204  # not just through cpp. "Syntax error" is here to catch this case.
7205  cat >conftest.$ac_ext <<_ACEOF
7206/* confdefs.h.  */
7207_ACEOF
7208cat confdefs.h >>conftest.$ac_ext
7209cat >>conftest.$ac_ext <<_ACEOF
7210/* end confdefs.h.  */
7211#ifdef __STDC__
7212# include <limits.h>
7213#else
7214# include <assert.h>
7215#endif
7216		     Syntax error
7217_ACEOF
7218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } >/dev/null; then
7226  if test -s conftest.err; then
7227    ac_cpp_err=$ac_cxx_preproc_warn_flag
7228    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7229  else
7230    ac_cpp_err=
7231  fi
7232else
7233  ac_cpp_err=yes
7234fi
7235if test -z "$ac_cpp_err"; then
7236  :
7237else
7238  echo "$as_me: failed program was:" >&5
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
7241  # Broken: fails on valid input.
7242continue
7243fi
7244rm -f conftest.err conftest.$ac_ext
7245
7246  # OK, works on sane cases.  Now check whether non-existent headers
7247  # can be detected and how.
7248  cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h.  */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h.  */
7254#include <ac_nonexistent.h>
7255_ACEOF
7256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258  ac_status=$?
7259  grep -v '^ *+' conftest.er1 >conftest.err
7260  rm -f conftest.er1
7261  cat conftest.err >&5
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); } >/dev/null; then
7264  if test -s conftest.err; then
7265    ac_cpp_err=$ac_cxx_preproc_warn_flag
7266    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7267  else
7268    ac_cpp_err=
7269  fi
7270else
7271  ac_cpp_err=yes
7272fi
7273if test -z "$ac_cpp_err"; then
7274  # Broken: success on invalid input.
7275continue
7276else
7277  echo "$as_me: failed program was:" >&5
7278sed 's/^/| /' conftest.$ac_ext >&5
7279
7280  # Passes both tests.
7281ac_preproc_ok=:
7282break
7283fi
7284rm -f conftest.err conftest.$ac_ext
7285
7286done
7287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7288rm -f conftest.err conftest.$ac_ext
7289if $ac_preproc_ok; then
7290  break
7291fi
7292
7293    done
7294    ac_cv_prog_CXXCPP=$CXXCPP
7295
7296fi
7297  CXXCPP=$ac_cv_prog_CXXCPP
7298else
7299  ac_cv_prog_CXXCPP=$CXXCPP
7300fi
7301echo "$as_me:$LINENO: result: $CXXCPP" >&5
7302echo "${ECHO_T}$CXXCPP" >&6
7303ac_preproc_ok=false
7304for ac_cxx_preproc_warn_flag in '' yes
7305do
7306  # Use a header file that comes with gcc, so configuring glibc
7307  # with a fresh cross-compiler works.
7308  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309  # <limits.h> exists even on freestanding compilers.
7310  # On the NeXT, cc -E runs the code through the compiler's parser,
7311  # not just through cpp. "Syntax error" is here to catch this case.
7312  cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318#ifdef __STDC__
7319# include <limits.h>
7320#else
7321# include <assert.h>
7322#endif
7323		     Syntax error
7324_ACEOF
7325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } >/dev/null; then
7333  if test -s conftest.err; then
7334    ac_cpp_err=$ac_cxx_preproc_warn_flag
7335    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7336  else
7337    ac_cpp_err=
7338  fi
7339else
7340  ac_cpp_err=yes
7341fi
7342if test -z "$ac_cpp_err"; then
7343  :
7344else
7345  echo "$as_me: failed program was:" >&5
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
7348  # Broken: fails on valid input.
7349continue
7350fi
7351rm -f conftest.err conftest.$ac_ext
7352
7353  # OK, works on sane cases.  Now check whether non-existent headers
7354  # can be detected and how.
7355  cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h.  */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h.  */
7361#include <ac_nonexistent.h>
7362_ACEOF
7363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365  ac_status=$?
7366  grep -v '^ *+' conftest.er1 >conftest.err
7367  rm -f conftest.er1
7368  cat conftest.err >&5
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } >/dev/null; then
7371  if test -s conftest.err; then
7372    ac_cpp_err=$ac_cxx_preproc_warn_flag
7373    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7374  else
7375    ac_cpp_err=
7376  fi
7377else
7378  ac_cpp_err=yes
7379fi
7380if test -z "$ac_cpp_err"; then
7381  # Broken: success on invalid input.
7382continue
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387  # Passes both tests.
7388ac_preproc_ok=:
7389break
7390fi
7391rm -f conftest.err conftest.$ac_ext
7392
7393done
7394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7395rm -f conftest.err conftest.$ac_ext
7396if $ac_preproc_ok; then
7397  :
7398else
7399  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7400See \`config.log' for more details." >&5
7401echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7402See \`config.log' for more details." >&2;}
7403   { (exit 1); exit 1; }; }
7404fi
7405
7406ac_ext=cc
7407ac_cpp='$CXXCPP $CPPFLAGS'
7408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7411
7412fi
7413
7414
7415# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7416
7417# find the maximum length of command line arguments
7418echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7419echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7420if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7421  echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423    i=0
7424  teststring="ABCD"
7425
7426  case $build_os in
7427  msdosdjgpp*)
7428    # On DJGPP, this test can blow up pretty badly due to problems in libc
7429    # (any single argument exceeding 2000 bytes causes a buffer overrun
7430    # during glob expansion).  Even if it were fixed, the result of this
7431    # check would be larger than it should be.
7432    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7433    ;;
7434
7435  gnu*)
7436    # Under GNU Hurd, this test is not required because there is
7437    # no limit to the length of command line arguments.
7438    # Libtool will interpret -1 as no limit whatsoever
7439    lt_cv_sys_max_cmd_len=-1;
7440    ;;
7441
7442  cygwin* | mingw*)
7443    # On Win9x/ME, this test blows up -- it succeeds, but takes
7444    # about 5 minutes as the teststring grows exponentially.
7445    # Worse, since 9x/ME are not pre-emptively multitasking,
7446    # you end up with a "frozen" computer, even though with patience
7447    # the test eventually succeeds (with a max line length of 256k).
7448    # Instead, let's just punt: use the minimum linelength reported by
7449    # all of the supported platforms: 8192 (on NT/2K/XP).
7450    lt_cv_sys_max_cmd_len=8192;
7451    ;;
7452
7453  amigaos*)
7454    # On AmigaOS with pdksh, this test takes hours, literally.
7455    # So we just punt and use a minimum line length of 8192.
7456    lt_cv_sys_max_cmd_len=8192;
7457    ;;
7458
7459  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7460    # This has been around since 386BSD, at least.  Likely further.
7461    if test -x /sbin/sysctl; then
7462      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7463    elif test -x /usr/sbin/sysctl; then
7464      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7465    else
7466      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7467    fi
7468    # And add a safety zone
7469    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7470    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7471    ;;
7472
7473  interix*)
7474    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7475    lt_cv_sys_max_cmd_len=196608
7476    ;;
7477
7478  osf*)
7479    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7480    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7481    # nice to cause kernel panics so lets avoid the loop below.
7482    # First set a reasonable default.
7483    lt_cv_sys_max_cmd_len=16384
7484    #
7485    if test -x /sbin/sysconfig; then
7486      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7487        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7488      esac
7489    fi
7490    ;;
7491  sco3.2v5*)
7492    lt_cv_sys_max_cmd_len=102400
7493    ;;
7494  sysv5* | sco5v6* | sysv4.2uw2*)
7495    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7496    if test -n "$kargmax"; then
7497      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7498    else
7499      lt_cv_sys_max_cmd_len=32768
7500    fi
7501    ;;
7502  *)
7503    # If test is not a shell built-in, we'll probably end up computing a
7504    # maximum length that is only half of the actual maximum length, but
7505    # we can't tell.
7506    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7507    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7508	       = "XX$teststring") >/dev/null 2>&1 &&
7509	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7510	    lt_cv_sys_max_cmd_len=$new_result &&
7511	    test $i != 17 # 1/2 MB should be enough
7512    do
7513      i=`expr $i + 1`
7514      teststring=$teststring$teststring
7515    done
7516    teststring=
7517    # Add a significant safety factor because C++ compilers can tack on massive
7518    # amounts of additional arguments before passing them to the linker.
7519    # It appears as though 1/2 is a usable value.
7520    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7521    ;;
7522  esac
7523
7524fi
7525
7526if test -n $lt_cv_sys_max_cmd_len ; then
7527  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7528echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7529else
7530  echo "$as_me:$LINENO: result: none" >&5
7531echo "${ECHO_T}none" >&6
7532fi
7533
7534
7535
7536
7537# Check for command to grab the raw symbol name followed by C symbol from nm.
7538echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7539echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7540if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7541  echo $ECHO_N "(cached) $ECHO_C" >&6
7542else
7543
7544# These are sane defaults that work on at least a few old systems.
7545# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7546
7547# Character class describing NM global symbol codes.
7548symcode='[BCDEGRST]'
7549
7550# Regexp to match symbols that can be accessed directly from C.
7551sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7552
7553# Transform an extracted symbol line into a proper C declaration
7554lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7555
7556# Transform an extracted symbol line into symbol name and symbol address
7557lt_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'"
7558
7559# Define system-specific variables.
7560case $host_os in
7561aix*)
7562  symcode='[BCDT]'
7563  ;;
7564cygwin* | mingw* | pw32*)
7565  symcode='[ABCDGISTW]'
7566  ;;
7567hpux*) # Its linker distinguishes data from code symbols
7568  if test "$host_cpu" = ia64; then
7569    symcode='[ABCDEGRST]'
7570  fi
7571  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7572  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'"
7573  ;;
7574linux*)
7575  if test "$host_cpu" = ia64; then
7576    symcode='[ABCDGIRSTW]'
7577    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7578    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'"
7579  fi
7580  ;;
7581irix* | nonstopux*)
7582  symcode='[BCDEGRST]'
7583  ;;
7584osf*)
7585  symcode='[BCDEGQRST]'
7586  ;;
7587solaris*)
7588  symcode='[BDRT]'
7589  ;;
7590sco3.2v5*)
7591  symcode='[DT]'
7592  ;;
7593sysv4.2uw2*)
7594  symcode='[DT]'
7595  ;;
7596sysv5* | sco5v6* | unixware* | OpenUNIX*)
7597  symcode='[ABDT]'
7598  ;;
7599sysv4)
7600  symcode='[DFNSTU]'
7601  ;;
7602esac
7603
7604# Handle CRLF in mingw tool chain
7605opt_cr=
7606case $build_os in
7607mingw*)
7608  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7609  ;;
7610esac
7611
7612# If we're using GNU nm, then use its standard symbol codes.
7613case `$NM -V 2>&1` in
7614*GNU* | *'with BFD'*)
7615  symcode='[ABCDGIRSTW]' ;;
7616esac
7617
7618# Try without a prefix undercore, then with it.
7619for ac_symprfx in "" "_"; do
7620
7621  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7622  symxfrm="\\1 $ac_symprfx\\2 \\2"
7623
7624  # Write the raw and C identifiers.
7625  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7626
7627  # Check to see that the pipe works correctly.
7628  pipe_works=no
7629
7630  rm -f conftest*
7631  cat > conftest.$ac_ext <<EOF
7632#ifdef __cplusplus
7633extern "C" {
7634#endif
7635char nm_test_var;
7636void nm_test_func(){}
7637#ifdef __cplusplus
7638}
7639#endif
7640int main(){nm_test_var='a';nm_test_func();return(0);}
7641EOF
7642
7643  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644  (eval $ac_compile) 2>&5
7645  ac_status=$?
7646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647  (exit $ac_status); }; then
7648    # Now try to grab the symbols.
7649    nlist=conftest.nm
7650    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7651  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7652  ac_status=$?
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); } && test -s "$nlist"; then
7655      # Try sorting and uniquifying the output.
7656      if sort "$nlist" | uniq > "$nlist"T; then
7657	mv -f "$nlist"T "$nlist"
7658      else
7659	rm -f "$nlist"T
7660      fi
7661
7662      # Make sure that we snagged all the symbols we need.
7663      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7664	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7665	  cat <<EOF > conftest.$ac_ext
7666#ifdef __cplusplus
7667extern "C" {
7668#endif
7669
7670EOF
7671	  # Now generate the symbol file.
7672	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7673
7674	  cat <<EOF >> conftest.$ac_ext
7675#if defined (__STDC__) && __STDC__
7676# define lt_ptr_t void *
7677#else
7678# define lt_ptr_t char *
7679# define const
7680#endif
7681
7682/* The mapping between symbol names and symbols. */
7683const struct {
7684  const char *name;
7685  lt_ptr_t address;
7686}
7687lt_preloaded_symbols[] =
7688{
7689EOF
7690	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7691	  cat <<\EOF >> conftest.$ac_ext
7692  {0, (lt_ptr_t) 0}
7693};
7694
7695#ifdef __cplusplus
7696}
7697#endif
7698EOF
7699	  # Now try linking the two files.
7700	  mv conftest.$ac_objext conftstm.$ac_objext
7701	  lt_save_LIBS="$LIBS"
7702	  lt_save_CFLAGS="$CFLAGS"
7703	  LIBS="conftstm.$ac_objext"
7704	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7705	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706  (eval $ac_link) 2>&5
7707  ac_status=$?
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7710	    pipe_works=yes
7711	  fi
7712	  LIBS="$lt_save_LIBS"
7713	  CFLAGS="$lt_save_CFLAGS"
7714	else
7715	  echo "cannot find nm_test_func in $nlist" >&5
7716	fi
7717      else
7718	echo "cannot find nm_test_var in $nlist" >&5
7719      fi
7720    else
7721      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7722    fi
7723  else
7724    echo "$progname: failed program was:" >&5
7725    cat conftest.$ac_ext >&5
7726  fi
7727  rm -f conftest* conftst*
7728
7729  # Do not use the global_symbol_pipe unless it works.
7730  if test "$pipe_works" = yes; then
7731    break
7732  else
7733    lt_cv_sys_global_symbol_pipe=
7734  fi
7735done
7736
7737fi
7738
7739if test -z "$lt_cv_sys_global_symbol_pipe"; then
7740  lt_cv_sys_global_symbol_to_cdecl=
7741fi
7742if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7743  echo "$as_me:$LINENO: result: failed" >&5
7744echo "${ECHO_T}failed" >&6
7745else
7746  echo "$as_me:$LINENO: result: ok" >&5
7747echo "${ECHO_T}ok" >&6
7748fi
7749
7750echo "$as_me:$LINENO: checking for objdir" >&5
7751echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7752if test "${lt_cv_objdir+set}" = set; then
7753  echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755  rm -f .libs 2>/dev/null
7756mkdir .libs 2>/dev/null
7757if test -d .libs; then
7758  lt_cv_objdir=.libs
7759else
7760  # MS-DOS does not allow filenames that begin with a dot.
7761  lt_cv_objdir=_libs
7762fi
7763rmdir .libs 2>/dev/null
7764fi
7765echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7766echo "${ECHO_T}$lt_cv_objdir" >&6
7767objdir=$lt_cv_objdir
7768
7769
7770
7771
7772
7773case $host_os in
7774aix3*)
7775  # AIX sometimes has problems with the GCC collect2 program.  For some
7776  # reason, if we set the COLLECT_NAMES environment variable, the problems
7777  # vanish in a puff of smoke.
7778  if test "X${COLLECT_NAMES+set}" != Xset; then
7779    COLLECT_NAMES=
7780    export COLLECT_NAMES
7781  fi
7782  ;;
7783esac
7784
7785# Sed substitution that helps us do robust quoting.  It backslashifies
7786# metacharacters that are still active within double-quoted strings.
7787Xsed='sed -e 1s/^X//'
7788sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7789
7790# Same as above, but do not quote variable references.
7791double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7792
7793# Sed substitution to delay expansion of an escaped shell variable in a
7794# double_quote_subst'ed string.
7795delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7796
7797# Sed substitution to avoid accidental globbing in evaled expressions
7798no_glob_subst='s/\*/\\\*/g'
7799
7800# Constants:
7801rm="rm -f"
7802
7803# Global variables:
7804default_ofile=libtool
7805can_build_shared=yes
7806
7807# All known linkers require a `.a' archive for static linking (except MSVC,
7808# which needs '.lib').
7809libext=a
7810ltmain="$ac_aux_dir/ltmain.sh"
7811ofile="$default_ofile"
7812with_gnu_ld="$lt_cv_prog_gnu_ld"
7813
7814if test -n "$ac_tool_prefix"; then
7815  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7816set dummy ${ac_tool_prefix}ar; ac_word=$2
7817echo "$as_me:$LINENO: checking for $ac_word" >&5
7818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819if test "${ac_cv_prog_AR+set}" = set; then
7820  echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822  if test -n "$AR"; then
7823  ac_cv_prog_AR="$AR" # Let the user override the test.
7824else
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828  IFS=$as_save_IFS
7829  test -z "$as_dir" && as_dir=.
7830  for ac_exec_ext in '' $ac_executable_extensions; do
7831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_AR="${ac_tool_prefix}ar"
7833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837done
7838
7839fi
7840fi
7841AR=$ac_cv_prog_AR
7842if test -n "$AR"; then
7843  echo "$as_me:$LINENO: result: $AR" >&5
7844echo "${ECHO_T}$AR" >&6
7845else
7846  echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6
7848fi
7849
7850fi
7851if test -z "$ac_cv_prog_AR"; then
7852  ac_ct_AR=$AR
7853  # Extract the first word of "ar", so it can be a program name with args.
7854set dummy ar; ac_word=$2
7855echo "$as_me:$LINENO: checking for $ac_word" >&5
7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7857if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  if test -n "$ac_ct_AR"; then
7861  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7862else
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866  IFS=$as_save_IFS
7867  test -z "$as_dir" && as_dir=.
7868  for ac_exec_ext in '' $ac_executable_extensions; do
7869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870    ac_cv_prog_ac_ct_AR="ar"
7871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872    break 2
7873  fi
7874done
7875done
7876
7877  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7878fi
7879fi
7880ac_ct_AR=$ac_cv_prog_ac_ct_AR
7881if test -n "$ac_ct_AR"; then
7882  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7883echo "${ECHO_T}$ac_ct_AR" >&6
7884else
7885  echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6
7887fi
7888
7889  AR=$ac_ct_AR
7890else
7891  AR="$ac_cv_prog_AR"
7892fi
7893
7894if test -n "$ac_tool_prefix"; then
7895  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7897echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899if test "${ac_cv_prog_RANLIB+set}" = set; then
7900  echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902  if test -n "$RANLIB"; then
7903  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  test -z "$as_dir" && as_dir=.
7910  for ac_exec_ext in '' $ac_executable_extensions; do
7911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914    break 2
7915  fi
7916done
7917done
7918
7919fi
7920fi
7921RANLIB=$ac_cv_prog_RANLIB
7922if test -n "$RANLIB"; then
7923  echo "$as_me:$LINENO: result: $RANLIB" >&5
7924echo "${ECHO_T}$RANLIB" >&6
7925else
7926  echo "$as_me:$LINENO: result: no" >&5
7927echo "${ECHO_T}no" >&6
7928fi
7929
7930fi
7931if test -z "$ac_cv_prog_RANLIB"; then
7932  ac_ct_RANLIB=$RANLIB
7933  # Extract the first word of "ranlib", so it can be a program name with args.
7934set dummy ranlib; ac_word=$2
7935echo "$as_me:$LINENO: checking for $ac_word" >&5
7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7937if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7938  echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940  if test -n "$ac_ct_RANLIB"; then
7941  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946  IFS=$as_save_IFS
7947  test -z "$as_dir" && as_dir=.
7948  for ac_exec_ext in '' $ac_executable_extensions; do
7949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950    ac_cv_prog_ac_ct_RANLIB="ranlib"
7951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952    break 2
7953  fi
7954done
7955done
7956
7957  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7958fi
7959fi
7960ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7961if test -n "$ac_ct_RANLIB"; then
7962  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7963echo "${ECHO_T}$ac_ct_RANLIB" >&6
7964else
7965  echo "$as_me:$LINENO: result: no" >&5
7966echo "${ECHO_T}no" >&6
7967fi
7968
7969  RANLIB=$ac_ct_RANLIB
7970else
7971  RANLIB="$ac_cv_prog_RANLIB"
7972fi
7973
7974if test -n "$ac_tool_prefix"; then
7975  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}strip; ac_word=$2
7977echo "$as_me:$LINENO: checking for $ac_word" >&5
7978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7979if test "${ac_cv_prog_STRIP+set}" = set; then
7980  echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982  if test -n "$STRIP"; then
7983  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990  for ac_exec_ext in '' $ac_executable_extensions; do
7991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997done
7998
7999fi
8000fi
8001STRIP=$ac_cv_prog_STRIP
8002if test -n "$STRIP"; then
8003  echo "$as_me:$LINENO: result: $STRIP" >&5
8004echo "${ECHO_T}$STRIP" >&6
8005else
8006  echo "$as_me:$LINENO: result: no" >&5
8007echo "${ECHO_T}no" >&6
8008fi
8009
8010fi
8011if test -z "$ac_cv_prog_STRIP"; then
8012  ac_ct_STRIP=$STRIP
8013  # Extract the first word of "strip", so it can be a program name with args.
8014set dummy strip; ac_word=$2
8015echo "$as_me:$LINENO: checking for $ac_word" >&5
8016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8017if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8018  echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020  if test -n "$ac_ct_STRIP"; then
8021  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026  IFS=$as_save_IFS
8027  test -z "$as_dir" && as_dir=.
8028  for ac_exec_ext in '' $ac_executable_extensions; do
8029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030    ac_cv_prog_ac_ct_STRIP="strip"
8031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032    break 2
8033  fi
8034done
8035done
8036
8037  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8038fi
8039fi
8040ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8041if test -n "$ac_ct_STRIP"; then
8042  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8043echo "${ECHO_T}$ac_ct_STRIP" >&6
8044else
8045  echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
8047fi
8048
8049  STRIP=$ac_ct_STRIP
8050else
8051  STRIP="$ac_cv_prog_STRIP"
8052fi
8053
8054
8055old_CC="$CC"
8056old_CFLAGS="$CFLAGS"
8057
8058# Set sane defaults for various variables
8059test -z "$AR" && AR=ar
8060test -z "$AR_FLAGS" && AR_FLAGS=cru
8061test -z "$AS" && AS=as
8062test -z "$CC" && CC=cc
8063test -z "$LTCC" && LTCC=$CC
8064test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8065test -z "$DLLTOOL" && DLLTOOL=dlltool
8066test -z "$LD" && LD=ld
8067test -z "$LN_S" && LN_S="ln -s"
8068test -z "$MAGIC_CMD" && MAGIC_CMD=file
8069test -z "$NM" && NM=nm
8070test -z "$SED" && SED=sed
8071test -z "$OBJDUMP" && OBJDUMP=objdump
8072test -z "$RANLIB" && RANLIB=:
8073test -z "$STRIP" && STRIP=:
8074test -z "$ac_objext" && ac_objext=o
8075
8076# Determine commands to create old-style static archives.
8077old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8078old_postinstall_cmds='chmod 644 $oldlib'
8079old_postuninstall_cmds=
8080
8081if test -n "$RANLIB"; then
8082  case $host_os in
8083  openbsd*)
8084    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8085    ;;
8086  *)
8087    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8088    ;;
8089  esac
8090  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8091fi
8092
8093for cc_temp in $compiler""; do
8094  case $cc_temp in
8095    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8096    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8097    \-*) ;;
8098    *) break;;
8099  esac
8100done
8101cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8102
8103
8104# Only perform the check for file, if the check method requires it
8105case $deplibs_check_method in
8106file_magic*)
8107  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8108    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8109echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8110if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8111  echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113  case $MAGIC_CMD in
8114[\\/*] |  ?:[\\/]*)
8115  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8116  ;;
8117*)
8118  lt_save_MAGIC_CMD="$MAGIC_CMD"
8119  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8120  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8121  for ac_dir in $ac_dummy; do
8122    IFS="$lt_save_ifs"
8123    test -z "$ac_dir" && ac_dir=.
8124    if test -f $ac_dir/${ac_tool_prefix}file; then
8125      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8126      if test -n "$file_magic_test_file"; then
8127	case $deplibs_check_method in
8128	"file_magic "*)
8129	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8130	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8131	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8132	    $EGREP "$file_magic_regex" > /dev/null; then
8133	    :
8134	  else
8135	    cat <<EOF 1>&2
8136
8137*** Warning: the command libtool uses to detect shared libraries,
8138*** $file_magic_cmd, produces output that libtool cannot recognize.
8139*** The result is that libtool may fail to recognize shared libraries
8140*** as such.  This will affect the creation of libtool libraries that
8141*** depend on shared libraries, but programs linked with such libtool
8142*** libraries will work regardless of this problem.  Nevertheless, you
8143*** may want to report the problem to your system manager and/or to
8144*** bug-libtool@gnu.org
8145
8146EOF
8147	  fi ;;
8148	esac
8149      fi
8150      break
8151    fi
8152  done
8153  IFS="$lt_save_ifs"
8154  MAGIC_CMD="$lt_save_MAGIC_CMD"
8155  ;;
8156esac
8157fi
8158
8159MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8160if test -n "$MAGIC_CMD"; then
8161  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8162echo "${ECHO_T}$MAGIC_CMD" >&6
8163else
8164  echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
8166fi
8167
8168if test -z "$lt_cv_path_MAGIC_CMD"; then
8169  if test -n "$ac_tool_prefix"; then
8170    echo "$as_me:$LINENO: checking for file" >&5
8171echo $ECHO_N "checking for file... $ECHO_C" >&6
8172if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8173  echo $ECHO_N "(cached) $ECHO_C" >&6
8174else
8175  case $MAGIC_CMD in
8176[\\/*] |  ?:[\\/]*)
8177  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8178  ;;
8179*)
8180  lt_save_MAGIC_CMD="$MAGIC_CMD"
8181  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8182  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8183  for ac_dir in $ac_dummy; do
8184    IFS="$lt_save_ifs"
8185    test -z "$ac_dir" && ac_dir=.
8186    if test -f $ac_dir/file; then
8187      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8188      if test -n "$file_magic_test_file"; then
8189	case $deplibs_check_method in
8190	"file_magic "*)
8191	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8192	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8193	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8194	    $EGREP "$file_magic_regex" > /dev/null; then
8195	    :
8196	  else
8197	    cat <<EOF 1>&2
8198
8199*** Warning: the command libtool uses to detect shared libraries,
8200*** $file_magic_cmd, produces output that libtool cannot recognize.
8201*** The result is that libtool may fail to recognize shared libraries
8202*** as such.  This will affect the creation of libtool libraries that
8203*** depend on shared libraries, but programs linked with such libtool
8204*** libraries will work regardless of this problem.  Nevertheless, you
8205*** may want to report the problem to your system manager and/or to
8206*** bug-libtool@gnu.org
8207
8208EOF
8209	  fi ;;
8210	esac
8211      fi
8212      break
8213    fi
8214  done
8215  IFS="$lt_save_ifs"
8216  MAGIC_CMD="$lt_save_MAGIC_CMD"
8217  ;;
8218esac
8219fi
8220
8221MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222if test -n "$MAGIC_CMD"; then
8223  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8224echo "${ECHO_T}$MAGIC_CMD" >&6
8225else
8226  echo "$as_me:$LINENO: result: no" >&5
8227echo "${ECHO_T}no" >&6
8228fi
8229
8230  else
8231    MAGIC_CMD=:
8232  fi
8233fi
8234
8235  fi
8236  ;;
8237esac
8238
8239enable_dlopen=no
8240enable_win32_dll=no
8241
8242# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8243if test "${enable_libtool_lock+set}" = set; then
8244  enableval="$enable_libtool_lock"
8245
8246fi;
8247test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8248
8249
8250# Check whether --with-pic or --without-pic was given.
8251if test "${with_pic+set}" = set; then
8252  withval="$with_pic"
8253  pic_mode="$withval"
8254else
8255  pic_mode=default
8256fi;
8257test -z "$pic_mode" && pic_mode=default
8258
8259# Use C for the default configuration in the libtool script
8260tagname=
8261lt_save_CC="$CC"
8262ac_ext=c
8263ac_cpp='$CPP $CPPFLAGS'
8264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266ac_compiler_gnu=$ac_cv_c_compiler_gnu
8267
8268
8269# Source file extension for C test sources.
8270ac_ext=c
8271
8272# Object file extension for compiled C test sources.
8273objext=o
8274objext=$objext
8275
8276# Code to be used in simple compile tests
8277lt_simple_compile_test_code="int some_variable = 0;\n"
8278
8279# Code to be used in simple link tests
8280lt_simple_link_test_code='int main(){return(0);}\n'
8281
8282
8283# If no C compiler was specified, use CC.
8284LTCC=${LTCC-"$CC"}
8285
8286# If no C compiler flags were specified, use CFLAGS.
8287LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8288
8289# Allow CC to be a program name with arguments.
8290compiler=$CC
8291
8292
8293# save warnings/boilerplate of simple test code
8294ac_outfile=conftest.$ac_objext
8295printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8297_lt_compiler_boilerplate=`cat conftest.err`
8298$rm conftest*
8299
8300ac_outfile=conftest.$ac_objext
8301printf "$lt_simple_link_test_code" >conftest.$ac_ext
8302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8303_lt_linker_boilerplate=`cat conftest.err`
8304$rm conftest*
8305
8306
8307## CAVEAT EMPTOR:
8308## There is no encapsulation within the following macros, do not change
8309## the running order or otherwise move them around unless you know exactly
8310## what you are doing...
8311
8312lt_prog_compiler_no_builtin_flag=
8313
8314if test "$GCC" = yes; then
8315  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8316
8317
8318echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8319echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8320if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8321  echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323  lt_cv_prog_compiler_rtti_exceptions=no
8324  ac_outfile=conftest.$ac_objext
8325   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8326   lt_compiler_flag="-fno-rtti -fno-exceptions"
8327   # Insert the option either (1) after the last *FLAGS variable, or
8328   # (2) before a word containing "conftest.", or (3) at the end.
8329   # Note that $ac_compile itself does not contain backslashes and begins
8330   # with a dollar sign (not a hyphen), so the echo should work correctly.
8331   # The option is referenced via a variable to avoid confusing sed.
8332   lt_compile=`echo "$ac_compile" | $SED \
8333   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335   -e 's:$: $lt_compiler_flag:'`
8336   (eval echo "\"\$as_me:8336: $lt_compile\"" >&5)
8337   (eval "$lt_compile" 2>conftest.err)
8338   ac_status=$?
8339   cat conftest.err >&5
8340   echo "$as_me:8340: \$? = $ac_status" >&5
8341   if (exit $ac_status) && test -s "$ac_outfile"; then
8342     # The compiler can only warn and ignore the option if not recognized
8343     # So say no if there are warnings other than the usual output.
8344     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8345     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8347       lt_cv_prog_compiler_rtti_exceptions=yes
8348     fi
8349   fi
8350   $rm conftest*
8351
8352fi
8353echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8354echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8355
8356if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8357    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8358else
8359    :
8360fi
8361
8362fi
8363
8364lt_prog_compiler_wl=
8365lt_prog_compiler_pic=
8366lt_prog_compiler_static=
8367
8368echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8369echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8370
8371  if test "$GCC" = yes; then
8372    lt_prog_compiler_wl='-Wl,'
8373    lt_prog_compiler_static='-static'
8374
8375    case $host_os in
8376      aix*)
8377      # All AIX code is PIC.
8378      if test "$host_cpu" = ia64; then
8379	# AIX 5 now supports IA64 processor
8380	lt_prog_compiler_static='-Bstatic'
8381      fi
8382      ;;
8383
8384    amigaos*)
8385      # FIXME: we need at least 68020 code to build shared libraries, but
8386      # adding the `-m68020' flag to GCC prevents building anything better,
8387      # like `-m68040'.
8388      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8389      ;;
8390
8391    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8392      # PIC is the default for these OSes.
8393      ;;
8394
8395    mingw* | pw32* | os2*)
8396      # This hack is so that the source file can tell whether it is being
8397      # built for inclusion in a dll (and should export symbols for example).
8398      lt_prog_compiler_pic='-DDLL_EXPORT'
8399      ;;
8400
8401    darwin* | rhapsody*)
8402      # PIC is the default on this platform
8403      # Common symbols not allowed in MH_DYLIB files
8404      lt_prog_compiler_pic='-fno-common'
8405      ;;
8406
8407    interix3*)
8408      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8409      # Instead, we relocate shared libraries at runtime.
8410      ;;
8411
8412    msdosdjgpp*)
8413      # Just because we use GCC doesn't mean we suddenly get shared libraries
8414      # on systems that don't support them.
8415      lt_prog_compiler_can_build_shared=no
8416      enable_shared=no
8417      ;;
8418
8419    sysv4*MP*)
8420      if test -d /usr/nec; then
8421	lt_prog_compiler_pic=-Kconform_pic
8422      fi
8423      ;;
8424
8425    hpux*)
8426      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8427      # not for PA HP-UX.
8428      case $host_cpu in
8429      hppa*64*|ia64*)
8430	# +Z the default
8431	;;
8432      *)
8433	lt_prog_compiler_pic='-fPIC'
8434	;;
8435      esac
8436      ;;
8437
8438    *)
8439      lt_prog_compiler_pic='-fPIC'
8440      ;;
8441    esac
8442  else
8443    # PORTME Check for flag to pass linker flags through the system compiler.
8444    case $host_os in
8445    aix*)
8446      lt_prog_compiler_wl='-Wl,'
8447      if test "$host_cpu" = ia64; then
8448	# AIX 5 now supports IA64 processor
8449	lt_prog_compiler_static='-Bstatic'
8450      else
8451	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8452      fi
8453      ;;
8454      darwin*)
8455        # PIC is the default on this platform
8456        # Common symbols not allowed in MH_DYLIB files
8457       case $cc_basename in
8458         xlc*)
8459         lt_prog_compiler_pic='-qnocommon'
8460         lt_prog_compiler_wl='-Wl,'
8461         ;;
8462       esac
8463       ;;
8464
8465    mingw* | pw32* | os2*)
8466      # This hack is so that the source file can tell whether it is being
8467      # built for inclusion in a dll (and should export symbols for example).
8468      lt_prog_compiler_pic='-DDLL_EXPORT'
8469      ;;
8470
8471    hpux9* | hpux10* | hpux11*)
8472      lt_prog_compiler_wl='-Wl,'
8473      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8474      # not for PA HP-UX.
8475      case $host_cpu in
8476      hppa*64*|ia64*)
8477	# +Z the default
8478	;;
8479      *)
8480	lt_prog_compiler_pic='+Z'
8481	;;
8482      esac
8483      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8484      lt_prog_compiler_static='${wl}-a ${wl}archive'
8485      ;;
8486
8487    irix5* | irix6* | nonstopux*)
8488      lt_prog_compiler_wl='-Wl,'
8489      # PIC (with -KPIC) is the default.
8490      lt_prog_compiler_static='-non_shared'
8491      ;;
8492
8493    newsos6)
8494      lt_prog_compiler_pic='-KPIC'
8495      lt_prog_compiler_static='-Bstatic'
8496      ;;
8497
8498    linux*)
8499      case $cc_basename in
8500      icc* | ecc*)
8501	lt_prog_compiler_wl='-Wl,'
8502	lt_prog_compiler_pic='-KPIC'
8503	lt_prog_compiler_static='-static'
8504        ;;
8505      pgcc* | pgf77* | pgf90* | pgf95*)
8506        # Portland Group compilers (*not* the Pentium gcc compiler,
8507	# which looks to be a dead project)
8508	lt_prog_compiler_wl='-Wl,'
8509	lt_prog_compiler_pic='-fpic'
8510	lt_prog_compiler_static='-Bstatic'
8511        ;;
8512      ccc*)
8513        lt_prog_compiler_wl='-Wl,'
8514        # All Alpha code is PIC.
8515        lt_prog_compiler_static='-non_shared'
8516        ;;
8517      esac
8518      ;;
8519
8520    osf3* | osf4* | osf5*)
8521      lt_prog_compiler_wl='-Wl,'
8522      # All OSF/1 code is PIC.
8523      lt_prog_compiler_static='-non_shared'
8524      ;;
8525
8526    solaris*)
8527      lt_prog_compiler_pic='-KPIC'
8528      lt_prog_compiler_static='-Bstatic'
8529      case $cc_basename in
8530      f77* | f90* | f95*)
8531	lt_prog_compiler_wl='-Qoption ld ';;
8532      *)
8533	lt_prog_compiler_wl='-Wl,';;
8534      esac
8535      ;;
8536
8537    sunos4*)
8538      lt_prog_compiler_wl='-Qoption ld '
8539      lt_prog_compiler_pic='-PIC'
8540      lt_prog_compiler_static='-Bstatic'
8541      ;;
8542
8543    sysv4 | sysv4.2uw2* | sysv4.3*)
8544      lt_prog_compiler_wl='-Wl,'
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    sysv4*MP*)
8550      if test -d /usr/nec ;then
8551	lt_prog_compiler_pic='-Kconform_pic'
8552	lt_prog_compiler_static='-Bstatic'
8553      fi
8554      ;;
8555
8556    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8557      lt_prog_compiler_wl='-Wl,'
8558      lt_prog_compiler_pic='-KPIC'
8559      lt_prog_compiler_static='-Bstatic'
8560      ;;
8561
8562    unicos*)
8563      lt_prog_compiler_wl='-Wl,'
8564      lt_prog_compiler_can_build_shared=no
8565      ;;
8566
8567    uts4*)
8568      lt_prog_compiler_pic='-pic'
8569      lt_prog_compiler_static='-Bstatic'
8570      ;;
8571
8572    *)
8573      lt_prog_compiler_can_build_shared=no
8574      ;;
8575    esac
8576  fi
8577
8578echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8579echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8580
8581#
8582# Check to make sure the PIC flag actually works.
8583#
8584if test -n "$lt_prog_compiler_pic"; then
8585
8586echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8587echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8588if test "${lt_prog_compiler_pic_works+set}" = set; then
8589  echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591  lt_prog_compiler_pic_works=no
8592  ac_outfile=conftest.$ac_objext
8593   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8594   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8595   # Insert the option either (1) after the last *FLAGS variable, or
8596   # (2) before a word containing "conftest.", or (3) at the end.
8597   # Note that $ac_compile itself does not contain backslashes and begins
8598   # with a dollar sign (not a hyphen), so the echo should work correctly.
8599   # The option is referenced via a variable to avoid confusing sed.
8600   lt_compile=`echo "$ac_compile" | $SED \
8601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603   -e 's:$: $lt_compiler_flag:'`
8604   (eval echo "\"\$as_me:8604: $lt_compile\"" >&5)
8605   (eval "$lt_compile" 2>conftest.err)
8606   ac_status=$?
8607   cat conftest.err >&5
8608   echo "$as_me:8608: \$? = $ac_status" >&5
8609   if (exit $ac_status) && test -s "$ac_outfile"; then
8610     # The compiler can only warn and ignore the option if not recognized
8611     # So say no if there are warnings other than the usual output.
8612     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8613     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615       lt_prog_compiler_pic_works=yes
8616     fi
8617   fi
8618   $rm conftest*
8619
8620fi
8621echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8622echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8623
8624if test x"$lt_prog_compiler_pic_works" = xyes; then
8625    case $lt_prog_compiler_pic in
8626     "" | " "*) ;;
8627     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8628     esac
8629else
8630    lt_prog_compiler_pic=
8631     lt_prog_compiler_can_build_shared=no
8632fi
8633
8634fi
8635case $host_os in
8636  # For platforms which do not support PIC, -DPIC is meaningless:
8637  *djgpp*)
8638    lt_prog_compiler_pic=
8639    ;;
8640  *)
8641    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8642    ;;
8643esac
8644
8645#
8646# Check to make sure the static flag actually works.
8647#
8648wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8649echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8650echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8651if test "${lt_prog_compiler_static_works+set}" = set; then
8652  echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654  lt_prog_compiler_static_works=no
8655   save_LDFLAGS="$LDFLAGS"
8656   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8657   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8658   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8659     # The linker can only warn and ignore the option if not recognized
8660     # So say no if there are warnings
8661     if test -s conftest.err; then
8662       # Append any errors to the config.log.
8663       cat conftest.err 1>&5
8664       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8665       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8666       if diff conftest.exp conftest.er2 >/dev/null; then
8667         lt_prog_compiler_static_works=yes
8668       fi
8669     else
8670       lt_prog_compiler_static_works=yes
8671     fi
8672   fi
8673   $rm conftest*
8674   LDFLAGS="$save_LDFLAGS"
8675
8676fi
8677echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8678echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8679
8680if test x"$lt_prog_compiler_static_works" = xyes; then
8681    :
8682else
8683    lt_prog_compiler_static=
8684fi
8685
8686
8687echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8688echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8689if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8690  echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692  lt_cv_prog_compiler_c_o=no
8693   $rm -r conftest 2>/dev/null
8694   mkdir conftest
8695   cd conftest
8696   mkdir out
8697   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8698
8699   lt_compiler_flag="-o out/conftest2.$ac_objext"
8700   # Insert the option either (1) after the last *FLAGS variable, or
8701   # (2) before a word containing "conftest.", or (3) at the end.
8702   # Note that $ac_compile itself does not contain backslashes and begins
8703   # with a dollar sign (not a hyphen), so the echo should work correctly.
8704   lt_compile=`echo "$ac_compile" | $SED \
8705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8707   -e 's:$: $lt_compiler_flag:'`
8708   (eval echo "\"\$as_me:8708: $lt_compile\"" >&5)
8709   (eval "$lt_compile" 2>out/conftest.err)
8710   ac_status=$?
8711   cat out/conftest.err >&5
8712   echo "$as_me:8712: \$? = $ac_status" >&5
8713   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8714   then
8715     # The compiler can only warn and ignore the option if not recognized
8716     # So say no if there are warnings
8717     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8718     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8719     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8720       lt_cv_prog_compiler_c_o=yes
8721     fi
8722   fi
8723   chmod u+w . 2>&5
8724   $rm conftest*
8725   # SGI C++ compiler will create directory out/ii_files/ for
8726   # template instantiation
8727   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8728   $rm out/* && rmdir out
8729   cd ..
8730   rmdir conftest
8731   $rm conftest*
8732
8733fi
8734echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8735echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8736
8737
8738hard_links="nottested"
8739if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8740  # do not overwrite the value of need_locks provided by the user
8741  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8742echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8743  hard_links=yes
8744  $rm conftest*
8745  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8746  touch conftest.a
8747  ln conftest.a conftest.b 2>&5 || hard_links=no
8748  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8749  echo "$as_me:$LINENO: result: $hard_links" >&5
8750echo "${ECHO_T}$hard_links" >&6
8751  if test "$hard_links" = no; then
8752    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8753echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8754    need_locks=warn
8755  fi
8756else
8757  need_locks=no
8758fi
8759
8760echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8761echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8762
8763  runpath_var=
8764  allow_undefined_flag=
8765  enable_shared_with_static_runtimes=no
8766  archive_cmds=
8767  archive_expsym_cmds=
8768  old_archive_From_new_cmds=
8769  old_archive_from_expsyms_cmds=
8770  export_dynamic_flag_spec=
8771  whole_archive_flag_spec=
8772  thread_safe_flag_spec=
8773  hardcode_libdir_flag_spec=
8774  hardcode_libdir_flag_spec_ld=
8775  hardcode_libdir_separator=
8776  hardcode_direct=no
8777  hardcode_minus_L=no
8778  hardcode_shlibpath_var=unsupported
8779  link_all_deplibs=unknown
8780  hardcode_automatic=no
8781  module_cmds=
8782  module_expsym_cmds=
8783  always_export_symbols=no
8784  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8785  # include_expsyms should be a list of space-separated symbols to be *always*
8786  # included in the symbol list
8787  include_expsyms=
8788  # exclude_expsyms can be an extended regexp of symbols to exclude
8789  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8790  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8791  # as well as any symbol that contains `d'.
8792  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8793  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8794  # platforms (ab)use it in PIC code, but their linkers get confused if
8795  # the symbol is explicitly referenced.  Since portable code cannot
8796  # rely on this symbol name, it's probably fine to never include it in
8797  # preloaded symbol tables.
8798  extract_expsyms_cmds=
8799  # Just being paranoid about ensuring that cc_basename is set.
8800  for cc_temp in $compiler""; do
8801  case $cc_temp in
8802    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8803    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8804    \-*) ;;
8805    *) break;;
8806  esac
8807done
8808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8809
8810  case $host_os in
8811  cygwin* | mingw* | pw32*)
8812    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8813    # When not using gcc, we currently assume that we are using
8814    # Microsoft Visual C++.
8815    if test "$GCC" != yes; then
8816      with_gnu_ld=no
8817    fi
8818    ;;
8819  interix*)
8820    # we just hope/assume this is gcc and not c89 (= MSVC++)
8821    with_gnu_ld=yes
8822    ;;
8823  openbsd*)
8824    with_gnu_ld=no
8825    ;;
8826  esac
8827
8828  ld_shlibs=yes
8829  if test "$with_gnu_ld" = yes; then
8830    # If archive_cmds runs LD, not CC, wlarc should be empty
8831    wlarc='${wl}'
8832
8833    # Set some defaults for GNU ld with shared library support. These
8834    # are reset later if shared libraries are not supported. Putting them
8835    # here allows them to be overridden if necessary.
8836    runpath_var=LD_RUN_PATH
8837    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8838    export_dynamic_flag_spec='${wl}--export-dynamic'
8839    # ancient GNU ld didn't support --whole-archive et. al.
8840    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8841	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8842      else
8843  	whole_archive_flag_spec=
8844    fi
8845    supports_anon_versioning=no
8846    case `$LD -v 2>/dev/null` in
8847      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8848      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8849      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8850      *\ 2.11.*) ;; # other 2.11 versions
8851      *) supports_anon_versioning=yes ;;
8852    esac
8853
8854    # See if GNU ld supports shared libraries.
8855    case $host_os in
8856    aix3* | aix4* | aix5*)
8857      # On AIX/PPC, the GNU linker is very broken
8858      if test "$host_cpu" != ia64; then
8859	ld_shlibs=no
8860	cat <<EOF 1>&2
8861
8862*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8863*** to be unable to reliably create shared libraries on AIX.
8864*** Therefore, libtool is disabling shared libraries support.  If you
8865*** really care for shared libraries, you may want to modify your PATH
8866*** so that a non-GNU linker is found, and then restart.
8867
8868EOF
8869      fi
8870      ;;
8871
8872    amigaos*)
8873      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)'
8874      hardcode_libdir_flag_spec='-L$libdir'
8875      hardcode_minus_L=yes
8876
8877      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8878      # that the semantics of dynamic libraries on AmigaOS, at least up
8879      # to version 4, is to share data among multiple programs linked
8880      # with the same dynamic library.  Since this doesn't match the
8881      # behavior of shared libraries on other platforms, we can't use
8882      # them.
8883      ld_shlibs=no
8884      ;;
8885
8886    beos*)
8887      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8888	allow_undefined_flag=unsupported
8889	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8890	# support --undefined.  This deserves some investigation.  FIXME
8891	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892      else
8893	ld_shlibs=no
8894      fi
8895      ;;
8896
8897    cygwin* | mingw* | pw32*)
8898      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8899      # as there is no search path for DLLs.
8900      hardcode_libdir_flag_spec='-L$libdir'
8901      allow_undefined_flag=unsupported
8902      always_export_symbols=no
8903      enable_shared_with_static_runtimes=yes
8904      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8905
8906      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8907        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908	# If the export-symbols file already is a .def file (1st line
8909	# is EXPORTS), use it as is; otherwise, prepend...
8910	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8911	  cp $export_symbols $output_objdir/$soname.def;
8912	else
8913	  echo EXPORTS > $output_objdir/$soname.def;
8914	  cat $export_symbols >> $output_objdir/$soname.def;
8915	fi~
8916	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8917      else
8918	ld_shlibs=no
8919      fi
8920      ;;
8921
8922    interix3*)
8923      hardcode_direct=no
8924      hardcode_shlibpath_var=no
8925      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926      export_dynamic_flag_spec='${wl}-E'
8927      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8928      # Instead, shared libraries are loaded at an image base (0x10000000 by
8929      # default) and relocated if they conflict, which is a slow very memory
8930      # consuming and fragmenting process.  To avoid this, we pick a random,
8931      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8932      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8933      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8934      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'
8935      ;;
8936
8937    linux*)
8938      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8939	tmp_addflag=
8940	case $cc_basename,$host_cpu in
8941	pgcc*)				# Portland Group C compiler
8942	  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'
8943	  tmp_addflag=' $pic_flag'
8944	  ;;
8945	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8946	  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'
8947	  tmp_addflag=' $pic_flag -Mnomain' ;;
8948	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8949	  tmp_addflag=' -i_dynamic' ;;
8950	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8951	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8952	ifc* | ifort*)			# Intel Fortran compiler
8953	  tmp_addflag=' -nofor_main' ;;
8954	esac
8955	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956
8957	if test $supports_anon_versioning = yes; then
8958	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8959  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8960  $echo "local: *; };" >> $output_objdir/$libname.ver~
8961	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8962	fi
8963      else
8964	ld_shlibs=no
8965      fi
8966      ;;
8967
8968    netbsd*)
8969      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8970	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8971	wlarc=
8972      else
8973	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975      fi
8976      ;;
8977
8978    solaris*)
8979      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8980	ld_shlibs=no
8981	cat <<EOF 1>&2
8982
8983*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8984*** create shared libraries on Solaris systems.  Therefore, libtool
8985*** is disabling shared libraries support.  We urge you to upgrade GNU
8986*** binutils to release 2.9.1 or newer.  Another option is to modify
8987*** your PATH or compiler configuration so that the native linker is
8988*** used, and then restart.
8989
8990EOF
8991      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8992	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994      else
8995	ld_shlibs=no
8996      fi
8997      ;;
8998
8999    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9000      case `$LD -v 2>&1` in
9001        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9002	ld_shlibs=no
9003	cat <<_LT_EOF 1>&2
9004
9005*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9006*** reliably create shared libraries on SCO systems.  Therefore, libtool
9007*** is disabling shared libraries support.  We urge you to upgrade GNU
9008*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9009*** your PATH or compiler configuration so that the native linker is
9010*** used, and then restart.
9011
9012_LT_EOF
9013	;;
9014	*)
9015	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9016	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9017	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9018	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9019	  else
9020	    ld_shlibs=no
9021	  fi
9022	;;
9023      esac
9024      ;;
9025
9026    sunos4*)
9027      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028      wlarc=
9029      hardcode_direct=yes
9030      hardcode_shlibpath_var=no
9031      ;;
9032
9033    *)
9034      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9035	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037      else
9038	ld_shlibs=no
9039      fi
9040      ;;
9041    esac
9042
9043    if test "$ld_shlibs" = no; then
9044      runpath_var=
9045      hardcode_libdir_flag_spec=
9046      export_dynamic_flag_spec=
9047      whole_archive_flag_spec=
9048    fi
9049  else
9050    # PORTME fill in a description of your system's linker (not GNU ld)
9051    case $host_os in
9052    aix3*)
9053      allow_undefined_flag=unsupported
9054      always_export_symbols=yes
9055      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'
9056      # Note: this linker hardcodes the directories in LIBPATH if there
9057      # are no directories specified by -L.
9058      hardcode_minus_L=yes
9059      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9060	# Neither direct hardcoding nor static linking is supported with a
9061	# broken collect2.
9062	hardcode_direct=unsupported
9063      fi
9064      ;;
9065
9066    aix4* | aix5*)
9067      if test "$host_cpu" = ia64; then
9068	# On IA64, the linker does run time linking by default, so we don't
9069	# have to do anything special.
9070	aix_use_runtimelinking=no
9071	exp_sym_flag='-Bexport'
9072	no_entry_flag=""
9073      else
9074	# If we're using GNU nm, then we don't want the "-C" option.
9075	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9076	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9077	  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'
9078	else
9079	  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'
9080	fi
9081	aix_use_runtimelinking=no
9082
9083	# Test if we are trying to use run time linking or normal
9084	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085	# need to do runtime linking.
9086	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9087	  for ld_flag in $LDFLAGS; do
9088  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9089  	    aix_use_runtimelinking=yes
9090  	    break
9091  	  fi
9092	  done
9093	  ;;
9094	esac
9095
9096	exp_sym_flag='-bexport'
9097	no_entry_flag='-bnoentry'
9098      fi
9099
9100      # When large executables or shared objects are built, AIX ld can
9101      # have problems creating the table of contents.  If linking a library
9102      # or program results in "error TOC overflow" add -mminimal-toc to
9103      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9104      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9105
9106      archive_cmds=''
9107      hardcode_direct=yes
9108      hardcode_libdir_separator=':'
9109      link_all_deplibs=yes
9110
9111      if test "$GCC" = yes; then
9112	case $host_os in aix4.[012]|aix4.[012].*)
9113	# We only want to do this on AIX 4.2 and lower, the check
9114	# below for broken collect2 doesn't work under 4.3+
9115	  collect2name=`${CC} -print-prog-name=collect2`
9116	  if test -f "$collect2name" && \
9117  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9118	  then
9119  	  # We have reworked collect2
9120  	  hardcode_direct=yes
9121	  else
9122  	  # We have old collect2
9123  	  hardcode_direct=unsupported
9124  	  # It fails to find uninstalled libraries when the uninstalled
9125  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9126  	  # to unsupported forces relinking
9127  	  hardcode_minus_L=yes
9128  	  hardcode_libdir_flag_spec='-L$libdir'
9129  	  hardcode_libdir_separator=
9130	  fi
9131	  ;;
9132	esac
9133	shared_flag='-shared'
9134	if test "$aix_use_runtimelinking" = yes; then
9135	  shared_flag="$shared_flag "'${wl}-G'
9136	fi
9137      else
9138	# not using gcc
9139	if test "$host_cpu" = ia64; then
9140  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141  	# chokes on -Wl,-G. The following line is correct:
9142	  shared_flag='-G'
9143	else
9144	  if test "$aix_use_runtimelinking" = yes; then
9145	    shared_flag='${wl}-G'
9146	  else
9147	    shared_flag='${wl}-bM:SRE'
9148	  fi
9149	fi
9150      fi
9151
9152      # It seems that -bexpall does not export symbols beginning with
9153      # underscore (_), so it is better to generate a list of symbols to export.
9154      always_export_symbols=yes
9155      if test "$aix_use_runtimelinking" = yes; then
9156	# Warning - without using the other runtime loading flags (-brtl),
9157	# -berok will link without error, but may produce a broken library.
9158	allow_undefined_flag='-berok'
9159       # Determine the default libpath from the value encoded in an empty executable.
9160       cat >conftest.$ac_ext <<_ACEOF
9161/* confdefs.h.  */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h.  */
9166
9167int
9168main ()
9169{
9170
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175rm -f conftest.$ac_objext conftest$ac_exeext
9176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177  (eval $ac_link) 2>conftest.er1
9178  ac_status=$?
9179  grep -v '^ *+' conftest.er1 >conftest.err
9180  rm -f conftest.er1
9181  cat conftest.err >&5
9182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183  (exit $ac_status); } &&
9184	 { ac_try='test -z "$ac_c_werror_flag"
9185			 || test ! -s conftest.err'
9186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187  (eval $ac_try) 2>&5
9188  ac_status=$?
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); }; } &&
9191	 { ac_try='test -s conftest$ac_exeext'
9192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193  (eval $ac_try) 2>&5
9194  ac_status=$?
9195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196  (exit $ac_status); }; }; then
9197
9198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9199}'`
9200# Check for a 64-bit object if we didn't find anything.
9201if 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; }
9202}'`; fi
9203else
9204  echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207fi
9208rm -f conftest.err conftest.$ac_objext \
9209      conftest$ac_exeext conftest.$ac_ext
9210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211
9212       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213	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"
9214       else
9215	if test "$host_cpu" = ia64; then
9216	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9217	  allow_undefined_flag="-z nodefs"
9218	  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"
9219	else
9220	 # Determine the default libpath from the value encoded in an empty executable.
9221	 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h.  */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h.  */
9227
9228int
9229main ()
9230{
9231
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238  (eval $ac_link) 2>conftest.er1
9239  ac_status=$?
9240  grep -v '^ *+' conftest.er1 >conftest.err
9241  rm -f conftest.er1
9242  cat conftest.err >&5
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); } &&
9245	 { ac_try='test -z "$ac_c_werror_flag"
9246			 || test ! -s conftest.err'
9247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248  (eval $ac_try) 2>&5
9249  ac_status=$?
9250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251  (exit $ac_status); }; } &&
9252	 { ac_try='test -s conftest$ac_exeext'
9253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254  (eval $ac_try) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); }; }; then
9258
9259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9260}'`
9261# Check for a 64-bit object if we didn't find anything.
9262if 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; }
9263}'`; fi
9264else
9265  echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
9268fi
9269rm -f conftest.err conftest.$ac_objext \
9270      conftest$ac_exeext conftest.$ac_ext
9271if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9272
9273	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9274	  # Warning - without using the other run time loading flags,
9275	  # -berok will link without error, but may produce a broken library.
9276	  no_undefined_flag=' ${wl}-bernotok'
9277	  allow_undefined_flag=' ${wl}-berok'
9278	  # Exported symbols can be pulled into shared objects from archives
9279	  whole_archive_flag_spec='$convenience'
9280	  archive_cmds_need_lc=yes
9281	  # This is similar to how AIX traditionally builds its shared libraries.
9282	  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'
9283	fi
9284      fi
9285      ;;
9286
9287    amigaos*)
9288      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)'
9289      hardcode_libdir_flag_spec='-L$libdir'
9290      hardcode_minus_L=yes
9291      # see comment about different semantics on the GNU ld section
9292      ld_shlibs=no
9293      ;;
9294
9295    bsdi[45]*)
9296      export_dynamic_flag_spec=-rdynamic
9297      ;;
9298
9299    cygwin* | mingw* | pw32*)
9300      # When not using gcc, we currently assume that we are using
9301      # Microsoft Visual C++.
9302      # hardcode_libdir_flag_spec is actually meaningless, as there is
9303      # no search path for DLLs.
9304      hardcode_libdir_flag_spec=' '
9305      allow_undefined_flag=unsupported
9306      # Tell ltmain to make .lib files, not .a files.
9307      libext=lib
9308      # Tell ltmain to make .dll files, not .so files.
9309      shrext_cmds=".dll"
9310      # FIXME: Setting linknames here is a bad hack.
9311      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9312      # The linker will automatically build a .lib file if we build a DLL.
9313      old_archive_From_new_cmds='true'
9314      # FIXME: Should let the user specify the lib program.
9315      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9316      fix_srcfile_path='`cygpath -w "$srcfile"`'
9317      enable_shared_with_static_runtimes=yes
9318      ;;
9319
9320    darwin* | rhapsody*)
9321      case $host_os in
9322        rhapsody* | darwin1.[012])
9323         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9324         ;;
9325       *) # Darwin 1.3 on
9326         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9327           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9328         else
9329           case ${MACOSX_DEPLOYMENT_TARGET} in
9330             10.[012])
9331               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9332               ;;
9333             10.*)
9334               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9335               ;;
9336           esac
9337         fi
9338         ;;
9339      esac
9340      archive_cmds_need_lc=no
9341      hardcode_direct=no
9342      hardcode_automatic=yes
9343      hardcode_shlibpath_var=unsupported
9344      whole_archive_flag_spec=''
9345      link_all_deplibs=yes
9346    if test "$GCC" = yes ; then
9347    	output_verbose_link_cmd='echo'
9348        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9349      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9350      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9351      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}'
9352      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}'
9353    else
9354      case $cc_basename in
9355        xlc*)
9356         output_verbose_link_cmd='echo'
9357         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9358         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9359          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9360         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}'
9361          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}'
9362          ;;
9363       *)
9364         ld_shlibs=no
9365          ;;
9366      esac
9367    fi
9368      ;;
9369
9370    dgux*)
9371      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372      hardcode_libdir_flag_spec='-L$libdir'
9373      hardcode_shlibpath_var=no
9374      ;;
9375
9376    freebsd1*)
9377      ld_shlibs=no
9378      ;;
9379
9380    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9381    # support.  Future versions do this automatically, but an explicit c++rt0.o
9382    # does not break anything, and helps significantly (at the cost of a little
9383    # extra space).
9384    freebsd2.2*)
9385      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9386      hardcode_libdir_flag_spec='-R$libdir'
9387      hardcode_direct=yes
9388      hardcode_shlibpath_var=no
9389      ;;
9390
9391    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9392    freebsd2*)
9393      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9394      hardcode_direct=yes
9395      hardcode_minus_L=yes
9396      hardcode_shlibpath_var=no
9397      ;;
9398
9399    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9400    freebsd* | kfreebsd*-gnu | dragonfly*)
9401      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9402      hardcode_libdir_flag_spec='-R$libdir'
9403      hardcode_direct=yes
9404      hardcode_shlibpath_var=no
9405      ;;
9406
9407    hpux9*)
9408      if test "$GCC" = yes; then
9409	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'
9410      else
9411	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'
9412      fi
9413      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9414      hardcode_libdir_separator=:
9415      hardcode_direct=yes
9416
9417      # hardcode_minus_L: Not really in the search PATH,
9418      # but as the default location of the library.
9419      hardcode_minus_L=yes
9420      export_dynamic_flag_spec='${wl}-E'
9421      ;;
9422
9423    hpux10*)
9424      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9425	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426      else
9427	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428      fi
9429      if test "$with_gnu_ld" = no; then
9430	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9431	hardcode_libdir_separator=:
9432
9433	hardcode_direct=yes
9434	export_dynamic_flag_spec='${wl}-E'
9435
9436	# hardcode_minus_L: Not really in the search PATH,
9437	# but as the default location of the library.
9438	hardcode_minus_L=yes
9439      fi
9440      ;;
9441
9442    hpux11*)
9443      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9444	case $host_cpu in
9445	hppa*64*)
9446	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9447	  ;;
9448	ia64*)
9449	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9450	  ;;
9451	*)
9452	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	esac
9455      else
9456	case $host_cpu in
9457	hppa*64*)
9458	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9459	  ;;
9460	ia64*)
9461	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462	  ;;
9463	*)
9464	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465	  ;;
9466	esac
9467      fi
9468      if test "$with_gnu_ld" = no; then
9469	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470	hardcode_libdir_separator=:
9471
9472	case $host_cpu in
9473	hppa*64*|ia64*)
9474	  hardcode_libdir_flag_spec_ld='+b $libdir'
9475	  hardcode_direct=no
9476	  hardcode_shlibpath_var=no
9477	  ;;
9478	*)
9479	  hardcode_direct=yes
9480	  export_dynamic_flag_spec='${wl}-E'
9481
9482	  # hardcode_minus_L: Not really in the search PATH,
9483	  # but as the default location of the library.
9484	  hardcode_minus_L=yes
9485	  ;;
9486	esac
9487      fi
9488      ;;
9489
9490    irix5* | irix6* | nonstopux*)
9491      if test "$GCC" = yes; then
9492	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'
9493      else
9494	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'
9495	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9496      fi
9497      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498      hardcode_libdir_separator=:
9499      link_all_deplibs=yes
9500      ;;
9501
9502    netbsd*)
9503      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9504	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9505      else
9506	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9507      fi
9508      hardcode_libdir_flag_spec='-R$libdir'
9509      hardcode_direct=yes
9510      hardcode_shlibpath_var=no
9511      ;;
9512
9513    newsos6)
9514      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515      hardcode_direct=yes
9516      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517      hardcode_libdir_separator=:
9518      hardcode_shlibpath_var=no
9519      ;;
9520
9521    openbsd*)
9522      hardcode_direct=yes
9523      hardcode_shlibpath_var=no
9524      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9525	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9526	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9527	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528	export_dynamic_flag_spec='${wl}-E'
9529      else
9530       case $host_os in
9531	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9532	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9533	   hardcode_libdir_flag_spec='-R$libdir'
9534	   ;;
9535	 *)
9536	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9537	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538	   ;;
9539       esac
9540      fi
9541      ;;
9542
9543    os2*)
9544      hardcode_libdir_flag_spec='-L$libdir'
9545      hardcode_minus_L=yes
9546      allow_undefined_flag=unsupported
9547      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'
9548      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9549      ;;
9550
9551    osf3*)
9552      if test "$GCC" = yes; then
9553	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9554	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'
9555      else
9556	allow_undefined_flag=' -expect_unresolved \*'
9557	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'
9558      fi
9559      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560      hardcode_libdir_separator=:
9561      ;;
9562
9563    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9564      if test "$GCC" = yes; then
9565	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9566	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'
9567	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568      else
9569	allow_undefined_flag=' -expect_unresolved \*'
9570	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'
9571	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9572	$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'
9573
9574	# Both c and cxx compiler support -rpath directly
9575	hardcode_libdir_flag_spec='-rpath $libdir'
9576      fi
9577      hardcode_libdir_separator=:
9578      ;;
9579
9580    solaris*)
9581      no_undefined_flag=' -z text'
9582      if test "$GCC" = yes; then
9583	wlarc='${wl}'
9584	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9586	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9587      else
9588	wlarc=''
9589	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9591  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9592      fi
9593      hardcode_libdir_flag_spec='-R$libdir'
9594      hardcode_shlibpath_var=no
9595      case $host_os in
9596      solaris2.[0-5] | solaris2.[0-5].*) ;;
9597      *)
9598 	# The compiler driver will combine linker options so we
9599 	# cannot just pass the convience library names through
9600 	# without $wl, iff we do not link with $LD.
9601 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9602 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9603 	case $wlarc in
9604 	'')
9605 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9606 	*)
9607 	  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' ;;
9608 	esac ;;
9609      esac
9610      link_all_deplibs=yes
9611      ;;
9612
9613    sunos4*)
9614      if test "x$host_vendor" = xsequent; then
9615	# Use $CC to link under sequent, because it throws in some extra .o
9616	# files that make .init and .fini sections work.
9617	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618      else
9619	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9620      fi
9621      hardcode_libdir_flag_spec='-L$libdir'
9622      hardcode_direct=yes
9623      hardcode_minus_L=yes
9624      hardcode_shlibpath_var=no
9625      ;;
9626
9627    sysv4)
9628      case $host_vendor in
9629	sni)
9630	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631	  hardcode_direct=yes # is this really true???
9632	;;
9633	siemens)
9634	  ## LD is ld it makes a PLAMLIB
9635	  ## CC just makes a GrossModule.
9636	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637	  reload_cmds='$CC -r -o $output$reload_objs'
9638	  hardcode_direct=no
9639        ;;
9640	motorola)
9641	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9643	;;
9644      esac
9645      runpath_var='LD_RUN_PATH'
9646      hardcode_shlibpath_var=no
9647      ;;
9648
9649    sysv4.3*)
9650      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651      hardcode_shlibpath_var=no
9652      export_dynamic_flag_spec='-Bexport'
9653      ;;
9654
9655    sysv4*MP*)
9656      if test -d /usr/nec; then
9657	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658	hardcode_shlibpath_var=no
9659	runpath_var=LD_RUN_PATH
9660	hardcode_runpath_var=yes
9661	ld_shlibs=yes
9662      fi
9663      ;;
9664
9665    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9666      no_undefined_flag='${wl}-z,text'
9667      archive_cmds_need_lc=no
9668      hardcode_shlibpath_var=no
9669      runpath_var='LD_RUN_PATH'
9670
9671      if test "$GCC" = yes; then
9672	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674      else
9675	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677      fi
9678      ;;
9679
9680    sysv5* | sco3.2v5* | sco5v6*)
9681      # Note: We can NOT use -z defs as we might desire, because we do not
9682      # link with -lc, and that would cause any symbols used from libc to
9683      # always be unresolved, which means just about no library would
9684      # ever link correctly.  If we're not using GNU ld we use -z text
9685      # though, which does catch some bad symbols but isn't as heavy-handed
9686      # as -z defs.
9687      no_undefined_flag='${wl}-z,text'
9688      allow_undefined_flag='${wl}-z,nodefs'
9689      archive_cmds_need_lc=no
9690      hardcode_shlibpath_var=no
9691      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9692      hardcode_libdir_separator=':'
9693      link_all_deplibs=yes
9694      export_dynamic_flag_spec='${wl}-Bexport'
9695      runpath_var='LD_RUN_PATH'
9696
9697      if test "$GCC" = yes; then
9698	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700      else
9701	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9702	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703      fi
9704      ;;
9705
9706    uts4*)
9707      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708      hardcode_libdir_flag_spec='-L$libdir'
9709      hardcode_shlibpath_var=no
9710      ;;
9711
9712    *)
9713      ld_shlibs=no
9714      ;;
9715    esac
9716  fi
9717
9718echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9719echo "${ECHO_T}$ld_shlibs" >&6
9720test "$ld_shlibs" = no && can_build_shared=no
9721
9722#
9723# Do we need to explicitly link libc?
9724#
9725case "x$archive_cmds_need_lc" in
9726x|xyes)
9727  # Assume -lc should be added
9728  archive_cmds_need_lc=yes
9729
9730  if test "$enable_shared" = yes && test "$GCC" = yes; then
9731    case $archive_cmds in
9732    *'~'*)
9733      # FIXME: we may have to deal with multi-command sequences.
9734      ;;
9735    '$CC '*)
9736      # Test whether the compiler implicitly links with -lc since on some
9737      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9738      # to ld, don't add -lc before -lgcc.
9739      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9740echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9741      $rm conftest*
9742      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9743
9744      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745  (eval $ac_compile) 2>&5
9746  ac_status=$?
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); } 2>conftest.err; then
9749        soname=conftest
9750        lib=conftest
9751        libobjs=conftest.$ac_objext
9752        deplibs=
9753        wl=$lt_prog_compiler_wl
9754	pic_flag=$lt_prog_compiler_pic
9755        compiler_flags=-v
9756        linker_flags=-v
9757        verstring=
9758        output_objdir=.
9759        libname=conftest
9760        lt_save_allow_undefined_flag=$allow_undefined_flag
9761        allow_undefined_flag=
9762        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9763  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9764  ac_status=$?
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); }
9767        then
9768	  archive_cmds_need_lc=no
9769        else
9770	  archive_cmds_need_lc=yes
9771        fi
9772        allow_undefined_flag=$lt_save_allow_undefined_flag
9773      else
9774        cat conftest.err 1>&5
9775      fi
9776      $rm conftest*
9777      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9778echo "${ECHO_T}$archive_cmds_need_lc" >&6
9779      ;;
9780    esac
9781  fi
9782  ;;
9783esac
9784
9785echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9786echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9787library_names_spec=
9788libname_spec='lib$name'
9789soname_spec=
9790shrext_cmds=".so"
9791postinstall_cmds=
9792postuninstall_cmds=
9793finish_cmds=
9794finish_eval=
9795shlibpath_var=
9796shlibpath_overrides_runpath=unknown
9797version_type=none
9798dynamic_linker="$host_os ld.so"
9799sys_lib_dlsearch_path_spec="/lib /usr/lib"
9800if test "$GCC" = yes; then
9801  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9802  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9803    # if the path contains ";" then we assume it to be the separator
9804    # otherwise default to the standard path separator (i.e. ":") - it is
9805    # assumed that no part of a normal pathname contains ";" but that should
9806    # okay in the real world where ";" in dirpaths is itself problematic.
9807    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9808  else
9809    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9810  fi
9811else
9812  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9813fi
9814need_lib_prefix=unknown
9815hardcode_into_libs=no
9816
9817# when you set need_version to no, make sure it does not cause -set_version
9818# flags to be left without arguments
9819need_version=unknown
9820
9821case $host_os in
9822aix3*)
9823  version_type=linux
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9825  shlibpath_var=LIBPATH
9826
9827  # AIX 3 has no versioning support, so we append a major version to the name.
9828  soname_spec='${libname}${release}${shared_ext}$major'
9829  ;;
9830
9831aix4* | aix5*)
9832  version_type=linux
9833  need_lib_prefix=no
9834  need_version=no
9835  hardcode_into_libs=yes
9836  if test "$host_cpu" = ia64; then
9837    # AIX 5 supports IA64
9838    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9839    shlibpath_var=LD_LIBRARY_PATH
9840  else
9841    # With GCC up to 2.95.x, collect2 would create an import file
9842    # for dependence libraries.  The import file would start with
9843    # the line `#! .'.  This would cause the generated library to
9844    # depend on `.', always an invalid library.  This was fixed in
9845    # development snapshots of GCC prior to 3.0.
9846    case $host_os in
9847      aix4 | aix4.[01] | aix4.[01].*)
9848      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9849	   echo ' yes '
9850	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9851	:
9852      else
9853	can_build_shared=no
9854      fi
9855      ;;
9856    esac
9857    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9858    # soname into executable. Probably we can add versioning support to
9859    # collect2, so additional links can be useful in future.
9860    if test "$aix_use_runtimelinking" = yes; then
9861      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9862      # instead of lib<name>.a to let people know that these are not
9863      # typical AIX shared libraries.
9864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865    else
9866      # We preserve .a as extension for shared libraries through AIX4.2
9867      # and later when we are not doing run time linking.
9868      library_names_spec='${libname}${release}.a $libname.a'
9869      soname_spec='${libname}${release}${shared_ext}$major'
9870    fi
9871    shlibpath_var=LIBPATH
9872  fi
9873  ;;
9874
9875amigaos*)
9876  library_names_spec='$libname.ixlibrary $libname.a'
9877  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9878  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'
9879  ;;
9880
9881beos*)
9882  library_names_spec='${libname}${shared_ext}'
9883  dynamic_linker="$host_os ld.so"
9884  shlibpath_var=LIBRARY_PATH
9885  ;;
9886
9887bsdi[45]*)
9888  version_type=linux
9889  need_version=no
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891  soname_spec='${libname}${release}${shared_ext}$major'
9892  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9893  shlibpath_var=LD_LIBRARY_PATH
9894  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9895  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9896  # the default ld.so.conf also contains /usr/contrib/lib and
9897  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9898  # libtool to hard-code these into programs
9899  ;;
9900
9901cygwin* | mingw* | pw32*)
9902  version_type=windows
9903  shrext_cmds=".dll"
9904  need_version=no
9905  need_lib_prefix=no
9906
9907  case $GCC,$host_os in
9908  yes,cygwin* | yes,mingw* | yes,pw32*)
9909    library_names_spec='$libname.dll.a'
9910    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9911    postinstall_cmds='base_file=`basename \${file}`~
9912      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9913      dldir=$destdir/`dirname \$dlpath`~
9914      test -d \$dldir || mkdir -p \$dldir~
9915      $install_prog $dir/$dlname \$dldir/$dlname~
9916      chmod a+x \$dldir/$dlname'
9917    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9918      dlpath=$dir/\$dldll~
9919       $rm \$dlpath'
9920    shlibpath_overrides_runpath=yes
9921
9922    case $host_os in
9923    cygwin*)
9924      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9925      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9926      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9927      ;;
9928    mingw*)
9929      # MinGW DLLs use traditional 'lib' prefix
9930      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9932      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9933        # It is most probably a Windows format PATH printed by
9934        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9935        # path with ; separators, and with drive letters. We can handle the
9936        # drive letters (cygwin fileutils understands them), so leave them,
9937        # especially as we might pass files found there to a mingw objdump,
9938        # which wouldn't understand a cygwinified path. Ahh.
9939        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9940      else
9941        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9942      fi
9943      ;;
9944    pw32*)
9945      # pw32 DLLs use 'pw' prefix rather than 'lib'
9946      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947      ;;
9948    esac
9949    ;;
9950
9951  *)
9952    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9953    ;;
9954  esac
9955  dynamic_linker='Win32 ld.exe'
9956  # FIXME: first we should search . and the directory the executable is in
9957  shlibpath_var=PATH
9958  ;;
9959
9960darwin* | rhapsody*)
9961  dynamic_linker="$host_os dyld"
9962  version_type=darwin
9963  need_lib_prefix=no
9964  need_version=no
9965  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9966  soname_spec='${libname}${release}${major}$shared_ext'
9967  shlibpath_overrides_runpath=yes
9968  shlibpath_var=DYLD_LIBRARY_PATH
9969  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9970  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9971  if test "$GCC" = yes; then
9972    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"`
9973  else
9974    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9975  fi
9976  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9977  ;;
9978
9979dgux*)
9980  version_type=linux
9981  need_lib_prefix=no
9982  need_version=no
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  ;;
9987
9988freebsd1*)
9989  dynamic_linker=no
9990  ;;
9991
9992kfreebsd*-gnu)
9993  version_type=linux
9994  need_lib_prefix=no
9995  need_version=no
9996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9997  soname_spec='${libname}${release}${shared_ext}$major'
9998  shlibpath_var=LD_LIBRARY_PATH
9999  shlibpath_overrides_runpath=no
10000  hardcode_into_libs=yes
10001  dynamic_linker='GNU ld.so'
10002  ;;
10003
10004freebsd* | dragonfly*)
10005  # DragonFly does not have aout.  When/if they implement a new
10006  # versioning mechanism, adjust this.
10007  if test -x /usr/bin/objformat; then
10008    objformat=`/usr/bin/objformat`
10009  else
10010    case $host_os in
10011    freebsd[123]*) objformat=aout ;;
10012    *) objformat=elf ;;
10013    esac
10014  fi
10015  version_type=freebsd-$objformat
10016  case $version_type in
10017    freebsd-elf*)
10018      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10019      need_version=no
10020      need_lib_prefix=no
10021      ;;
10022    freebsd-*)
10023      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10024      need_version=yes
10025      ;;
10026  esac
10027  shlibpath_var=LD_LIBRARY_PATH
10028  case $host_os in
10029  freebsd2*)
10030    shlibpath_overrides_runpath=yes
10031    ;;
10032  freebsd3.[01]* | freebsdelf3.[01]*)
10033    shlibpath_overrides_runpath=yes
10034    hardcode_into_libs=yes
10035    ;;
10036  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10037  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10038    shlibpath_overrides_runpath=no
10039    hardcode_into_libs=yes
10040    ;;
10041  freebsd*) # from 4.6 on
10042    shlibpath_overrides_runpath=yes
10043    hardcode_into_libs=yes
10044    ;;
10045  esac
10046  ;;
10047
10048gnu*)
10049  version_type=linux
10050  need_lib_prefix=no
10051  need_version=no
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10053  soname_spec='${libname}${release}${shared_ext}$major'
10054  shlibpath_var=LD_LIBRARY_PATH
10055  hardcode_into_libs=yes
10056  ;;
10057
10058hpux9* | hpux10* | hpux11*)
10059  # Give a soname corresponding to the major version so that dld.sl refuses to
10060  # link against other versions.
10061  version_type=sunos
10062  need_lib_prefix=no
10063  need_version=no
10064  case $host_cpu in
10065  ia64*)
10066    shrext_cmds='.so'
10067    hardcode_into_libs=yes
10068    dynamic_linker="$host_os dld.so"
10069    shlibpath_var=LD_LIBRARY_PATH
10070    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10071    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072    soname_spec='${libname}${release}${shared_ext}$major'
10073    if test "X$HPUX_IA64_MODE" = X32; then
10074      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10075    else
10076      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10077    fi
10078    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10079    ;;
10080   hppa*64*)
10081     shrext_cmds='.sl'
10082     hardcode_into_libs=yes
10083     dynamic_linker="$host_os dld.sl"
10084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087     soname_spec='${libname}${release}${shared_ext}$major'
10088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10090     ;;
10091   *)
10092    shrext_cmds='.sl'
10093    dynamic_linker="$host_os dld.sl"
10094    shlibpath_var=SHLIB_PATH
10095    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10096    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097    soname_spec='${libname}${release}${shared_ext}$major'
10098    ;;
10099  esac
10100  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10101  postinstall_cmds='chmod 555 $lib'
10102  ;;
10103
10104interix3*)
10105  version_type=linux
10106  need_lib_prefix=no
10107  need_version=no
10108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109  soname_spec='${libname}${release}${shared_ext}$major'
10110  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10111  shlibpath_var=LD_LIBRARY_PATH
10112  shlibpath_overrides_runpath=no
10113  hardcode_into_libs=yes
10114  ;;
10115
10116irix5* | irix6* | nonstopux*)
10117  case $host_os in
10118    nonstopux*) version_type=nonstopux ;;
10119    *)
10120	if test "$lt_cv_prog_gnu_ld" = yes; then
10121		version_type=linux
10122	else
10123		version_type=irix
10124	fi ;;
10125  esac
10126  need_lib_prefix=no
10127  need_version=no
10128  soname_spec='${libname}${release}${shared_ext}$major'
10129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10130  case $host_os in
10131  irix5* | nonstopux*)
10132    libsuff= shlibsuff=
10133    ;;
10134  *)
10135    case $LD in # libtool.m4 will add one of these switches to LD
10136    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10137      libsuff= shlibsuff= libmagic=32-bit;;
10138    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10139      libsuff=32 shlibsuff=N32 libmagic=N32;;
10140    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10141      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10142    *) libsuff= shlibsuff= libmagic=never-match;;
10143    esac
10144    ;;
10145  esac
10146  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10147  shlibpath_overrides_runpath=no
10148  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10149  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10150  hardcode_into_libs=yes
10151  ;;
10152
10153# No shared lib support for Linux oldld, aout, or coff.
10154linux*oldld* | linux*aout* | linux*coff*)
10155  dynamic_linker=no
10156  ;;
10157
10158# This must be Linux ELF.
10159linux*)
10160  version_type=linux
10161  need_lib_prefix=no
10162  need_version=no
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10166  shlibpath_var=LD_LIBRARY_PATH
10167  shlibpath_overrides_runpath=no
10168  # This implies no fast_install, which is unacceptable.
10169  # Some rework will be needed to allow for fast_install
10170  # before this can be enabled.
10171  hardcode_into_libs=yes
10172
10173  # Append ld.so.conf contents to the search path
10174  if test -f /etc/ld.so.conf; then
10175    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' ' '`
10176    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10177  fi
10178
10179  # We used to test for /lib/ld.so.1 and disable shared libraries on
10180  # powerpc, because MkLinux only supported shared libraries with the
10181  # GNU dynamic linker.  Since this was broken with cross compilers,
10182  # most powerpc-linux boxes support dynamic linking these days and
10183  # people can always --disable-shared, the test was removed, and we
10184  # assume the GNU/Linux dynamic linker is in use.
10185  dynamic_linker='GNU/Linux ld.so'
10186  ;;
10187
10188knetbsd*-gnu)
10189  version_type=linux
10190  need_lib_prefix=no
10191  need_version=no
10192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10193  soname_spec='${libname}${release}${shared_ext}$major'
10194  shlibpath_var=LD_LIBRARY_PATH
10195  shlibpath_overrides_runpath=no
10196  hardcode_into_libs=yes
10197  dynamic_linker='GNU ld.so'
10198  ;;
10199
10200netbsd*)
10201  version_type=sunos
10202  need_lib_prefix=no
10203  need_version=no
10204  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207    dynamic_linker='NetBSD (a.out) ld.so'
10208  else
10209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10210    soname_spec='${libname}${release}${shared_ext}$major'
10211    dynamic_linker='NetBSD ld.elf_so'
10212  fi
10213  shlibpath_var=LD_LIBRARY_PATH
10214  shlibpath_overrides_runpath=yes
10215  hardcode_into_libs=yes
10216  ;;
10217
10218newsos6)
10219  version_type=linux
10220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221  shlibpath_var=LD_LIBRARY_PATH
10222  shlibpath_overrides_runpath=yes
10223  ;;
10224
10225nto-qnx*)
10226  version_type=linux
10227  need_lib_prefix=no
10228  need_version=no
10229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  shlibpath_var=LD_LIBRARY_PATH
10232  shlibpath_overrides_runpath=yes
10233  ;;
10234
10235openbsd*)
10236  version_type=sunos
10237  sys_lib_dlsearch_path_spec="/usr/lib"
10238  need_lib_prefix=no
10239  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10240  case $host_os in
10241    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10242    *)                         need_version=no  ;;
10243  esac
10244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10246  shlibpath_var=LD_LIBRARY_PATH
10247  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10248    case $host_os in
10249      openbsd2.[89] | openbsd2.[89].*)
10250	shlibpath_overrides_runpath=no
10251	;;
10252      *)
10253	shlibpath_overrides_runpath=yes
10254	;;
10255      esac
10256  else
10257    shlibpath_overrides_runpath=yes
10258  fi
10259  ;;
10260
10261os2*)
10262  libname_spec='$name'
10263  shrext_cmds=".dll"
10264  need_lib_prefix=no
10265  library_names_spec='$libname${shared_ext} $libname.a'
10266  dynamic_linker='OS/2 ld.exe'
10267  shlibpath_var=LIBPATH
10268  ;;
10269
10270osf3* | osf4* | osf5*)
10271  version_type=osf
10272  need_lib_prefix=no
10273  need_version=no
10274  soname_spec='${libname}${release}${shared_ext}$major'
10275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10278  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10279  ;;
10280
10281solaris*)
10282  version_type=linux
10283  need_lib_prefix=no
10284  need_version=no
10285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286  soname_spec='${libname}${release}${shared_ext}$major'
10287  shlibpath_var=LD_LIBRARY_PATH
10288  shlibpath_overrides_runpath=yes
10289  hardcode_into_libs=yes
10290  # ldd complains unless libraries are executable
10291  postinstall_cmds='chmod +x $lib'
10292  ;;
10293
10294sunos4*)
10295  version_type=sunos
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10297  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10298  shlibpath_var=LD_LIBRARY_PATH
10299  shlibpath_overrides_runpath=yes
10300  if test "$with_gnu_ld" = yes; then
10301    need_lib_prefix=no
10302  fi
10303  need_version=yes
10304  ;;
10305
10306sysv4 | sysv4.3*)
10307  version_type=linux
10308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309  soname_spec='${libname}${release}${shared_ext}$major'
10310  shlibpath_var=LD_LIBRARY_PATH
10311  case $host_vendor in
10312    sni)
10313      shlibpath_overrides_runpath=no
10314      need_lib_prefix=no
10315      export_dynamic_flag_spec='${wl}-Blargedynsym'
10316      runpath_var=LD_RUN_PATH
10317      ;;
10318    siemens)
10319      need_lib_prefix=no
10320      ;;
10321    motorola)
10322      need_lib_prefix=no
10323      need_version=no
10324      shlibpath_overrides_runpath=no
10325      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10326      ;;
10327  esac
10328  ;;
10329
10330sysv4*MP*)
10331  if test -d /usr/nec ;then
10332    version_type=linux
10333    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10334    soname_spec='$libname${shared_ext}.$major'
10335    shlibpath_var=LD_LIBRARY_PATH
10336  fi
10337  ;;
10338
10339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10340  version_type=freebsd-elf
10341  need_lib_prefix=no
10342  need_version=no
10343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10344  soname_spec='${libname}${release}${shared_ext}$major'
10345  shlibpath_var=LD_LIBRARY_PATH
10346  hardcode_into_libs=yes
10347  if test "$with_gnu_ld" = yes; then
10348    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10349    shlibpath_overrides_runpath=no
10350  else
10351    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10352    shlibpath_overrides_runpath=yes
10353    case $host_os in
10354      sco3.2v5*)
10355        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10356	;;
10357    esac
10358  fi
10359  sys_lib_dlsearch_path_spec='/usr/lib'
10360  ;;
10361
10362uts4*)
10363  version_type=linux
10364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365  soname_spec='${libname}${release}${shared_ext}$major'
10366  shlibpath_var=LD_LIBRARY_PATH
10367  ;;
10368
10369*)
10370  dynamic_linker=no
10371  ;;
10372esac
10373echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10374echo "${ECHO_T}$dynamic_linker" >&6
10375test "$dynamic_linker" = no && can_build_shared=no
10376
10377variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10378if test "$GCC" = yes; then
10379  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10380fi
10381
10382echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10384hardcode_action=
10385if test -n "$hardcode_libdir_flag_spec" || \
10386   test -n "$runpath_var" || \
10387   test "X$hardcode_automatic" = "Xyes" ; then
10388
10389  # We can hardcode non-existant directories.
10390  if test "$hardcode_direct" != no &&
10391     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10392     # have to relink, otherwise we might link with an installed library
10393     # when we should be linking with a yet-to-be-installed one
10394     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10395     test "$hardcode_minus_L" != no; then
10396    # Linking always hardcodes the temporary library directory.
10397    hardcode_action=relink
10398  else
10399    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10400    hardcode_action=immediate
10401  fi
10402else
10403  # We cannot hardcode anything, or else we can only hardcode existing
10404  # directories.
10405  hardcode_action=unsupported
10406fi
10407echo "$as_me:$LINENO: result: $hardcode_action" >&5
10408echo "${ECHO_T}$hardcode_action" >&6
10409
10410if test "$hardcode_action" = relink; then
10411  # Fast installation is not supported
10412  enable_fast_install=no
10413elif test "$shlibpath_overrides_runpath" = yes ||
10414     test "$enable_shared" = no; then
10415  # Fast installation is not necessary
10416  enable_fast_install=needless
10417fi
10418
10419striplib=
10420old_striplib=
10421echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10422echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10423if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10424  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10425  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10426  echo "$as_me:$LINENO: result: yes" >&5
10427echo "${ECHO_T}yes" >&6
10428else
10429# FIXME - insert some real tests, host_os isn't really good enough
10430  case $host_os in
10431   darwin*)
10432       if test -n "$STRIP" ; then
10433         striplib="$STRIP -x"
10434         echo "$as_me:$LINENO: result: yes" >&5
10435echo "${ECHO_T}yes" >&6
10436       else
10437  echo "$as_me:$LINENO: result: no" >&5
10438echo "${ECHO_T}no" >&6
10439fi
10440       ;;
10441   *)
10442  echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6
10444    ;;
10445  esac
10446fi
10447
10448if test "x$enable_dlopen" != xyes; then
10449  enable_dlopen=unknown
10450  enable_dlopen_self=unknown
10451  enable_dlopen_self_static=unknown
10452else
10453  lt_cv_dlopen=no
10454  lt_cv_dlopen_libs=
10455
10456  case $host_os in
10457  beos*)
10458    lt_cv_dlopen="load_add_on"
10459    lt_cv_dlopen_libs=
10460    lt_cv_dlopen_self=yes
10461    ;;
10462
10463  mingw* | pw32*)
10464    lt_cv_dlopen="LoadLibrary"
10465    lt_cv_dlopen_libs=
10466   ;;
10467
10468  cygwin*)
10469    lt_cv_dlopen="dlopen"
10470    lt_cv_dlopen_libs=
10471   ;;
10472
10473  darwin*)
10474  # if libdl is installed we need to link against it
10475    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10478  echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480  ac_check_lib_save_LIBS=$LIBS
10481LIBS="-ldl  $LIBS"
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h.  */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h.  */
10488
10489/* Override any gcc2 internal prototype to avoid an error.  */
10490#ifdef __cplusplus
10491extern "C"
10492#endif
10493/* We use char because int might match the return type of a gcc2
10494   builtin and then its argument prototype would still apply.  */
10495char dlopen ();
10496int
10497main ()
10498{
10499dlopen ();
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506  (eval $ac_link) 2>conftest.er1
10507  ac_status=$?
10508  grep -v '^ *+' conftest.er1 >conftest.err
10509  rm -f conftest.er1
10510  cat conftest.err >&5
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); } &&
10513	 { ac_try='test -z "$ac_c_werror_flag"
10514			 || test ! -s conftest.err'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520	 { ac_try='test -s conftest$ac_exeext'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; }; then
10526  ac_cv_lib_dl_dlopen=yes
10527else
10528  echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_cv_lib_dl_dlopen=no
10532fi
10533rm -f conftest.err conftest.$ac_objext \
10534      conftest$ac_exeext conftest.$ac_ext
10535LIBS=$ac_check_lib_save_LIBS
10536fi
10537echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10538echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10539if test $ac_cv_lib_dl_dlopen = yes; then
10540  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10541else
10542
10543    lt_cv_dlopen="dyld"
10544    lt_cv_dlopen_libs=
10545    lt_cv_dlopen_self=yes
10546
10547fi
10548
10549   ;;
10550
10551  *)
10552    echo "$as_me:$LINENO: checking for shl_load" >&5
10553echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10554if test "${ac_cv_func_shl_load+set}" = set; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h.  */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h.  */
10563/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10564   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10565#define shl_load innocuous_shl_load
10566
10567/* System header to define __stub macros and hopefully few prototypes,
10568    which can conflict with char shl_load (); below.
10569    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10570    <limits.h> exists even on freestanding compilers.  */
10571
10572#ifdef __STDC__
10573# include <limits.h>
10574#else
10575# include <assert.h>
10576#endif
10577
10578#undef shl_load
10579
10580/* Override any gcc2 internal prototype to avoid an error.  */
10581#ifdef __cplusplus
10582extern "C"
10583{
10584#endif
10585/* We use char because int might match the return type of a gcc2
10586   builtin and then its argument prototype would still apply.  */
10587char shl_load ();
10588/* The GNU C library defines this for functions which it implements
10589    to always fail with ENOSYS.  Some functions are actually named
10590    something starting with __ and the normal name is an alias.  */
10591#if defined (__stub_shl_load) || defined (__stub___shl_load)
10592choke me
10593#else
10594char (*f) () = shl_load;
10595#endif
10596#ifdef __cplusplus
10597}
10598#endif
10599
10600int
10601main ()
10602{
10603return f != shl_load;
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } &&
10617	 { ac_try='test -z "$ac_c_werror_flag"
10618			 || test ! -s conftest.err'
10619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620  (eval $ac_try) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); }; } &&
10624	 { ac_try='test -s conftest$ac_exeext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630  ac_cv_func_shl_load=yes
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_cv_func_shl_load=no
10636fi
10637rm -f conftest.err conftest.$ac_objext \
10638      conftest$ac_exeext conftest.$ac_ext
10639fi
10640echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10641echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10642if test $ac_cv_func_shl_load = yes; then
10643  lt_cv_dlopen="shl_load"
10644else
10645  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10646echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10647if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10648  echo $ECHO_N "(cached) $ECHO_C" >&6
10649else
10650  ac_check_lib_save_LIBS=$LIBS
10651LIBS="-ldld  $LIBS"
10652cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h.  */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h.  */
10658
10659/* Override any gcc2 internal prototype to avoid an error.  */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663/* We use char because int might match the return type of a gcc2
10664   builtin and then its argument prototype would still apply.  */
10665char shl_load ();
10666int
10667main ()
10668{
10669shl_load ();
10670  ;
10671  return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext conftest$ac_exeext
10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676  (eval $ac_link) 2>conftest.er1
10677  ac_status=$?
10678  grep -v '^ *+' conftest.er1 >conftest.err
10679  rm -f conftest.er1
10680  cat conftest.err >&5
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); } &&
10683	 { ac_try='test -z "$ac_c_werror_flag"
10684			 || test ! -s conftest.err'
10685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686  (eval $ac_try) 2>&5
10687  ac_status=$?
10688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689  (exit $ac_status); }; } &&
10690	 { ac_try='test -s conftest$ac_exeext'
10691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692  (eval $ac_try) 2>&5
10693  ac_status=$?
10694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); }; }; then
10696  ac_cv_lib_dld_shl_load=yes
10697else
10698  echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701ac_cv_lib_dld_shl_load=no
10702fi
10703rm -f conftest.err conftest.$ac_objext \
10704      conftest$ac_exeext conftest.$ac_ext
10705LIBS=$ac_check_lib_save_LIBS
10706fi
10707echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10708echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10709if test $ac_cv_lib_dld_shl_load = yes; then
10710  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10711else
10712  echo "$as_me:$LINENO: checking for dlopen" >&5
10713echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10714if test "${ac_cv_func_dlopen+set}" = set; then
10715  echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717  cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h.  */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h.  */
10723/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10724   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10725#define dlopen innocuous_dlopen
10726
10727/* System header to define __stub macros and hopefully few prototypes,
10728    which can conflict with char dlopen (); below.
10729    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10730    <limits.h> exists even on freestanding compilers.  */
10731
10732#ifdef __STDC__
10733# include <limits.h>
10734#else
10735# include <assert.h>
10736#endif
10737
10738#undef dlopen
10739
10740/* Override any gcc2 internal prototype to avoid an error.  */
10741#ifdef __cplusplus
10742extern "C"
10743{
10744#endif
10745/* We use char because int might match the return type of a gcc2
10746   builtin and then its argument prototype would still apply.  */
10747char dlopen ();
10748/* The GNU C library defines this for functions which it implements
10749    to always fail with ENOSYS.  Some functions are actually named
10750    something starting with __ and the normal name is an alias.  */
10751#if defined (__stub_dlopen) || defined (__stub___dlopen)
10752choke me
10753#else
10754char (*f) () = dlopen;
10755#endif
10756#ifdef __cplusplus
10757}
10758#endif
10759
10760int
10761main ()
10762{
10763return f != dlopen;
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext conftest$ac_exeext
10769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770  (eval $ac_link) 2>conftest.er1
10771  ac_status=$?
10772  grep -v '^ *+' conftest.er1 >conftest.err
10773  rm -f conftest.er1
10774  cat conftest.err >&5
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); } &&
10777	 { ac_try='test -z "$ac_c_werror_flag"
10778			 || test ! -s conftest.err'
10779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780  (eval $ac_try) 2>&5
10781  ac_status=$?
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); }; } &&
10784	 { ac_try='test -s conftest$ac_exeext'
10785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786  (eval $ac_try) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); }; }; then
10790  ac_cv_func_dlopen=yes
10791else
10792  echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795ac_cv_func_dlopen=no
10796fi
10797rm -f conftest.err conftest.$ac_objext \
10798      conftest$ac_exeext conftest.$ac_ext
10799fi
10800echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10801echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10802if test $ac_cv_func_dlopen = yes; then
10803  lt_cv_dlopen="dlopen"
10804else
10805  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10806echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10807if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10808  echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810  ac_check_lib_save_LIBS=$LIBS
10811LIBS="-ldl  $LIBS"
10812cat >conftest.$ac_ext <<_ACEOF
10813/* confdefs.h.  */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h.  */
10818
10819/* Override any gcc2 internal prototype to avoid an error.  */
10820#ifdef __cplusplus
10821extern "C"
10822#endif
10823/* We use char because int might match the return type of a gcc2
10824   builtin and then its argument prototype would still apply.  */
10825char dlopen ();
10826int
10827main ()
10828{
10829dlopen ();
10830  ;
10831  return 0;
10832}
10833_ACEOF
10834rm -f conftest.$ac_objext conftest$ac_exeext
10835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836  (eval $ac_link) 2>conftest.er1
10837  ac_status=$?
10838  grep -v '^ *+' conftest.er1 >conftest.err
10839  rm -f conftest.er1
10840  cat conftest.err >&5
10841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842  (exit $ac_status); } &&
10843	 { ac_try='test -z "$ac_c_werror_flag"
10844			 || test ! -s conftest.err'
10845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846  (eval $ac_try) 2>&5
10847  ac_status=$?
10848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849  (exit $ac_status); }; } &&
10850	 { ac_try='test -s conftest$ac_exeext'
10851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852  (eval $ac_try) 2>&5
10853  ac_status=$?
10854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855  (exit $ac_status); }; }; then
10856  ac_cv_lib_dl_dlopen=yes
10857else
10858  echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861ac_cv_lib_dl_dlopen=no
10862fi
10863rm -f conftest.err conftest.$ac_objext \
10864      conftest$ac_exeext conftest.$ac_ext
10865LIBS=$ac_check_lib_save_LIBS
10866fi
10867echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10868echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10869if test $ac_cv_lib_dl_dlopen = yes; then
10870  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10871else
10872  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10873echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10874if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10875  echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877  ac_check_lib_save_LIBS=$LIBS
10878LIBS="-lsvld  $LIBS"
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h.  */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h.  */
10885
10886/* Override any gcc2 internal prototype to avoid an error.  */
10887#ifdef __cplusplus
10888extern "C"
10889#endif
10890/* We use char because int might match the return type of a gcc2
10891   builtin and then its argument prototype would still apply.  */
10892char dlopen ();
10893int
10894main ()
10895{
10896dlopen ();
10897  ;
10898  return 0;
10899}
10900_ACEOF
10901rm -f conftest.$ac_objext conftest$ac_exeext
10902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903  (eval $ac_link) 2>conftest.er1
10904  ac_status=$?
10905  grep -v '^ *+' conftest.er1 >conftest.err
10906  rm -f conftest.er1
10907  cat conftest.err >&5
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); } &&
10910	 { ac_try='test -z "$ac_c_werror_flag"
10911			 || test ! -s conftest.err'
10912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913  (eval $ac_try) 2>&5
10914  ac_status=$?
10915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916  (exit $ac_status); }; } &&
10917	 { ac_try='test -s conftest$ac_exeext'
10918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919  (eval $ac_try) 2>&5
10920  ac_status=$?
10921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922  (exit $ac_status); }; }; then
10923  ac_cv_lib_svld_dlopen=yes
10924else
10925  echo "$as_me: failed program was:" >&5
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
10928ac_cv_lib_svld_dlopen=no
10929fi
10930rm -f conftest.err conftest.$ac_objext \
10931      conftest$ac_exeext conftest.$ac_ext
10932LIBS=$ac_check_lib_save_LIBS
10933fi
10934echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10935echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10936if test $ac_cv_lib_svld_dlopen = yes; then
10937  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10938else
10939  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10940echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10941if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10942  echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
10944  ac_check_lib_save_LIBS=$LIBS
10945LIBS="-ldld  $LIBS"
10946cat >conftest.$ac_ext <<_ACEOF
10947/* confdefs.h.  */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h.  */
10952
10953/* Override any gcc2 internal prototype to avoid an error.  */
10954#ifdef __cplusplus
10955extern "C"
10956#endif
10957/* We use char because int might match the return type of a gcc2
10958   builtin and then its argument prototype would still apply.  */
10959char dld_link ();
10960int
10961main ()
10962{
10963dld_link ();
10964  ;
10965  return 0;
10966}
10967_ACEOF
10968rm -f conftest.$ac_objext conftest$ac_exeext
10969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970  (eval $ac_link) 2>conftest.er1
10971  ac_status=$?
10972  grep -v '^ *+' conftest.er1 >conftest.err
10973  rm -f conftest.er1
10974  cat conftest.err >&5
10975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); } &&
10977	 { ac_try='test -z "$ac_c_werror_flag"
10978			 || test ! -s conftest.err'
10979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980  (eval $ac_try) 2>&5
10981  ac_status=$?
10982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); }; } &&
10984	 { ac_try='test -s conftest$ac_exeext'
10985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986  (eval $ac_try) 2>&5
10987  ac_status=$?
10988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989  (exit $ac_status); }; }; then
10990  ac_cv_lib_dld_dld_link=yes
10991else
10992  echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995ac_cv_lib_dld_dld_link=no
10996fi
10997rm -f conftest.err conftest.$ac_objext \
10998      conftest$ac_exeext conftest.$ac_ext
10999LIBS=$ac_check_lib_save_LIBS
11000fi
11001echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11002echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11003if test $ac_cv_lib_dld_dld_link = yes; then
11004  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11005fi
11006
11007
11008fi
11009
11010
11011fi
11012
11013
11014fi
11015
11016
11017fi
11018
11019
11020fi
11021
11022    ;;
11023  esac
11024
11025  if test "x$lt_cv_dlopen" != xno; then
11026    enable_dlopen=yes
11027  else
11028    enable_dlopen=no
11029  fi
11030
11031  case $lt_cv_dlopen in
11032  dlopen)
11033    save_CPPFLAGS="$CPPFLAGS"
11034    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11035
11036    save_LDFLAGS="$LDFLAGS"
11037    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11038
11039    save_LIBS="$LIBS"
11040    LIBS="$lt_cv_dlopen_libs $LIBS"
11041
11042    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11043echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11044if test "${lt_cv_dlopen_self+set}" = set; then
11045  echo $ECHO_N "(cached) $ECHO_C" >&6
11046else
11047  	  if test "$cross_compiling" = yes; then :
11048  lt_cv_dlopen_self=cross
11049else
11050  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11051  lt_status=$lt_dlunknown
11052  cat > conftest.$ac_ext <<EOF
11053#line 11053 "configure"
11054#include "confdefs.h"
11055
11056#if HAVE_DLFCN_H
11057#include <dlfcn.h>
11058#endif
11059
11060#include <stdio.h>
11061
11062#ifdef RTLD_GLOBAL
11063#  define LT_DLGLOBAL		RTLD_GLOBAL
11064#else
11065#  ifdef DL_GLOBAL
11066#    define LT_DLGLOBAL		DL_GLOBAL
11067#  else
11068#    define LT_DLGLOBAL		0
11069#  endif
11070#endif
11071
11072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11073   find out it does not work in some platform. */
11074#ifndef LT_DLLAZY_OR_NOW
11075#  ifdef RTLD_LAZY
11076#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11077#  else
11078#    ifdef DL_LAZY
11079#      define LT_DLLAZY_OR_NOW		DL_LAZY
11080#    else
11081#      ifdef RTLD_NOW
11082#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11083#      else
11084#        ifdef DL_NOW
11085#          define LT_DLLAZY_OR_NOW	DL_NOW
11086#        else
11087#          define LT_DLLAZY_OR_NOW	0
11088#        endif
11089#      endif
11090#    endif
11091#  endif
11092#endif
11093
11094#ifdef __cplusplus
11095extern "C" void exit (int);
11096#endif
11097
11098void fnord() { int i=42;}
11099int main ()
11100{
11101  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11102  int status = $lt_dlunknown;
11103
11104  if (self)
11105    {
11106      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11107      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11108      /* dlclose (self); */
11109    }
11110  else
11111    puts (dlerror ());
11112
11113    exit (status);
11114}
11115EOF
11116  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117  (eval $ac_link) 2>&5
11118  ac_status=$?
11119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11121    (./conftest; exit; ) >&5 2>/dev/null
11122    lt_status=$?
11123    case x$lt_status in
11124      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11125      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11126      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11127    esac
11128  else :
11129    # compilation failed
11130    lt_cv_dlopen_self=no
11131  fi
11132fi
11133rm -fr conftest*
11134
11135
11136fi
11137echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11138echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11139
11140    if test "x$lt_cv_dlopen_self" = xyes; then
11141      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11142      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11143echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11144if test "${lt_cv_dlopen_self_static+set}" = set; then
11145  echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
11147  	  if test "$cross_compiling" = yes; then :
11148  lt_cv_dlopen_self_static=cross
11149else
11150  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151  lt_status=$lt_dlunknown
11152  cat > conftest.$ac_ext <<EOF
11153#line 11153 "configure"
11154#include "confdefs.h"
11155
11156#if HAVE_DLFCN_H
11157#include <dlfcn.h>
11158#endif
11159
11160#include <stdio.h>
11161
11162#ifdef RTLD_GLOBAL
11163#  define LT_DLGLOBAL		RTLD_GLOBAL
11164#else
11165#  ifdef DL_GLOBAL
11166#    define LT_DLGLOBAL		DL_GLOBAL
11167#  else
11168#    define LT_DLGLOBAL		0
11169#  endif
11170#endif
11171
11172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173   find out it does not work in some platform. */
11174#ifndef LT_DLLAZY_OR_NOW
11175#  ifdef RTLD_LAZY
11176#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11177#  else
11178#    ifdef DL_LAZY
11179#      define LT_DLLAZY_OR_NOW		DL_LAZY
11180#    else
11181#      ifdef RTLD_NOW
11182#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11183#      else
11184#        ifdef DL_NOW
11185#          define LT_DLLAZY_OR_NOW	DL_NOW
11186#        else
11187#          define LT_DLLAZY_OR_NOW	0
11188#        endif
11189#      endif
11190#    endif
11191#  endif
11192#endif
11193
11194#ifdef __cplusplus
11195extern "C" void exit (int);
11196#endif
11197
11198void fnord() { int i=42;}
11199int main ()
11200{
11201  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202  int status = $lt_dlunknown;
11203
11204  if (self)
11205    {
11206      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11207      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11208      /* dlclose (self); */
11209    }
11210  else
11211    puts (dlerror ());
11212
11213    exit (status);
11214}
11215EOF
11216  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217  (eval $ac_link) 2>&5
11218  ac_status=$?
11219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11221    (./conftest; exit; ) >&5 2>/dev/null
11222    lt_status=$?
11223    case x$lt_status in
11224      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11225      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11226      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11227    esac
11228  else :
11229    # compilation failed
11230    lt_cv_dlopen_self_static=no
11231  fi
11232fi
11233rm -fr conftest*
11234
11235
11236fi
11237echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11238echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11239    fi
11240
11241    CPPFLAGS="$save_CPPFLAGS"
11242    LDFLAGS="$save_LDFLAGS"
11243    LIBS="$save_LIBS"
11244    ;;
11245  esac
11246
11247  case $lt_cv_dlopen_self in
11248  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11249  *) enable_dlopen_self=unknown ;;
11250  esac
11251
11252  case $lt_cv_dlopen_self_static in
11253  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11254  *) enable_dlopen_self_static=unknown ;;
11255  esac
11256fi
11257
11258
11259# Report which library types will actually be built
11260echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11261echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11262echo "$as_me:$LINENO: result: $can_build_shared" >&5
11263echo "${ECHO_T}$can_build_shared" >&6
11264
11265echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11266echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11267test "$can_build_shared" = "no" && enable_shared=no
11268
11269# On AIX, shared libraries and static libraries use the same namespace, and
11270# are all built from PIC.
11271case $host_os in
11272aix3*)
11273  test "$enable_shared" = yes && enable_static=no
11274  if test -n "$RANLIB"; then
11275    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11276    postinstall_cmds='$RANLIB $lib'
11277  fi
11278  ;;
11279
11280aix4* | aix5*)
11281  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11282    test "$enable_shared" = yes && enable_static=no
11283  fi
11284    ;;
11285esac
11286echo "$as_me:$LINENO: result: $enable_shared" >&5
11287echo "${ECHO_T}$enable_shared" >&6
11288
11289echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11290echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11291# Make sure either enable_shared or enable_static is yes.
11292test "$enable_shared" = yes || enable_static=yes
11293echo "$as_me:$LINENO: result: $enable_static" >&5
11294echo "${ECHO_T}$enable_static" >&6
11295
11296# The else clause should only fire when bootstrapping the
11297# libtool distribution, otherwise you forgot to ship ltmain.sh
11298# with your package, and you will get complaints that there are
11299# no rules to generate ltmain.sh.
11300if test -f "$ltmain"; then
11301  # See if we are running on zsh, and set the options which allow our commands through
11302  # without removal of \ escapes.
11303  if test -n "${ZSH_VERSION+set}" ; then
11304    setopt NO_GLOB_SUBST
11305  fi
11306  # Now quote all the things that may contain metacharacters while being
11307  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11308  # variables and quote the copies for generation of the libtool script.
11309  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11310    SED SHELL STRIP \
11311    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11312    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11313    deplibs_check_method reload_flag reload_cmds need_locks \
11314    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11315    lt_cv_sys_global_symbol_to_c_name_address \
11316    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11317    old_postinstall_cmds old_postuninstall_cmds \
11318    compiler \
11319    CC \
11320    LD \
11321    lt_prog_compiler_wl \
11322    lt_prog_compiler_pic \
11323    lt_prog_compiler_static \
11324    lt_prog_compiler_no_builtin_flag \
11325    export_dynamic_flag_spec \
11326    thread_safe_flag_spec \
11327    whole_archive_flag_spec \
11328    enable_shared_with_static_runtimes \
11329    old_archive_cmds \
11330    old_archive_from_new_cmds \
11331    predep_objects \
11332    postdep_objects \
11333    predeps \
11334    postdeps \
11335    compiler_lib_search_path \
11336    archive_cmds \
11337    archive_expsym_cmds \
11338    postinstall_cmds \
11339    postuninstall_cmds \
11340    old_archive_from_expsyms_cmds \
11341    allow_undefined_flag \
11342    no_undefined_flag \
11343    export_symbols_cmds \
11344    hardcode_libdir_flag_spec \
11345    hardcode_libdir_flag_spec_ld \
11346    hardcode_libdir_separator \
11347    hardcode_automatic \
11348    module_cmds \
11349    module_expsym_cmds \
11350    lt_cv_prog_compiler_c_o \
11351    exclude_expsyms \
11352    include_expsyms; do
11353
11354    case $var in
11355    old_archive_cmds | \
11356    old_archive_from_new_cmds | \
11357    archive_cmds | \
11358    archive_expsym_cmds | \
11359    module_cmds | \
11360    module_expsym_cmds | \
11361    old_archive_from_expsyms_cmds | \
11362    export_symbols_cmds | \
11363    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11364    postinstall_cmds | postuninstall_cmds | \
11365    old_postinstall_cmds | old_postuninstall_cmds | \
11366    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11367      # Double-quote double-evaled strings.
11368      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11369      ;;
11370    *)
11371      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11372      ;;
11373    esac
11374  done
11375
11376  case $lt_echo in
11377  *'\$0 --fallback-echo"')
11378    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11379    ;;
11380  esac
11381
11382cfgfile="${ofile}T"
11383  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11384  $rm -f "$cfgfile"
11385  { echo "$as_me:$LINENO: creating $ofile" >&5
11386echo "$as_me: creating $ofile" >&6;}
11387
11388  cat <<__EOF__ >> "$cfgfile"
11389#! $SHELL
11390
11391# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11392# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11393# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11394#
11395# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11396# Free Software Foundation, Inc.
11397#
11398# This file is part of GNU Libtool:
11399# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11400#
11401# This program is free software; you can redistribute it and/or modify
11402# it under the terms of the GNU General Public License as published by
11403# the Free Software Foundation; either version 2 of the License, or
11404# (at your option) any later version.
11405#
11406# This program is distributed in the hope that it will be useful, but
11407# WITHOUT ANY WARRANTY; without even the implied warranty of
11408# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11409# General Public License for more details.
11410#
11411# You should have received a copy of the GNU General Public License
11412# along with this program; if not, write to the Free Software
11413# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11414#
11415# As a special exception to the GNU General Public License, if you
11416# distribute this file as part of a program that contains a
11417# configuration script generated by Autoconf, you may include it under
11418# the same distribution terms that you use for the rest of that program.
11419
11420# A sed program that does not truncate output.
11421SED=$lt_SED
11422
11423# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11424Xsed="$SED -e 1s/^X//"
11425
11426# The HP-UX ksh and POSIX shell print the target directory to stdout
11427# if CDPATH is set.
11428(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11429
11430# The names of the tagged configurations supported by this script.
11431available_tags=
11432
11433# ### BEGIN LIBTOOL CONFIG
11434
11435# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11436
11437# Shell to use when invoking shell scripts.
11438SHELL=$lt_SHELL
11439
11440# Whether or not to build shared libraries.
11441build_libtool_libs=$enable_shared
11442
11443# Whether or not to build static libraries.
11444build_old_libs=$enable_static
11445
11446# Whether or not to add -lc for building shared libraries.
11447build_libtool_need_lc=$archive_cmds_need_lc
11448
11449# Whether or not to disallow shared libs when runtime libs are static
11450allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11451
11452# Whether or not to optimize for fast installation.
11453fast_install=$enable_fast_install
11454
11455# The host system.
11456host_alias=$host_alias
11457host=$host
11458host_os=$host_os
11459
11460# The build system.
11461build_alias=$build_alias
11462build=$build
11463build_os=$build_os
11464
11465# An echo program that does not interpret backslashes.
11466echo=$lt_echo
11467
11468# The archiver.
11469AR=$lt_AR
11470AR_FLAGS=$lt_AR_FLAGS
11471
11472# A C compiler.
11473LTCC=$lt_LTCC
11474
11475# LTCC compiler flags.
11476LTCFLAGS=$lt_LTCFLAGS
11477
11478# A language-specific compiler.
11479CC=$lt_compiler
11480
11481# Is the compiler the GNU C compiler?
11482with_gcc=$GCC
11483
11484# An ERE matcher.
11485EGREP=$lt_EGREP
11486
11487# The linker used to build libraries.
11488LD=$lt_LD
11489
11490# Whether we need hard or soft links.
11491LN_S=$lt_LN_S
11492
11493# A BSD-compatible nm program.
11494NM=$lt_NM
11495
11496# A symbol stripping program
11497STRIP=$lt_STRIP
11498
11499# Used to examine libraries when file_magic_cmd begins "file"
11500MAGIC_CMD=$MAGIC_CMD
11501
11502# Used on cygwin: DLL creation program.
11503DLLTOOL="$DLLTOOL"
11504
11505# Used on cygwin: object dumper.
11506OBJDUMP="$OBJDUMP"
11507
11508# Used on cygwin: assembler.
11509AS="$AS"
11510
11511# The name of the directory that contains temporary libtool files.
11512objdir=$objdir
11513
11514# How to create reloadable object files.
11515reload_flag=$lt_reload_flag
11516reload_cmds=$lt_reload_cmds
11517
11518# How to pass a linker flag through the compiler.
11519wl=$lt_lt_prog_compiler_wl
11520
11521# Object file suffix (normally "o").
11522objext="$ac_objext"
11523
11524# Old archive suffix (normally "a").
11525libext="$libext"
11526
11527# Shared library suffix (normally ".so").
11528shrext_cmds='$shrext_cmds'
11529
11530# Executable file suffix (normally "").
11531exeext="$exeext"
11532
11533# Additional compiler flags for building library objects.
11534pic_flag=$lt_lt_prog_compiler_pic
11535pic_mode=$pic_mode
11536
11537# What is the maximum length of a command?
11538max_cmd_len=$lt_cv_sys_max_cmd_len
11539
11540# Does compiler simultaneously support -c and -o options?
11541compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11542
11543# Must we lock files when doing compilation?
11544need_locks=$lt_need_locks
11545
11546# Do we need the lib prefix for modules?
11547need_lib_prefix=$need_lib_prefix
11548
11549# Do we need a version for libraries?
11550need_version=$need_version
11551
11552# Whether dlopen is supported.
11553dlopen_support=$enable_dlopen
11554
11555# Whether dlopen of programs is supported.
11556dlopen_self=$enable_dlopen_self
11557
11558# Whether dlopen of statically linked programs is supported.
11559dlopen_self_static=$enable_dlopen_self_static
11560
11561# Compiler flag to prevent dynamic linking.
11562link_static_flag=$lt_lt_prog_compiler_static
11563
11564# Compiler flag to turn off builtin functions.
11565no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11566
11567# Compiler flag to allow reflexive dlopens.
11568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11569
11570# Compiler flag to generate shared objects directly from archives.
11571whole_archive_flag_spec=$lt_whole_archive_flag_spec
11572
11573# Compiler flag to generate thread-safe objects.
11574thread_safe_flag_spec=$lt_thread_safe_flag_spec
11575
11576# Library versioning type.
11577version_type=$version_type
11578
11579# Format of library name prefix.
11580libname_spec=$lt_libname_spec
11581
11582# List of archive names.  First name is the real one, the rest are links.
11583# The last name is the one that the linker finds with -lNAME.
11584library_names_spec=$lt_library_names_spec
11585
11586# The coded name of the library, if different from the real name.
11587soname_spec=$lt_soname_spec
11588
11589# Commands used to build and install an old-style archive.
11590RANLIB=$lt_RANLIB
11591old_archive_cmds=$lt_old_archive_cmds
11592old_postinstall_cmds=$lt_old_postinstall_cmds
11593old_postuninstall_cmds=$lt_old_postuninstall_cmds
11594
11595# Create an old-style archive from a shared archive.
11596old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11597
11598# Create a temporary old-style archive to link instead of a shared archive.
11599old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11600
11601# Commands used to build and install a shared archive.
11602archive_cmds=$lt_archive_cmds
11603archive_expsym_cmds=$lt_archive_expsym_cmds
11604postinstall_cmds=$lt_postinstall_cmds
11605postuninstall_cmds=$lt_postuninstall_cmds
11606
11607# Commands used to build a loadable module (assumed same as above if empty)
11608module_cmds=$lt_module_cmds
11609module_expsym_cmds=$lt_module_expsym_cmds
11610
11611# Commands to strip libraries.
11612old_striplib=$lt_old_striplib
11613striplib=$lt_striplib
11614
11615# Dependencies to place before the objects being linked to create a
11616# shared library.
11617predep_objects=$lt_predep_objects
11618
11619# Dependencies to place after the objects being linked to create a
11620# shared library.
11621postdep_objects=$lt_postdep_objects
11622
11623# Dependencies to place before the objects being linked to create a
11624# shared library.
11625predeps=$lt_predeps
11626
11627# Dependencies to place after the objects being linked to create a
11628# shared library.
11629postdeps=$lt_postdeps
11630
11631# The library search path used internally by the compiler when linking
11632# a shared library.
11633compiler_lib_search_path=$lt_compiler_lib_search_path
11634
11635# Method to check whether dependent libraries are shared objects.
11636deplibs_check_method=$lt_deplibs_check_method
11637
11638# Command to use when deplibs_check_method == file_magic.
11639file_magic_cmd=$lt_file_magic_cmd
11640
11641# Flag that allows shared libraries with undefined symbols to be built.
11642allow_undefined_flag=$lt_allow_undefined_flag
11643
11644# Flag that forces no undefined symbols.
11645no_undefined_flag=$lt_no_undefined_flag
11646
11647# Commands used to finish a libtool library installation in a directory.
11648finish_cmds=$lt_finish_cmds
11649
11650# Same as above, but a single script fragment to be evaled but not shown.
11651finish_eval=$lt_finish_eval
11652
11653# Take the output of nm and produce a listing of raw symbols and C names.
11654global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11655
11656# Transform the output of nm in a proper C declaration
11657global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11658
11659# Transform the output of nm in a C name address pair
11660global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11661
11662# This is the shared library runtime path variable.
11663runpath_var=$runpath_var
11664
11665# This is the shared library path variable.
11666shlibpath_var=$shlibpath_var
11667
11668# Is shlibpath searched before the hard-coded library search path?
11669shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11670
11671# How to hardcode a shared library path into an executable.
11672hardcode_action=$hardcode_action
11673
11674# Whether we should hardcode library paths into libraries.
11675hardcode_into_libs=$hardcode_into_libs
11676
11677# Flag to hardcode \$libdir into a binary during linking.
11678# This must work even if \$libdir does not exist.
11679hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11680
11681# If ld is used when linking, flag to hardcode \$libdir into
11682# a binary during linking. This must work even if \$libdir does
11683# not exist.
11684hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11685
11686# Whether we need a single -rpath flag with a separated argument.
11687hardcode_libdir_separator=$lt_hardcode_libdir_separator
11688
11689# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11690# resulting binary.
11691hardcode_direct=$hardcode_direct
11692
11693# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11694# resulting binary.
11695hardcode_minus_L=$hardcode_minus_L
11696
11697# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11698# the resulting binary.
11699hardcode_shlibpath_var=$hardcode_shlibpath_var
11700
11701# Set to yes if building a shared library automatically hardcodes DIR into the library
11702# and all subsequent libraries and executables linked against it.
11703hardcode_automatic=$hardcode_automatic
11704
11705# Variables whose values should be saved in libtool wrapper scripts and
11706# restored at relink time.
11707variables_saved_for_relink="$variables_saved_for_relink"
11708
11709# Whether libtool must link a program against all its dependency libraries.
11710link_all_deplibs=$link_all_deplibs
11711
11712# Compile-time system search path for libraries
11713sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11714
11715# Run-time system search path for libraries
11716sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11717
11718# Fix the shell variable \$srcfile for the compiler.
11719fix_srcfile_path="$fix_srcfile_path"
11720
11721# Set to yes if exported symbols are required.
11722always_export_symbols=$always_export_symbols
11723
11724# The commands to list exported symbols.
11725export_symbols_cmds=$lt_export_symbols_cmds
11726
11727# The commands to extract the exported symbol list from a shared archive.
11728extract_expsyms_cmds=$lt_extract_expsyms_cmds
11729
11730# Symbols that should not be listed in the preloaded symbols.
11731exclude_expsyms=$lt_exclude_expsyms
11732
11733# Symbols that must always be exported.
11734include_expsyms=$lt_include_expsyms
11735
11736# ### END LIBTOOL CONFIG
11737
11738__EOF__
11739
11740
11741  case $host_os in
11742  aix3*)
11743    cat <<\EOF >> "$cfgfile"
11744
11745# AIX sometimes has problems with the GCC collect2 program.  For some
11746# reason, if we set the COLLECT_NAMES environment variable, the problems
11747# vanish in a puff of smoke.
11748if test "X${COLLECT_NAMES+set}" != Xset; then
11749  COLLECT_NAMES=
11750  export COLLECT_NAMES
11751fi
11752EOF
11753    ;;
11754  esac
11755
11756  # We use sed instead of cat because bash on DJGPP gets confused if
11757  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11758  # text mode, it properly converts lines to CR/LF.  This bash problem
11759  # is reportedly fixed, but why not run on old versions too?
11760  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11761
11762  mv -f "$cfgfile" "$ofile" || \
11763    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11764  chmod +x "$ofile"
11765
11766else
11767  # If there is no Makefile yet, we rely on a make rule to execute
11768  # `config.status --recheck' to rerun these tests and create the
11769  # libtool script then.
11770  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11771  if test -f "$ltmain_in"; then
11772    test -f Makefile && make "$ltmain"
11773  fi
11774fi
11775
11776
11777ac_ext=c
11778ac_cpp='$CPP $CPPFLAGS'
11779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782
11783CC="$lt_save_CC"
11784
11785
11786# Check whether --with-tags or --without-tags was given.
11787if test "${with_tags+set}" = set; then
11788  withval="$with_tags"
11789  tagnames="$withval"
11790fi;
11791
11792if test -f "$ltmain" && test -n "$tagnames"; then
11793  if test ! -f "${ofile}"; then
11794    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11795echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11796  fi
11797
11798  if test -z "$LTCC"; then
11799    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11800    if test -z "$LTCC"; then
11801      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11802echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11803    else
11804      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11805echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11806    fi
11807  fi
11808  if test -z "$LTCFLAGS"; then
11809    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11810  fi
11811
11812  # Extract list of available tagged configurations in $ofile.
11813  # Note that this assumes the entire list is on one line.
11814  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11815
11816  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11817  for tagname in $tagnames; do
11818    IFS="$lt_save_ifs"
11819    # Check whether tagname contains only valid characters
11820    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11821    "") ;;
11822    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11823echo "$as_me: error: invalid tag name: $tagname" >&2;}
11824   { (exit 1); exit 1; }; }
11825	;;
11826    esac
11827
11828    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11829    then
11830      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11831echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11832   { (exit 1); exit 1; }; }
11833    fi
11834
11835    # Update the list of available tags.
11836    if test -n "$tagname"; then
11837      echo appending configuration tag \"$tagname\" to $ofile
11838
11839      case $tagname in
11840      CXX)
11841	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11842	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11843	    (test "X$CXX" != "Xg++"))) ; then
11844	  ac_ext=cc
11845ac_cpp='$CXXCPP $CPPFLAGS'
11846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11849
11850
11851
11852
11853archive_cmds_need_lc_CXX=no
11854allow_undefined_flag_CXX=
11855always_export_symbols_CXX=no
11856archive_expsym_cmds_CXX=
11857export_dynamic_flag_spec_CXX=
11858hardcode_direct_CXX=no
11859hardcode_libdir_flag_spec_CXX=
11860hardcode_libdir_flag_spec_ld_CXX=
11861hardcode_libdir_separator_CXX=
11862hardcode_minus_L_CXX=no
11863hardcode_shlibpath_var_CXX=unsupported
11864hardcode_automatic_CXX=no
11865module_cmds_CXX=
11866module_expsym_cmds_CXX=
11867link_all_deplibs_CXX=unknown
11868old_archive_cmds_CXX=$old_archive_cmds
11869no_undefined_flag_CXX=
11870whole_archive_flag_spec_CXX=
11871enable_shared_with_static_runtimes_CXX=no
11872
11873# Dependencies to place before and after the object being linked:
11874predep_objects_CXX=
11875postdep_objects_CXX=
11876predeps_CXX=
11877postdeps_CXX=
11878compiler_lib_search_path_CXX=
11879
11880# Source file extension for C++ test sources.
11881ac_ext=cpp
11882
11883# Object file extension for compiled C++ test sources.
11884objext=o
11885objext_CXX=$objext
11886
11887# Code to be used in simple compile tests
11888lt_simple_compile_test_code="int some_variable = 0;\n"
11889
11890# Code to be used in simple link tests
11891lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11892
11893# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11894
11895# If no C compiler was specified, use CC.
11896LTCC=${LTCC-"$CC"}
11897
11898# If no C compiler flags were specified, use CFLAGS.
11899LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11900
11901# Allow CC to be a program name with arguments.
11902compiler=$CC
11903
11904
11905# save warnings/boilerplate of simple test code
11906ac_outfile=conftest.$ac_objext
11907printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11908eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11909_lt_compiler_boilerplate=`cat conftest.err`
11910$rm conftest*
11911
11912ac_outfile=conftest.$ac_objext
11913printf "$lt_simple_link_test_code" >conftest.$ac_ext
11914eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11915_lt_linker_boilerplate=`cat conftest.err`
11916$rm conftest*
11917
11918
11919# Allow CC to be a program name with arguments.
11920lt_save_CC=$CC
11921lt_save_LD=$LD
11922lt_save_GCC=$GCC
11923GCC=$GXX
11924lt_save_with_gnu_ld=$with_gnu_ld
11925lt_save_path_LD=$lt_cv_path_LD
11926if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11927  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11928else
11929  $as_unset lt_cv_prog_gnu_ld
11930fi
11931if test -n "${lt_cv_path_LDCXX+set}"; then
11932  lt_cv_path_LD=$lt_cv_path_LDCXX
11933else
11934  $as_unset lt_cv_path_LD
11935fi
11936test -z "${LDCXX+set}" || LD=$LDCXX
11937CC=${CXX-"c++"}
11938compiler=$CC
11939compiler_CXX=$CC
11940for cc_temp in $compiler""; do
11941  case $cc_temp in
11942    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11943    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11944    \-*) ;;
11945    *) break;;
11946  esac
11947done
11948cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11949
11950
11951# We don't want -fno-exception wen compiling C++ code, so set the
11952# no_builtin_flag separately
11953if test "$GXX" = yes; then
11954  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11955else
11956  lt_prog_compiler_no_builtin_flag_CXX=
11957fi
11958
11959if test "$GXX" = yes; then
11960  # Set up default GNU C++ configuration
11961
11962
11963# Check whether --with-gnu-ld or --without-gnu-ld was given.
11964if test "${with_gnu_ld+set}" = set; then
11965  withval="$with_gnu_ld"
11966  test "$withval" = no || with_gnu_ld=yes
11967else
11968  with_gnu_ld=no
11969fi;
11970ac_prog=ld
11971if test "$GCC" = yes; then
11972  # Check if gcc -print-prog-name=ld gives a path.
11973  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11974echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11975  case $host in
11976  *-*-mingw*)
11977    # gcc leaves a trailing carriage return which upsets mingw
11978    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11979  *)
11980    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11981  esac
11982  case $ac_prog in
11983    # Accept absolute paths.
11984    [\\/]* | ?:[\\/]*)
11985      re_direlt='/[^/][^/]*/\.\./'
11986      # Canonicalize the pathname of ld
11987      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11988      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11989	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11990      done
11991      test -z "$LD" && LD="$ac_prog"
11992      ;;
11993  "")
11994    # If it fails, then pretend we aren't using GCC.
11995    ac_prog=ld
11996    ;;
11997  *)
11998    # If it is relative, then search for the first ld in PATH.
11999    with_gnu_ld=unknown
12000    ;;
12001  esac
12002elif test "$with_gnu_ld" = yes; then
12003  echo "$as_me:$LINENO: checking for GNU ld" >&5
12004echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12005else
12006  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12007echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12008fi
12009if test "${lt_cv_path_LD+set}" = set; then
12010  echo $ECHO_N "(cached) $ECHO_C" >&6
12011else
12012  if test -z "$LD"; then
12013  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12014  for ac_dir in $PATH; do
12015    IFS="$lt_save_ifs"
12016    test -z "$ac_dir" && ac_dir=.
12017    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12018      lt_cv_path_LD="$ac_dir/$ac_prog"
12019      # Check to see if the program is GNU ld.  I'd rather use --version,
12020      # but apparently some variants of GNU ld only accept -v.
12021      # Break only if it was the GNU/non-GNU ld that we prefer.
12022      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12023      *GNU* | *'with BFD'*)
12024	test "$with_gnu_ld" != no && break
12025	;;
12026      *)
12027	test "$with_gnu_ld" != yes && break
12028	;;
12029      esac
12030    fi
12031  done
12032  IFS="$lt_save_ifs"
12033else
12034  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12035fi
12036fi
12037
12038LD="$lt_cv_path_LD"
12039if test -n "$LD"; then
12040  echo "$as_me:$LINENO: result: $LD" >&5
12041echo "${ECHO_T}$LD" >&6
12042else
12043  echo "$as_me:$LINENO: result: no" >&5
12044echo "${ECHO_T}no" >&6
12045fi
12046test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12047echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12048   { (exit 1); exit 1; }; }
12049echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12050echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12051if test "${lt_cv_prog_gnu_ld+set}" = set; then
12052  echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12055case `$LD -v 2>&1 </dev/null` in
12056*GNU* | *'with BFD'*)
12057  lt_cv_prog_gnu_ld=yes
12058  ;;
12059*)
12060  lt_cv_prog_gnu_ld=no
12061  ;;
12062esac
12063fi
12064echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12065echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12066with_gnu_ld=$lt_cv_prog_gnu_ld
12067
12068
12069
12070  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12071  # archiving commands below assume that GNU ld is being used.
12072  if test "$with_gnu_ld" = yes; then
12073    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12074    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'
12075
12076    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12077    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12078
12079    # If archive_cmds runs LD, not CC, wlarc should be empty
12080    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12081    #     investigate it a little bit more. (MM)
12082    wlarc='${wl}'
12083
12084    # ancient GNU ld didn't support --whole-archive et. al.
12085    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12086	grep 'no-whole-archive' > /dev/null; then
12087      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12088    else
12089      whole_archive_flag_spec_CXX=
12090    fi
12091  else
12092    with_gnu_ld=no
12093    wlarc=
12094
12095    # A generic and very simple default shared library creation
12096    # command for GNU C++ for the case where it uses the native
12097    # linker, instead of GNU ld.  If possible, this setting should
12098    # overridden to take advantage of the native linker features on
12099    # the platform it is being used on.
12100    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12101  fi
12102
12103  # Commands to make compiler produce verbose output that lists
12104  # what "hidden" libraries, object files and flags are used when
12105  # linking a shared library.
12106  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12107
12108else
12109  GXX=no
12110  with_gnu_ld=no
12111  wlarc=
12112fi
12113
12114# PORTME: fill in a description of your system's C++ link characteristics
12115echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12117ld_shlibs_CXX=yes
12118case $host_os in
12119  aix3*)
12120    # FIXME: insert proper C++ library support
12121    ld_shlibs_CXX=no
12122    ;;
12123  aix4* | aix5*)
12124    if test "$host_cpu" = ia64; then
12125      # On IA64, the linker does run time linking by default, so we don't
12126      # have to do anything special.
12127      aix_use_runtimelinking=no
12128      exp_sym_flag='-Bexport'
12129      no_entry_flag=""
12130    else
12131      aix_use_runtimelinking=no
12132
12133      # Test if we are trying to use run time linking or normal
12134      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12135      # need to do runtime linking.
12136      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12137	for ld_flag in $LDFLAGS; do
12138	  case $ld_flag in
12139	  *-brtl*)
12140	    aix_use_runtimelinking=yes
12141	    break
12142	    ;;
12143	  esac
12144	done
12145	;;
12146      esac
12147
12148      exp_sym_flag='-bexport'
12149      no_entry_flag='-bnoentry'
12150    fi
12151
12152    # When large executables or shared objects are built, AIX ld can
12153    # have problems creating the table of contents.  If linking a library
12154    # or program results in "error TOC overflow" add -mminimal-toc to
12155    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12156    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12157
12158    archive_cmds_CXX=''
12159    hardcode_direct_CXX=yes
12160    hardcode_libdir_separator_CXX=':'
12161    link_all_deplibs_CXX=yes
12162
12163    if test "$GXX" = yes; then
12164      case $host_os in aix4.[012]|aix4.[012].*)
12165      # We only want to do this on AIX 4.2 and lower, the check
12166      # below for broken collect2 doesn't work under 4.3+
12167	collect2name=`${CC} -print-prog-name=collect2`
12168	if test -f "$collect2name" && \
12169	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12170	then
12171	  # We have reworked collect2
12172	  hardcode_direct_CXX=yes
12173	else
12174	  # We have old collect2
12175	  hardcode_direct_CXX=unsupported
12176	  # It fails to find uninstalled libraries when the uninstalled
12177	  # path is not listed in the libpath.  Setting hardcode_minus_L
12178	  # to unsupported forces relinking
12179	  hardcode_minus_L_CXX=yes
12180	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12181	  hardcode_libdir_separator_CXX=
12182	fi
12183	;;
12184      esac
12185      shared_flag='-shared'
12186      if test "$aix_use_runtimelinking" = yes; then
12187	shared_flag="$shared_flag "'${wl}-G'
12188      fi
12189    else
12190      # not using gcc
12191      if test "$host_cpu" = ia64; then
12192	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12193	# chokes on -Wl,-G. The following line is correct:
12194	shared_flag='-G'
12195      else
12196	if test "$aix_use_runtimelinking" = yes; then
12197	  shared_flag='${wl}-G'
12198	else
12199	  shared_flag='${wl}-bM:SRE'
12200	fi
12201      fi
12202    fi
12203
12204    # It seems that -bexpall does not export symbols beginning with
12205    # underscore (_), so it is better to generate a list of symbols to export.
12206    always_export_symbols_CXX=yes
12207    if test "$aix_use_runtimelinking" = yes; then
12208      # Warning - without using the other runtime loading flags (-brtl),
12209      # -berok will link without error, but may produce a broken library.
12210      allow_undefined_flag_CXX='-berok'
12211      # Determine the default libpath from the value encoded in an empty executable.
12212      cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h.  */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h.  */
12218
12219int
12220main ()
12221{
12222
12223  ;
12224  return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext conftest$ac_exeext
12228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229  (eval $ac_link) 2>conftest.er1
12230  ac_status=$?
12231  grep -v '^ *+' conftest.er1 >conftest.err
12232  rm -f conftest.er1
12233  cat conftest.err >&5
12234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235  (exit $ac_status); } &&
12236	 { ac_try='test -z "$ac_cxx_werror_flag"
12237			 || test ! -s conftest.err'
12238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239  (eval $ac_try) 2>&5
12240  ac_status=$?
12241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242  (exit $ac_status); }; } &&
12243	 { ac_try='test -s conftest$ac_exeext'
12244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245  (eval $ac_try) 2>&5
12246  ac_status=$?
12247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248  (exit $ac_status); }; }; then
12249
12250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12251}'`
12252# Check for a 64-bit object if we didn't find anything.
12253if 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; }
12254}'`; fi
12255else
12256  echo "$as_me: failed program was:" >&5
12257sed 's/^/| /' conftest.$ac_ext >&5
12258
12259fi
12260rm -f conftest.err conftest.$ac_objext \
12261      conftest$ac_exeext conftest.$ac_ext
12262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12263
12264      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12265
12266      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"
12267     else
12268      if test "$host_cpu" = ia64; then
12269	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12270	allow_undefined_flag_CXX="-z nodefs"
12271	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"
12272      else
12273	# Determine the default libpath from the value encoded in an empty executable.
12274	cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h.  */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h.  */
12280
12281int
12282main ()
12283{
12284
12285  ;
12286  return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext conftest$ac_exeext
12290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291  (eval $ac_link) 2>conftest.er1
12292  ac_status=$?
12293  grep -v '^ *+' conftest.er1 >conftest.err
12294  rm -f conftest.er1
12295  cat conftest.err >&5
12296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297  (exit $ac_status); } &&
12298	 { ac_try='test -z "$ac_cxx_werror_flag"
12299			 || test ! -s conftest.err'
12300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301  (eval $ac_try) 2>&5
12302  ac_status=$?
12303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304  (exit $ac_status); }; } &&
12305	 { ac_try='test -s conftest$ac_exeext'
12306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307  (eval $ac_try) 2>&5
12308  ac_status=$?
12309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310  (exit $ac_status); }; }; then
12311
12312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12313}'`
12314# Check for a 64-bit object if we didn't find anything.
12315if 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; }
12316}'`; fi
12317else
12318  echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321fi
12322rm -f conftest.err conftest.$ac_objext \
12323      conftest$ac_exeext conftest.$ac_ext
12324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12325
12326	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12327	# Warning - without using the other run time loading flags,
12328	# -berok will link without error, but may produce a broken library.
12329	no_undefined_flag_CXX=' ${wl}-bernotok'
12330	allow_undefined_flag_CXX=' ${wl}-berok'
12331	# Exported symbols can be pulled into shared objects from archives
12332	whole_archive_flag_spec_CXX='$convenience'
12333	archive_cmds_need_lc_CXX=yes
12334	# This is similar to how AIX traditionally builds its shared libraries.
12335	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'
12336      fi
12337    fi
12338    ;;
12339
12340  beos*)
12341    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12342      allow_undefined_flag_CXX=unsupported
12343      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12344      # support --undefined.  This deserves some investigation.  FIXME
12345      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346    else
12347      ld_shlibs_CXX=no
12348    fi
12349    ;;
12350
12351  chorus*)
12352    case $cc_basename in
12353      *)
12354	# FIXME: insert proper C++ library support
12355	ld_shlibs_CXX=no
12356	;;
12357    esac
12358    ;;
12359
12360  cygwin* | mingw* | pw32*)
12361    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12362    # as there is no search path for DLLs.
12363    hardcode_libdir_flag_spec_CXX='-L$libdir'
12364    allow_undefined_flag_CXX=unsupported
12365    always_export_symbols_CXX=no
12366    enable_shared_with_static_runtimes_CXX=yes
12367
12368    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12369      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'
12370      # If the export-symbols file already is a .def file (1st line
12371      # is EXPORTS), use it as is; otherwise, prepend...
12372      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12373	cp $export_symbols $output_objdir/$soname.def;
12374      else
12375	echo EXPORTS > $output_objdir/$soname.def;
12376	cat $export_symbols >> $output_objdir/$soname.def;
12377      fi~
12378      $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'
12379    else
12380      ld_shlibs_CXX=no
12381    fi
12382  ;;
12383      darwin* | rhapsody*)
12384        case $host_os in
12385        rhapsody* | darwin1.[012])
12386         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12387         ;;
12388       *) # Darwin 1.3 on
12389         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12390           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12391         else
12392           case ${MACOSX_DEPLOYMENT_TARGET} in
12393             10.[012])
12394               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12395               ;;
12396             10.*)
12397               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12398               ;;
12399           esac
12400         fi
12401         ;;
12402        esac
12403      archive_cmds_need_lc_CXX=no
12404      hardcode_direct_CXX=no
12405      hardcode_automatic_CXX=yes
12406      hardcode_shlibpath_var_CXX=unsupported
12407      whole_archive_flag_spec_CXX=''
12408      link_all_deplibs_CXX=yes
12409
12410    if test "$GXX" = yes ; then
12411      lt_int_apple_cc_single_mod=no
12412      output_verbose_link_cmd='echo'
12413      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12414       lt_int_apple_cc_single_mod=yes
12415      fi
12416      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12417       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12418      else
12419          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'
12420        fi
12421        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12422        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12423          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12424            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}'
12425          else
12426            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}'
12427          fi
12428            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}'
12429      else
12430      case $cc_basename in
12431        xlc*)
12432         output_verbose_link_cmd='echo'
12433          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'
12434          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12435          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12436          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}'
12437          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}'
12438          ;;
12439       *)
12440         ld_shlibs_CXX=no
12441          ;;
12442      esac
12443      fi
12444        ;;
12445
12446  dgux*)
12447    case $cc_basename in
12448      ec++*)
12449	# FIXME: insert proper C++ library support
12450	ld_shlibs_CXX=no
12451	;;
12452      ghcx*)
12453	# Green Hills C++ Compiler
12454	# FIXME: insert proper C++ library support
12455	ld_shlibs_CXX=no
12456	;;
12457      *)
12458	# FIXME: insert proper C++ library support
12459	ld_shlibs_CXX=no
12460	;;
12461    esac
12462    ;;
12463  freebsd[12]*)
12464    # C++ shared libraries reported to be fairly broken before switch to ELF
12465    ld_shlibs_CXX=no
12466    ;;
12467  freebsd-elf*)
12468    archive_cmds_need_lc_CXX=no
12469    ;;
12470  freebsd* | kfreebsd*-gnu | dragonfly*)
12471    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12472    # conventions
12473    ld_shlibs_CXX=yes
12474    ;;
12475  gnu*)
12476    ;;
12477  hpux9*)
12478    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479    hardcode_libdir_separator_CXX=:
12480    export_dynamic_flag_spec_CXX='${wl}-E'
12481    hardcode_direct_CXX=yes
12482    hardcode_minus_L_CXX=yes # Not in the search PATH,
12483				# but as the default
12484				# location of the library.
12485
12486    case $cc_basename in
12487    CC*)
12488      # FIXME: insert proper C++ library support
12489      ld_shlibs_CXX=no
12490      ;;
12491    aCC*)
12492      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'
12493      # Commands to make compiler produce verbose output that lists
12494      # what "hidden" libraries, object files and flags are used when
12495      # linking a shared library.
12496      #
12497      # There doesn't appear to be a way to prevent this compiler from
12498      # explicitly linking system object files so we need to strip them
12499      # from the output so that they don't get included in the library
12500      # dependencies.
12501      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'
12502      ;;
12503    *)
12504      if test "$GXX" = yes; then
12505        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'
12506      else
12507        # FIXME: insert proper C++ library support
12508        ld_shlibs_CXX=no
12509      fi
12510      ;;
12511    esac
12512    ;;
12513  hpux10*|hpux11*)
12514    if test $with_gnu_ld = no; then
12515      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12516      hardcode_libdir_separator_CXX=:
12517
12518      case $host_cpu in
12519      hppa*64*|ia64*)
12520	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12521        ;;
12522      *)
12523	export_dynamic_flag_spec_CXX='${wl}-E'
12524        ;;
12525      esac
12526    fi
12527    case $host_cpu in
12528    hppa*64*|ia64*)
12529      hardcode_direct_CXX=no
12530      hardcode_shlibpath_var_CXX=no
12531      ;;
12532    *)
12533      hardcode_direct_CXX=yes
12534      hardcode_minus_L_CXX=yes # Not in the search PATH,
12535					      # but as the default
12536					      # location of the library.
12537      ;;
12538    esac
12539
12540    case $cc_basename in
12541      CC*)
12542	# FIXME: insert proper C++ library support
12543	ld_shlibs_CXX=no
12544	;;
12545      aCC*)
12546	case $host_cpu in
12547	hppa*64*)
12548	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12549	  ;;
12550	ia64*)
12551	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12552	  ;;
12553	*)
12554	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555	  ;;
12556	esac
12557	# Commands to make compiler produce verbose output that lists
12558	# what "hidden" libraries, object files and flags are used when
12559	# linking a shared library.
12560	#
12561	# There doesn't appear to be a way to prevent this compiler from
12562	# explicitly linking system object files so we need to strip them
12563	# from the output so that they don't get included in the library
12564	# dependencies.
12565	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'
12566	;;
12567      *)
12568	if test "$GXX" = yes; then
12569	  if test $with_gnu_ld = no; then
12570	    case $host_cpu in
12571	    hppa*64*)
12572	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12573	      ;;
12574	    ia64*)
12575	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12576	      ;;
12577	    *)
12578	      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'
12579	      ;;
12580	    esac
12581	  fi
12582	else
12583	  # FIXME: insert proper C++ library support
12584	  ld_shlibs_CXX=no
12585	fi
12586	;;
12587    esac
12588    ;;
12589  interix3*)
12590    hardcode_direct_CXX=no
12591    hardcode_shlibpath_var_CXX=no
12592    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12593    export_dynamic_flag_spec_CXX='${wl}-E'
12594    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12595    # Instead, shared libraries are loaded at an image base (0x10000000 by
12596    # default) and relocated if they conflict, which is a slow very memory
12597    # consuming and fragmenting process.  To avoid this, we pick a random,
12598    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12599    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12600    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'
12601    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'
12602    ;;
12603  irix5* | irix6*)
12604    case $cc_basename in
12605      CC*)
12606	# SGI C++
12607	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'
12608
12609	# Archives containing C++ object files must be created using
12610	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12611	# necessary to make sure instantiated templates are included
12612	# in the archive.
12613	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12614	;;
12615      *)
12616	if test "$GXX" = yes; then
12617	  if test "$with_gnu_ld" = no; then
12618	    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'
12619	  else
12620	    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'
12621	  fi
12622	fi
12623	link_all_deplibs_CXX=yes
12624	;;
12625    esac
12626    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12627    hardcode_libdir_separator_CXX=:
12628    ;;
12629  linux*)
12630    case $cc_basename in
12631      KCC*)
12632	# Kuck and Associates, Inc. (KAI) C++ Compiler
12633
12634	# KCC will only create a shared library if the output file
12635	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12636	# to its proper name (with version) after linking.
12637	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'
12638	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'
12639	# Commands to make compiler produce verbose output that lists
12640	# what "hidden" libraries, object files and flags are used when
12641	# linking a shared library.
12642	#
12643	# There doesn't appear to be a way to prevent this compiler from
12644	# explicitly linking system object files so we need to strip them
12645	# from the output so that they don't get included in the library
12646	# dependencies.
12647	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'
12648
12649	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12650	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12651
12652	# Archives containing C++ object files must be created using
12653	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12654	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12655	;;
12656      icpc*)
12657	# Intel C++
12658	with_gnu_ld=yes
12659	# version 8.0 and above of icpc choke on multiply defined symbols
12660	# if we add $predep_objects and $postdep_objects, however 7.1 and
12661	# earlier do not add the objects themselves.
12662	case `$CC -V 2>&1` in
12663	*"Version 7."*)
12664  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665  	  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'
12666	  ;;
12667	*)  # Version 8.0 or newer
12668	  tmp_idyn=
12669	  case $host_cpu in
12670	    ia64*) tmp_idyn=' -i_dynamic';;
12671	  esac
12672  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12673	  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'
12674	  ;;
12675	esac
12676	archive_cmds_need_lc_CXX=no
12677	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12678	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12680	;;
12681      pgCC*)
12682        # Portland Group C++ compiler
12683	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12684  	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'
12685
12686	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12687	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12688	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'
12689        ;;
12690      cxx*)
12691	# Compaq C++
12692	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693	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'
12694
12695	runpath_var=LD_RUN_PATH
12696	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12697	hardcode_libdir_separator_CXX=:
12698
12699	# Commands to make compiler produce verbose output that lists
12700	# what "hidden" libraries, object files and flags are used when
12701	# linking a shared library.
12702	#
12703	# There doesn't appear to be a way to prevent this compiler from
12704	# explicitly linking system object files so we need to strip them
12705	# from the output so that they don't get included in the library
12706	# dependencies.
12707	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'
12708	;;
12709    esac
12710    ;;
12711  lynxos*)
12712    # FIXME: insert proper C++ library support
12713    ld_shlibs_CXX=no
12714    ;;
12715  m88k*)
12716    # FIXME: insert proper C++ library support
12717    ld_shlibs_CXX=no
12718    ;;
12719  mvs*)
12720    case $cc_basename in
12721      cxx*)
12722	# FIXME: insert proper C++ library support
12723	ld_shlibs_CXX=no
12724	;;
12725      *)
12726	# FIXME: insert proper C++ library support
12727	ld_shlibs_CXX=no
12728	;;
12729    esac
12730    ;;
12731  netbsd*)
12732    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12733      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12734      wlarc=
12735      hardcode_libdir_flag_spec_CXX='-R$libdir'
12736      hardcode_direct_CXX=yes
12737      hardcode_shlibpath_var_CXX=no
12738    fi
12739    # Workaround some broken pre-1.5 toolchains
12740    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12741    ;;
12742  openbsd2*)
12743    # C++ shared libraries are fairly broken
12744    ld_shlibs_CXX=no
12745    ;;
12746  openbsd*)
12747    hardcode_direct_CXX=yes
12748    hardcode_shlibpath_var_CXX=no
12749    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12750    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12751    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12752      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12753      export_dynamic_flag_spec_CXX='${wl}-E'
12754      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12755    fi
12756    output_verbose_link_cmd='echo'
12757    ;;
12758  osf3*)
12759    case $cc_basename in
12760      KCC*)
12761	# Kuck and Associates, Inc. (KAI) C++ Compiler
12762
12763	# KCC will only create a shared library if the output file
12764	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12765	# to its proper name (with version) after linking.
12766	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'
12767
12768	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12769	hardcode_libdir_separator_CXX=:
12770
12771	# Archives containing C++ object files must be created using
12772	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12773	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12774
12775	;;
12776      RCC*)
12777	# Rational C++ 2.4.1
12778	# FIXME: insert proper C++ library support
12779	ld_shlibs_CXX=no
12780	;;
12781      cxx*)
12782	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12783	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'
12784
12785	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12786	hardcode_libdir_separator_CXX=:
12787
12788	# Commands to make compiler produce verbose output that lists
12789	# what "hidden" libraries, object files and flags are used when
12790	# linking a shared library.
12791	#
12792	# There doesn't appear to be a way to prevent this compiler from
12793	# explicitly linking system object files so we need to strip them
12794	# from the output so that they don't get included in the library
12795	# dependencies.
12796	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'
12797	;;
12798      *)
12799	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12800	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12801	  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'
12802
12803	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12804	  hardcode_libdir_separator_CXX=:
12805
12806	  # Commands to make compiler produce verbose output that lists
12807	  # what "hidden" libraries, object files and flags are used when
12808	  # linking a shared library.
12809	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12810
12811	else
12812	  # FIXME: insert proper C++ library support
12813	  ld_shlibs_CXX=no
12814	fi
12815	;;
12816    esac
12817    ;;
12818  osf4* | osf5*)
12819    case $cc_basename in
12820      KCC*)
12821	# Kuck and Associates, Inc. (KAI) C++ Compiler
12822
12823	# KCC will only create a shared library if the output file
12824	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12825	# to its proper name (with version) after linking.
12826	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'
12827
12828	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12829	hardcode_libdir_separator_CXX=:
12830
12831	# Archives containing C++ object files must be created using
12832	# the KAI C++ compiler.
12833	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12834	;;
12835      RCC*)
12836	# Rational C++ 2.4.1
12837	# FIXME: insert proper C++ library support
12838	ld_shlibs_CXX=no
12839	;;
12840      cxx*)
12841	allow_undefined_flag_CXX=' -expect_unresolved \*'
12842	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'
12843	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12844	  echo "-hidden">> $lib.exp~
12845	  $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~
12846	  $rm $lib.exp'
12847
12848	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12849	hardcode_libdir_separator_CXX=:
12850
12851	# Commands to make compiler produce verbose output that lists
12852	# what "hidden" libraries, object files and flags are used when
12853	# linking a shared library.
12854	#
12855	# There doesn't appear to be a way to prevent this compiler from
12856	# explicitly linking system object files so we need to strip them
12857	# from the output so that they don't get included in the library
12858	# dependencies.
12859	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'
12860	;;
12861      *)
12862	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12863	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12864	 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'
12865
12866	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12867	  hardcode_libdir_separator_CXX=:
12868
12869	  # Commands to make compiler produce verbose output that lists
12870	  # what "hidden" libraries, object files and flags are used when
12871	  # linking a shared library.
12872	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12873
12874	else
12875	  # FIXME: insert proper C++ library support
12876	  ld_shlibs_CXX=no
12877	fi
12878	;;
12879    esac
12880    ;;
12881  psos*)
12882    # FIXME: insert proper C++ library support
12883    ld_shlibs_CXX=no
12884    ;;
12885  sunos4*)
12886    case $cc_basename in
12887      CC*)
12888	# Sun C++ 4.x
12889	# FIXME: insert proper C++ library support
12890	ld_shlibs_CXX=no
12891	;;
12892      lcc*)
12893	# Lucid
12894	# FIXME: insert proper C++ library support
12895	ld_shlibs_CXX=no
12896	;;
12897      *)
12898	# FIXME: insert proper C++ library support
12899	ld_shlibs_CXX=no
12900	;;
12901    esac
12902    ;;
12903  solaris*)
12904    case $cc_basename in
12905      CC*)
12906	# Sun C++ 4.2, 5.x and Centerline C++
12907        archive_cmds_need_lc_CXX=yes
12908	no_undefined_flag_CXX=' -zdefs'
12909	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12910	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12911	$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'
12912
12913	hardcode_libdir_flag_spec_CXX='-R$libdir'
12914	hardcode_shlibpath_var_CXX=no
12915	case $host_os in
12916	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12917	  *)
12918	    # The C++ compiler is used as linker so we must use $wl
12919	    # flag to pass the commands to the underlying system
12920	    # linker. We must also pass each convience library through
12921	    # to the system linker between allextract/defaultextract.
12922	    # The C++ compiler will combine linker options so we
12923	    # cannot just pass the convience library names through
12924	    # without $wl.
12925	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12926	    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'
12927	    ;;
12928	esac
12929	link_all_deplibs_CXX=yes
12930
12931	output_verbose_link_cmd='echo'
12932
12933	# Archives containing C++ object files must be created using
12934	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12935	# necessary to make sure instantiated templates are included
12936	# in the archive.
12937	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12938	;;
12939      gcx*)
12940	# Green Hills C++ Compiler
12941	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12942
12943	# The C++ compiler must be used to create the archive.
12944	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12945	;;
12946      *)
12947	# GNU C++ compiler with Solaris linker
12948	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12949	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12950	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12951	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12952	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12953		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12954
12955	    # Commands to make compiler produce verbose output that lists
12956	    # what "hidden" libraries, object files and flags are used when
12957	    # linking a shared library.
12958	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12959	  else
12960	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12961	    # platform.
12962	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12963	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12964		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12965
12966	    # Commands to make compiler produce verbose output that lists
12967	    # what "hidden" libraries, object files and flags are used when
12968	    # linking a shared library.
12969	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12970	  fi
12971
12972	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12973	fi
12974	;;
12975    esac
12976    ;;
12977  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12978    no_undefined_flag_CXX='${wl}-z,text'
12979    archive_cmds_need_lc_CXX=no
12980    hardcode_shlibpath_var_CXX=no
12981    runpath_var='LD_RUN_PATH'
12982
12983    case $cc_basename in
12984      CC*)
12985	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987	;;
12988      *)
12989	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12991	;;
12992    esac
12993    ;;
12994  sysv5* | sco3.2v5* | sco5v6*)
12995    # Note: We can NOT use -z defs as we might desire, because we do not
12996    # link with -lc, and that would cause any symbols used from libc to
12997    # always be unresolved, which means just about no library would
12998    # ever link correctly.  If we're not using GNU ld we use -z text
12999    # though, which does catch some bad symbols but isn't as heavy-handed
13000    # as -z defs.
13001    # For security reasons, it is highly recommended that you always
13002    # use absolute paths for naming shared libraries, and exclude the
13003    # DT_RUNPATH tag from executables and libraries.  But doing so
13004    # requires that you compile everything twice, which is a pain.
13005    # So that behaviour is only enabled if SCOABSPATH is set to a
13006    # non-empty value in the environment.  Most likely only useful for
13007    # creating official distributions of packages.
13008    # This is a hack until libtool officially supports absolute path
13009    # names for shared libraries.
13010    no_undefined_flag_CXX='${wl}-z,text'
13011    allow_undefined_flag_CXX='${wl}-z,nodefs'
13012    archive_cmds_need_lc_CXX=no
13013    hardcode_shlibpath_var_CXX=no
13014    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13015    hardcode_libdir_separator_CXX=':'
13016    link_all_deplibs_CXX=yes
13017    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13018    runpath_var='LD_RUN_PATH'
13019
13020    case $cc_basename in
13021      CC*)
13022	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13023	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13024	;;
13025      *)
13026	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13027	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13028	;;
13029    esac
13030    ;;
13031  tandem*)
13032    case $cc_basename in
13033      NCC*)
13034	# NonStop-UX NCC 3.20
13035	# FIXME: insert proper C++ library support
13036	ld_shlibs_CXX=no
13037	;;
13038      *)
13039	# FIXME: insert proper C++ library support
13040	ld_shlibs_CXX=no
13041	;;
13042    esac
13043    ;;
13044  vxworks*)
13045    # FIXME: insert proper C++ library support
13046    ld_shlibs_CXX=no
13047    ;;
13048  *)
13049    # FIXME: insert proper C++ library support
13050    ld_shlibs_CXX=no
13051    ;;
13052esac
13053echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13054echo "${ECHO_T}$ld_shlibs_CXX" >&6
13055test "$ld_shlibs_CXX" = no && can_build_shared=no
13056
13057GCC_CXX="$GXX"
13058LD_CXX="$LD"
13059
13060## CAVEAT EMPTOR:
13061## There is no encapsulation within the following macros, do not change
13062## the running order or otherwise move them around unless you know exactly
13063## what you are doing...
13064
13065cat > conftest.$ac_ext <<EOF
13066class Foo
13067{
13068public:
13069  Foo (void) { a = 0; }
13070private:
13071  int a;
13072};
13073EOF
13074
13075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076  (eval $ac_compile) 2>&5
13077  ac_status=$?
13078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079  (exit $ac_status); }; then
13080  # Parse the compiler output and extract the necessary
13081  # objects, libraries and library flags.
13082
13083  # Sentinel used to keep track of whether or not we are before
13084  # the conftest object file.
13085  pre_test_object_deps_done=no
13086
13087  # The `*' in the case matches for architectures that use `case' in
13088  # $output_verbose_cmd can trigger glob expansion during the loop
13089  # eval without this substitution.
13090  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13091
13092  for p in `eval $output_verbose_link_cmd`; do
13093    case $p in
13094
13095    -L* | -R* | -l*)
13096       # Some compilers place space between "-{L,R}" and the path.
13097       # Remove the space.
13098       if test $p = "-L" \
13099	  || test $p = "-R"; then
13100	 prev=$p
13101	 continue
13102       else
13103	 prev=
13104       fi
13105
13106       if test "$pre_test_object_deps_done" = no; then
13107	 case $p in
13108	 -L* | -R*)
13109	   # Internal compiler library paths should come after those
13110	   # provided the user.  The postdeps already come after the
13111	   # user supplied libs so there is no need to process them.
13112	   if test -z "$compiler_lib_search_path_CXX"; then
13113	     compiler_lib_search_path_CXX="${prev}${p}"
13114	   else
13115	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13116	   fi
13117	   ;;
13118	 # The "-l" case would never come before the object being
13119	 # linked, so don't bother handling this case.
13120	 esac
13121       else
13122	 if test -z "$postdeps_CXX"; then
13123	   postdeps_CXX="${prev}${p}"
13124	 else
13125	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13126	 fi
13127       fi
13128       ;;
13129
13130    *.$objext)
13131       # This assumes that the test object file only shows up
13132       # once in the compiler output.
13133       if test "$p" = "conftest.$objext"; then
13134	 pre_test_object_deps_done=yes
13135	 continue
13136       fi
13137
13138       if test "$pre_test_object_deps_done" = no; then
13139	 if test -z "$predep_objects_CXX"; then
13140	   predep_objects_CXX="$p"
13141	 else
13142	   predep_objects_CXX="$predep_objects_CXX $p"
13143	 fi
13144       else
13145	 if test -z "$postdep_objects_CXX"; then
13146	   postdep_objects_CXX="$p"
13147	 else
13148	   postdep_objects_CXX="$postdep_objects_CXX $p"
13149	 fi
13150       fi
13151       ;;
13152
13153    *) ;; # Ignore the rest.
13154
13155    esac
13156  done
13157
13158  # Clean up.
13159  rm -f a.out a.exe
13160else
13161  echo "libtool.m4: error: problem compiling CXX test program"
13162fi
13163
13164$rm -f confest.$objext
13165
13166# PORTME: override above test on systems where it is broken
13167case $host_os in
13168interix3*)
13169  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13170  # hack all around it, let's just trust "g++" to DTRT.
13171  predep_objects_CXX=
13172  postdep_objects_CXX=
13173  postdeps_CXX=
13174  ;;
13175
13176solaris*)
13177  case $cc_basename in
13178  CC*)
13179    # Adding this requires a known-good setup of shared libraries for
13180    # Sun compiler versions before 5.6, else PIC objects from an old
13181    # archive will be linked into the output, leading to subtle bugs.
13182    postdeps_CXX='-lCstd -lCrun'
13183    ;;
13184  esac
13185  ;;
13186esac
13187
13188
13189case " $postdeps_CXX " in
13190*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13191esac
13192
13193lt_prog_compiler_wl_CXX=
13194lt_prog_compiler_pic_CXX=
13195lt_prog_compiler_static_CXX=
13196
13197echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13198echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13199
13200  # C++ specific cases for pic, static, wl, etc.
13201  if test "$GXX" = yes; then
13202    lt_prog_compiler_wl_CXX='-Wl,'
13203    lt_prog_compiler_static_CXX='-static'
13204
13205    case $host_os in
13206    aix*)
13207      # All AIX code is PIC.
13208      if test "$host_cpu" = ia64; then
13209	# AIX 5 now supports IA64 processor
13210	lt_prog_compiler_static_CXX='-Bstatic'
13211      fi
13212      ;;
13213    amigaos*)
13214      # FIXME: we need at least 68020 code to build shared libraries, but
13215      # adding the `-m68020' flag to GCC prevents building anything better,
13216      # like `-m68040'.
13217      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13218      ;;
13219    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13220      # PIC is the default for these OSes.
13221      ;;
13222    mingw* | os2* | pw32*)
13223      # This hack is so that the source file can tell whether it is being
13224      # built for inclusion in a dll (and should export symbols for example).
13225      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13226      ;;
13227    darwin* | rhapsody*)
13228      # PIC is the default on this platform
13229      # Common symbols not allowed in MH_DYLIB files
13230      lt_prog_compiler_pic_CXX='-fno-common'
13231      ;;
13232    *djgpp*)
13233      # DJGPP does not support shared libraries at all
13234      lt_prog_compiler_pic_CXX=
13235      ;;
13236    interix3*)
13237      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13238      # Instead, we relocate shared libraries at runtime.
13239      ;;
13240    sysv4*MP*)
13241      if test -d /usr/nec; then
13242	lt_prog_compiler_pic_CXX=-Kconform_pic
13243      fi
13244      ;;
13245    hpux*)
13246      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13247      # not for PA HP-UX.
13248      case $host_cpu in
13249      hppa*64*|ia64*)
13250	;;
13251      *)
13252	lt_prog_compiler_pic_CXX='-fPIC'
13253	;;
13254      esac
13255      ;;
13256    *)
13257      lt_prog_compiler_pic_CXX='-fPIC'
13258      ;;
13259    esac
13260  else
13261    case $host_os in
13262      aix4* | aix5*)
13263	# All AIX code is PIC.
13264	if test "$host_cpu" = ia64; then
13265	  # AIX 5 now supports IA64 processor
13266	  lt_prog_compiler_static_CXX='-Bstatic'
13267	else
13268	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13269	fi
13270	;;
13271      chorus*)
13272	case $cc_basename in
13273	cxch68*)
13274	  # Green Hills C++ Compiler
13275	  # _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"
13276	  ;;
13277	esac
13278	;;
13279       darwin*)
13280         # PIC is the default on this platform
13281         # Common symbols not allowed in MH_DYLIB files
13282         case $cc_basename in
13283           xlc*)
13284           lt_prog_compiler_pic_CXX='-qnocommon'
13285           lt_prog_compiler_wl_CXX='-Wl,'
13286           ;;
13287         esac
13288       ;;
13289      dgux*)
13290	case $cc_basename in
13291	  ec++*)
13292	    lt_prog_compiler_pic_CXX='-KPIC'
13293	    ;;
13294	  ghcx*)
13295	    # Green Hills C++ Compiler
13296	    lt_prog_compiler_pic_CXX='-pic'
13297	    ;;
13298	  *)
13299	    ;;
13300	esac
13301	;;
13302      freebsd* | kfreebsd*-gnu | dragonfly*)
13303	# FreeBSD uses GNU C++
13304	;;
13305      hpux9* | hpux10* | hpux11*)
13306	case $cc_basename in
13307	  CC*)
13308	    lt_prog_compiler_wl_CXX='-Wl,'
13309	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13310	    if test "$host_cpu" != ia64; then
13311	      lt_prog_compiler_pic_CXX='+Z'
13312	    fi
13313	    ;;
13314	  aCC*)
13315	    lt_prog_compiler_wl_CXX='-Wl,'
13316	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13317	    case $host_cpu in
13318	    hppa*64*|ia64*)
13319	      # +Z the default
13320	      ;;
13321	    *)
13322	      lt_prog_compiler_pic_CXX='+Z'
13323	      ;;
13324	    esac
13325	    ;;
13326	  *)
13327	    ;;
13328	esac
13329	;;
13330      interix*)
13331	# This is c89, which is MS Visual C++ (no shared libs)
13332	# Anyone wants to do a port?
13333	;;
13334      irix5* | irix6* | nonstopux*)
13335	case $cc_basename in
13336	  CC*)
13337	    lt_prog_compiler_wl_CXX='-Wl,'
13338	    lt_prog_compiler_static_CXX='-non_shared'
13339	    # CC pic flag -KPIC is the default.
13340	    ;;
13341	  *)
13342	    ;;
13343	esac
13344	;;
13345      linux*)
13346	case $cc_basename in
13347	  KCC*)
13348	    # KAI C++ Compiler
13349	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13350	    lt_prog_compiler_pic_CXX='-fPIC'
13351	    ;;
13352	  icpc* | ecpc*)
13353	    # Intel C++
13354	    lt_prog_compiler_wl_CXX='-Wl,'
13355	    lt_prog_compiler_pic_CXX='-KPIC'
13356	    lt_prog_compiler_static_CXX='-static'
13357	    ;;
13358	  pgCC*)
13359	    # Portland Group C++ compiler.
13360	    lt_prog_compiler_wl_CXX='-Wl,'
13361	    lt_prog_compiler_pic_CXX='-fpic'
13362	    lt_prog_compiler_static_CXX='-Bstatic'
13363	    ;;
13364	  cxx*)
13365	    # Compaq C++
13366	    # Make sure the PIC flag is empty.  It appears that all Alpha
13367	    # Linux and Compaq Tru64 Unix objects are PIC.
13368	    lt_prog_compiler_pic_CXX=
13369	    lt_prog_compiler_static_CXX='-non_shared'
13370	    ;;
13371	  *)
13372	    ;;
13373	esac
13374	;;
13375      lynxos*)
13376	;;
13377      m88k*)
13378	;;
13379      mvs*)
13380	case $cc_basename in
13381	  cxx*)
13382	    lt_prog_compiler_pic_CXX='-W c,exportall'
13383	    ;;
13384	  *)
13385	    ;;
13386	esac
13387	;;
13388      netbsd*)
13389	;;
13390      osf3* | osf4* | osf5*)
13391	case $cc_basename in
13392	  KCC*)
13393	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13394	    ;;
13395	  RCC*)
13396	    # Rational C++ 2.4.1
13397	    lt_prog_compiler_pic_CXX='-pic'
13398	    ;;
13399	  cxx*)
13400	    # Digital/Compaq C++
13401	    lt_prog_compiler_wl_CXX='-Wl,'
13402	    # Make sure the PIC flag is empty.  It appears that all Alpha
13403	    # Linux and Compaq Tru64 Unix objects are PIC.
13404	    lt_prog_compiler_pic_CXX=
13405	    lt_prog_compiler_static_CXX='-non_shared'
13406	    ;;
13407	  *)
13408	    ;;
13409	esac
13410	;;
13411      psos*)
13412	;;
13413      solaris*)
13414	case $cc_basename in
13415	  CC*)
13416	    # Sun C++ 4.2, 5.x and Centerline C++
13417	    lt_prog_compiler_pic_CXX='-KPIC'
13418	    lt_prog_compiler_static_CXX='-Bstatic'
13419	    lt_prog_compiler_wl_CXX='-Qoption ld '
13420	    ;;
13421	  gcx*)
13422	    # Green Hills C++ Compiler
13423	    lt_prog_compiler_pic_CXX='-PIC'
13424	    ;;
13425	  *)
13426	    ;;
13427	esac
13428	;;
13429      sunos4*)
13430	case $cc_basename in
13431	  CC*)
13432	    # Sun C++ 4.x
13433	    lt_prog_compiler_pic_CXX='-pic'
13434	    lt_prog_compiler_static_CXX='-Bstatic'
13435	    ;;
13436	  lcc*)
13437	    # Lucid
13438	    lt_prog_compiler_pic_CXX='-pic'
13439	    ;;
13440	  *)
13441	    ;;
13442	esac
13443	;;
13444      tandem*)
13445	case $cc_basename in
13446	  NCC*)
13447	    # NonStop-UX NCC 3.20
13448	    lt_prog_compiler_pic_CXX='-KPIC'
13449	    ;;
13450	  *)
13451	    ;;
13452	esac
13453	;;
13454      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13455	case $cc_basename in
13456	  CC*)
13457	    lt_prog_compiler_wl_CXX='-Wl,'
13458	    lt_prog_compiler_pic_CXX='-KPIC'
13459	    lt_prog_compiler_static_CXX='-Bstatic'
13460	    ;;
13461	esac
13462	;;
13463      vxworks*)
13464	;;
13465      *)
13466	lt_prog_compiler_can_build_shared_CXX=no
13467	;;
13468    esac
13469  fi
13470
13471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13472echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13473
13474#
13475# Check to make sure the PIC flag actually works.
13476#
13477if test -n "$lt_prog_compiler_pic_CXX"; then
13478
13479echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13480echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13481if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13482  echo $ECHO_N "(cached) $ECHO_C" >&6
13483else
13484  lt_prog_compiler_pic_works_CXX=no
13485  ac_outfile=conftest.$ac_objext
13486   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13487   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13488   # Insert the option either (1) after the last *FLAGS variable, or
13489   # (2) before a word containing "conftest.", or (3) at the end.
13490   # Note that $ac_compile itself does not contain backslashes and begins
13491   # with a dollar sign (not a hyphen), so the echo should work correctly.
13492   # The option is referenced via a variable to avoid confusing sed.
13493   lt_compile=`echo "$ac_compile" | $SED \
13494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13496   -e 's:$: $lt_compiler_flag:'`
13497   (eval echo "\"\$as_me:13497: $lt_compile\"" >&5)
13498   (eval "$lt_compile" 2>conftest.err)
13499   ac_status=$?
13500   cat conftest.err >&5
13501   echo "$as_me:13501: \$? = $ac_status" >&5
13502   if (exit $ac_status) && test -s "$ac_outfile"; then
13503     # The compiler can only warn and ignore the option if not recognized
13504     # So say no if there are warnings other than the usual output.
13505     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13506     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13507     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13508       lt_prog_compiler_pic_works_CXX=yes
13509     fi
13510   fi
13511   $rm conftest*
13512
13513fi
13514echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13515echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13516
13517if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13518    case $lt_prog_compiler_pic_CXX in
13519     "" | " "*) ;;
13520     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13521     esac
13522else
13523    lt_prog_compiler_pic_CXX=
13524     lt_prog_compiler_can_build_shared_CXX=no
13525fi
13526
13527fi
13528case $host_os in
13529  # For platforms which do not support PIC, -DPIC is meaningless:
13530  *djgpp*)
13531    lt_prog_compiler_pic_CXX=
13532    ;;
13533  *)
13534    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13535    ;;
13536esac
13537
13538#
13539# Check to make sure the static flag actually works.
13540#
13541wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13542echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13543echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13544if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13545  echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547  lt_prog_compiler_static_works_CXX=no
13548   save_LDFLAGS="$LDFLAGS"
13549   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13550   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13551   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13552     # The linker can only warn and ignore the option if not recognized
13553     # So say no if there are warnings
13554     if test -s conftest.err; then
13555       # Append any errors to the config.log.
13556       cat conftest.err 1>&5
13557       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13558       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13559       if diff conftest.exp conftest.er2 >/dev/null; then
13560         lt_prog_compiler_static_works_CXX=yes
13561       fi
13562     else
13563       lt_prog_compiler_static_works_CXX=yes
13564     fi
13565   fi
13566   $rm conftest*
13567   LDFLAGS="$save_LDFLAGS"
13568
13569fi
13570echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13571echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13572
13573if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13574    :
13575else
13576    lt_prog_compiler_static_CXX=
13577fi
13578
13579
13580echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13581echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13583  echo $ECHO_N "(cached) $ECHO_C" >&6
13584else
13585  lt_cv_prog_compiler_c_o_CXX=no
13586   $rm -r conftest 2>/dev/null
13587   mkdir conftest
13588   cd conftest
13589   mkdir out
13590   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13591
13592   lt_compiler_flag="-o out/conftest2.$ac_objext"
13593   # Insert the option either (1) after the last *FLAGS variable, or
13594   # (2) before a word containing "conftest.", or (3) at the end.
13595   # Note that $ac_compile itself does not contain backslashes and begins
13596   # with a dollar sign (not a hyphen), so the echo should work correctly.
13597   lt_compile=`echo "$ac_compile" | $SED \
13598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13600   -e 's:$: $lt_compiler_flag:'`
13601   (eval echo "\"\$as_me:13601: $lt_compile\"" >&5)
13602   (eval "$lt_compile" 2>out/conftest.err)
13603   ac_status=$?
13604   cat out/conftest.err >&5
13605   echo "$as_me:13605: \$? = $ac_status" >&5
13606   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13607   then
13608     # The compiler can only warn and ignore the option if not recognized
13609     # So say no if there are warnings
13610     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13611     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13612     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13613       lt_cv_prog_compiler_c_o_CXX=yes
13614     fi
13615   fi
13616   chmod u+w . 2>&5
13617   $rm conftest*
13618   # SGI C++ compiler will create directory out/ii_files/ for
13619   # template instantiation
13620   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13621   $rm out/* && rmdir out
13622   cd ..
13623   rmdir conftest
13624   $rm conftest*
13625
13626fi
13627echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13628echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13629
13630
13631hard_links="nottested"
13632if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13633  # do not overwrite the value of need_locks provided by the user
13634  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13635echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13636  hard_links=yes
13637  $rm conftest*
13638  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13639  touch conftest.a
13640  ln conftest.a conftest.b 2>&5 || hard_links=no
13641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13642  echo "$as_me:$LINENO: result: $hard_links" >&5
13643echo "${ECHO_T}$hard_links" >&6
13644  if test "$hard_links" = no; then
13645    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13646echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13647    need_locks=warn
13648  fi
13649else
13650  need_locks=no
13651fi
13652
13653echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13654echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13655
13656  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13657  case $host_os in
13658  aix4* | aix5*)
13659    # If we're using GNU nm, then we don't want the "-C" option.
13660    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13661    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13662      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'
13663    else
13664      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'
13665    fi
13666    ;;
13667  pw32*)
13668    export_symbols_cmds_CXX="$ltdll_cmds"
13669  ;;
13670  cygwin* | mingw*)
13671    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'
13672  ;;
13673  *)
13674    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13675  ;;
13676  esac
13677
13678echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13679echo "${ECHO_T}$ld_shlibs_CXX" >&6
13680test "$ld_shlibs_CXX" = no && can_build_shared=no
13681
13682#
13683# Do we need to explicitly link libc?
13684#
13685case "x$archive_cmds_need_lc_CXX" in
13686x|xyes)
13687  # Assume -lc should be added
13688  archive_cmds_need_lc_CXX=yes
13689
13690  if test "$enable_shared" = yes && test "$GCC" = yes; then
13691    case $archive_cmds_CXX in
13692    *'~'*)
13693      # FIXME: we may have to deal with multi-command sequences.
13694      ;;
13695    '$CC '*)
13696      # Test whether the compiler implicitly links with -lc since on some
13697      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13698      # to ld, don't add -lc before -lgcc.
13699      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13700echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13701      $rm conftest*
13702      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13703
13704      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705  (eval $ac_compile) 2>&5
13706  ac_status=$?
13707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708  (exit $ac_status); } 2>conftest.err; then
13709        soname=conftest
13710        lib=conftest
13711        libobjs=conftest.$ac_objext
13712        deplibs=
13713        wl=$lt_prog_compiler_wl_CXX
13714	pic_flag=$lt_prog_compiler_pic_CXX
13715        compiler_flags=-v
13716        linker_flags=-v
13717        verstring=
13718        output_objdir=.
13719        libname=conftest
13720        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13721        allow_undefined_flag_CXX=
13722        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13723  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13724  ac_status=$?
13725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726  (exit $ac_status); }
13727        then
13728	  archive_cmds_need_lc_CXX=no
13729        else
13730	  archive_cmds_need_lc_CXX=yes
13731        fi
13732        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13733      else
13734        cat conftest.err 1>&5
13735      fi
13736      $rm conftest*
13737      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13738echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13739      ;;
13740    esac
13741  fi
13742  ;;
13743esac
13744
13745echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13747library_names_spec=
13748libname_spec='lib$name'
13749soname_spec=
13750shrext_cmds=".so"
13751postinstall_cmds=
13752postuninstall_cmds=
13753finish_cmds=
13754finish_eval=
13755shlibpath_var=
13756shlibpath_overrides_runpath=unknown
13757version_type=none
13758dynamic_linker="$host_os ld.so"
13759sys_lib_dlsearch_path_spec="/lib /usr/lib"
13760if test "$GCC" = yes; then
13761  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13762  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13763    # if the path contains ";" then we assume it to be the separator
13764    # otherwise default to the standard path separator (i.e. ":") - it is
13765    # assumed that no part of a normal pathname contains ";" but that should
13766    # okay in the real world where ";" in dirpaths is itself problematic.
13767    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13768  else
13769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13770  fi
13771else
13772  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13773fi
13774need_lib_prefix=unknown
13775hardcode_into_libs=no
13776
13777# when you set need_version to no, make sure it does not cause -set_version
13778# flags to be left without arguments
13779need_version=unknown
13780
13781case $host_os in
13782aix3*)
13783  version_type=linux
13784  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13785  shlibpath_var=LIBPATH
13786
13787  # AIX 3 has no versioning support, so we append a major version to the name.
13788  soname_spec='${libname}${release}${shared_ext}$major'
13789  ;;
13790
13791aix4* | aix5*)
13792  version_type=linux
13793  need_lib_prefix=no
13794  need_version=no
13795  hardcode_into_libs=yes
13796  if test "$host_cpu" = ia64; then
13797    # AIX 5 supports IA64
13798    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13799    shlibpath_var=LD_LIBRARY_PATH
13800  else
13801    # With GCC up to 2.95.x, collect2 would create an import file
13802    # for dependence libraries.  The import file would start with
13803    # the line `#! .'.  This would cause the generated library to
13804    # depend on `.', always an invalid library.  This was fixed in
13805    # development snapshots of GCC prior to 3.0.
13806    case $host_os in
13807      aix4 | aix4.[01] | aix4.[01].*)
13808      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13809	   echo ' yes '
13810	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13811	:
13812      else
13813	can_build_shared=no
13814      fi
13815      ;;
13816    esac
13817    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13818    # soname into executable. Probably we can add versioning support to
13819    # collect2, so additional links can be useful in future.
13820    if test "$aix_use_runtimelinking" = yes; then
13821      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13822      # instead of lib<name>.a to let people know that these are not
13823      # typical AIX shared libraries.
13824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825    else
13826      # We preserve .a as extension for shared libraries through AIX4.2
13827      # and later when we are not doing run time linking.
13828      library_names_spec='${libname}${release}.a $libname.a'
13829      soname_spec='${libname}${release}${shared_ext}$major'
13830    fi
13831    shlibpath_var=LIBPATH
13832  fi
13833  ;;
13834
13835amigaos*)
13836  library_names_spec='$libname.ixlibrary $libname.a'
13837  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13838  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'
13839  ;;
13840
13841beos*)
13842  library_names_spec='${libname}${shared_ext}'
13843  dynamic_linker="$host_os ld.so"
13844  shlibpath_var=LIBRARY_PATH
13845  ;;
13846
13847bsdi[45]*)
13848  version_type=linux
13849  need_version=no
13850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851  soname_spec='${libname}${release}${shared_ext}$major'
13852  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13853  shlibpath_var=LD_LIBRARY_PATH
13854  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13855  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13856  # the default ld.so.conf also contains /usr/contrib/lib and
13857  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13858  # libtool to hard-code these into programs
13859  ;;
13860
13861cygwin* | mingw* | pw32*)
13862  version_type=windows
13863  shrext_cmds=".dll"
13864  need_version=no
13865  need_lib_prefix=no
13866
13867  case $GCC,$host_os in
13868  yes,cygwin* | yes,mingw* | yes,pw32*)
13869    library_names_spec='$libname.dll.a'
13870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13871    postinstall_cmds='base_file=`basename \${file}`~
13872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13873      dldir=$destdir/`dirname \$dlpath`~
13874      test -d \$dldir || mkdir -p \$dldir~
13875      $install_prog $dir/$dlname \$dldir/$dlname~
13876      chmod a+x \$dldir/$dlname'
13877    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13878      dlpath=$dir/\$dldll~
13879       $rm \$dlpath'
13880    shlibpath_overrides_runpath=yes
13881
13882    case $host_os in
13883    cygwin*)
13884      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13885      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13887      ;;
13888    mingw*)
13889      # MinGW DLLs use traditional 'lib' prefix
13890      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13891      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13892      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13893        # It is most probably a Windows format PATH printed by
13894        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13895        # path with ; separators, and with drive letters. We can handle the
13896        # drive letters (cygwin fileutils understands them), so leave them,
13897        # especially as we might pass files found there to a mingw objdump,
13898        # which wouldn't understand a cygwinified path. Ahh.
13899        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13900      else
13901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13902      fi
13903      ;;
13904    pw32*)
13905      # pw32 DLLs use 'pw' prefix rather than 'lib'
13906      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13907      ;;
13908    esac
13909    ;;
13910
13911  *)
13912    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13913    ;;
13914  esac
13915  dynamic_linker='Win32 ld.exe'
13916  # FIXME: first we should search . and the directory the executable is in
13917  shlibpath_var=PATH
13918  ;;
13919
13920darwin* | rhapsody*)
13921  dynamic_linker="$host_os dyld"
13922  version_type=darwin
13923  need_lib_prefix=no
13924  need_version=no
13925  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13926  soname_spec='${libname}${release}${major}$shared_ext'
13927  shlibpath_overrides_runpath=yes
13928  shlibpath_var=DYLD_LIBRARY_PATH
13929  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13930  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13931  if test "$GCC" = yes; then
13932    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"`
13933  else
13934    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13935  fi
13936  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13937  ;;
13938
13939dgux*)
13940  version_type=linux
13941  need_lib_prefix=no
13942  need_version=no
13943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13944  soname_spec='${libname}${release}${shared_ext}$major'
13945  shlibpath_var=LD_LIBRARY_PATH
13946  ;;
13947
13948freebsd1*)
13949  dynamic_linker=no
13950  ;;
13951
13952kfreebsd*-gnu)
13953  version_type=linux
13954  need_lib_prefix=no
13955  need_version=no
13956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13957  soname_spec='${libname}${release}${shared_ext}$major'
13958  shlibpath_var=LD_LIBRARY_PATH
13959  shlibpath_overrides_runpath=no
13960  hardcode_into_libs=yes
13961  dynamic_linker='GNU ld.so'
13962  ;;
13963
13964freebsd* | dragonfly*)
13965  # DragonFly does not have aout.  When/if they implement a new
13966  # versioning mechanism, adjust this.
13967  if test -x /usr/bin/objformat; then
13968    objformat=`/usr/bin/objformat`
13969  else
13970    case $host_os in
13971    freebsd[123]*) objformat=aout ;;
13972    *) objformat=elf ;;
13973    esac
13974  fi
13975  version_type=freebsd-$objformat
13976  case $version_type in
13977    freebsd-elf*)
13978      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13979      need_version=no
13980      need_lib_prefix=no
13981      ;;
13982    freebsd-*)
13983      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13984      need_version=yes
13985      ;;
13986  esac
13987  shlibpath_var=LD_LIBRARY_PATH
13988  case $host_os in
13989  freebsd2*)
13990    shlibpath_overrides_runpath=yes
13991    ;;
13992  freebsd3.[01]* | freebsdelf3.[01]*)
13993    shlibpath_overrides_runpath=yes
13994    hardcode_into_libs=yes
13995    ;;
13996  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13997  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13998    shlibpath_overrides_runpath=no
13999    hardcode_into_libs=yes
14000    ;;
14001  freebsd*) # from 4.6 on
14002    shlibpath_overrides_runpath=yes
14003    hardcode_into_libs=yes
14004    ;;
14005  esac
14006  ;;
14007
14008gnu*)
14009  version_type=linux
14010  need_lib_prefix=no
14011  need_version=no
14012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14013  soname_spec='${libname}${release}${shared_ext}$major'
14014  shlibpath_var=LD_LIBRARY_PATH
14015  hardcode_into_libs=yes
14016  ;;
14017
14018hpux9* | hpux10* | hpux11*)
14019  # Give a soname corresponding to the major version so that dld.sl refuses to
14020  # link against other versions.
14021  version_type=sunos
14022  need_lib_prefix=no
14023  need_version=no
14024  case $host_cpu in
14025  ia64*)
14026    shrext_cmds='.so'
14027    hardcode_into_libs=yes
14028    dynamic_linker="$host_os dld.so"
14029    shlibpath_var=LD_LIBRARY_PATH
14030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14032    soname_spec='${libname}${release}${shared_ext}$major'
14033    if test "X$HPUX_IA64_MODE" = X32; then
14034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14035    else
14036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14037    fi
14038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14039    ;;
14040   hppa*64*)
14041     shrext_cmds='.sl'
14042     hardcode_into_libs=yes
14043     dynamic_linker="$host_os dld.sl"
14044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047     soname_spec='${libname}${release}${shared_ext}$major'
14048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14050     ;;
14051   *)
14052    shrext_cmds='.sl'
14053    dynamic_linker="$host_os dld.sl"
14054    shlibpath_var=SHLIB_PATH
14055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057    soname_spec='${libname}${release}${shared_ext}$major'
14058    ;;
14059  esac
14060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14061  postinstall_cmds='chmod 555 $lib'
14062  ;;
14063
14064interix3*)
14065  version_type=linux
14066  need_lib_prefix=no
14067  need_version=no
14068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14069  soname_spec='${libname}${release}${shared_ext}$major'
14070  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14071  shlibpath_var=LD_LIBRARY_PATH
14072  shlibpath_overrides_runpath=no
14073  hardcode_into_libs=yes
14074  ;;
14075
14076irix5* | irix6* | nonstopux*)
14077  case $host_os in
14078    nonstopux*) version_type=nonstopux ;;
14079    *)
14080	if test "$lt_cv_prog_gnu_ld" = yes; then
14081		version_type=linux
14082	else
14083		version_type=irix
14084	fi ;;
14085  esac
14086  need_lib_prefix=no
14087  need_version=no
14088  soname_spec='${libname}${release}${shared_ext}$major'
14089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14090  case $host_os in
14091  irix5* | nonstopux*)
14092    libsuff= shlibsuff=
14093    ;;
14094  *)
14095    case $LD in # libtool.m4 will add one of these switches to LD
14096    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14097      libsuff= shlibsuff= libmagic=32-bit;;
14098    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14099      libsuff=32 shlibsuff=N32 libmagic=N32;;
14100    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14101      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14102    *) libsuff= shlibsuff= libmagic=never-match;;
14103    esac
14104    ;;
14105  esac
14106  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14107  shlibpath_overrides_runpath=no
14108  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14109  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14110  hardcode_into_libs=yes
14111  ;;
14112
14113# No shared lib support for Linux oldld, aout, or coff.
14114linux*oldld* | linux*aout* | linux*coff*)
14115  dynamic_linker=no
14116  ;;
14117
14118# This must be Linux ELF.
14119linux*)
14120  version_type=linux
14121  need_lib_prefix=no
14122  need_version=no
14123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124  soname_spec='${libname}${release}${shared_ext}$major'
14125  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14126  shlibpath_var=LD_LIBRARY_PATH
14127  shlibpath_overrides_runpath=no
14128  # This implies no fast_install, which is unacceptable.
14129  # Some rework will be needed to allow for fast_install
14130  # before this can be enabled.
14131  hardcode_into_libs=yes
14132
14133  # Append ld.so.conf contents to the search path
14134  if test -f /etc/ld.so.conf; then
14135    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' ' '`
14136    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14137  fi
14138
14139  # We used to test for /lib/ld.so.1 and disable shared libraries on
14140  # powerpc, because MkLinux only supported shared libraries with the
14141  # GNU dynamic linker.  Since this was broken with cross compilers,
14142  # most powerpc-linux boxes support dynamic linking these days and
14143  # people can always --disable-shared, the test was removed, and we
14144  # assume the GNU/Linux dynamic linker is in use.
14145  dynamic_linker='GNU/Linux ld.so'
14146  ;;
14147
14148knetbsd*-gnu)
14149  version_type=linux
14150  need_lib_prefix=no
14151  need_version=no
14152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14153  soname_spec='${libname}${release}${shared_ext}$major'
14154  shlibpath_var=LD_LIBRARY_PATH
14155  shlibpath_overrides_runpath=no
14156  hardcode_into_libs=yes
14157  dynamic_linker='GNU ld.so'
14158  ;;
14159
14160netbsd*)
14161  version_type=sunos
14162  need_lib_prefix=no
14163  need_version=no
14164  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14166    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14167    dynamic_linker='NetBSD (a.out) ld.so'
14168  else
14169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14170    soname_spec='${libname}${release}${shared_ext}$major'
14171    dynamic_linker='NetBSD ld.elf_so'
14172  fi
14173  shlibpath_var=LD_LIBRARY_PATH
14174  shlibpath_overrides_runpath=yes
14175  hardcode_into_libs=yes
14176  ;;
14177
14178newsos6)
14179  version_type=linux
14180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181  shlibpath_var=LD_LIBRARY_PATH
14182  shlibpath_overrides_runpath=yes
14183  ;;
14184
14185nto-qnx*)
14186  version_type=linux
14187  need_lib_prefix=no
14188  need_version=no
14189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190  soname_spec='${libname}${release}${shared_ext}$major'
14191  shlibpath_var=LD_LIBRARY_PATH
14192  shlibpath_overrides_runpath=yes
14193  ;;
14194
14195openbsd*)
14196  version_type=sunos
14197  sys_lib_dlsearch_path_spec="/usr/lib"
14198  need_lib_prefix=no
14199  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14200  case $host_os in
14201    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14202    *)                         need_version=no  ;;
14203  esac
14204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14206  shlibpath_var=LD_LIBRARY_PATH
14207  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14208    case $host_os in
14209      openbsd2.[89] | openbsd2.[89].*)
14210	shlibpath_overrides_runpath=no
14211	;;
14212      *)
14213	shlibpath_overrides_runpath=yes
14214	;;
14215      esac
14216  else
14217    shlibpath_overrides_runpath=yes
14218  fi
14219  ;;
14220
14221os2*)
14222  libname_spec='$name'
14223  shrext_cmds=".dll"
14224  need_lib_prefix=no
14225  library_names_spec='$libname${shared_ext} $libname.a'
14226  dynamic_linker='OS/2 ld.exe'
14227  shlibpath_var=LIBPATH
14228  ;;
14229
14230osf3* | osf4* | osf5*)
14231  version_type=osf
14232  need_lib_prefix=no
14233  need_version=no
14234  soname_spec='${libname}${release}${shared_ext}$major'
14235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14236  shlibpath_var=LD_LIBRARY_PATH
14237  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14238  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14239  ;;
14240
14241solaris*)
14242  version_type=linux
14243  need_lib_prefix=no
14244  need_version=no
14245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246  soname_spec='${libname}${release}${shared_ext}$major'
14247  shlibpath_var=LD_LIBRARY_PATH
14248  shlibpath_overrides_runpath=yes
14249  hardcode_into_libs=yes
14250  # ldd complains unless libraries are executable
14251  postinstall_cmds='chmod +x $lib'
14252  ;;
14253
14254sunos4*)
14255  version_type=sunos
14256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14257  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14258  shlibpath_var=LD_LIBRARY_PATH
14259  shlibpath_overrides_runpath=yes
14260  if test "$with_gnu_ld" = yes; then
14261    need_lib_prefix=no
14262  fi
14263  need_version=yes
14264  ;;
14265
14266sysv4 | sysv4.3*)
14267  version_type=linux
14268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269  soname_spec='${libname}${release}${shared_ext}$major'
14270  shlibpath_var=LD_LIBRARY_PATH
14271  case $host_vendor in
14272    sni)
14273      shlibpath_overrides_runpath=no
14274      need_lib_prefix=no
14275      export_dynamic_flag_spec='${wl}-Blargedynsym'
14276      runpath_var=LD_RUN_PATH
14277      ;;
14278    siemens)
14279      need_lib_prefix=no
14280      ;;
14281    motorola)
14282      need_lib_prefix=no
14283      need_version=no
14284      shlibpath_overrides_runpath=no
14285      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14286      ;;
14287  esac
14288  ;;
14289
14290sysv4*MP*)
14291  if test -d /usr/nec ;then
14292    version_type=linux
14293    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14294    soname_spec='$libname${shared_ext}.$major'
14295    shlibpath_var=LD_LIBRARY_PATH
14296  fi
14297  ;;
14298
14299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14300  version_type=freebsd-elf
14301  need_lib_prefix=no
14302  need_version=no
14303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14304  soname_spec='${libname}${release}${shared_ext}$major'
14305  shlibpath_var=LD_LIBRARY_PATH
14306  hardcode_into_libs=yes
14307  if test "$with_gnu_ld" = yes; then
14308    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14309    shlibpath_overrides_runpath=no
14310  else
14311    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14312    shlibpath_overrides_runpath=yes
14313    case $host_os in
14314      sco3.2v5*)
14315        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14316	;;
14317    esac
14318  fi
14319  sys_lib_dlsearch_path_spec='/usr/lib'
14320  ;;
14321
14322uts4*)
14323  version_type=linux
14324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325  soname_spec='${libname}${release}${shared_ext}$major'
14326  shlibpath_var=LD_LIBRARY_PATH
14327  ;;
14328
14329*)
14330  dynamic_linker=no
14331  ;;
14332esac
14333echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14334echo "${ECHO_T}$dynamic_linker" >&6
14335test "$dynamic_linker" = no && can_build_shared=no
14336
14337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14338if test "$GCC" = yes; then
14339  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14340fi
14341
14342echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14343echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14344hardcode_action_CXX=
14345if test -n "$hardcode_libdir_flag_spec_CXX" || \
14346   test -n "$runpath_var_CXX" || \
14347   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14348
14349  # We can hardcode non-existant directories.
14350  if test "$hardcode_direct_CXX" != no &&
14351     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14352     # have to relink, otherwise we might link with an installed library
14353     # when we should be linking with a yet-to-be-installed one
14354     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14355     test "$hardcode_minus_L_CXX" != no; then
14356    # Linking always hardcodes the temporary library directory.
14357    hardcode_action_CXX=relink
14358  else
14359    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14360    hardcode_action_CXX=immediate
14361  fi
14362else
14363  # We cannot hardcode anything, or else we can only hardcode existing
14364  # directories.
14365  hardcode_action_CXX=unsupported
14366fi
14367echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14368echo "${ECHO_T}$hardcode_action_CXX" >&6
14369
14370if test "$hardcode_action_CXX" = relink; then
14371  # Fast installation is not supported
14372  enable_fast_install=no
14373elif test "$shlibpath_overrides_runpath" = yes ||
14374     test "$enable_shared" = no; then
14375  # Fast installation is not necessary
14376  enable_fast_install=needless
14377fi
14378
14379
14380# The else clause should only fire when bootstrapping the
14381# libtool distribution, otherwise you forgot to ship ltmain.sh
14382# with your package, and you will get complaints that there are
14383# no rules to generate ltmain.sh.
14384if test -f "$ltmain"; then
14385  # See if we are running on zsh, and set the options which allow our commands through
14386  # without removal of \ escapes.
14387  if test -n "${ZSH_VERSION+set}" ; then
14388    setopt NO_GLOB_SUBST
14389  fi
14390  # Now quote all the things that may contain metacharacters while being
14391  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14392  # variables and quote the copies for generation of the libtool script.
14393  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14394    SED SHELL STRIP \
14395    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14396    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14397    deplibs_check_method reload_flag reload_cmds need_locks \
14398    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14399    lt_cv_sys_global_symbol_to_c_name_address \
14400    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14401    old_postinstall_cmds old_postuninstall_cmds \
14402    compiler_CXX \
14403    CC_CXX \
14404    LD_CXX \
14405    lt_prog_compiler_wl_CXX \
14406    lt_prog_compiler_pic_CXX \
14407    lt_prog_compiler_static_CXX \
14408    lt_prog_compiler_no_builtin_flag_CXX \
14409    export_dynamic_flag_spec_CXX \
14410    thread_safe_flag_spec_CXX \
14411    whole_archive_flag_spec_CXX \
14412    enable_shared_with_static_runtimes_CXX \
14413    old_archive_cmds_CXX \
14414    old_archive_from_new_cmds_CXX \
14415    predep_objects_CXX \
14416    postdep_objects_CXX \
14417    predeps_CXX \
14418    postdeps_CXX \
14419    compiler_lib_search_path_CXX \
14420    archive_cmds_CXX \
14421    archive_expsym_cmds_CXX \
14422    postinstall_cmds_CXX \
14423    postuninstall_cmds_CXX \
14424    old_archive_from_expsyms_cmds_CXX \
14425    allow_undefined_flag_CXX \
14426    no_undefined_flag_CXX \
14427    export_symbols_cmds_CXX \
14428    hardcode_libdir_flag_spec_CXX \
14429    hardcode_libdir_flag_spec_ld_CXX \
14430    hardcode_libdir_separator_CXX \
14431    hardcode_automatic_CXX \
14432    module_cmds_CXX \
14433    module_expsym_cmds_CXX \
14434    lt_cv_prog_compiler_c_o_CXX \
14435    exclude_expsyms_CXX \
14436    include_expsyms_CXX; do
14437
14438    case $var in
14439    old_archive_cmds_CXX | \
14440    old_archive_from_new_cmds_CXX | \
14441    archive_cmds_CXX | \
14442    archive_expsym_cmds_CXX | \
14443    module_cmds_CXX | \
14444    module_expsym_cmds_CXX | \
14445    old_archive_from_expsyms_cmds_CXX | \
14446    export_symbols_cmds_CXX | \
14447    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14448    postinstall_cmds | postuninstall_cmds | \
14449    old_postinstall_cmds | old_postuninstall_cmds | \
14450    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14451      # Double-quote double-evaled strings.
14452      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14453      ;;
14454    *)
14455      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14456      ;;
14457    esac
14458  done
14459
14460  case $lt_echo in
14461  *'\$0 --fallback-echo"')
14462    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14463    ;;
14464  esac
14465
14466cfgfile="$ofile"
14467
14468  cat <<__EOF__ >> "$cfgfile"
14469# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14470
14471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14472
14473# Shell to use when invoking shell scripts.
14474SHELL=$lt_SHELL
14475
14476# Whether or not to build shared libraries.
14477build_libtool_libs=$enable_shared
14478
14479# Whether or not to build static libraries.
14480build_old_libs=$enable_static
14481
14482# Whether or not to add -lc for building shared libraries.
14483build_libtool_need_lc=$archive_cmds_need_lc_CXX
14484
14485# Whether or not to disallow shared libs when runtime libs are static
14486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14487
14488# Whether or not to optimize for fast installation.
14489fast_install=$enable_fast_install
14490
14491# The host system.
14492host_alias=$host_alias
14493host=$host
14494host_os=$host_os
14495
14496# The build system.
14497build_alias=$build_alias
14498build=$build
14499build_os=$build_os
14500
14501# An echo program that does not interpret backslashes.
14502echo=$lt_echo
14503
14504# The archiver.
14505AR=$lt_AR
14506AR_FLAGS=$lt_AR_FLAGS
14507
14508# A C compiler.
14509LTCC=$lt_LTCC
14510
14511# LTCC compiler flags.
14512LTCFLAGS=$lt_LTCFLAGS
14513
14514# A language-specific compiler.
14515CC=$lt_compiler_CXX
14516
14517# Is the compiler the GNU C compiler?
14518with_gcc=$GCC_CXX
14519
14520# An ERE matcher.
14521EGREP=$lt_EGREP
14522
14523# The linker used to build libraries.
14524LD=$lt_LD_CXX
14525
14526# Whether we need hard or soft links.
14527LN_S=$lt_LN_S
14528
14529# A BSD-compatible nm program.
14530NM=$lt_NM
14531
14532# A symbol stripping program
14533STRIP=$lt_STRIP
14534
14535# Used to examine libraries when file_magic_cmd begins "file"
14536MAGIC_CMD=$MAGIC_CMD
14537
14538# Used on cygwin: DLL creation program.
14539DLLTOOL="$DLLTOOL"
14540
14541# Used on cygwin: object dumper.
14542OBJDUMP="$OBJDUMP"
14543
14544# Used on cygwin: assembler.
14545AS="$AS"
14546
14547# The name of the directory that contains temporary libtool files.
14548objdir=$objdir
14549
14550# How to create reloadable object files.
14551reload_flag=$lt_reload_flag
14552reload_cmds=$lt_reload_cmds
14553
14554# How to pass a linker flag through the compiler.
14555wl=$lt_lt_prog_compiler_wl_CXX
14556
14557# Object file suffix (normally "o").
14558objext="$ac_objext"
14559
14560# Old archive suffix (normally "a").
14561libext="$libext"
14562
14563# Shared library suffix (normally ".so").
14564shrext_cmds='$shrext_cmds'
14565
14566# Executable file suffix (normally "").
14567exeext="$exeext"
14568
14569# Additional compiler flags for building library objects.
14570pic_flag=$lt_lt_prog_compiler_pic_CXX
14571pic_mode=$pic_mode
14572
14573# What is the maximum length of a command?
14574max_cmd_len=$lt_cv_sys_max_cmd_len
14575
14576# Does compiler simultaneously support -c and -o options?
14577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14578
14579# Must we lock files when doing compilation?
14580need_locks=$lt_need_locks
14581
14582# Do we need the lib prefix for modules?
14583need_lib_prefix=$need_lib_prefix
14584
14585# Do we need a version for libraries?
14586need_version=$need_version
14587
14588# Whether dlopen is supported.
14589dlopen_support=$enable_dlopen
14590
14591# Whether dlopen of programs is supported.
14592dlopen_self=$enable_dlopen_self
14593
14594# Whether dlopen of statically linked programs is supported.
14595dlopen_self_static=$enable_dlopen_self_static
14596
14597# Compiler flag to prevent dynamic linking.
14598link_static_flag=$lt_lt_prog_compiler_static_CXX
14599
14600# Compiler flag to turn off builtin functions.
14601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14602
14603# Compiler flag to allow reflexive dlopens.
14604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14605
14606# Compiler flag to generate shared objects directly from archives.
14607whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14608
14609# Compiler flag to generate thread-safe objects.
14610thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14611
14612# Library versioning type.
14613version_type=$version_type
14614
14615# Format of library name prefix.
14616libname_spec=$lt_libname_spec
14617
14618# List of archive names.  First name is the real one, the rest are links.
14619# The last name is the one that the linker finds with -lNAME.
14620library_names_spec=$lt_library_names_spec
14621
14622# The coded name of the library, if different from the real name.
14623soname_spec=$lt_soname_spec
14624
14625# Commands used to build and install an old-style archive.
14626RANLIB=$lt_RANLIB
14627old_archive_cmds=$lt_old_archive_cmds_CXX
14628old_postinstall_cmds=$lt_old_postinstall_cmds
14629old_postuninstall_cmds=$lt_old_postuninstall_cmds
14630
14631# Create an old-style archive from a shared archive.
14632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14633
14634# Create a temporary old-style archive to link instead of a shared archive.
14635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14636
14637# Commands used to build and install a shared archive.
14638archive_cmds=$lt_archive_cmds_CXX
14639archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14640postinstall_cmds=$lt_postinstall_cmds
14641postuninstall_cmds=$lt_postuninstall_cmds
14642
14643# Commands used to build a loadable module (assumed same as above if empty)
14644module_cmds=$lt_module_cmds_CXX
14645module_expsym_cmds=$lt_module_expsym_cmds_CXX
14646
14647# Commands to strip libraries.
14648old_striplib=$lt_old_striplib
14649striplib=$lt_striplib
14650
14651# Dependencies to place before the objects being linked to create a
14652# shared library.
14653predep_objects=$lt_predep_objects_CXX
14654
14655# Dependencies to place after the objects being linked to create a
14656# shared library.
14657postdep_objects=$lt_postdep_objects_CXX
14658
14659# Dependencies to place before the objects being linked to create a
14660# shared library.
14661predeps=$lt_predeps_CXX
14662
14663# Dependencies to place after the objects being linked to create a
14664# shared library.
14665postdeps=$lt_postdeps_CXX
14666
14667# The library search path used internally by the compiler when linking
14668# a shared library.
14669compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14670
14671# Method to check whether dependent libraries are shared objects.
14672deplibs_check_method=$lt_deplibs_check_method
14673
14674# Command to use when deplibs_check_method == file_magic.
14675file_magic_cmd=$lt_file_magic_cmd
14676
14677# Flag that allows shared libraries with undefined symbols to be built.
14678allow_undefined_flag=$lt_allow_undefined_flag_CXX
14679
14680# Flag that forces no undefined symbols.
14681no_undefined_flag=$lt_no_undefined_flag_CXX
14682
14683# Commands used to finish a libtool library installation in a directory.
14684finish_cmds=$lt_finish_cmds
14685
14686# Same as above, but a single script fragment to be evaled but not shown.
14687finish_eval=$lt_finish_eval
14688
14689# Take the output of nm and produce a listing of raw symbols and C names.
14690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14691
14692# Transform the output of nm in a proper C declaration
14693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14694
14695# Transform the output of nm in a C name address pair
14696global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14697
14698# This is the shared library runtime path variable.
14699runpath_var=$runpath_var
14700
14701# This is the shared library path variable.
14702shlibpath_var=$shlibpath_var
14703
14704# Is shlibpath searched before the hard-coded library search path?
14705shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14706
14707# How to hardcode a shared library path into an executable.
14708hardcode_action=$hardcode_action_CXX
14709
14710# Whether we should hardcode library paths into libraries.
14711hardcode_into_libs=$hardcode_into_libs
14712
14713# Flag to hardcode \$libdir into a binary during linking.
14714# This must work even if \$libdir does not exist.
14715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14716
14717# If ld is used when linking, flag to hardcode \$libdir into
14718# a binary during linking. This must work even if \$libdir does
14719# not exist.
14720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14721
14722# Whether we need a single -rpath flag with a separated argument.
14723hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14724
14725# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14726# resulting binary.
14727hardcode_direct=$hardcode_direct_CXX
14728
14729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14730# resulting binary.
14731hardcode_minus_L=$hardcode_minus_L_CXX
14732
14733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14734# the resulting binary.
14735hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14736
14737# Set to yes if building a shared library automatically hardcodes DIR into the library
14738# and all subsequent libraries and executables linked against it.
14739hardcode_automatic=$hardcode_automatic_CXX
14740
14741# Variables whose values should be saved in libtool wrapper scripts and
14742# restored at relink time.
14743variables_saved_for_relink="$variables_saved_for_relink"
14744
14745# Whether libtool must link a program against all its dependency libraries.
14746link_all_deplibs=$link_all_deplibs_CXX
14747
14748# Compile-time system search path for libraries
14749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14750
14751# Run-time system search path for libraries
14752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14753
14754# Fix the shell variable \$srcfile for the compiler.
14755fix_srcfile_path="$fix_srcfile_path_CXX"
14756
14757# Set to yes if exported symbols are required.
14758always_export_symbols=$always_export_symbols_CXX
14759
14760# The commands to list exported symbols.
14761export_symbols_cmds=$lt_export_symbols_cmds_CXX
14762
14763# The commands to extract the exported symbol list from a shared archive.
14764extract_expsyms_cmds=$lt_extract_expsyms_cmds
14765
14766# Symbols that should not be listed in the preloaded symbols.
14767exclude_expsyms=$lt_exclude_expsyms_CXX
14768
14769# Symbols that must always be exported.
14770include_expsyms=$lt_include_expsyms_CXX
14771
14772# ### END LIBTOOL TAG CONFIG: $tagname
14773
14774__EOF__
14775
14776
14777else
14778  # If there is no Makefile yet, we rely on a make rule to execute
14779  # `config.status --recheck' to rerun these tests and create the
14780  # libtool script then.
14781  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14782  if test -f "$ltmain_in"; then
14783    test -f Makefile && make "$ltmain"
14784  fi
14785fi
14786
14787
14788ac_ext=c
14789ac_cpp='$CPP $CPPFLAGS'
14790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14792ac_compiler_gnu=$ac_cv_c_compiler_gnu
14793
14794CC=$lt_save_CC
14795LDCXX=$LD
14796LD=$lt_save_LD
14797GCC=$lt_save_GCC
14798with_gnu_ldcxx=$with_gnu_ld
14799with_gnu_ld=$lt_save_with_gnu_ld
14800lt_cv_path_LDCXX=$lt_cv_path_LD
14801lt_cv_path_LD=$lt_save_path_LD
14802lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14803lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14804
14805	else
14806	  tagname=""
14807	fi
14808	;;
14809
14810      F77)
14811	if test -n "$F77" && test "X$F77" != "Xno"; then
14812
14813ac_ext=f
14814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14817
14818
14819archive_cmds_need_lc_F77=no
14820allow_undefined_flag_F77=
14821always_export_symbols_F77=no
14822archive_expsym_cmds_F77=
14823export_dynamic_flag_spec_F77=
14824hardcode_direct_F77=no
14825hardcode_libdir_flag_spec_F77=
14826hardcode_libdir_flag_spec_ld_F77=
14827hardcode_libdir_separator_F77=
14828hardcode_minus_L_F77=no
14829hardcode_automatic_F77=no
14830module_cmds_F77=
14831module_expsym_cmds_F77=
14832link_all_deplibs_F77=unknown
14833old_archive_cmds_F77=$old_archive_cmds
14834no_undefined_flag_F77=
14835whole_archive_flag_spec_F77=
14836enable_shared_with_static_runtimes_F77=no
14837
14838# Source file extension for f77 test sources.
14839ac_ext=f
14840
14841# Object file extension for compiled f77 test sources.
14842objext=o
14843objext_F77=$objext
14844
14845# Code to be used in simple compile tests
14846lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14847
14848# Code to be used in simple link tests
14849lt_simple_link_test_code="      program t\n      end\n"
14850
14851# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14852
14853# If no C compiler was specified, use CC.
14854LTCC=${LTCC-"$CC"}
14855
14856# If no C compiler flags were specified, use CFLAGS.
14857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14858
14859# Allow CC to be a program name with arguments.
14860compiler=$CC
14861
14862
14863# save warnings/boilerplate of simple test code
14864ac_outfile=conftest.$ac_objext
14865printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14866eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14867_lt_compiler_boilerplate=`cat conftest.err`
14868$rm conftest*
14869
14870ac_outfile=conftest.$ac_objext
14871printf "$lt_simple_link_test_code" >conftest.$ac_ext
14872eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14873_lt_linker_boilerplate=`cat conftest.err`
14874$rm conftest*
14875
14876
14877# Allow CC to be a program name with arguments.
14878lt_save_CC="$CC"
14879CC=${F77-"f77"}
14880compiler=$CC
14881compiler_F77=$CC
14882for cc_temp in $compiler""; do
14883  case $cc_temp in
14884    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14885    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14886    \-*) ;;
14887    *) break;;
14888  esac
14889done
14890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14891
14892
14893echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14894echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14895echo "$as_me:$LINENO: result: $can_build_shared" >&5
14896echo "${ECHO_T}$can_build_shared" >&6
14897
14898echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14899echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14900test "$can_build_shared" = "no" && enable_shared=no
14901
14902# On AIX, shared libraries and static libraries use the same namespace, and
14903# are all built from PIC.
14904case $host_os in
14905aix3*)
14906  test "$enable_shared" = yes && enable_static=no
14907  if test -n "$RANLIB"; then
14908    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14909    postinstall_cmds='$RANLIB $lib'
14910  fi
14911  ;;
14912aix4* | aix5*)
14913  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14914    test "$enable_shared" = yes && enable_static=no
14915  fi
14916  ;;
14917esac
14918echo "$as_me:$LINENO: result: $enable_shared" >&5
14919echo "${ECHO_T}$enable_shared" >&6
14920
14921echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14922echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14923# Make sure either enable_shared or enable_static is yes.
14924test "$enable_shared" = yes || enable_static=yes
14925echo "$as_me:$LINENO: result: $enable_static" >&5
14926echo "${ECHO_T}$enable_static" >&6
14927
14928GCC_F77="$G77"
14929LD_F77="$LD"
14930
14931lt_prog_compiler_wl_F77=
14932lt_prog_compiler_pic_F77=
14933lt_prog_compiler_static_F77=
14934
14935echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14936echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14937
14938  if test "$GCC" = yes; then
14939    lt_prog_compiler_wl_F77='-Wl,'
14940    lt_prog_compiler_static_F77='-static'
14941
14942    case $host_os in
14943      aix*)
14944      # All AIX code is PIC.
14945      if test "$host_cpu" = ia64; then
14946	# AIX 5 now supports IA64 processor
14947	lt_prog_compiler_static_F77='-Bstatic'
14948      fi
14949      ;;
14950
14951    amigaos*)
14952      # FIXME: we need at least 68020 code to build shared libraries, but
14953      # adding the `-m68020' flag to GCC prevents building anything better,
14954      # like `-m68040'.
14955      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14956      ;;
14957
14958    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14959      # PIC is the default for these OSes.
14960      ;;
14961
14962    mingw* | pw32* | os2*)
14963      # This hack is so that the source file can tell whether it is being
14964      # built for inclusion in a dll (and should export symbols for example).
14965      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14966      ;;
14967
14968    darwin* | rhapsody*)
14969      # PIC is the default on this platform
14970      # Common symbols not allowed in MH_DYLIB files
14971      lt_prog_compiler_pic_F77='-fno-common'
14972      ;;
14973
14974    interix3*)
14975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14976      # Instead, we relocate shared libraries at runtime.
14977      ;;
14978
14979    msdosdjgpp*)
14980      # Just because we use GCC doesn't mean we suddenly get shared libraries
14981      # on systems that don't support them.
14982      lt_prog_compiler_can_build_shared_F77=no
14983      enable_shared=no
14984      ;;
14985
14986    sysv4*MP*)
14987      if test -d /usr/nec; then
14988	lt_prog_compiler_pic_F77=-Kconform_pic
14989      fi
14990      ;;
14991
14992    hpux*)
14993      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14994      # not for PA HP-UX.
14995      case $host_cpu in
14996      hppa*64*|ia64*)
14997	# +Z the default
14998	;;
14999      *)
15000	lt_prog_compiler_pic_F77='-fPIC'
15001	;;
15002      esac
15003      ;;
15004
15005    *)
15006      lt_prog_compiler_pic_F77='-fPIC'
15007      ;;
15008    esac
15009  else
15010    # PORTME Check for flag to pass linker flags through the system compiler.
15011    case $host_os in
15012    aix*)
15013      lt_prog_compiler_wl_F77='-Wl,'
15014      if test "$host_cpu" = ia64; then
15015	# AIX 5 now supports IA64 processor
15016	lt_prog_compiler_static_F77='-Bstatic'
15017      else
15018	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15019      fi
15020      ;;
15021      darwin*)
15022        # PIC is the default on this platform
15023        # Common symbols not allowed in MH_DYLIB files
15024       case $cc_basename in
15025         xlc*)
15026         lt_prog_compiler_pic_F77='-qnocommon'
15027         lt_prog_compiler_wl_F77='-Wl,'
15028         ;;
15029       esac
15030       ;;
15031
15032    mingw* | pw32* | os2*)
15033      # This hack is so that the source file can tell whether it is being
15034      # built for inclusion in a dll (and should export symbols for example).
15035      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15036      ;;
15037
15038    hpux9* | hpux10* | hpux11*)
15039      lt_prog_compiler_wl_F77='-Wl,'
15040      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15041      # not for PA HP-UX.
15042      case $host_cpu in
15043      hppa*64*|ia64*)
15044	# +Z the default
15045	;;
15046      *)
15047	lt_prog_compiler_pic_F77='+Z'
15048	;;
15049      esac
15050      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15051      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15052      ;;
15053
15054    irix5* | irix6* | nonstopux*)
15055      lt_prog_compiler_wl_F77='-Wl,'
15056      # PIC (with -KPIC) is the default.
15057      lt_prog_compiler_static_F77='-non_shared'
15058      ;;
15059
15060    newsos6)
15061      lt_prog_compiler_pic_F77='-KPIC'
15062      lt_prog_compiler_static_F77='-Bstatic'
15063      ;;
15064
15065    linux*)
15066      case $cc_basename in
15067      icc* | ecc*)
15068	lt_prog_compiler_wl_F77='-Wl,'
15069	lt_prog_compiler_pic_F77='-KPIC'
15070	lt_prog_compiler_static_F77='-static'
15071        ;;
15072      pgcc* | pgf77* | pgf90* | pgf95*)
15073        # Portland Group compilers (*not* the Pentium gcc compiler,
15074	# which looks to be a dead project)
15075	lt_prog_compiler_wl_F77='-Wl,'
15076	lt_prog_compiler_pic_F77='-fpic'
15077	lt_prog_compiler_static_F77='-Bstatic'
15078        ;;
15079      ccc*)
15080        lt_prog_compiler_wl_F77='-Wl,'
15081        # All Alpha code is PIC.
15082        lt_prog_compiler_static_F77='-non_shared'
15083        ;;
15084      esac
15085      ;;
15086
15087    osf3* | osf4* | osf5*)
15088      lt_prog_compiler_wl_F77='-Wl,'
15089      # All OSF/1 code is PIC.
15090      lt_prog_compiler_static_F77='-non_shared'
15091      ;;
15092
15093    solaris*)
15094      lt_prog_compiler_pic_F77='-KPIC'
15095      lt_prog_compiler_static_F77='-Bstatic'
15096      case $cc_basename in
15097      f77* | f90* | f95*)
15098	lt_prog_compiler_wl_F77='-Qoption ld ';;
15099      *)
15100	lt_prog_compiler_wl_F77='-Wl,';;
15101      esac
15102      ;;
15103
15104    sunos4*)
15105      lt_prog_compiler_wl_F77='-Qoption ld '
15106      lt_prog_compiler_pic_F77='-PIC'
15107      lt_prog_compiler_static_F77='-Bstatic'
15108      ;;
15109
15110    sysv4 | sysv4.2uw2* | sysv4.3*)
15111      lt_prog_compiler_wl_F77='-Wl,'
15112      lt_prog_compiler_pic_F77='-KPIC'
15113      lt_prog_compiler_static_F77='-Bstatic'
15114      ;;
15115
15116    sysv4*MP*)
15117      if test -d /usr/nec ;then
15118	lt_prog_compiler_pic_F77='-Kconform_pic'
15119	lt_prog_compiler_static_F77='-Bstatic'
15120      fi
15121      ;;
15122
15123    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15124      lt_prog_compiler_wl_F77='-Wl,'
15125      lt_prog_compiler_pic_F77='-KPIC'
15126      lt_prog_compiler_static_F77='-Bstatic'
15127      ;;
15128
15129    unicos*)
15130      lt_prog_compiler_wl_F77='-Wl,'
15131      lt_prog_compiler_can_build_shared_F77=no
15132      ;;
15133
15134    uts4*)
15135      lt_prog_compiler_pic_F77='-pic'
15136      lt_prog_compiler_static_F77='-Bstatic'
15137      ;;
15138
15139    *)
15140      lt_prog_compiler_can_build_shared_F77=no
15141      ;;
15142    esac
15143  fi
15144
15145echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15146echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15147
15148#
15149# Check to make sure the PIC flag actually works.
15150#
15151if test -n "$lt_prog_compiler_pic_F77"; then
15152
15153echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15154echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15155if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15156  echo $ECHO_N "(cached) $ECHO_C" >&6
15157else
15158  lt_prog_compiler_pic_works_F77=no
15159  ac_outfile=conftest.$ac_objext
15160   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15161   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15162   # Insert the option either (1) after the last *FLAGS variable, or
15163   # (2) before a word containing "conftest.", or (3) at the end.
15164   # Note that $ac_compile itself does not contain backslashes and begins
15165   # with a dollar sign (not a hyphen), so the echo should work correctly.
15166   # The option is referenced via a variable to avoid confusing sed.
15167   lt_compile=`echo "$ac_compile" | $SED \
15168   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15169   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15170   -e 's:$: $lt_compiler_flag:'`
15171   (eval echo "\"\$as_me:15171: $lt_compile\"" >&5)
15172   (eval "$lt_compile" 2>conftest.err)
15173   ac_status=$?
15174   cat conftest.err >&5
15175   echo "$as_me:15175: \$? = $ac_status" >&5
15176   if (exit $ac_status) && test -s "$ac_outfile"; then
15177     # The compiler can only warn and ignore the option if not recognized
15178     # So say no if there are warnings other than the usual output.
15179     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15180     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15181     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15182       lt_prog_compiler_pic_works_F77=yes
15183     fi
15184   fi
15185   $rm conftest*
15186
15187fi
15188echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15189echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15190
15191if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15192    case $lt_prog_compiler_pic_F77 in
15193     "" | " "*) ;;
15194     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15195     esac
15196else
15197    lt_prog_compiler_pic_F77=
15198     lt_prog_compiler_can_build_shared_F77=no
15199fi
15200
15201fi
15202case $host_os in
15203  # For platforms which do not support PIC, -DPIC is meaningless:
15204  *djgpp*)
15205    lt_prog_compiler_pic_F77=
15206    ;;
15207  *)
15208    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15209    ;;
15210esac
15211
15212#
15213# Check to make sure the static flag actually works.
15214#
15215wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15216echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15217echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15218if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15219  echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221  lt_prog_compiler_static_works_F77=no
15222   save_LDFLAGS="$LDFLAGS"
15223   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15224   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15225   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15226     # The linker can only warn and ignore the option if not recognized
15227     # So say no if there are warnings
15228     if test -s conftest.err; then
15229       # Append any errors to the config.log.
15230       cat conftest.err 1>&5
15231       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15232       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15233       if diff conftest.exp conftest.er2 >/dev/null; then
15234         lt_prog_compiler_static_works_F77=yes
15235       fi
15236     else
15237       lt_prog_compiler_static_works_F77=yes
15238     fi
15239   fi
15240   $rm conftest*
15241   LDFLAGS="$save_LDFLAGS"
15242
15243fi
15244echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15245echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15246
15247if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15248    :
15249else
15250    lt_prog_compiler_static_F77=
15251fi
15252
15253
15254echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15255echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15256if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15257  echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
15259  lt_cv_prog_compiler_c_o_F77=no
15260   $rm -r conftest 2>/dev/null
15261   mkdir conftest
15262   cd conftest
15263   mkdir out
15264   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15265
15266   lt_compiler_flag="-o out/conftest2.$ac_objext"
15267   # Insert the option either (1) after the last *FLAGS variable, or
15268   # (2) before a word containing "conftest.", or (3) at the end.
15269   # Note that $ac_compile itself does not contain backslashes and begins
15270   # with a dollar sign (not a hyphen), so the echo should work correctly.
15271   lt_compile=`echo "$ac_compile" | $SED \
15272   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15273   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15274   -e 's:$: $lt_compiler_flag:'`
15275   (eval echo "\"\$as_me:15275: $lt_compile\"" >&5)
15276   (eval "$lt_compile" 2>out/conftest.err)
15277   ac_status=$?
15278   cat out/conftest.err >&5
15279   echo "$as_me:15279: \$? = $ac_status" >&5
15280   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15281   then
15282     # The compiler can only warn and ignore the option if not recognized
15283     # So say no if there are warnings
15284     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15285     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15286     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15287       lt_cv_prog_compiler_c_o_F77=yes
15288     fi
15289   fi
15290   chmod u+w . 2>&5
15291   $rm conftest*
15292   # SGI C++ compiler will create directory out/ii_files/ for
15293   # template instantiation
15294   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15295   $rm out/* && rmdir out
15296   cd ..
15297   rmdir conftest
15298   $rm conftest*
15299
15300fi
15301echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15302echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15303
15304
15305hard_links="nottested"
15306if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15307  # do not overwrite the value of need_locks provided by the user
15308  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15309echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15310  hard_links=yes
15311  $rm conftest*
15312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15313  touch conftest.a
15314  ln conftest.a conftest.b 2>&5 || hard_links=no
15315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15316  echo "$as_me:$LINENO: result: $hard_links" >&5
15317echo "${ECHO_T}$hard_links" >&6
15318  if test "$hard_links" = no; then
15319    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15320echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15321    need_locks=warn
15322  fi
15323else
15324  need_locks=no
15325fi
15326
15327echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15328echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15329
15330  runpath_var=
15331  allow_undefined_flag_F77=
15332  enable_shared_with_static_runtimes_F77=no
15333  archive_cmds_F77=
15334  archive_expsym_cmds_F77=
15335  old_archive_From_new_cmds_F77=
15336  old_archive_from_expsyms_cmds_F77=
15337  export_dynamic_flag_spec_F77=
15338  whole_archive_flag_spec_F77=
15339  thread_safe_flag_spec_F77=
15340  hardcode_libdir_flag_spec_F77=
15341  hardcode_libdir_flag_spec_ld_F77=
15342  hardcode_libdir_separator_F77=
15343  hardcode_direct_F77=no
15344  hardcode_minus_L_F77=no
15345  hardcode_shlibpath_var_F77=unsupported
15346  link_all_deplibs_F77=unknown
15347  hardcode_automatic_F77=no
15348  module_cmds_F77=
15349  module_expsym_cmds_F77=
15350  always_export_symbols_F77=no
15351  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15352  # include_expsyms should be a list of space-separated symbols to be *always*
15353  # included in the symbol list
15354  include_expsyms_F77=
15355  # exclude_expsyms can be an extended regexp of symbols to exclude
15356  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15357  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15358  # as well as any symbol that contains `d'.
15359  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15360  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15361  # platforms (ab)use it in PIC code, but their linkers get confused if
15362  # the symbol is explicitly referenced.  Since portable code cannot
15363  # rely on this symbol name, it's probably fine to never include it in
15364  # preloaded symbol tables.
15365  extract_expsyms_cmds=
15366  # Just being paranoid about ensuring that cc_basename is set.
15367  for cc_temp in $compiler""; do
15368  case $cc_temp in
15369    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15370    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15371    \-*) ;;
15372    *) break;;
15373  esac
15374done
15375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15376
15377  case $host_os in
15378  cygwin* | mingw* | pw32*)
15379    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15380    # When not using gcc, we currently assume that we are using
15381    # Microsoft Visual C++.
15382    if test "$GCC" != yes; then
15383      with_gnu_ld=no
15384    fi
15385    ;;
15386  interix*)
15387    # we just hope/assume this is gcc and not c89 (= MSVC++)
15388    with_gnu_ld=yes
15389    ;;
15390  openbsd*)
15391    with_gnu_ld=no
15392    ;;
15393  esac
15394
15395  ld_shlibs_F77=yes
15396  if test "$with_gnu_ld" = yes; then
15397    # If archive_cmds runs LD, not CC, wlarc should be empty
15398    wlarc='${wl}'
15399
15400    # Set some defaults for GNU ld with shared library support. These
15401    # are reset later if shared libraries are not supported. Putting them
15402    # here allows them to be overridden if necessary.
15403    runpath_var=LD_RUN_PATH
15404    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15405    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15406    # ancient GNU ld didn't support --whole-archive et. al.
15407    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15408	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15409      else
15410  	whole_archive_flag_spec_F77=
15411    fi
15412    supports_anon_versioning=no
15413    case `$LD -v 2>/dev/null` in
15414      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15415      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15416      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15417      *\ 2.11.*) ;; # other 2.11 versions
15418      *) supports_anon_versioning=yes ;;
15419    esac
15420
15421    # See if GNU ld supports shared libraries.
15422    case $host_os in
15423    aix3* | aix4* | aix5*)
15424      # On AIX/PPC, the GNU linker is very broken
15425      if test "$host_cpu" != ia64; then
15426	ld_shlibs_F77=no
15427	cat <<EOF 1>&2
15428
15429*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15430*** to be unable to reliably create shared libraries on AIX.
15431*** Therefore, libtool is disabling shared libraries support.  If you
15432*** really care for shared libraries, you may want to modify your PATH
15433*** so that a non-GNU linker is found, and then restart.
15434
15435EOF
15436      fi
15437      ;;
15438
15439    amigaos*)
15440      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)'
15441      hardcode_libdir_flag_spec_F77='-L$libdir'
15442      hardcode_minus_L_F77=yes
15443
15444      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15445      # that the semantics of dynamic libraries on AmigaOS, at least up
15446      # to version 4, is to share data among multiple programs linked
15447      # with the same dynamic library.  Since this doesn't match the
15448      # behavior of shared libraries on other platforms, we can't use
15449      # them.
15450      ld_shlibs_F77=no
15451      ;;
15452
15453    beos*)
15454      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15455	allow_undefined_flag_F77=unsupported
15456	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15457	# support --undefined.  This deserves some investigation.  FIXME
15458	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15459      else
15460	ld_shlibs_F77=no
15461      fi
15462      ;;
15463
15464    cygwin* | mingw* | pw32*)
15465      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15466      # as there is no search path for DLLs.
15467      hardcode_libdir_flag_spec_F77='-L$libdir'
15468      allow_undefined_flag_F77=unsupported
15469      always_export_symbols_F77=no
15470      enable_shared_with_static_runtimes_F77=yes
15471      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15472
15473      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15474        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15475	# If the export-symbols file already is a .def file (1st line
15476	# is EXPORTS), use it as is; otherwise, prepend...
15477	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15478	  cp $export_symbols $output_objdir/$soname.def;
15479	else
15480	  echo EXPORTS > $output_objdir/$soname.def;
15481	  cat $export_symbols >> $output_objdir/$soname.def;
15482	fi~
15483	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15484      else
15485	ld_shlibs_F77=no
15486      fi
15487      ;;
15488
15489    interix3*)
15490      hardcode_direct_F77=no
15491      hardcode_shlibpath_var_F77=no
15492      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15493      export_dynamic_flag_spec_F77='${wl}-E'
15494      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15495      # Instead, shared libraries are loaded at an image base (0x10000000 by
15496      # default) and relocated if they conflict, which is a slow very memory
15497      # consuming and fragmenting process.  To avoid this, we pick a random,
15498      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15499      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15500      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'
15501      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'
15502      ;;
15503
15504    linux*)
15505      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15506	tmp_addflag=
15507	case $cc_basename,$host_cpu in
15508	pgcc*)				# Portland Group C compiler
15509	  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'
15510	  tmp_addflag=' $pic_flag'
15511	  ;;
15512	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15513	  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'
15514	  tmp_addflag=' $pic_flag -Mnomain' ;;
15515	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15516	  tmp_addflag=' -i_dynamic' ;;
15517	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15518	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15519	ifc* | ifort*)			# Intel Fortran compiler
15520	  tmp_addflag=' -nofor_main' ;;
15521	esac
15522	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523
15524	if test $supports_anon_versioning = yes; then
15525	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15526  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15527  $echo "local: *; };" >> $output_objdir/$libname.ver~
15528	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15529	fi
15530      else
15531	ld_shlibs_F77=no
15532      fi
15533      ;;
15534
15535    netbsd*)
15536      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15537	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15538	wlarc=
15539      else
15540	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542      fi
15543      ;;
15544
15545    solaris*)
15546      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15547	ld_shlibs_F77=no
15548	cat <<EOF 1>&2
15549
15550*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15551*** create shared libraries on Solaris systems.  Therefore, libtool
15552*** is disabling shared libraries support.  We urge you to upgrade GNU
15553*** binutils to release 2.9.1 or newer.  Another option is to modify
15554*** your PATH or compiler configuration so that the native linker is
15555*** used, and then restart.
15556
15557EOF
15558      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15559	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561      else
15562	ld_shlibs_F77=no
15563      fi
15564      ;;
15565
15566    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15567      case `$LD -v 2>&1` in
15568        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15569	ld_shlibs_F77=no
15570	cat <<_LT_EOF 1>&2
15571
15572*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15573*** reliably create shared libraries on SCO systems.  Therefore, libtool
15574*** is disabling shared libraries support.  We urge you to upgrade GNU
15575*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15576*** your PATH or compiler configuration so that the native linker is
15577*** used, and then restart.
15578
15579_LT_EOF
15580	;;
15581	*)
15582	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15583	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15584	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15585	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15586	  else
15587	    ld_shlibs_F77=no
15588	  fi
15589	;;
15590      esac
15591      ;;
15592
15593    sunos4*)
15594      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15595      wlarc=
15596      hardcode_direct_F77=yes
15597      hardcode_shlibpath_var_F77=no
15598      ;;
15599
15600    *)
15601      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15602	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15603	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15604      else
15605	ld_shlibs_F77=no
15606      fi
15607      ;;
15608    esac
15609
15610    if test "$ld_shlibs_F77" = no; then
15611      runpath_var=
15612      hardcode_libdir_flag_spec_F77=
15613      export_dynamic_flag_spec_F77=
15614      whole_archive_flag_spec_F77=
15615    fi
15616  else
15617    # PORTME fill in a description of your system's linker (not GNU ld)
15618    case $host_os in
15619    aix3*)
15620      allow_undefined_flag_F77=unsupported
15621      always_export_symbols_F77=yes
15622      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'
15623      # Note: this linker hardcodes the directories in LIBPATH if there
15624      # are no directories specified by -L.
15625      hardcode_minus_L_F77=yes
15626      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15627	# Neither direct hardcoding nor static linking is supported with a
15628	# broken collect2.
15629	hardcode_direct_F77=unsupported
15630      fi
15631      ;;
15632
15633    aix4* | aix5*)
15634      if test "$host_cpu" = ia64; then
15635	# On IA64, the linker does run time linking by default, so we don't
15636	# have to do anything special.
15637	aix_use_runtimelinking=no
15638	exp_sym_flag='-Bexport'
15639	no_entry_flag=""
15640      else
15641	# If we're using GNU nm, then we don't want the "-C" option.
15642	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15643	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15644	  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'
15645	else
15646	  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'
15647	fi
15648	aix_use_runtimelinking=no
15649
15650	# Test if we are trying to use run time linking or normal
15651	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15652	# need to do runtime linking.
15653	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15654	  for ld_flag in $LDFLAGS; do
15655  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15656  	    aix_use_runtimelinking=yes
15657  	    break
15658  	  fi
15659	  done
15660	  ;;
15661	esac
15662
15663	exp_sym_flag='-bexport'
15664	no_entry_flag='-bnoentry'
15665      fi
15666
15667      # When large executables or shared objects are built, AIX ld can
15668      # have problems creating the table of contents.  If linking a library
15669      # or program results in "error TOC overflow" add -mminimal-toc to
15670      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15671      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15672
15673      archive_cmds_F77=''
15674      hardcode_direct_F77=yes
15675      hardcode_libdir_separator_F77=':'
15676      link_all_deplibs_F77=yes
15677
15678      if test "$GCC" = yes; then
15679	case $host_os in aix4.[012]|aix4.[012].*)
15680	# We only want to do this on AIX 4.2 and lower, the check
15681	# below for broken collect2 doesn't work under 4.3+
15682	  collect2name=`${CC} -print-prog-name=collect2`
15683	  if test -f "$collect2name" && \
15684  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15685	  then
15686  	  # We have reworked collect2
15687  	  hardcode_direct_F77=yes
15688	  else
15689  	  # We have old collect2
15690  	  hardcode_direct_F77=unsupported
15691  	  # It fails to find uninstalled libraries when the uninstalled
15692  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15693  	  # to unsupported forces relinking
15694  	  hardcode_minus_L_F77=yes
15695  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15696  	  hardcode_libdir_separator_F77=
15697	  fi
15698	  ;;
15699	esac
15700	shared_flag='-shared'
15701	if test "$aix_use_runtimelinking" = yes; then
15702	  shared_flag="$shared_flag "'${wl}-G'
15703	fi
15704      else
15705	# not using gcc
15706	if test "$host_cpu" = ia64; then
15707  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15708  	# chokes on -Wl,-G. The following line is correct:
15709	  shared_flag='-G'
15710	else
15711	  if test "$aix_use_runtimelinking" = yes; then
15712	    shared_flag='${wl}-G'
15713	  else
15714	    shared_flag='${wl}-bM:SRE'
15715	  fi
15716	fi
15717      fi
15718
15719      # It seems that -bexpall does not export symbols beginning with
15720      # underscore (_), so it is better to generate a list of symbols to export.
15721      always_export_symbols_F77=yes
15722      if test "$aix_use_runtimelinking" = yes; then
15723	# Warning - without using the other runtime loading flags (-brtl),
15724	# -berok will link without error, but may produce a broken library.
15725	allow_undefined_flag_F77='-berok'
15726       # Determine the default libpath from the value encoded in an empty executable.
15727       cat >conftest.$ac_ext <<_ACEOF
15728      program main
15729
15730      end
15731_ACEOF
15732rm -f conftest.$ac_objext conftest$ac_exeext
15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734  (eval $ac_link) 2>conftest.er1
15735  ac_status=$?
15736  grep -v '^ *+' conftest.er1 >conftest.err
15737  rm -f conftest.er1
15738  cat conftest.err >&5
15739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740  (exit $ac_status); } &&
15741	 { ac_try='test -z "$ac_f77_werror_flag"
15742			 || test ! -s conftest.err'
15743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744  (eval $ac_try) 2>&5
15745  ac_status=$?
15746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747  (exit $ac_status); }; } &&
15748	 { ac_try='test -s conftest$ac_exeext'
15749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750  (eval $ac_try) 2>&5
15751  ac_status=$?
15752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753  (exit $ac_status); }; }; then
15754
15755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15756}'`
15757# Check for a 64-bit object if we didn't find anything.
15758if 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; }
15759}'`; fi
15760else
15761  echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764fi
15765rm -f conftest.err conftest.$ac_objext \
15766      conftest$ac_exeext conftest.$ac_ext
15767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15768
15769       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15770	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"
15771       else
15772	if test "$host_cpu" = ia64; then
15773	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15774	  allow_undefined_flag_F77="-z nodefs"
15775	  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"
15776	else
15777	 # Determine the default libpath from the value encoded in an empty executable.
15778	 cat >conftest.$ac_ext <<_ACEOF
15779      program main
15780
15781      end
15782_ACEOF
15783rm -f conftest.$ac_objext conftest$ac_exeext
15784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785  (eval $ac_link) 2>conftest.er1
15786  ac_status=$?
15787  grep -v '^ *+' conftest.er1 >conftest.err
15788  rm -f conftest.er1
15789  cat conftest.err >&5
15790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); } &&
15792	 { ac_try='test -z "$ac_f77_werror_flag"
15793			 || test ! -s conftest.err'
15794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795  (eval $ac_try) 2>&5
15796  ac_status=$?
15797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); }; } &&
15799	 { ac_try='test -s conftest$ac_exeext'
15800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801  (eval $ac_try) 2>&5
15802  ac_status=$?
15803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); }; }; then
15805
15806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15807}'`
15808# Check for a 64-bit object if we didn't find anything.
15809if 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; }
15810}'`; fi
15811else
15812  echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815fi
15816rm -f conftest.err conftest.$ac_objext \
15817      conftest$ac_exeext conftest.$ac_ext
15818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15819
15820	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15821	  # Warning - without using the other run time loading flags,
15822	  # -berok will link without error, but may produce a broken library.
15823	  no_undefined_flag_F77=' ${wl}-bernotok'
15824	  allow_undefined_flag_F77=' ${wl}-berok'
15825	  # Exported symbols can be pulled into shared objects from archives
15826	  whole_archive_flag_spec_F77='$convenience'
15827	  archive_cmds_need_lc_F77=yes
15828	  # This is similar to how AIX traditionally builds its shared libraries.
15829	  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'
15830	fi
15831      fi
15832      ;;
15833
15834    amigaos*)
15835      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)'
15836      hardcode_libdir_flag_spec_F77='-L$libdir'
15837      hardcode_minus_L_F77=yes
15838      # see comment about different semantics on the GNU ld section
15839      ld_shlibs_F77=no
15840      ;;
15841
15842    bsdi[45]*)
15843      export_dynamic_flag_spec_F77=-rdynamic
15844      ;;
15845
15846    cygwin* | mingw* | pw32*)
15847      # When not using gcc, we currently assume that we are using
15848      # Microsoft Visual C++.
15849      # hardcode_libdir_flag_spec is actually meaningless, as there is
15850      # no search path for DLLs.
15851      hardcode_libdir_flag_spec_F77=' '
15852      allow_undefined_flag_F77=unsupported
15853      # Tell ltmain to make .lib files, not .a files.
15854      libext=lib
15855      # Tell ltmain to make .dll files, not .so files.
15856      shrext_cmds=".dll"
15857      # FIXME: Setting linknames here is a bad hack.
15858      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15859      # The linker will automatically build a .lib file if we build a DLL.
15860      old_archive_From_new_cmds_F77='true'
15861      # FIXME: Should let the user specify the lib program.
15862      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15863      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15864      enable_shared_with_static_runtimes_F77=yes
15865      ;;
15866
15867    darwin* | rhapsody*)
15868      case $host_os in
15869        rhapsody* | darwin1.[012])
15870         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15871         ;;
15872       *) # Darwin 1.3 on
15873         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15874           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15875         else
15876           case ${MACOSX_DEPLOYMENT_TARGET} in
15877             10.[012])
15878               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879               ;;
15880             10.*)
15881               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15882               ;;
15883           esac
15884         fi
15885         ;;
15886      esac
15887      archive_cmds_need_lc_F77=no
15888      hardcode_direct_F77=no
15889      hardcode_automatic_F77=yes
15890      hardcode_shlibpath_var_F77=unsupported
15891      whole_archive_flag_spec_F77=''
15892      link_all_deplibs_F77=yes
15893    if test "$GCC" = yes ; then
15894    	output_verbose_link_cmd='echo'
15895        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15896      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15897      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15898      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}'
15899      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}'
15900    else
15901      case $cc_basename in
15902        xlc*)
15903         output_verbose_link_cmd='echo'
15904         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15905         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15906          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15907         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}'
15908          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}'
15909          ;;
15910       *)
15911         ld_shlibs_F77=no
15912          ;;
15913      esac
15914    fi
15915      ;;
15916
15917    dgux*)
15918      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15919      hardcode_libdir_flag_spec_F77='-L$libdir'
15920      hardcode_shlibpath_var_F77=no
15921      ;;
15922
15923    freebsd1*)
15924      ld_shlibs_F77=no
15925      ;;
15926
15927    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15928    # support.  Future versions do this automatically, but an explicit c++rt0.o
15929    # does not break anything, and helps significantly (at the cost of a little
15930    # extra space).
15931    freebsd2.2*)
15932      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15933      hardcode_libdir_flag_spec_F77='-R$libdir'
15934      hardcode_direct_F77=yes
15935      hardcode_shlibpath_var_F77=no
15936      ;;
15937
15938    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15939    freebsd2*)
15940      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15941      hardcode_direct_F77=yes
15942      hardcode_minus_L_F77=yes
15943      hardcode_shlibpath_var_F77=no
15944      ;;
15945
15946    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15947    freebsd* | kfreebsd*-gnu | dragonfly*)
15948      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15949      hardcode_libdir_flag_spec_F77='-R$libdir'
15950      hardcode_direct_F77=yes
15951      hardcode_shlibpath_var_F77=no
15952      ;;
15953
15954    hpux9*)
15955      if test "$GCC" = yes; then
15956	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'
15957      else
15958	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'
15959      fi
15960      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15961      hardcode_libdir_separator_F77=:
15962      hardcode_direct_F77=yes
15963
15964      # hardcode_minus_L: Not really in the search PATH,
15965      # but as the default location of the library.
15966      hardcode_minus_L_F77=yes
15967      export_dynamic_flag_spec_F77='${wl}-E'
15968      ;;
15969
15970    hpux10*)
15971      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15972	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15973      else
15974	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15975      fi
15976      if test "$with_gnu_ld" = no; then
15977	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15978	hardcode_libdir_separator_F77=:
15979
15980	hardcode_direct_F77=yes
15981	export_dynamic_flag_spec_F77='${wl}-E'
15982
15983	# hardcode_minus_L: Not really in the search PATH,
15984	# but as the default location of the library.
15985	hardcode_minus_L_F77=yes
15986      fi
15987      ;;
15988
15989    hpux11*)
15990      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15991	case $host_cpu in
15992	hppa*64*)
15993	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15994	  ;;
15995	ia64*)
15996	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15997	  ;;
15998	*)
15999	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16000	  ;;
16001	esac
16002      else
16003	case $host_cpu in
16004	hppa*64*)
16005	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16006	  ;;
16007	ia64*)
16008	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16009	  ;;
16010	*)
16011	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16012	  ;;
16013	esac
16014      fi
16015      if test "$with_gnu_ld" = no; then
16016	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16017	hardcode_libdir_separator_F77=:
16018
16019	case $host_cpu in
16020	hppa*64*|ia64*)
16021	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16022	  hardcode_direct_F77=no
16023	  hardcode_shlibpath_var_F77=no
16024	  ;;
16025	*)
16026	  hardcode_direct_F77=yes
16027	  export_dynamic_flag_spec_F77='${wl}-E'
16028
16029	  # hardcode_minus_L: Not really in the search PATH,
16030	  # but as the default location of the library.
16031	  hardcode_minus_L_F77=yes
16032	  ;;
16033	esac
16034      fi
16035      ;;
16036
16037    irix5* | irix6* | nonstopux*)
16038      if test "$GCC" = yes; then
16039	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'
16040      else
16041	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'
16042	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16043      fi
16044      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16045      hardcode_libdir_separator_F77=:
16046      link_all_deplibs_F77=yes
16047      ;;
16048
16049    netbsd*)
16050      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16051	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16052      else
16053	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16054      fi
16055      hardcode_libdir_flag_spec_F77='-R$libdir'
16056      hardcode_direct_F77=yes
16057      hardcode_shlibpath_var_F77=no
16058      ;;
16059
16060    newsos6)
16061      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16062      hardcode_direct_F77=yes
16063      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16064      hardcode_libdir_separator_F77=:
16065      hardcode_shlibpath_var_F77=no
16066      ;;
16067
16068    openbsd*)
16069      hardcode_direct_F77=yes
16070      hardcode_shlibpath_var_F77=no
16071      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16072	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16073	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16074	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16075	export_dynamic_flag_spec_F77='${wl}-E'
16076      else
16077       case $host_os in
16078	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16079	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16080	   hardcode_libdir_flag_spec_F77='-R$libdir'
16081	   ;;
16082	 *)
16083	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16084	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16085	   ;;
16086       esac
16087      fi
16088      ;;
16089
16090    os2*)
16091      hardcode_libdir_flag_spec_F77='-L$libdir'
16092      hardcode_minus_L_F77=yes
16093      allow_undefined_flag_F77=unsupported
16094      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'
16095      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16096      ;;
16097
16098    osf3*)
16099      if test "$GCC" = yes; then
16100	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16101	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'
16102      else
16103	allow_undefined_flag_F77=' -expect_unresolved \*'
16104	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'
16105      fi
16106      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16107      hardcode_libdir_separator_F77=:
16108      ;;
16109
16110    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16111      if test "$GCC" = yes; then
16112	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16113	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'
16114	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16115      else
16116	allow_undefined_flag_F77=' -expect_unresolved \*'
16117	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'
16118	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~
16119	$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'
16120
16121	# Both c and cxx compiler support -rpath directly
16122	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16123      fi
16124      hardcode_libdir_separator_F77=:
16125      ;;
16126
16127    solaris*)
16128      no_undefined_flag_F77=' -z text'
16129      if test "$GCC" = yes; then
16130	wlarc='${wl}'
16131	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16133	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16134      else
16135	wlarc=''
16136	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16138  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16139      fi
16140      hardcode_libdir_flag_spec_F77='-R$libdir'
16141      hardcode_shlibpath_var_F77=no
16142      case $host_os in
16143      solaris2.[0-5] | solaris2.[0-5].*) ;;
16144      *)
16145 	# The compiler driver will combine linker options so we
16146 	# cannot just pass the convience library names through
16147 	# without $wl, iff we do not link with $LD.
16148 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16149 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16150 	case $wlarc in
16151 	'')
16152 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16153 	*)
16154 	  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' ;;
16155 	esac ;;
16156      esac
16157      link_all_deplibs_F77=yes
16158      ;;
16159
16160    sunos4*)
16161      if test "x$host_vendor" = xsequent; then
16162	# Use $CC to link under sequent, because it throws in some extra .o
16163	# files that make .init and .fini sections work.
16164	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16165      else
16166	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16167      fi
16168      hardcode_libdir_flag_spec_F77='-L$libdir'
16169      hardcode_direct_F77=yes
16170      hardcode_minus_L_F77=yes
16171      hardcode_shlibpath_var_F77=no
16172      ;;
16173
16174    sysv4)
16175      case $host_vendor in
16176	sni)
16177	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178	  hardcode_direct_F77=yes # is this really true???
16179	;;
16180	siemens)
16181	  ## LD is ld it makes a PLAMLIB
16182	  ## CC just makes a GrossModule.
16183	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16184	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16185	  hardcode_direct_F77=no
16186        ;;
16187	motorola)
16188	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16190	;;
16191      esac
16192      runpath_var='LD_RUN_PATH'
16193      hardcode_shlibpath_var_F77=no
16194      ;;
16195
16196    sysv4.3*)
16197      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198      hardcode_shlibpath_var_F77=no
16199      export_dynamic_flag_spec_F77='-Bexport'
16200      ;;
16201
16202    sysv4*MP*)
16203      if test -d /usr/nec; then
16204	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205	hardcode_shlibpath_var_F77=no
16206	runpath_var=LD_RUN_PATH
16207	hardcode_runpath_var=yes
16208	ld_shlibs_F77=yes
16209      fi
16210      ;;
16211
16212    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16213      no_undefined_flag_F77='${wl}-z,text'
16214      archive_cmds_need_lc_F77=no
16215      hardcode_shlibpath_var_F77=no
16216      runpath_var='LD_RUN_PATH'
16217
16218      if test "$GCC" = yes; then
16219	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221      else
16222	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224      fi
16225      ;;
16226
16227    sysv5* | sco3.2v5* | sco5v6*)
16228      # Note: We can NOT use -z defs as we might desire, because we do not
16229      # link with -lc, and that would cause any symbols used from libc to
16230      # always be unresolved, which means just about no library would
16231      # ever link correctly.  If we're not using GNU ld we use -z text
16232      # though, which does catch some bad symbols but isn't as heavy-handed
16233      # as -z defs.
16234      no_undefined_flag_F77='${wl}-z,text'
16235      allow_undefined_flag_F77='${wl}-z,nodefs'
16236      archive_cmds_need_lc_F77=no
16237      hardcode_shlibpath_var_F77=no
16238      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16239      hardcode_libdir_separator_F77=':'
16240      link_all_deplibs_F77=yes
16241      export_dynamic_flag_spec_F77='${wl}-Bexport'
16242      runpath_var='LD_RUN_PATH'
16243
16244      if test "$GCC" = yes; then
16245	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16246	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247      else
16248	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16249	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250      fi
16251      ;;
16252
16253    uts4*)
16254      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255      hardcode_libdir_flag_spec_F77='-L$libdir'
16256      hardcode_shlibpath_var_F77=no
16257      ;;
16258
16259    *)
16260      ld_shlibs_F77=no
16261      ;;
16262    esac
16263  fi
16264
16265echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16266echo "${ECHO_T}$ld_shlibs_F77" >&6
16267test "$ld_shlibs_F77" = no && can_build_shared=no
16268
16269#
16270# Do we need to explicitly link libc?
16271#
16272case "x$archive_cmds_need_lc_F77" in
16273x|xyes)
16274  # Assume -lc should be added
16275  archive_cmds_need_lc_F77=yes
16276
16277  if test "$enable_shared" = yes && test "$GCC" = yes; then
16278    case $archive_cmds_F77 in
16279    *'~'*)
16280      # FIXME: we may have to deal with multi-command sequences.
16281      ;;
16282    '$CC '*)
16283      # Test whether the compiler implicitly links with -lc since on some
16284      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16285      # to ld, don't add -lc before -lgcc.
16286      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16287echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16288      $rm conftest*
16289      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16290
16291      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16292  (eval $ac_compile) 2>&5
16293  ac_status=$?
16294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295  (exit $ac_status); } 2>conftest.err; then
16296        soname=conftest
16297        lib=conftest
16298        libobjs=conftest.$ac_objext
16299        deplibs=
16300        wl=$lt_prog_compiler_wl_F77
16301	pic_flag=$lt_prog_compiler_pic_F77
16302        compiler_flags=-v
16303        linker_flags=-v
16304        verstring=
16305        output_objdir=.
16306        libname=conftest
16307        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16308        allow_undefined_flag_F77=
16309        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16310  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16311  ac_status=$?
16312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313  (exit $ac_status); }
16314        then
16315	  archive_cmds_need_lc_F77=no
16316        else
16317	  archive_cmds_need_lc_F77=yes
16318        fi
16319        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16320      else
16321        cat conftest.err 1>&5
16322      fi
16323      $rm conftest*
16324      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16325echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16326      ;;
16327    esac
16328  fi
16329  ;;
16330esac
16331
16332echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16333echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16334library_names_spec=
16335libname_spec='lib$name'
16336soname_spec=
16337shrext_cmds=".so"
16338postinstall_cmds=
16339postuninstall_cmds=
16340finish_cmds=
16341finish_eval=
16342shlibpath_var=
16343shlibpath_overrides_runpath=unknown
16344version_type=none
16345dynamic_linker="$host_os ld.so"
16346sys_lib_dlsearch_path_spec="/lib /usr/lib"
16347if test "$GCC" = yes; then
16348  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16349  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16350    # if the path contains ";" then we assume it to be the separator
16351    # otherwise default to the standard path separator (i.e. ":") - it is
16352    # assumed that no part of a normal pathname contains ";" but that should
16353    # okay in the real world where ";" in dirpaths is itself problematic.
16354    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16355  else
16356    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16357  fi
16358else
16359  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16360fi
16361need_lib_prefix=unknown
16362hardcode_into_libs=no
16363
16364# when you set need_version to no, make sure it does not cause -set_version
16365# flags to be left without arguments
16366need_version=unknown
16367
16368case $host_os in
16369aix3*)
16370  version_type=linux
16371  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16372  shlibpath_var=LIBPATH
16373
16374  # AIX 3 has no versioning support, so we append a major version to the name.
16375  soname_spec='${libname}${release}${shared_ext}$major'
16376  ;;
16377
16378aix4* | aix5*)
16379  version_type=linux
16380  need_lib_prefix=no
16381  need_version=no
16382  hardcode_into_libs=yes
16383  if test "$host_cpu" = ia64; then
16384    # AIX 5 supports IA64
16385    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16386    shlibpath_var=LD_LIBRARY_PATH
16387  else
16388    # With GCC up to 2.95.x, collect2 would create an import file
16389    # for dependence libraries.  The import file would start with
16390    # the line `#! .'.  This would cause the generated library to
16391    # depend on `.', always an invalid library.  This was fixed in
16392    # development snapshots of GCC prior to 3.0.
16393    case $host_os in
16394      aix4 | aix4.[01] | aix4.[01].*)
16395      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16396	   echo ' yes '
16397	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16398	:
16399      else
16400	can_build_shared=no
16401      fi
16402      ;;
16403    esac
16404    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16405    # soname into executable. Probably we can add versioning support to
16406    # collect2, so additional links can be useful in future.
16407    if test "$aix_use_runtimelinking" = yes; then
16408      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16409      # instead of lib<name>.a to let people know that these are not
16410      # typical AIX shared libraries.
16411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412    else
16413      # We preserve .a as extension for shared libraries through AIX4.2
16414      # and later when we are not doing run time linking.
16415      library_names_spec='${libname}${release}.a $libname.a'
16416      soname_spec='${libname}${release}${shared_ext}$major'
16417    fi
16418    shlibpath_var=LIBPATH
16419  fi
16420  ;;
16421
16422amigaos*)
16423  library_names_spec='$libname.ixlibrary $libname.a'
16424  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16425  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'
16426  ;;
16427
16428beos*)
16429  library_names_spec='${libname}${shared_ext}'
16430  dynamic_linker="$host_os ld.so"
16431  shlibpath_var=LIBRARY_PATH
16432  ;;
16433
16434bsdi[45]*)
16435  version_type=linux
16436  need_version=no
16437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438  soname_spec='${libname}${release}${shared_ext}$major'
16439  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16440  shlibpath_var=LD_LIBRARY_PATH
16441  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16442  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16443  # the default ld.so.conf also contains /usr/contrib/lib and
16444  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16445  # libtool to hard-code these into programs
16446  ;;
16447
16448cygwin* | mingw* | pw32*)
16449  version_type=windows
16450  shrext_cmds=".dll"
16451  need_version=no
16452  need_lib_prefix=no
16453
16454  case $GCC,$host_os in
16455  yes,cygwin* | yes,mingw* | yes,pw32*)
16456    library_names_spec='$libname.dll.a'
16457    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16458    postinstall_cmds='base_file=`basename \${file}`~
16459      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16460      dldir=$destdir/`dirname \$dlpath`~
16461      test -d \$dldir || mkdir -p \$dldir~
16462      $install_prog $dir/$dlname \$dldir/$dlname~
16463      chmod a+x \$dldir/$dlname'
16464    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16465      dlpath=$dir/\$dldll~
16466       $rm \$dlpath'
16467    shlibpath_overrides_runpath=yes
16468
16469    case $host_os in
16470    cygwin*)
16471      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16472      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16473      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16474      ;;
16475    mingw*)
16476      # MinGW DLLs use traditional 'lib' prefix
16477      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16478      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16480        # It is most probably a Windows format PATH printed by
16481        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16482        # path with ; separators, and with drive letters. We can handle the
16483        # drive letters (cygwin fileutils understands them), so leave them,
16484        # especially as we might pass files found there to a mingw objdump,
16485        # which wouldn't understand a cygwinified path. Ahh.
16486        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16487      else
16488        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16489      fi
16490      ;;
16491    pw32*)
16492      # pw32 DLLs use 'pw' prefix rather than 'lib'
16493      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16494      ;;
16495    esac
16496    ;;
16497
16498  *)
16499    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16500    ;;
16501  esac
16502  dynamic_linker='Win32 ld.exe'
16503  # FIXME: first we should search . and the directory the executable is in
16504  shlibpath_var=PATH
16505  ;;
16506
16507darwin* | rhapsody*)
16508  dynamic_linker="$host_os dyld"
16509  version_type=darwin
16510  need_lib_prefix=no
16511  need_version=no
16512  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16513  soname_spec='${libname}${release}${major}$shared_ext'
16514  shlibpath_overrides_runpath=yes
16515  shlibpath_var=DYLD_LIBRARY_PATH
16516  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16517  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16518  if test "$GCC" = yes; then
16519    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"`
16520  else
16521    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16522  fi
16523  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16524  ;;
16525
16526dgux*)
16527  version_type=linux
16528  need_lib_prefix=no
16529  need_version=no
16530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16531  soname_spec='${libname}${release}${shared_ext}$major'
16532  shlibpath_var=LD_LIBRARY_PATH
16533  ;;
16534
16535freebsd1*)
16536  dynamic_linker=no
16537  ;;
16538
16539kfreebsd*-gnu)
16540  version_type=linux
16541  need_lib_prefix=no
16542  need_version=no
16543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16544  soname_spec='${libname}${release}${shared_ext}$major'
16545  shlibpath_var=LD_LIBRARY_PATH
16546  shlibpath_overrides_runpath=no
16547  hardcode_into_libs=yes
16548  dynamic_linker='GNU ld.so'
16549  ;;
16550
16551freebsd* | dragonfly*)
16552  # DragonFly does not have aout.  When/if they implement a new
16553  # versioning mechanism, adjust this.
16554  if test -x /usr/bin/objformat; then
16555    objformat=`/usr/bin/objformat`
16556  else
16557    case $host_os in
16558    freebsd[123]*) objformat=aout ;;
16559    *) objformat=elf ;;
16560    esac
16561  fi
16562  version_type=freebsd-$objformat
16563  case $version_type in
16564    freebsd-elf*)
16565      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16566      need_version=no
16567      need_lib_prefix=no
16568      ;;
16569    freebsd-*)
16570      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16571      need_version=yes
16572      ;;
16573  esac
16574  shlibpath_var=LD_LIBRARY_PATH
16575  case $host_os in
16576  freebsd2*)
16577    shlibpath_overrides_runpath=yes
16578    ;;
16579  freebsd3.[01]* | freebsdelf3.[01]*)
16580    shlibpath_overrides_runpath=yes
16581    hardcode_into_libs=yes
16582    ;;
16583  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16584  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16585    shlibpath_overrides_runpath=no
16586    hardcode_into_libs=yes
16587    ;;
16588  freebsd*) # from 4.6 on
16589    shlibpath_overrides_runpath=yes
16590    hardcode_into_libs=yes
16591    ;;
16592  esac
16593  ;;
16594
16595gnu*)
16596  version_type=linux
16597  need_lib_prefix=no
16598  need_version=no
16599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16600  soname_spec='${libname}${release}${shared_ext}$major'
16601  shlibpath_var=LD_LIBRARY_PATH
16602  hardcode_into_libs=yes
16603  ;;
16604
16605hpux9* | hpux10* | hpux11*)
16606  # Give a soname corresponding to the major version so that dld.sl refuses to
16607  # link against other versions.
16608  version_type=sunos
16609  need_lib_prefix=no
16610  need_version=no
16611  case $host_cpu in
16612  ia64*)
16613    shrext_cmds='.so'
16614    hardcode_into_libs=yes
16615    dynamic_linker="$host_os dld.so"
16616    shlibpath_var=LD_LIBRARY_PATH
16617    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16618    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619    soname_spec='${libname}${release}${shared_ext}$major'
16620    if test "X$HPUX_IA64_MODE" = X32; then
16621      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16622    else
16623      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16624    fi
16625    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16626    ;;
16627   hppa*64*)
16628     shrext_cmds='.sl'
16629     hardcode_into_libs=yes
16630     dynamic_linker="$host_os dld.sl"
16631     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634     soname_spec='${libname}${release}${shared_ext}$major'
16635     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16637     ;;
16638   *)
16639    shrext_cmds='.sl'
16640    dynamic_linker="$host_os dld.sl"
16641    shlibpath_var=SHLIB_PATH
16642    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16643    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644    soname_spec='${libname}${release}${shared_ext}$major'
16645    ;;
16646  esac
16647  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16648  postinstall_cmds='chmod 555 $lib'
16649  ;;
16650
16651interix3*)
16652  version_type=linux
16653  need_lib_prefix=no
16654  need_version=no
16655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16656  soname_spec='${libname}${release}${shared_ext}$major'
16657  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16658  shlibpath_var=LD_LIBRARY_PATH
16659  shlibpath_overrides_runpath=no
16660  hardcode_into_libs=yes
16661  ;;
16662
16663irix5* | irix6* | nonstopux*)
16664  case $host_os in
16665    nonstopux*) version_type=nonstopux ;;
16666    *)
16667	if test "$lt_cv_prog_gnu_ld" = yes; then
16668		version_type=linux
16669	else
16670		version_type=irix
16671	fi ;;
16672  esac
16673  need_lib_prefix=no
16674  need_version=no
16675  soname_spec='${libname}${release}${shared_ext}$major'
16676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16677  case $host_os in
16678  irix5* | nonstopux*)
16679    libsuff= shlibsuff=
16680    ;;
16681  *)
16682    case $LD in # libtool.m4 will add one of these switches to LD
16683    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16684      libsuff= shlibsuff= libmagic=32-bit;;
16685    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16686      libsuff=32 shlibsuff=N32 libmagic=N32;;
16687    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16688      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16689    *) libsuff= shlibsuff= libmagic=never-match;;
16690    esac
16691    ;;
16692  esac
16693  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16694  shlibpath_overrides_runpath=no
16695  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16696  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16697  hardcode_into_libs=yes
16698  ;;
16699
16700# No shared lib support for Linux oldld, aout, or coff.
16701linux*oldld* | linux*aout* | linux*coff*)
16702  dynamic_linker=no
16703  ;;
16704
16705# This must be Linux ELF.
16706linux*)
16707  version_type=linux
16708  need_lib_prefix=no
16709  need_version=no
16710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711  soname_spec='${libname}${release}${shared_ext}$major'
16712  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16713  shlibpath_var=LD_LIBRARY_PATH
16714  shlibpath_overrides_runpath=no
16715  # This implies no fast_install, which is unacceptable.
16716  # Some rework will be needed to allow for fast_install
16717  # before this can be enabled.
16718  hardcode_into_libs=yes
16719
16720  # Append ld.so.conf contents to the search path
16721  if test -f /etc/ld.so.conf; then
16722    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' ' '`
16723    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16724  fi
16725
16726  # We used to test for /lib/ld.so.1 and disable shared libraries on
16727  # powerpc, because MkLinux only supported shared libraries with the
16728  # GNU dynamic linker.  Since this was broken with cross compilers,
16729  # most powerpc-linux boxes support dynamic linking these days and
16730  # people can always --disable-shared, the test was removed, and we
16731  # assume the GNU/Linux dynamic linker is in use.
16732  dynamic_linker='GNU/Linux ld.so'
16733  ;;
16734
16735knetbsd*-gnu)
16736  version_type=linux
16737  need_lib_prefix=no
16738  need_version=no
16739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16740  soname_spec='${libname}${release}${shared_ext}$major'
16741  shlibpath_var=LD_LIBRARY_PATH
16742  shlibpath_overrides_runpath=no
16743  hardcode_into_libs=yes
16744  dynamic_linker='GNU ld.so'
16745  ;;
16746
16747netbsd*)
16748  version_type=sunos
16749  need_lib_prefix=no
16750  need_version=no
16751  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16753    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16754    dynamic_linker='NetBSD (a.out) ld.so'
16755  else
16756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16757    soname_spec='${libname}${release}${shared_ext}$major'
16758    dynamic_linker='NetBSD ld.elf_so'
16759  fi
16760  shlibpath_var=LD_LIBRARY_PATH
16761  shlibpath_overrides_runpath=yes
16762  hardcode_into_libs=yes
16763  ;;
16764
16765newsos6)
16766  version_type=linux
16767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768  shlibpath_var=LD_LIBRARY_PATH
16769  shlibpath_overrides_runpath=yes
16770  ;;
16771
16772nto-qnx*)
16773  version_type=linux
16774  need_lib_prefix=no
16775  need_version=no
16776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777  soname_spec='${libname}${release}${shared_ext}$major'
16778  shlibpath_var=LD_LIBRARY_PATH
16779  shlibpath_overrides_runpath=yes
16780  ;;
16781
16782openbsd*)
16783  version_type=sunos
16784  sys_lib_dlsearch_path_spec="/usr/lib"
16785  need_lib_prefix=no
16786  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16787  case $host_os in
16788    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16789    *)                         need_version=no  ;;
16790  esac
16791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16792  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16793  shlibpath_var=LD_LIBRARY_PATH
16794  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16795    case $host_os in
16796      openbsd2.[89] | openbsd2.[89].*)
16797	shlibpath_overrides_runpath=no
16798	;;
16799      *)
16800	shlibpath_overrides_runpath=yes
16801	;;
16802      esac
16803  else
16804    shlibpath_overrides_runpath=yes
16805  fi
16806  ;;
16807
16808os2*)
16809  libname_spec='$name'
16810  shrext_cmds=".dll"
16811  need_lib_prefix=no
16812  library_names_spec='$libname${shared_ext} $libname.a'
16813  dynamic_linker='OS/2 ld.exe'
16814  shlibpath_var=LIBPATH
16815  ;;
16816
16817osf3* | osf4* | osf5*)
16818  version_type=osf
16819  need_lib_prefix=no
16820  need_version=no
16821  soname_spec='${libname}${release}${shared_ext}$major'
16822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823  shlibpath_var=LD_LIBRARY_PATH
16824  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16825  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16826  ;;
16827
16828solaris*)
16829  version_type=linux
16830  need_lib_prefix=no
16831  need_version=no
16832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833  soname_spec='${libname}${release}${shared_ext}$major'
16834  shlibpath_var=LD_LIBRARY_PATH
16835  shlibpath_overrides_runpath=yes
16836  hardcode_into_libs=yes
16837  # ldd complains unless libraries are executable
16838  postinstall_cmds='chmod +x $lib'
16839  ;;
16840
16841sunos4*)
16842  version_type=sunos
16843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16845  shlibpath_var=LD_LIBRARY_PATH
16846  shlibpath_overrides_runpath=yes
16847  if test "$with_gnu_ld" = yes; then
16848    need_lib_prefix=no
16849  fi
16850  need_version=yes
16851  ;;
16852
16853sysv4 | sysv4.3*)
16854  version_type=linux
16855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856  soname_spec='${libname}${release}${shared_ext}$major'
16857  shlibpath_var=LD_LIBRARY_PATH
16858  case $host_vendor in
16859    sni)
16860      shlibpath_overrides_runpath=no
16861      need_lib_prefix=no
16862      export_dynamic_flag_spec='${wl}-Blargedynsym'
16863      runpath_var=LD_RUN_PATH
16864      ;;
16865    siemens)
16866      need_lib_prefix=no
16867      ;;
16868    motorola)
16869      need_lib_prefix=no
16870      need_version=no
16871      shlibpath_overrides_runpath=no
16872      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16873      ;;
16874  esac
16875  ;;
16876
16877sysv4*MP*)
16878  if test -d /usr/nec ;then
16879    version_type=linux
16880    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16881    soname_spec='$libname${shared_ext}.$major'
16882    shlibpath_var=LD_LIBRARY_PATH
16883  fi
16884  ;;
16885
16886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16887  version_type=freebsd-elf
16888  need_lib_prefix=no
16889  need_version=no
16890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16891  soname_spec='${libname}${release}${shared_ext}$major'
16892  shlibpath_var=LD_LIBRARY_PATH
16893  hardcode_into_libs=yes
16894  if test "$with_gnu_ld" = yes; then
16895    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16896    shlibpath_overrides_runpath=no
16897  else
16898    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16899    shlibpath_overrides_runpath=yes
16900    case $host_os in
16901      sco3.2v5*)
16902        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16903	;;
16904    esac
16905  fi
16906  sys_lib_dlsearch_path_spec='/usr/lib'
16907  ;;
16908
16909uts4*)
16910  version_type=linux
16911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912  soname_spec='${libname}${release}${shared_ext}$major'
16913  shlibpath_var=LD_LIBRARY_PATH
16914  ;;
16915
16916*)
16917  dynamic_linker=no
16918  ;;
16919esac
16920echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16921echo "${ECHO_T}$dynamic_linker" >&6
16922test "$dynamic_linker" = no && can_build_shared=no
16923
16924variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16925if test "$GCC" = yes; then
16926  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16927fi
16928
16929echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16930echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16931hardcode_action_F77=
16932if test -n "$hardcode_libdir_flag_spec_F77" || \
16933   test -n "$runpath_var_F77" || \
16934   test "X$hardcode_automatic_F77" = "Xyes" ; then
16935
16936  # We can hardcode non-existant directories.
16937  if test "$hardcode_direct_F77" != no &&
16938     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16939     # have to relink, otherwise we might link with an installed library
16940     # when we should be linking with a yet-to-be-installed one
16941     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16942     test "$hardcode_minus_L_F77" != no; then
16943    # Linking always hardcodes the temporary library directory.
16944    hardcode_action_F77=relink
16945  else
16946    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16947    hardcode_action_F77=immediate
16948  fi
16949else
16950  # We cannot hardcode anything, or else we can only hardcode existing
16951  # directories.
16952  hardcode_action_F77=unsupported
16953fi
16954echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16955echo "${ECHO_T}$hardcode_action_F77" >&6
16956
16957if test "$hardcode_action_F77" = relink; then
16958  # Fast installation is not supported
16959  enable_fast_install=no
16960elif test "$shlibpath_overrides_runpath" = yes ||
16961     test "$enable_shared" = no; then
16962  # Fast installation is not necessary
16963  enable_fast_install=needless
16964fi
16965
16966
16967# The else clause should only fire when bootstrapping the
16968# libtool distribution, otherwise you forgot to ship ltmain.sh
16969# with your package, and you will get complaints that there are
16970# no rules to generate ltmain.sh.
16971if test -f "$ltmain"; then
16972  # See if we are running on zsh, and set the options which allow our commands through
16973  # without removal of \ escapes.
16974  if test -n "${ZSH_VERSION+set}" ; then
16975    setopt NO_GLOB_SUBST
16976  fi
16977  # Now quote all the things that may contain metacharacters while being
16978  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16979  # variables and quote the copies for generation of the libtool script.
16980  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16981    SED SHELL STRIP \
16982    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16983    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16984    deplibs_check_method reload_flag reload_cmds need_locks \
16985    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16986    lt_cv_sys_global_symbol_to_c_name_address \
16987    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16988    old_postinstall_cmds old_postuninstall_cmds \
16989    compiler_F77 \
16990    CC_F77 \
16991    LD_F77 \
16992    lt_prog_compiler_wl_F77 \
16993    lt_prog_compiler_pic_F77 \
16994    lt_prog_compiler_static_F77 \
16995    lt_prog_compiler_no_builtin_flag_F77 \
16996    export_dynamic_flag_spec_F77 \
16997    thread_safe_flag_spec_F77 \
16998    whole_archive_flag_spec_F77 \
16999    enable_shared_with_static_runtimes_F77 \
17000    old_archive_cmds_F77 \
17001    old_archive_from_new_cmds_F77 \
17002    predep_objects_F77 \
17003    postdep_objects_F77 \
17004    predeps_F77 \
17005    postdeps_F77 \
17006    compiler_lib_search_path_F77 \
17007    archive_cmds_F77 \
17008    archive_expsym_cmds_F77 \
17009    postinstall_cmds_F77 \
17010    postuninstall_cmds_F77 \
17011    old_archive_from_expsyms_cmds_F77 \
17012    allow_undefined_flag_F77 \
17013    no_undefined_flag_F77 \
17014    export_symbols_cmds_F77 \
17015    hardcode_libdir_flag_spec_F77 \
17016    hardcode_libdir_flag_spec_ld_F77 \
17017    hardcode_libdir_separator_F77 \
17018    hardcode_automatic_F77 \
17019    module_cmds_F77 \
17020    module_expsym_cmds_F77 \
17021    lt_cv_prog_compiler_c_o_F77 \
17022    exclude_expsyms_F77 \
17023    include_expsyms_F77; do
17024
17025    case $var in
17026    old_archive_cmds_F77 | \
17027    old_archive_from_new_cmds_F77 | \
17028    archive_cmds_F77 | \
17029    archive_expsym_cmds_F77 | \
17030    module_cmds_F77 | \
17031    module_expsym_cmds_F77 | \
17032    old_archive_from_expsyms_cmds_F77 | \
17033    export_symbols_cmds_F77 | \
17034    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17035    postinstall_cmds | postuninstall_cmds | \
17036    old_postinstall_cmds | old_postuninstall_cmds | \
17037    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17038      # Double-quote double-evaled strings.
17039      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17040      ;;
17041    *)
17042      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17043      ;;
17044    esac
17045  done
17046
17047  case $lt_echo in
17048  *'\$0 --fallback-echo"')
17049    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17050    ;;
17051  esac
17052
17053cfgfile="$ofile"
17054
17055  cat <<__EOF__ >> "$cfgfile"
17056# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17057
17058# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17059
17060# Shell to use when invoking shell scripts.
17061SHELL=$lt_SHELL
17062
17063# Whether or not to build shared libraries.
17064build_libtool_libs=$enable_shared
17065
17066# Whether or not to build static libraries.
17067build_old_libs=$enable_static
17068
17069# Whether or not to add -lc for building shared libraries.
17070build_libtool_need_lc=$archive_cmds_need_lc_F77
17071
17072# Whether or not to disallow shared libs when runtime libs are static
17073allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17074
17075# Whether or not to optimize for fast installation.
17076fast_install=$enable_fast_install
17077
17078# The host system.
17079host_alias=$host_alias
17080host=$host
17081host_os=$host_os
17082
17083# The build system.
17084build_alias=$build_alias
17085build=$build
17086build_os=$build_os
17087
17088# An echo program that does not interpret backslashes.
17089echo=$lt_echo
17090
17091# The archiver.
17092AR=$lt_AR
17093AR_FLAGS=$lt_AR_FLAGS
17094
17095# A C compiler.
17096LTCC=$lt_LTCC
17097
17098# LTCC compiler flags.
17099LTCFLAGS=$lt_LTCFLAGS
17100
17101# A language-specific compiler.
17102CC=$lt_compiler_F77
17103
17104# Is the compiler the GNU C compiler?
17105with_gcc=$GCC_F77
17106
17107# An ERE matcher.
17108EGREP=$lt_EGREP
17109
17110# The linker used to build libraries.
17111LD=$lt_LD_F77
17112
17113# Whether we need hard or soft links.
17114LN_S=$lt_LN_S
17115
17116# A BSD-compatible nm program.
17117NM=$lt_NM
17118
17119# A symbol stripping program
17120STRIP=$lt_STRIP
17121
17122# Used to examine libraries when file_magic_cmd begins "file"
17123MAGIC_CMD=$MAGIC_CMD
17124
17125# Used on cygwin: DLL creation program.
17126DLLTOOL="$DLLTOOL"
17127
17128# Used on cygwin: object dumper.
17129OBJDUMP="$OBJDUMP"
17130
17131# Used on cygwin: assembler.
17132AS="$AS"
17133
17134# The name of the directory that contains temporary libtool files.
17135objdir=$objdir
17136
17137# How to create reloadable object files.
17138reload_flag=$lt_reload_flag
17139reload_cmds=$lt_reload_cmds
17140
17141# How to pass a linker flag through the compiler.
17142wl=$lt_lt_prog_compiler_wl_F77
17143
17144# Object file suffix (normally "o").
17145objext="$ac_objext"
17146
17147# Old archive suffix (normally "a").
17148libext="$libext"
17149
17150# Shared library suffix (normally ".so").
17151shrext_cmds='$shrext_cmds'
17152
17153# Executable file suffix (normally "").
17154exeext="$exeext"
17155
17156# Additional compiler flags for building library objects.
17157pic_flag=$lt_lt_prog_compiler_pic_F77
17158pic_mode=$pic_mode
17159
17160# What is the maximum length of a command?
17161max_cmd_len=$lt_cv_sys_max_cmd_len
17162
17163# Does compiler simultaneously support -c and -o options?
17164compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17165
17166# Must we lock files when doing compilation?
17167need_locks=$lt_need_locks
17168
17169# Do we need the lib prefix for modules?
17170need_lib_prefix=$need_lib_prefix
17171
17172# Do we need a version for libraries?
17173need_version=$need_version
17174
17175# Whether dlopen is supported.
17176dlopen_support=$enable_dlopen
17177
17178# Whether dlopen of programs is supported.
17179dlopen_self=$enable_dlopen_self
17180
17181# Whether dlopen of statically linked programs is supported.
17182dlopen_self_static=$enable_dlopen_self_static
17183
17184# Compiler flag to prevent dynamic linking.
17185link_static_flag=$lt_lt_prog_compiler_static_F77
17186
17187# Compiler flag to turn off builtin functions.
17188no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17189
17190# Compiler flag to allow reflexive dlopens.
17191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17192
17193# Compiler flag to generate shared objects directly from archives.
17194whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17195
17196# Compiler flag to generate thread-safe objects.
17197thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17198
17199# Library versioning type.
17200version_type=$version_type
17201
17202# Format of library name prefix.
17203libname_spec=$lt_libname_spec
17204
17205# List of archive names.  First name is the real one, the rest are links.
17206# The last name is the one that the linker finds with -lNAME.
17207library_names_spec=$lt_library_names_spec
17208
17209# The coded name of the library, if different from the real name.
17210soname_spec=$lt_soname_spec
17211
17212# Commands used to build and install an old-style archive.
17213RANLIB=$lt_RANLIB
17214old_archive_cmds=$lt_old_archive_cmds_F77
17215old_postinstall_cmds=$lt_old_postinstall_cmds
17216old_postuninstall_cmds=$lt_old_postuninstall_cmds
17217
17218# Create an old-style archive from a shared archive.
17219old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17220
17221# Create a temporary old-style archive to link instead of a shared archive.
17222old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17223
17224# Commands used to build and install a shared archive.
17225archive_cmds=$lt_archive_cmds_F77
17226archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17227postinstall_cmds=$lt_postinstall_cmds
17228postuninstall_cmds=$lt_postuninstall_cmds
17229
17230# Commands used to build a loadable module (assumed same as above if empty)
17231module_cmds=$lt_module_cmds_F77
17232module_expsym_cmds=$lt_module_expsym_cmds_F77
17233
17234# Commands to strip libraries.
17235old_striplib=$lt_old_striplib
17236striplib=$lt_striplib
17237
17238# Dependencies to place before the objects being linked to create a
17239# shared library.
17240predep_objects=$lt_predep_objects_F77
17241
17242# Dependencies to place after the objects being linked to create a
17243# shared library.
17244postdep_objects=$lt_postdep_objects_F77
17245
17246# Dependencies to place before the objects being linked to create a
17247# shared library.
17248predeps=$lt_predeps_F77
17249
17250# Dependencies to place after the objects being linked to create a
17251# shared library.
17252postdeps=$lt_postdeps_F77
17253
17254# The library search path used internally by the compiler when linking
17255# a shared library.
17256compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17257
17258# Method to check whether dependent libraries are shared objects.
17259deplibs_check_method=$lt_deplibs_check_method
17260
17261# Command to use when deplibs_check_method == file_magic.
17262file_magic_cmd=$lt_file_magic_cmd
17263
17264# Flag that allows shared libraries with undefined symbols to be built.
17265allow_undefined_flag=$lt_allow_undefined_flag_F77
17266
17267# Flag that forces no undefined symbols.
17268no_undefined_flag=$lt_no_undefined_flag_F77
17269
17270# Commands used to finish a libtool library installation in a directory.
17271finish_cmds=$lt_finish_cmds
17272
17273# Same as above, but a single script fragment to be evaled but not shown.
17274finish_eval=$lt_finish_eval
17275
17276# Take the output of nm and produce a listing of raw symbols and C names.
17277global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17278
17279# Transform the output of nm in a proper C declaration
17280global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17281
17282# Transform the output of nm in a C name address pair
17283global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17284
17285# This is the shared library runtime path variable.
17286runpath_var=$runpath_var
17287
17288# This is the shared library path variable.
17289shlibpath_var=$shlibpath_var
17290
17291# Is shlibpath searched before the hard-coded library search path?
17292shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17293
17294# How to hardcode a shared library path into an executable.
17295hardcode_action=$hardcode_action_F77
17296
17297# Whether we should hardcode library paths into libraries.
17298hardcode_into_libs=$hardcode_into_libs
17299
17300# Flag to hardcode \$libdir into a binary during linking.
17301# This must work even if \$libdir does not exist.
17302hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17303
17304# If ld is used when linking, flag to hardcode \$libdir into
17305# a binary during linking. This must work even if \$libdir does
17306# not exist.
17307hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17308
17309# Whether we need a single -rpath flag with a separated argument.
17310hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17311
17312# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17313# resulting binary.
17314hardcode_direct=$hardcode_direct_F77
17315
17316# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17317# resulting binary.
17318hardcode_minus_L=$hardcode_minus_L_F77
17319
17320# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17321# the resulting binary.
17322hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17323
17324# Set to yes if building a shared library automatically hardcodes DIR into the library
17325# and all subsequent libraries and executables linked against it.
17326hardcode_automatic=$hardcode_automatic_F77
17327
17328# Variables whose values should be saved in libtool wrapper scripts and
17329# restored at relink time.
17330variables_saved_for_relink="$variables_saved_for_relink"
17331
17332# Whether libtool must link a program against all its dependency libraries.
17333link_all_deplibs=$link_all_deplibs_F77
17334
17335# Compile-time system search path for libraries
17336sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17337
17338# Run-time system search path for libraries
17339sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17340
17341# Fix the shell variable \$srcfile for the compiler.
17342fix_srcfile_path="$fix_srcfile_path_F77"
17343
17344# Set to yes if exported symbols are required.
17345always_export_symbols=$always_export_symbols_F77
17346
17347# The commands to list exported symbols.
17348export_symbols_cmds=$lt_export_symbols_cmds_F77
17349
17350# The commands to extract the exported symbol list from a shared archive.
17351extract_expsyms_cmds=$lt_extract_expsyms_cmds
17352
17353# Symbols that should not be listed in the preloaded symbols.
17354exclude_expsyms=$lt_exclude_expsyms_F77
17355
17356# Symbols that must always be exported.
17357include_expsyms=$lt_include_expsyms_F77
17358
17359# ### END LIBTOOL TAG CONFIG: $tagname
17360
17361__EOF__
17362
17363
17364else
17365  # If there is no Makefile yet, we rely on a make rule to execute
17366  # `config.status --recheck' to rerun these tests and create the
17367  # libtool script then.
17368  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17369  if test -f "$ltmain_in"; then
17370    test -f Makefile && make "$ltmain"
17371  fi
17372fi
17373
17374
17375ac_ext=c
17376ac_cpp='$CPP $CPPFLAGS'
17377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17379ac_compiler_gnu=$ac_cv_c_compiler_gnu
17380
17381CC="$lt_save_CC"
17382
17383	else
17384	  tagname=""
17385	fi
17386	;;
17387
17388      GCJ)
17389	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17390
17391
17392
17393# Source file extension for Java test sources.
17394ac_ext=java
17395
17396# Object file extension for compiled Java test sources.
17397objext=o
17398objext_GCJ=$objext
17399
17400# Code to be used in simple compile tests
17401lt_simple_compile_test_code="class foo {}\n"
17402
17403# Code to be used in simple link tests
17404lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17405
17406# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17407
17408# If no C compiler was specified, use CC.
17409LTCC=${LTCC-"$CC"}
17410
17411# If no C compiler flags were specified, use CFLAGS.
17412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17413
17414# Allow CC to be a program name with arguments.
17415compiler=$CC
17416
17417
17418# save warnings/boilerplate of simple test code
17419ac_outfile=conftest.$ac_objext
17420printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17421eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17422_lt_compiler_boilerplate=`cat conftest.err`
17423$rm conftest*
17424
17425ac_outfile=conftest.$ac_objext
17426printf "$lt_simple_link_test_code" >conftest.$ac_ext
17427eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17428_lt_linker_boilerplate=`cat conftest.err`
17429$rm conftest*
17430
17431
17432# Allow CC to be a program name with arguments.
17433lt_save_CC="$CC"
17434CC=${GCJ-"gcj"}
17435compiler=$CC
17436compiler_GCJ=$CC
17437for cc_temp in $compiler""; do
17438  case $cc_temp in
17439    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17440    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17441    \-*) ;;
17442    *) break;;
17443  esac
17444done
17445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17446
17447
17448# GCJ did not exist at the time GCC didn't implicitly link libc in.
17449archive_cmds_need_lc_GCJ=no
17450
17451old_archive_cmds_GCJ=$old_archive_cmds
17452
17453## CAVEAT EMPTOR:
17454## There is no encapsulation within the following macros, do not change
17455## the running order or otherwise move them around unless you know exactly
17456## what you are doing...
17457
17458lt_prog_compiler_no_builtin_flag_GCJ=
17459
17460if test "$GCC" = yes; then
17461  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17462
17463
17464echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17465echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17466if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17467  echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469  lt_cv_prog_compiler_rtti_exceptions=no
17470  ac_outfile=conftest.$ac_objext
17471   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17472   lt_compiler_flag="-fno-rtti -fno-exceptions"
17473   # Insert the option either (1) after the last *FLAGS variable, or
17474   # (2) before a word containing "conftest.", or (3) at the end.
17475   # Note that $ac_compile itself does not contain backslashes and begins
17476   # with a dollar sign (not a hyphen), so the echo should work correctly.
17477   # The option is referenced via a variable to avoid confusing sed.
17478   lt_compile=`echo "$ac_compile" | $SED \
17479   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17481   -e 's:$: $lt_compiler_flag:'`
17482   (eval echo "\"\$as_me:17482: $lt_compile\"" >&5)
17483   (eval "$lt_compile" 2>conftest.err)
17484   ac_status=$?
17485   cat conftest.err >&5
17486   echo "$as_me:17486: \$? = $ac_status" >&5
17487   if (exit $ac_status) && test -s "$ac_outfile"; then
17488     # The compiler can only warn and ignore the option if not recognized
17489     # So say no if there are warnings other than the usual output.
17490     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17491     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17492     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17493       lt_cv_prog_compiler_rtti_exceptions=yes
17494     fi
17495   fi
17496   $rm conftest*
17497
17498fi
17499echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17500echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17501
17502if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17503    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17504else
17505    :
17506fi
17507
17508fi
17509
17510lt_prog_compiler_wl_GCJ=
17511lt_prog_compiler_pic_GCJ=
17512lt_prog_compiler_static_GCJ=
17513
17514echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17515echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17516
17517  if test "$GCC" = yes; then
17518    lt_prog_compiler_wl_GCJ='-Wl,'
17519    lt_prog_compiler_static_GCJ='-static'
17520
17521    case $host_os in
17522      aix*)
17523      # All AIX code is PIC.
17524      if test "$host_cpu" = ia64; then
17525	# AIX 5 now supports IA64 processor
17526	lt_prog_compiler_static_GCJ='-Bstatic'
17527      fi
17528      ;;
17529
17530    amigaos*)
17531      # FIXME: we need at least 68020 code to build shared libraries, but
17532      # adding the `-m68020' flag to GCC prevents building anything better,
17533      # like `-m68040'.
17534      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17535      ;;
17536
17537    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17538      # PIC is the default for these OSes.
17539      ;;
17540
17541    mingw* | pw32* | os2*)
17542      # This hack is so that the source file can tell whether it is being
17543      # built for inclusion in a dll (and should export symbols for example).
17544      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17545      ;;
17546
17547    darwin* | rhapsody*)
17548      # PIC is the default on this platform
17549      # Common symbols not allowed in MH_DYLIB files
17550      lt_prog_compiler_pic_GCJ='-fno-common'
17551      ;;
17552
17553    interix3*)
17554      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17555      # Instead, we relocate shared libraries at runtime.
17556      ;;
17557
17558    msdosdjgpp*)
17559      # Just because we use GCC doesn't mean we suddenly get shared libraries
17560      # on systems that don't support them.
17561      lt_prog_compiler_can_build_shared_GCJ=no
17562      enable_shared=no
17563      ;;
17564
17565    sysv4*MP*)
17566      if test -d /usr/nec; then
17567	lt_prog_compiler_pic_GCJ=-Kconform_pic
17568      fi
17569      ;;
17570
17571    hpux*)
17572      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17573      # not for PA HP-UX.
17574      case $host_cpu in
17575      hppa*64*|ia64*)
17576	# +Z the default
17577	;;
17578      *)
17579	lt_prog_compiler_pic_GCJ='-fPIC'
17580	;;
17581      esac
17582      ;;
17583
17584    *)
17585      lt_prog_compiler_pic_GCJ='-fPIC'
17586      ;;
17587    esac
17588  else
17589    # PORTME Check for flag to pass linker flags through the system compiler.
17590    case $host_os in
17591    aix*)
17592      lt_prog_compiler_wl_GCJ='-Wl,'
17593      if test "$host_cpu" = ia64; then
17594	# AIX 5 now supports IA64 processor
17595	lt_prog_compiler_static_GCJ='-Bstatic'
17596      else
17597	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17598      fi
17599      ;;
17600      darwin*)
17601        # PIC is the default on this platform
17602        # Common symbols not allowed in MH_DYLIB files
17603       case $cc_basename in
17604         xlc*)
17605         lt_prog_compiler_pic_GCJ='-qnocommon'
17606         lt_prog_compiler_wl_GCJ='-Wl,'
17607         ;;
17608       esac
17609       ;;
17610
17611    mingw* | pw32* | os2*)
17612      # This hack is so that the source file can tell whether it is being
17613      # built for inclusion in a dll (and should export symbols for example).
17614      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17615      ;;
17616
17617    hpux9* | hpux10* | hpux11*)
17618      lt_prog_compiler_wl_GCJ='-Wl,'
17619      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17620      # not for PA HP-UX.
17621      case $host_cpu in
17622      hppa*64*|ia64*)
17623	# +Z the default
17624	;;
17625      *)
17626	lt_prog_compiler_pic_GCJ='+Z'
17627	;;
17628      esac
17629      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17630      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17631      ;;
17632
17633    irix5* | irix6* | nonstopux*)
17634      lt_prog_compiler_wl_GCJ='-Wl,'
17635      # PIC (with -KPIC) is the default.
17636      lt_prog_compiler_static_GCJ='-non_shared'
17637      ;;
17638
17639    newsos6)
17640      lt_prog_compiler_pic_GCJ='-KPIC'
17641      lt_prog_compiler_static_GCJ='-Bstatic'
17642      ;;
17643
17644    linux*)
17645      case $cc_basename in
17646      icc* | ecc*)
17647	lt_prog_compiler_wl_GCJ='-Wl,'
17648	lt_prog_compiler_pic_GCJ='-KPIC'
17649	lt_prog_compiler_static_GCJ='-static'
17650        ;;
17651      pgcc* | pgf77* | pgf90* | pgf95*)
17652        # Portland Group compilers (*not* the Pentium gcc compiler,
17653	# which looks to be a dead project)
17654	lt_prog_compiler_wl_GCJ='-Wl,'
17655	lt_prog_compiler_pic_GCJ='-fpic'
17656	lt_prog_compiler_static_GCJ='-Bstatic'
17657        ;;
17658      ccc*)
17659        lt_prog_compiler_wl_GCJ='-Wl,'
17660        # All Alpha code is PIC.
17661        lt_prog_compiler_static_GCJ='-non_shared'
17662        ;;
17663      esac
17664      ;;
17665
17666    osf3* | osf4* | osf5*)
17667      lt_prog_compiler_wl_GCJ='-Wl,'
17668      # All OSF/1 code is PIC.
17669      lt_prog_compiler_static_GCJ='-non_shared'
17670      ;;
17671
17672    solaris*)
17673      lt_prog_compiler_pic_GCJ='-KPIC'
17674      lt_prog_compiler_static_GCJ='-Bstatic'
17675      case $cc_basename in
17676      f77* | f90* | f95*)
17677	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17678      *)
17679	lt_prog_compiler_wl_GCJ='-Wl,';;
17680      esac
17681      ;;
17682
17683    sunos4*)
17684      lt_prog_compiler_wl_GCJ='-Qoption ld '
17685      lt_prog_compiler_pic_GCJ='-PIC'
17686      lt_prog_compiler_static_GCJ='-Bstatic'
17687      ;;
17688
17689    sysv4 | sysv4.2uw2* | sysv4.3*)
17690      lt_prog_compiler_wl_GCJ='-Wl,'
17691      lt_prog_compiler_pic_GCJ='-KPIC'
17692      lt_prog_compiler_static_GCJ='-Bstatic'
17693      ;;
17694
17695    sysv4*MP*)
17696      if test -d /usr/nec ;then
17697	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17698	lt_prog_compiler_static_GCJ='-Bstatic'
17699      fi
17700      ;;
17701
17702    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17703      lt_prog_compiler_wl_GCJ='-Wl,'
17704      lt_prog_compiler_pic_GCJ='-KPIC'
17705      lt_prog_compiler_static_GCJ='-Bstatic'
17706      ;;
17707
17708    unicos*)
17709      lt_prog_compiler_wl_GCJ='-Wl,'
17710      lt_prog_compiler_can_build_shared_GCJ=no
17711      ;;
17712
17713    uts4*)
17714      lt_prog_compiler_pic_GCJ='-pic'
17715      lt_prog_compiler_static_GCJ='-Bstatic'
17716      ;;
17717
17718    *)
17719      lt_prog_compiler_can_build_shared_GCJ=no
17720      ;;
17721    esac
17722  fi
17723
17724echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17725echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17726
17727#
17728# Check to make sure the PIC flag actually works.
17729#
17730if test -n "$lt_prog_compiler_pic_GCJ"; then
17731
17732echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17733echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17734if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17735  echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737  lt_prog_compiler_pic_works_GCJ=no
17738  ac_outfile=conftest.$ac_objext
17739   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17740   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17741   # Insert the option either (1) after the last *FLAGS variable, or
17742   # (2) before a word containing "conftest.", or (3) at the end.
17743   # Note that $ac_compile itself does not contain backslashes and begins
17744   # with a dollar sign (not a hyphen), so the echo should work correctly.
17745   # The option is referenced via a variable to avoid confusing sed.
17746   lt_compile=`echo "$ac_compile" | $SED \
17747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17749   -e 's:$: $lt_compiler_flag:'`
17750   (eval echo "\"\$as_me:17750: $lt_compile\"" >&5)
17751   (eval "$lt_compile" 2>conftest.err)
17752   ac_status=$?
17753   cat conftest.err >&5
17754   echo "$as_me:17754: \$? = $ac_status" >&5
17755   if (exit $ac_status) && test -s "$ac_outfile"; then
17756     # The compiler can only warn and ignore the option if not recognized
17757     # So say no if there are warnings other than the usual output.
17758     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17759     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17760     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17761       lt_prog_compiler_pic_works_GCJ=yes
17762     fi
17763   fi
17764   $rm conftest*
17765
17766fi
17767echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17768echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17769
17770if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17771    case $lt_prog_compiler_pic_GCJ in
17772     "" | " "*) ;;
17773     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17774     esac
17775else
17776    lt_prog_compiler_pic_GCJ=
17777     lt_prog_compiler_can_build_shared_GCJ=no
17778fi
17779
17780fi
17781case $host_os in
17782  # For platforms which do not support PIC, -DPIC is meaningless:
17783  *djgpp*)
17784    lt_prog_compiler_pic_GCJ=
17785    ;;
17786  *)
17787    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17788    ;;
17789esac
17790
17791#
17792# Check to make sure the static flag actually works.
17793#
17794wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17795echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17796echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17797if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17798  echo $ECHO_N "(cached) $ECHO_C" >&6
17799else
17800  lt_prog_compiler_static_works_GCJ=no
17801   save_LDFLAGS="$LDFLAGS"
17802   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17803   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17804   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17805     # The linker can only warn and ignore the option if not recognized
17806     # So say no if there are warnings
17807     if test -s conftest.err; then
17808       # Append any errors to the config.log.
17809       cat conftest.err 1>&5
17810       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17811       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17812       if diff conftest.exp conftest.er2 >/dev/null; then
17813         lt_prog_compiler_static_works_GCJ=yes
17814       fi
17815     else
17816       lt_prog_compiler_static_works_GCJ=yes
17817     fi
17818   fi
17819   $rm conftest*
17820   LDFLAGS="$save_LDFLAGS"
17821
17822fi
17823echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17824echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17825
17826if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17827    :
17828else
17829    lt_prog_compiler_static_GCJ=
17830fi
17831
17832
17833echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17835if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17836  echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838  lt_cv_prog_compiler_c_o_GCJ=no
17839   $rm -r conftest 2>/dev/null
17840   mkdir conftest
17841   cd conftest
17842   mkdir out
17843   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17844
17845   lt_compiler_flag="-o out/conftest2.$ac_objext"
17846   # Insert the option either (1) after the last *FLAGS variable, or
17847   # (2) before a word containing "conftest.", or (3) at the end.
17848   # Note that $ac_compile itself does not contain backslashes and begins
17849   # with a dollar sign (not a hyphen), so the echo should work correctly.
17850   lt_compile=`echo "$ac_compile" | $SED \
17851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17853   -e 's:$: $lt_compiler_flag:'`
17854   (eval echo "\"\$as_me:17854: $lt_compile\"" >&5)
17855   (eval "$lt_compile" 2>out/conftest.err)
17856   ac_status=$?
17857   cat out/conftest.err >&5
17858   echo "$as_me:17858: \$? = $ac_status" >&5
17859   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17860   then
17861     # The compiler can only warn and ignore the option if not recognized
17862     # So say no if there are warnings
17863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17864     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17865     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17866       lt_cv_prog_compiler_c_o_GCJ=yes
17867     fi
17868   fi
17869   chmod u+w . 2>&5
17870   $rm conftest*
17871   # SGI C++ compiler will create directory out/ii_files/ for
17872   # template instantiation
17873   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17874   $rm out/* && rmdir out
17875   cd ..
17876   rmdir conftest
17877   $rm conftest*
17878
17879fi
17880echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17881echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17882
17883
17884hard_links="nottested"
17885if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17886  # do not overwrite the value of need_locks provided by the user
17887  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17889  hard_links=yes
17890  $rm conftest*
17891  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17892  touch conftest.a
17893  ln conftest.a conftest.b 2>&5 || hard_links=no
17894  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17895  echo "$as_me:$LINENO: result: $hard_links" >&5
17896echo "${ECHO_T}$hard_links" >&6
17897  if test "$hard_links" = no; then
17898    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17900    need_locks=warn
17901  fi
17902else
17903  need_locks=no
17904fi
17905
17906echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17907echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17908
17909  runpath_var=
17910  allow_undefined_flag_GCJ=
17911  enable_shared_with_static_runtimes_GCJ=no
17912  archive_cmds_GCJ=
17913  archive_expsym_cmds_GCJ=
17914  old_archive_From_new_cmds_GCJ=
17915  old_archive_from_expsyms_cmds_GCJ=
17916  export_dynamic_flag_spec_GCJ=
17917  whole_archive_flag_spec_GCJ=
17918  thread_safe_flag_spec_GCJ=
17919  hardcode_libdir_flag_spec_GCJ=
17920  hardcode_libdir_flag_spec_ld_GCJ=
17921  hardcode_libdir_separator_GCJ=
17922  hardcode_direct_GCJ=no
17923  hardcode_minus_L_GCJ=no
17924  hardcode_shlibpath_var_GCJ=unsupported
17925  link_all_deplibs_GCJ=unknown
17926  hardcode_automatic_GCJ=no
17927  module_cmds_GCJ=
17928  module_expsym_cmds_GCJ=
17929  always_export_symbols_GCJ=no
17930  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17931  # include_expsyms should be a list of space-separated symbols to be *always*
17932  # included in the symbol list
17933  include_expsyms_GCJ=
17934  # exclude_expsyms can be an extended regexp of symbols to exclude
17935  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17936  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17937  # as well as any symbol that contains `d'.
17938  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17939  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17940  # platforms (ab)use it in PIC code, but their linkers get confused if
17941  # the symbol is explicitly referenced.  Since portable code cannot
17942  # rely on this symbol name, it's probably fine to never include it in
17943  # preloaded symbol tables.
17944  extract_expsyms_cmds=
17945  # Just being paranoid about ensuring that cc_basename is set.
17946  for cc_temp in $compiler""; do
17947  case $cc_temp in
17948    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17949    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17950    \-*) ;;
17951    *) break;;
17952  esac
17953done
17954cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17955
17956  case $host_os in
17957  cygwin* | mingw* | pw32*)
17958    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17959    # When not using gcc, we currently assume that we are using
17960    # Microsoft Visual C++.
17961    if test "$GCC" != yes; then
17962      with_gnu_ld=no
17963    fi
17964    ;;
17965  interix*)
17966    # we just hope/assume this is gcc and not c89 (= MSVC++)
17967    with_gnu_ld=yes
17968    ;;
17969  openbsd*)
17970    with_gnu_ld=no
17971    ;;
17972  esac
17973
17974  ld_shlibs_GCJ=yes
17975  if test "$with_gnu_ld" = yes; then
17976    # If archive_cmds runs LD, not CC, wlarc should be empty
17977    wlarc='${wl}'
17978
17979    # Set some defaults for GNU ld with shared library support. These
17980    # are reset later if shared libraries are not supported. Putting them
17981    # here allows them to be overridden if necessary.
17982    runpath_var=LD_RUN_PATH
17983    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17984    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17985    # ancient GNU ld didn't support --whole-archive et. al.
17986    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17987	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17988      else
17989  	whole_archive_flag_spec_GCJ=
17990    fi
17991    supports_anon_versioning=no
17992    case `$LD -v 2>/dev/null` in
17993      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17994      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17995      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17996      *\ 2.11.*) ;; # other 2.11 versions
17997      *) supports_anon_versioning=yes ;;
17998    esac
17999
18000    # See if GNU ld supports shared libraries.
18001    case $host_os in
18002    aix3* | aix4* | aix5*)
18003      # On AIX/PPC, the GNU linker is very broken
18004      if test "$host_cpu" != ia64; then
18005	ld_shlibs_GCJ=no
18006	cat <<EOF 1>&2
18007
18008*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18009*** to be unable to reliably create shared libraries on AIX.
18010*** Therefore, libtool is disabling shared libraries support.  If you
18011*** really care for shared libraries, you may want to modify your PATH
18012*** so that a non-GNU linker is found, and then restart.
18013
18014EOF
18015      fi
18016      ;;
18017
18018    amigaos*)
18019      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)'
18020      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18021      hardcode_minus_L_GCJ=yes
18022
18023      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18024      # that the semantics of dynamic libraries on AmigaOS, at least up
18025      # to version 4, is to share data among multiple programs linked
18026      # with the same dynamic library.  Since this doesn't match the
18027      # behavior of shared libraries on other platforms, we can't use
18028      # them.
18029      ld_shlibs_GCJ=no
18030      ;;
18031
18032    beos*)
18033      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18034	allow_undefined_flag_GCJ=unsupported
18035	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18036	# support --undefined.  This deserves some investigation.  FIXME
18037	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18038      else
18039	ld_shlibs_GCJ=no
18040      fi
18041      ;;
18042
18043    cygwin* | mingw* | pw32*)
18044      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18045      # as there is no search path for DLLs.
18046      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18047      allow_undefined_flag_GCJ=unsupported
18048      always_export_symbols_GCJ=no
18049      enable_shared_with_static_runtimes_GCJ=yes
18050      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18051
18052      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18053        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18054	# If the export-symbols file already is a .def file (1st line
18055	# is EXPORTS), use it as is; otherwise, prepend...
18056	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18057	  cp $export_symbols $output_objdir/$soname.def;
18058	else
18059	  echo EXPORTS > $output_objdir/$soname.def;
18060	  cat $export_symbols >> $output_objdir/$soname.def;
18061	fi~
18062	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18063      else
18064	ld_shlibs_GCJ=no
18065      fi
18066      ;;
18067
18068    interix3*)
18069      hardcode_direct_GCJ=no
18070      hardcode_shlibpath_var_GCJ=no
18071      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18072      export_dynamic_flag_spec_GCJ='${wl}-E'
18073      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18074      # Instead, shared libraries are loaded at an image base (0x10000000 by
18075      # default) and relocated if they conflict, which is a slow very memory
18076      # consuming and fragmenting process.  To avoid this, we pick a random,
18077      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18078      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18079      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'
18080      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'
18081      ;;
18082
18083    linux*)
18084      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18085	tmp_addflag=
18086	case $cc_basename,$host_cpu in
18087	pgcc*)				# Portland Group C compiler
18088	  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'
18089	  tmp_addflag=' $pic_flag'
18090	  ;;
18091	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18092	  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'
18093	  tmp_addflag=' $pic_flag -Mnomain' ;;
18094	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18095	  tmp_addflag=' -i_dynamic' ;;
18096	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18097	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18098	ifc* | ifort*)			# Intel Fortran compiler
18099	  tmp_addflag=' -nofor_main' ;;
18100	esac
18101	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18102
18103	if test $supports_anon_versioning = yes; then
18104	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18105  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18106  $echo "local: *; };" >> $output_objdir/$libname.ver~
18107	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18108	fi
18109      else
18110	ld_shlibs_GCJ=no
18111      fi
18112      ;;
18113
18114    netbsd*)
18115      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18116	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18117	wlarc=
18118      else
18119	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18120	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18121      fi
18122      ;;
18123
18124    solaris*)
18125      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18126	ld_shlibs_GCJ=no
18127	cat <<EOF 1>&2
18128
18129*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18130*** create shared libraries on Solaris systems.  Therefore, libtool
18131*** is disabling shared libraries support.  We urge you to upgrade GNU
18132*** binutils to release 2.9.1 or newer.  Another option is to modify
18133*** your PATH or compiler configuration so that the native linker is
18134*** used, and then restart.
18135
18136EOF
18137      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18138	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18139	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18140      else
18141	ld_shlibs_GCJ=no
18142      fi
18143      ;;
18144
18145    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18146      case `$LD -v 2>&1` in
18147        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18148	ld_shlibs_GCJ=no
18149	cat <<_LT_EOF 1>&2
18150
18151*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18152*** reliably create shared libraries on SCO systems.  Therefore, libtool
18153*** is disabling shared libraries support.  We urge you to upgrade GNU
18154*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18155*** your PATH or compiler configuration so that the native linker is
18156*** used, and then restart.
18157
18158_LT_EOF
18159	;;
18160	*)
18161	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18162	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18163	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18164	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18165	  else
18166	    ld_shlibs_GCJ=no
18167	  fi
18168	;;
18169      esac
18170      ;;
18171
18172    sunos4*)
18173      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18174      wlarc=
18175      hardcode_direct_GCJ=yes
18176      hardcode_shlibpath_var_GCJ=no
18177      ;;
18178
18179    *)
18180      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18181	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18182	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18183      else
18184	ld_shlibs_GCJ=no
18185      fi
18186      ;;
18187    esac
18188
18189    if test "$ld_shlibs_GCJ" = no; then
18190      runpath_var=
18191      hardcode_libdir_flag_spec_GCJ=
18192      export_dynamic_flag_spec_GCJ=
18193      whole_archive_flag_spec_GCJ=
18194    fi
18195  else
18196    # PORTME fill in a description of your system's linker (not GNU ld)
18197    case $host_os in
18198    aix3*)
18199      allow_undefined_flag_GCJ=unsupported
18200      always_export_symbols_GCJ=yes
18201      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'
18202      # Note: this linker hardcodes the directories in LIBPATH if there
18203      # are no directories specified by -L.
18204      hardcode_minus_L_GCJ=yes
18205      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18206	# Neither direct hardcoding nor static linking is supported with a
18207	# broken collect2.
18208	hardcode_direct_GCJ=unsupported
18209      fi
18210      ;;
18211
18212    aix4* | aix5*)
18213      if test "$host_cpu" = ia64; then
18214	# On IA64, the linker does run time linking by default, so we don't
18215	# have to do anything special.
18216	aix_use_runtimelinking=no
18217	exp_sym_flag='-Bexport'
18218	no_entry_flag=""
18219      else
18220	# If we're using GNU nm, then we don't want the "-C" option.
18221	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18222	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18223	  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'
18224	else
18225	  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'
18226	fi
18227	aix_use_runtimelinking=no
18228
18229	# Test if we are trying to use run time linking or normal
18230	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18231	# need to do runtime linking.
18232	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18233	  for ld_flag in $LDFLAGS; do
18234  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18235  	    aix_use_runtimelinking=yes
18236  	    break
18237  	  fi
18238	  done
18239	  ;;
18240	esac
18241
18242	exp_sym_flag='-bexport'
18243	no_entry_flag='-bnoentry'
18244      fi
18245
18246      # When large executables or shared objects are built, AIX ld can
18247      # have problems creating the table of contents.  If linking a library
18248      # or program results in "error TOC overflow" add -mminimal-toc to
18249      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18250      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18251
18252      archive_cmds_GCJ=''
18253      hardcode_direct_GCJ=yes
18254      hardcode_libdir_separator_GCJ=':'
18255      link_all_deplibs_GCJ=yes
18256
18257      if test "$GCC" = yes; then
18258	case $host_os in aix4.[012]|aix4.[012].*)
18259	# We only want to do this on AIX 4.2 and lower, the check
18260	# below for broken collect2 doesn't work under 4.3+
18261	  collect2name=`${CC} -print-prog-name=collect2`
18262	  if test -f "$collect2name" && \
18263  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18264	  then
18265  	  # We have reworked collect2
18266  	  hardcode_direct_GCJ=yes
18267	  else
18268  	  # We have old collect2
18269  	  hardcode_direct_GCJ=unsupported
18270  	  # It fails to find uninstalled libraries when the uninstalled
18271  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18272  	  # to unsupported forces relinking
18273  	  hardcode_minus_L_GCJ=yes
18274  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18275  	  hardcode_libdir_separator_GCJ=
18276	  fi
18277	  ;;
18278	esac
18279	shared_flag='-shared'
18280	if test "$aix_use_runtimelinking" = yes; then
18281	  shared_flag="$shared_flag "'${wl}-G'
18282	fi
18283      else
18284	# not using gcc
18285	if test "$host_cpu" = ia64; then
18286  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18287  	# chokes on -Wl,-G. The following line is correct:
18288	  shared_flag='-G'
18289	else
18290	  if test "$aix_use_runtimelinking" = yes; then
18291	    shared_flag='${wl}-G'
18292	  else
18293	    shared_flag='${wl}-bM:SRE'
18294	  fi
18295	fi
18296      fi
18297
18298      # It seems that -bexpall does not export symbols beginning with
18299      # underscore (_), so it is better to generate a list of symbols to export.
18300      always_export_symbols_GCJ=yes
18301      if test "$aix_use_runtimelinking" = yes; then
18302	# Warning - without using the other runtime loading flags (-brtl),
18303	# -berok will link without error, but may produce a broken library.
18304	allow_undefined_flag_GCJ='-berok'
18305       # Determine the default libpath from the value encoded in an empty executable.
18306       cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h.  */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h.  */
18312
18313int
18314main ()
18315{
18316
18317  ;
18318  return 0;
18319}
18320_ACEOF
18321rm -f conftest.$ac_objext conftest$ac_exeext
18322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323  (eval $ac_link) 2>conftest.er1
18324  ac_status=$?
18325  grep -v '^ *+' conftest.er1 >conftest.err
18326  rm -f conftest.er1
18327  cat conftest.err >&5
18328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329  (exit $ac_status); } &&
18330	 { ac_try='test -z "$ac_c_werror_flag"
18331			 || test ! -s conftest.err'
18332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333  (eval $ac_try) 2>&5
18334  ac_status=$?
18335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336  (exit $ac_status); }; } &&
18337	 { ac_try='test -s conftest$ac_exeext'
18338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339  (eval $ac_try) 2>&5
18340  ac_status=$?
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); }; }; then
18343
18344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18345}'`
18346# Check for a 64-bit object if we didn't find anything.
18347if 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; }
18348}'`; fi
18349else
18350  echo "$as_me: failed program was:" >&5
18351sed 's/^/| /' conftest.$ac_ext >&5
18352
18353fi
18354rm -f conftest.err conftest.$ac_objext \
18355      conftest$ac_exeext conftest.$ac_ext
18356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18357
18358       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18359	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"
18360       else
18361	if test "$host_cpu" = ia64; then
18362	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18363	  allow_undefined_flag_GCJ="-z nodefs"
18364	  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"
18365	else
18366	 # Determine the default libpath from the value encoded in an empty executable.
18367	 cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h.  */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h.  */
18373
18374int
18375main ()
18376{
18377
18378  ;
18379  return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext conftest$ac_exeext
18383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384  (eval $ac_link) 2>conftest.er1
18385  ac_status=$?
18386  grep -v '^ *+' conftest.er1 >conftest.err
18387  rm -f conftest.er1
18388  cat conftest.err >&5
18389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390  (exit $ac_status); } &&
18391	 { ac_try='test -z "$ac_c_werror_flag"
18392			 || test ! -s conftest.err'
18393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394  (eval $ac_try) 2>&5
18395  ac_status=$?
18396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397  (exit $ac_status); }; } &&
18398	 { ac_try='test -s conftest$ac_exeext'
18399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400  (eval $ac_try) 2>&5
18401  ac_status=$?
18402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); }; }; then
18404
18405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18406}'`
18407# Check for a 64-bit object if we didn't find anything.
18408if 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; }
18409}'`; fi
18410else
18411  echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414fi
18415rm -f conftest.err conftest.$ac_objext \
18416      conftest$ac_exeext conftest.$ac_ext
18417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18418
18419	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18420	  # Warning - without using the other run time loading flags,
18421	  # -berok will link without error, but may produce a broken library.
18422	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18423	  allow_undefined_flag_GCJ=' ${wl}-berok'
18424	  # Exported symbols can be pulled into shared objects from archives
18425	  whole_archive_flag_spec_GCJ='$convenience'
18426	  archive_cmds_need_lc_GCJ=yes
18427	  # This is similar to how AIX traditionally builds its shared libraries.
18428	  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'
18429	fi
18430      fi
18431      ;;
18432
18433    amigaos*)
18434      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)'
18435      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18436      hardcode_minus_L_GCJ=yes
18437      # see comment about different semantics on the GNU ld section
18438      ld_shlibs_GCJ=no
18439      ;;
18440
18441    bsdi[45]*)
18442      export_dynamic_flag_spec_GCJ=-rdynamic
18443      ;;
18444
18445    cygwin* | mingw* | pw32*)
18446      # When not using gcc, we currently assume that we are using
18447      # Microsoft Visual C++.
18448      # hardcode_libdir_flag_spec is actually meaningless, as there is
18449      # no search path for DLLs.
18450      hardcode_libdir_flag_spec_GCJ=' '
18451      allow_undefined_flag_GCJ=unsupported
18452      # Tell ltmain to make .lib files, not .a files.
18453      libext=lib
18454      # Tell ltmain to make .dll files, not .so files.
18455      shrext_cmds=".dll"
18456      # FIXME: Setting linknames here is a bad hack.
18457      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18458      # The linker will automatically build a .lib file if we build a DLL.
18459      old_archive_From_new_cmds_GCJ='true'
18460      # FIXME: Should let the user specify the lib program.
18461      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18462      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18463      enable_shared_with_static_runtimes_GCJ=yes
18464      ;;
18465
18466    darwin* | rhapsody*)
18467      case $host_os in
18468        rhapsody* | darwin1.[012])
18469         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18470         ;;
18471       *) # Darwin 1.3 on
18472         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18473           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18474         else
18475           case ${MACOSX_DEPLOYMENT_TARGET} in
18476             10.[012])
18477               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18478               ;;
18479             10.*)
18480               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18481               ;;
18482           esac
18483         fi
18484         ;;
18485      esac
18486      archive_cmds_need_lc_GCJ=no
18487      hardcode_direct_GCJ=no
18488      hardcode_automatic_GCJ=yes
18489      hardcode_shlibpath_var_GCJ=unsupported
18490      whole_archive_flag_spec_GCJ=''
18491      link_all_deplibs_GCJ=yes
18492    if test "$GCC" = yes ; then
18493    	output_verbose_link_cmd='echo'
18494        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18495      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18496      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18497      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}'
18498      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}'
18499    else
18500      case $cc_basename in
18501        xlc*)
18502         output_verbose_link_cmd='echo'
18503         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18504         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18505          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18506         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}'
18507          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}'
18508          ;;
18509       *)
18510         ld_shlibs_GCJ=no
18511          ;;
18512      esac
18513    fi
18514      ;;
18515
18516    dgux*)
18517      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18518      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18519      hardcode_shlibpath_var_GCJ=no
18520      ;;
18521
18522    freebsd1*)
18523      ld_shlibs_GCJ=no
18524      ;;
18525
18526    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18527    # support.  Future versions do this automatically, but an explicit c++rt0.o
18528    # does not break anything, and helps significantly (at the cost of a little
18529    # extra space).
18530    freebsd2.2*)
18531      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18532      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18533      hardcode_direct_GCJ=yes
18534      hardcode_shlibpath_var_GCJ=no
18535      ;;
18536
18537    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18538    freebsd2*)
18539      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18540      hardcode_direct_GCJ=yes
18541      hardcode_minus_L_GCJ=yes
18542      hardcode_shlibpath_var_GCJ=no
18543      ;;
18544
18545    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18546    freebsd* | kfreebsd*-gnu | dragonfly*)
18547      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18548      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18549      hardcode_direct_GCJ=yes
18550      hardcode_shlibpath_var_GCJ=no
18551      ;;
18552
18553    hpux9*)
18554      if test "$GCC" = yes; then
18555	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'
18556      else
18557	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'
18558      fi
18559      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18560      hardcode_libdir_separator_GCJ=:
18561      hardcode_direct_GCJ=yes
18562
18563      # hardcode_minus_L: Not really in the search PATH,
18564      # but as the default location of the library.
18565      hardcode_minus_L_GCJ=yes
18566      export_dynamic_flag_spec_GCJ='${wl}-E'
18567      ;;
18568
18569    hpux10*)
18570      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18571	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18572      else
18573	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18574      fi
18575      if test "$with_gnu_ld" = no; then
18576	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18577	hardcode_libdir_separator_GCJ=:
18578
18579	hardcode_direct_GCJ=yes
18580	export_dynamic_flag_spec_GCJ='${wl}-E'
18581
18582	# hardcode_minus_L: Not really in the search PATH,
18583	# but as the default location of the library.
18584	hardcode_minus_L_GCJ=yes
18585      fi
18586      ;;
18587
18588    hpux11*)
18589      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18590	case $host_cpu in
18591	hppa*64*)
18592	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18593	  ;;
18594	ia64*)
18595	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18596	  ;;
18597	*)
18598	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18599	  ;;
18600	esac
18601      else
18602	case $host_cpu in
18603	hppa*64*)
18604	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18605	  ;;
18606	ia64*)
18607	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18608	  ;;
18609	*)
18610	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18611	  ;;
18612	esac
18613      fi
18614      if test "$with_gnu_ld" = no; then
18615	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18616	hardcode_libdir_separator_GCJ=:
18617
18618	case $host_cpu in
18619	hppa*64*|ia64*)
18620	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18621	  hardcode_direct_GCJ=no
18622	  hardcode_shlibpath_var_GCJ=no
18623	  ;;
18624	*)
18625	  hardcode_direct_GCJ=yes
18626	  export_dynamic_flag_spec_GCJ='${wl}-E'
18627
18628	  # hardcode_minus_L: Not really in the search PATH,
18629	  # but as the default location of the library.
18630	  hardcode_minus_L_GCJ=yes
18631	  ;;
18632	esac
18633      fi
18634      ;;
18635
18636    irix5* | irix6* | nonstopux*)
18637      if test "$GCC" = yes; then
18638	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'
18639      else
18640	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'
18641	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18642      fi
18643      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18644      hardcode_libdir_separator_GCJ=:
18645      link_all_deplibs_GCJ=yes
18646      ;;
18647
18648    netbsd*)
18649      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18650	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18651      else
18652	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18653      fi
18654      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18655      hardcode_direct_GCJ=yes
18656      hardcode_shlibpath_var_GCJ=no
18657      ;;
18658
18659    newsos6)
18660      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18661      hardcode_direct_GCJ=yes
18662      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18663      hardcode_libdir_separator_GCJ=:
18664      hardcode_shlibpath_var_GCJ=no
18665      ;;
18666
18667    openbsd*)
18668      hardcode_direct_GCJ=yes
18669      hardcode_shlibpath_var_GCJ=no
18670      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18671	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18673	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18674	export_dynamic_flag_spec_GCJ='${wl}-E'
18675      else
18676       case $host_os in
18677	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18678	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18679	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18680	   ;;
18681	 *)
18682	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18683	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18684	   ;;
18685       esac
18686      fi
18687      ;;
18688
18689    os2*)
18690      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18691      hardcode_minus_L_GCJ=yes
18692      allow_undefined_flag_GCJ=unsupported
18693      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'
18694      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18695      ;;
18696
18697    osf3*)
18698      if test "$GCC" = yes; then
18699	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18700	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'
18701      else
18702	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18703	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'
18704      fi
18705      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18706      hardcode_libdir_separator_GCJ=:
18707      ;;
18708
18709    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18710      if test "$GCC" = yes; then
18711	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18712	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'
18713	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18714      else
18715	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18716	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'
18717	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~
18718	$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'
18719
18720	# Both c and cxx compiler support -rpath directly
18721	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18722      fi
18723      hardcode_libdir_separator_GCJ=:
18724      ;;
18725
18726    solaris*)
18727      no_undefined_flag_GCJ=' -z text'
18728      if test "$GCC" = yes; then
18729	wlarc='${wl}'
18730	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18731	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18732	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18733      else
18734	wlarc=''
18735	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18736	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18737  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18738      fi
18739      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18740      hardcode_shlibpath_var_GCJ=no
18741      case $host_os in
18742      solaris2.[0-5] | solaris2.[0-5].*) ;;
18743      *)
18744 	# The compiler driver will combine linker options so we
18745 	# cannot just pass the convience library names through
18746 	# without $wl, iff we do not link with $LD.
18747 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18748 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18749 	case $wlarc in
18750 	'')
18751 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18752 	*)
18753 	  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' ;;
18754 	esac ;;
18755      esac
18756      link_all_deplibs_GCJ=yes
18757      ;;
18758
18759    sunos4*)
18760      if test "x$host_vendor" = xsequent; then
18761	# Use $CC to link under sequent, because it throws in some extra .o
18762	# files that make .init and .fini sections work.
18763	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18764      else
18765	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18766      fi
18767      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18768      hardcode_direct_GCJ=yes
18769      hardcode_minus_L_GCJ=yes
18770      hardcode_shlibpath_var_GCJ=no
18771      ;;
18772
18773    sysv4)
18774      case $host_vendor in
18775	sni)
18776	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18777	  hardcode_direct_GCJ=yes # is this really true???
18778	;;
18779	siemens)
18780	  ## LD is ld it makes a PLAMLIB
18781	  ## CC just makes a GrossModule.
18782	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18783	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18784	  hardcode_direct_GCJ=no
18785        ;;
18786	motorola)
18787	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18788	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18789	;;
18790      esac
18791      runpath_var='LD_RUN_PATH'
18792      hardcode_shlibpath_var_GCJ=no
18793      ;;
18794
18795    sysv4.3*)
18796      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18797      hardcode_shlibpath_var_GCJ=no
18798      export_dynamic_flag_spec_GCJ='-Bexport'
18799      ;;
18800
18801    sysv4*MP*)
18802      if test -d /usr/nec; then
18803	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18804	hardcode_shlibpath_var_GCJ=no
18805	runpath_var=LD_RUN_PATH
18806	hardcode_runpath_var=yes
18807	ld_shlibs_GCJ=yes
18808      fi
18809      ;;
18810
18811    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18812      no_undefined_flag_GCJ='${wl}-z,text'
18813      archive_cmds_need_lc_GCJ=no
18814      hardcode_shlibpath_var_GCJ=no
18815      runpath_var='LD_RUN_PATH'
18816
18817      if test "$GCC" = yes; then
18818	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18819	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18820      else
18821	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18822	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823      fi
18824      ;;
18825
18826    sysv5* | sco3.2v5* | sco5v6*)
18827      # Note: We can NOT use -z defs as we might desire, because we do not
18828      # link with -lc, and that would cause any symbols used from libc to
18829      # always be unresolved, which means just about no library would
18830      # ever link correctly.  If we're not using GNU ld we use -z text
18831      # though, which does catch some bad symbols but isn't as heavy-handed
18832      # as -z defs.
18833      no_undefined_flag_GCJ='${wl}-z,text'
18834      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18835      archive_cmds_need_lc_GCJ=no
18836      hardcode_shlibpath_var_GCJ=no
18837      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18838      hardcode_libdir_separator_GCJ=':'
18839      link_all_deplibs_GCJ=yes
18840      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18841      runpath_var='LD_RUN_PATH'
18842
18843      if test "$GCC" = yes; then
18844	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18845	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18846      else
18847	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18848	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18849      fi
18850      ;;
18851
18852    uts4*)
18853      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18854      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18855      hardcode_shlibpath_var_GCJ=no
18856      ;;
18857
18858    *)
18859      ld_shlibs_GCJ=no
18860      ;;
18861    esac
18862  fi
18863
18864echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18865echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18866test "$ld_shlibs_GCJ" = no && can_build_shared=no
18867
18868#
18869# Do we need to explicitly link libc?
18870#
18871case "x$archive_cmds_need_lc_GCJ" in
18872x|xyes)
18873  # Assume -lc should be added
18874  archive_cmds_need_lc_GCJ=yes
18875
18876  if test "$enable_shared" = yes && test "$GCC" = yes; then
18877    case $archive_cmds_GCJ in
18878    *'~'*)
18879      # FIXME: we may have to deal with multi-command sequences.
18880      ;;
18881    '$CC '*)
18882      # Test whether the compiler implicitly links with -lc since on some
18883      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18884      # to ld, don't add -lc before -lgcc.
18885      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18886echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18887      $rm conftest*
18888      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18889
18890      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18891  (eval $ac_compile) 2>&5
18892  ac_status=$?
18893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894  (exit $ac_status); } 2>conftest.err; then
18895        soname=conftest
18896        lib=conftest
18897        libobjs=conftest.$ac_objext
18898        deplibs=
18899        wl=$lt_prog_compiler_wl_GCJ
18900	pic_flag=$lt_prog_compiler_pic_GCJ
18901        compiler_flags=-v
18902        linker_flags=-v
18903        verstring=
18904        output_objdir=.
18905        libname=conftest
18906        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18907        allow_undefined_flag_GCJ=
18908        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18909  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18910  ac_status=$?
18911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912  (exit $ac_status); }
18913        then
18914	  archive_cmds_need_lc_GCJ=no
18915        else
18916	  archive_cmds_need_lc_GCJ=yes
18917        fi
18918        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18919      else
18920        cat conftest.err 1>&5
18921      fi
18922      $rm conftest*
18923      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18924echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18925      ;;
18926    esac
18927  fi
18928  ;;
18929esac
18930
18931echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18932echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18933library_names_spec=
18934libname_spec='lib$name'
18935soname_spec=
18936shrext_cmds=".so"
18937postinstall_cmds=
18938postuninstall_cmds=
18939finish_cmds=
18940finish_eval=
18941shlibpath_var=
18942shlibpath_overrides_runpath=unknown
18943version_type=none
18944dynamic_linker="$host_os ld.so"
18945sys_lib_dlsearch_path_spec="/lib /usr/lib"
18946if test "$GCC" = yes; then
18947  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18948  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18949    # if the path contains ";" then we assume it to be the separator
18950    # otherwise default to the standard path separator (i.e. ":") - it is
18951    # assumed that no part of a normal pathname contains ";" but that should
18952    # okay in the real world where ";" in dirpaths is itself problematic.
18953    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18954  else
18955    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18956  fi
18957else
18958  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18959fi
18960need_lib_prefix=unknown
18961hardcode_into_libs=no
18962
18963# when you set need_version to no, make sure it does not cause -set_version
18964# flags to be left without arguments
18965need_version=unknown
18966
18967case $host_os in
18968aix3*)
18969  version_type=linux
18970  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18971  shlibpath_var=LIBPATH
18972
18973  # AIX 3 has no versioning support, so we append a major version to the name.
18974  soname_spec='${libname}${release}${shared_ext}$major'
18975  ;;
18976
18977aix4* | aix5*)
18978  version_type=linux
18979  need_lib_prefix=no
18980  need_version=no
18981  hardcode_into_libs=yes
18982  if test "$host_cpu" = ia64; then
18983    # AIX 5 supports IA64
18984    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18985    shlibpath_var=LD_LIBRARY_PATH
18986  else
18987    # With GCC up to 2.95.x, collect2 would create an import file
18988    # for dependence libraries.  The import file would start with
18989    # the line `#! .'.  This would cause the generated library to
18990    # depend on `.', always an invalid library.  This was fixed in
18991    # development snapshots of GCC prior to 3.0.
18992    case $host_os in
18993      aix4 | aix4.[01] | aix4.[01].*)
18994      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18995	   echo ' yes '
18996	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18997	:
18998      else
18999	can_build_shared=no
19000      fi
19001      ;;
19002    esac
19003    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19004    # soname into executable. Probably we can add versioning support to
19005    # collect2, so additional links can be useful in future.
19006    if test "$aix_use_runtimelinking" = yes; then
19007      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19008      # instead of lib<name>.a to let people know that these are not
19009      # typical AIX shared libraries.
19010      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19011    else
19012      # We preserve .a as extension for shared libraries through AIX4.2
19013      # and later when we are not doing run time linking.
19014      library_names_spec='${libname}${release}.a $libname.a'
19015      soname_spec='${libname}${release}${shared_ext}$major'
19016    fi
19017    shlibpath_var=LIBPATH
19018  fi
19019  ;;
19020
19021amigaos*)
19022  library_names_spec='$libname.ixlibrary $libname.a'
19023  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19024  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'
19025  ;;
19026
19027beos*)
19028  library_names_spec='${libname}${shared_ext}'
19029  dynamic_linker="$host_os ld.so"
19030  shlibpath_var=LIBRARY_PATH
19031  ;;
19032
19033bsdi[45]*)
19034  version_type=linux
19035  need_version=no
19036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19037  soname_spec='${libname}${release}${shared_ext}$major'
19038  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19039  shlibpath_var=LD_LIBRARY_PATH
19040  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19041  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19042  # the default ld.so.conf also contains /usr/contrib/lib and
19043  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19044  # libtool to hard-code these into programs
19045  ;;
19046
19047cygwin* | mingw* | pw32*)
19048  version_type=windows
19049  shrext_cmds=".dll"
19050  need_version=no
19051  need_lib_prefix=no
19052
19053  case $GCC,$host_os in
19054  yes,cygwin* | yes,mingw* | yes,pw32*)
19055    library_names_spec='$libname.dll.a'
19056    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19057    postinstall_cmds='base_file=`basename \${file}`~
19058      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19059      dldir=$destdir/`dirname \$dlpath`~
19060      test -d \$dldir || mkdir -p \$dldir~
19061      $install_prog $dir/$dlname \$dldir/$dlname~
19062      chmod a+x \$dldir/$dlname'
19063    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19064      dlpath=$dir/\$dldll~
19065       $rm \$dlpath'
19066    shlibpath_overrides_runpath=yes
19067
19068    case $host_os in
19069    cygwin*)
19070      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19071      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19072      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19073      ;;
19074    mingw*)
19075      # MinGW DLLs use traditional 'lib' prefix
19076      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19077      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19078      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19079        # It is most probably a Windows format PATH printed by
19080        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19081        # path with ; separators, and with drive letters. We can handle the
19082        # drive letters (cygwin fileutils understands them), so leave them,
19083        # especially as we might pass files found there to a mingw objdump,
19084        # which wouldn't understand a cygwinified path. Ahh.
19085        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19086      else
19087        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19088      fi
19089      ;;
19090    pw32*)
19091      # pw32 DLLs use 'pw' prefix rather than 'lib'
19092      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19093      ;;
19094    esac
19095    ;;
19096
19097  *)
19098    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19099    ;;
19100  esac
19101  dynamic_linker='Win32 ld.exe'
19102  # FIXME: first we should search . and the directory the executable is in
19103  shlibpath_var=PATH
19104  ;;
19105
19106darwin* | rhapsody*)
19107  dynamic_linker="$host_os dyld"
19108  version_type=darwin
19109  need_lib_prefix=no
19110  need_version=no
19111  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19112  soname_spec='${libname}${release}${major}$shared_ext'
19113  shlibpath_overrides_runpath=yes
19114  shlibpath_var=DYLD_LIBRARY_PATH
19115  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19116  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19117  if test "$GCC" = yes; then
19118    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"`
19119  else
19120    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19121  fi
19122  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19123  ;;
19124
19125dgux*)
19126  version_type=linux
19127  need_lib_prefix=no
19128  need_version=no
19129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19130  soname_spec='${libname}${release}${shared_ext}$major'
19131  shlibpath_var=LD_LIBRARY_PATH
19132  ;;
19133
19134freebsd1*)
19135  dynamic_linker=no
19136  ;;
19137
19138kfreebsd*-gnu)
19139  version_type=linux
19140  need_lib_prefix=no
19141  need_version=no
19142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19143  soname_spec='${libname}${release}${shared_ext}$major'
19144  shlibpath_var=LD_LIBRARY_PATH
19145  shlibpath_overrides_runpath=no
19146  hardcode_into_libs=yes
19147  dynamic_linker='GNU ld.so'
19148  ;;
19149
19150freebsd* | dragonfly*)
19151  # DragonFly does not have aout.  When/if they implement a new
19152  # versioning mechanism, adjust this.
19153  if test -x /usr/bin/objformat; then
19154    objformat=`/usr/bin/objformat`
19155  else
19156    case $host_os in
19157    freebsd[123]*) objformat=aout ;;
19158    *) objformat=elf ;;
19159    esac
19160  fi
19161  version_type=freebsd-$objformat
19162  case $version_type in
19163    freebsd-elf*)
19164      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19165      need_version=no
19166      need_lib_prefix=no
19167      ;;
19168    freebsd-*)
19169      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19170      need_version=yes
19171      ;;
19172  esac
19173  shlibpath_var=LD_LIBRARY_PATH
19174  case $host_os in
19175  freebsd2*)
19176    shlibpath_overrides_runpath=yes
19177    ;;
19178  freebsd3.[01]* | freebsdelf3.[01]*)
19179    shlibpath_overrides_runpath=yes
19180    hardcode_into_libs=yes
19181    ;;
19182  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19183  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19184    shlibpath_overrides_runpath=no
19185    hardcode_into_libs=yes
19186    ;;
19187  freebsd*) # from 4.6 on
19188    shlibpath_overrides_runpath=yes
19189    hardcode_into_libs=yes
19190    ;;
19191  esac
19192  ;;
19193
19194gnu*)
19195  version_type=linux
19196  need_lib_prefix=no
19197  need_version=no
19198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19199  soname_spec='${libname}${release}${shared_ext}$major'
19200  shlibpath_var=LD_LIBRARY_PATH
19201  hardcode_into_libs=yes
19202  ;;
19203
19204hpux9* | hpux10* | hpux11*)
19205  # Give a soname corresponding to the major version so that dld.sl refuses to
19206  # link against other versions.
19207  version_type=sunos
19208  need_lib_prefix=no
19209  need_version=no
19210  case $host_cpu in
19211  ia64*)
19212    shrext_cmds='.so'
19213    hardcode_into_libs=yes
19214    dynamic_linker="$host_os dld.so"
19215    shlibpath_var=LD_LIBRARY_PATH
19216    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19217    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218    soname_spec='${libname}${release}${shared_ext}$major'
19219    if test "X$HPUX_IA64_MODE" = X32; then
19220      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19221    else
19222      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19223    fi
19224    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19225    ;;
19226   hppa*64*)
19227     shrext_cmds='.sl'
19228     hardcode_into_libs=yes
19229     dynamic_linker="$host_os dld.sl"
19230     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19233     soname_spec='${libname}${release}${shared_ext}$major'
19234     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19236     ;;
19237   *)
19238    shrext_cmds='.sl'
19239    dynamic_linker="$host_os dld.sl"
19240    shlibpath_var=SHLIB_PATH
19241    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19242    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19243    soname_spec='${libname}${release}${shared_ext}$major'
19244    ;;
19245  esac
19246  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19247  postinstall_cmds='chmod 555 $lib'
19248  ;;
19249
19250interix3*)
19251  version_type=linux
19252  need_lib_prefix=no
19253  need_version=no
19254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255  soname_spec='${libname}${release}${shared_ext}$major'
19256  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19257  shlibpath_var=LD_LIBRARY_PATH
19258  shlibpath_overrides_runpath=no
19259  hardcode_into_libs=yes
19260  ;;
19261
19262irix5* | irix6* | nonstopux*)
19263  case $host_os in
19264    nonstopux*) version_type=nonstopux ;;
19265    *)
19266	if test "$lt_cv_prog_gnu_ld" = yes; then
19267		version_type=linux
19268	else
19269		version_type=irix
19270	fi ;;
19271  esac
19272  need_lib_prefix=no
19273  need_version=no
19274  soname_spec='${libname}${release}${shared_ext}$major'
19275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19276  case $host_os in
19277  irix5* | nonstopux*)
19278    libsuff= shlibsuff=
19279    ;;
19280  *)
19281    case $LD in # libtool.m4 will add one of these switches to LD
19282    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19283      libsuff= shlibsuff= libmagic=32-bit;;
19284    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19285      libsuff=32 shlibsuff=N32 libmagic=N32;;
19286    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19287      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19288    *) libsuff= shlibsuff= libmagic=never-match;;
19289    esac
19290    ;;
19291  esac
19292  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19293  shlibpath_overrides_runpath=no
19294  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19295  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19296  hardcode_into_libs=yes
19297  ;;
19298
19299# No shared lib support for Linux oldld, aout, or coff.
19300linux*oldld* | linux*aout* | linux*coff*)
19301  dynamic_linker=no
19302  ;;
19303
19304# This must be Linux ELF.
19305linux*)
19306  version_type=linux
19307  need_lib_prefix=no
19308  need_version=no
19309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310  soname_spec='${libname}${release}${shared_ext}$major'
19311  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19312  shlibpath_var=LD_LIBRARY_PATH
19313  shlibpath_overrides_runpath=no
19314  # This implies no fast_install, which is unacceptable.
19315  # Some rework will be needed to allow for fast_install
19316  # before this can be enabled.
19317  hardcode_into_libs=yes
19318
19319  # Append ld.so.conf contents to the search path
19320  if test -f /etc/ld.so.conf; then
19321    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' ' '`
19322    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19323  fi
19324
19325  # We used to test for /lib/ld.so.1 and disable shared libraries on
19326  # powerpc, because MkLinux only supported shared libraries with the
19327  # GNU dynamic linker.  Since this was broken with cross compilers,
19328  # most powerpc-linux boxes support dynamic linking these days and
19329  # people can always --disable-shared, the test was removed, and we
19330  # assume the GNU/Linux dynamic linker is in use.
19331  dynamic_linker='GNU/Linux ld.so'
19332  ;;
19333
19334knetbsd*-gnu)
19335  version_type=linux
19336  need_lib_prefix=no
19337  need_version=no
19338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19339  soname_spec='${libname}${release}${shared_ext}$major'
19340  shlibpath_var=LD_LIBRARY_PATH
19341  shlibpath_overrides_runpath=no
19342  hardcode_into_libs=yes
19343  dynamic_linker='GNU ld.so'
19344  ;;
19345
19346netbsd*)
19347  version_type=sunos
19348  need_lib_prefix=no
19349  need_version=no
19350  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19352    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19353    dynamic_linker='NetBSD (a.out) ld.so'
19354  else
19355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19356    soname_spec='${libname}${release}${shared_ext}$major'
19357    dynamic_linker='NetBSD ld.elf_so'
19358  fi
19359  shlibpath_var=LD_LIBRARY_PATH
19360  shlibpath_overrides_runpath=yes
19361  hardcode_into_libs=yes
19362  ;;
19363
19364newsos6)
19365  version_type=linux
19366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367  shlibpath_var=LD_LIBRARY_PATH
19368  shlibpath_overrides_runpath=yes
19369  ;;
19370
19371nto-qnx*)
19372  version_type=linux
19373  need_lib_prefix=no
19374  need_version=no
19375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19376  soname_spec='${libname}${release}${shared_ext}$major'
19377  shlibpath_var=LD_LIBRARY_PATH
19378  shlibpath_overrides_runpath=yes
19379  ;;
19380
19381openbsd*)
19382  version_type=sunos
19383  sys_lib_dlsearch_path_spec="/usr/lib"
19384  need_lib_prefix=no
19385  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19386  case $host_os in
19387    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19388    *)                         need_version=no  ;;
19389  esac
19390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19391  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19392  shlibpath_var=LD_LIBRARY_PATH
19393  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19394    case $host_os in
19395      openbsd2.[89] | openbsd2.[89].*)
19396	shlibpath_overrides_runpath=no
19397	;;
19398      *)
19399	shlibpath_overrides_runpath=yes
19400	;;
19401      esac
19402  else
19403    shlibpath_overrides_runpath=yes
19404  fi
19405  ;;
19406
19407os2*)
19408  libname_spec='$name'
19409  shrext_cmds=".dll"
19410  need_lib_prefix=no
19411  library_names_spec='$libname${shared_ext} $libname.a'
19412  dynamic_linker='OS/2 ld.exe'
19413  shlibpath_var=LIBPATH
19414  ;;
19415
19416osf3* | osf4* | osf5*)
19417  version_type=osf
19418  need_lib_prefix=no
19419  need_version=no
19420  soname_spec='${libname}${release}${shared_ext}$major'
19421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19422  shlibpath_var=LD_LIBRARY_PATH
19423  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19424  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19425  ;;
19426
19427solaris*)
19428  version_type=linux
19429  need_lib_prefix=no
19430  need_version=no
19431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19432  soname_spec='${libname}${release}${shared_ext}$major'
19433  shlibpath_var=LD_LIBRARY_PATH
19434  shlibpath_overrides_runpath=yes
19435  hardcode_into_libs=yes
19436  # ldd complains unless libraries are executable
19437  postinstall_cmds='chmod +x $lib'
19438  ;;
19439
19440sunos4*)
19441  version_type=sunos
19442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19443  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19444  shlibpath_var=LD_LIBRARY_PATH
19445  shlibpath_overrides_runpath=yes
19446  if test "$with_gnu_ld" = yes; then
19447    need_lib_prefix=no
19448  fi
19449  need_version=yes
19450  ;;
19451
19452sysv4 | sysv4.3*)
19453  version_type=linux
19454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19455  soname_spec='${libname}${release}${shared_ext}$major'
19456  shlibpath_var=LD_LIBRARY_PATH
19457  case $host_vendor in
19458    sni)
19459      shlibpath_overrides_runpath=no
19460      need_lib_prefix=no
19461      export_dynamic_flag_spec='${wl}-Blargedynsym'
19462      runpath_var=LD_RUN_PATH
19463      ;;
19464    siemens)
19465      need_lib_prefix=no
19466      ;;
19467    motorola)
19468      need_lib_prefix=no
19469      need_version=no
19470      shlibpath_overrides_runpath=no
19471      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19472      ;;
19473  esac
19474  ;;
19475
19476sysv4*MP*)
19477  if test -d /usr/nec ;then
19478    version_type=linux
19479    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19480    soname_spec='$libname${shared_ext}.$major'
19481    shlibpath_var=LD_LIBRARY_PATH
19482  fi
19483  ;;
19484
19485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19486  version_type=freebsd-elf
19487  need_lib_prefix=no
19488  need_version=no
19489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19490  soname_spec='${libname}${release}${shared_ext}$major'
19491  shlibpath_var=LD_LIBRARY_PATH
19492  hardcode_into_libs=yes
19493  if test "$with_gnu_ld" = yes; then
19494    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19495    shlibpath_overrides_runpath=no
19496  else
19497    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19498    shlibpath_overrides_runpath=yes
19499    case $host_os in
19500      sco3.2v5*)
19501        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19502	;;
19503    esac
19504  fi
19505  sys_lib_dlsearch_path_spec='/usr/lib'
19506  ;;
19507
19508uts4*)
19509  version_type=linux
19510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511  soname_spec='${libname}${release}${shared_ext}$major'
19512  shlibpath_var=LD_LIBRARY_PATH
19513  ;;
19514
19515*)
19516  dynamic_linker=no
19517  ;;
19518esac
19519echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19520echo "${ECHO_T}$dynamic_linker" >&6
19521test "$dynamic_linker" = no && can_build_shared=no
19522
19523variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19524if test "$GCC" = yes; then
19525  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19526fi
19527
19528echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19529echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19530hardcode_action_GCJ=
19531if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19532   test -n "$runpath_var_GCJ" || \
19533   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19534
19535  # We can hardcode non-existant directories.
19536  if test "$hardcode_direct_GCJ" != no &&
19537     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19538     # have to relink, otherwise we might link with an installed library
19539     # when we should be linking with a yet-to-be-installed one
19540     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19541     test "$hardcode_minus_L_GCJ" != no; then
19542    # Linking always hardcodes the temporary library directory.
19543    hardcode_action_GCJ=relink
19544  else
19545    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19546    hardcode_action_GCJ=immediate
19547  fi
19548else
19549  # We cannot hardcode anything, or else we can only hardcode existing
19550  # directories.
19551  hardcode_action_GCJ=unsupported
19552fi
19553echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19554echo "${ECHO_T}$hardcode_action_GCJ" >&6
19555
19556if test "$hardcode_action_GCJ" = relink; then
19557  # Fast installation is not supported
19558  enable_fast_install=no
19559elif test "$shlibpath_overrides_runpath" = yes ||
19560     test "$enable_shared" = no; then
19561  # Fast installation is not necessary
19562  enable_fast_install=needless
19563fi
19564
19565
19566# The else clause should only fire when bootstrapping the
19567# libtool distribution, otherwise you forgot to ship ltmain.sh
19568# with your package, and you will get complaints that there are
19569# no rules to generate ltmain.sh.
19570if test -f "$ltmain"; then
19571  # See if we are running on zsh, and set the options which allow our commands through
19572  # without removal of \ escapes.
19573  if test -n "${ZSH_VERSION+set}" ; then
19574    setopt NO_GLOB_SUBST
19575  fi
19576  # Now quote all the things that may contain metacharacters while being
19577  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19578  # variables and quote the copies for generation of the libtool script.
19579  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19580    SED SHELL STRIP \
19581    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19582    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19583    deplibs_check_method reload_flag reload_cmds need_locks \
19584    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19585    lt_cv_sys_global_symbol_to_c_name_address \
19586    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19587    old_postinstall_cmds old_postuninstall_cmds \
19588    compiler_GCJ \
19589    CC_GCJ \
19590    LD_GCJ \
19591    lt_prog_compiler_wl_GCJ \
19592    lt_prog_compiler_pic_GCJ \
19593    lt_prog_compiler_static_GCJ \
19594    lt_prog_compiler_no_builtin_flag_GCJ \
19595    export_dynamic_flag_spec_GCJ \
19596    thread_safe_flag_spec_GCJ \
19597    whole_archive_flag_spec_GCJ \
19598    enable_shared_with_static_runtimes_GCJ \
19599    old_archive_cmds_GCJ \
19600    old_archive_from_new_cmds_GCJ \
19601    predep_objects_GCJ \
19602    postdep_objects_GCJ \
19603    predeps_GCJ \
19604    postdeps_GCJ \
19605    compiler_lib_search_path_GCJ \
19606    archive_cmds_GCJ \
19607    archive_expsym_cmds_GCJ \
19608    postinstall_cmds_GCJ \
19609    postuninstall_cmds_GCJ \
19610    old_archive_from_expsyms_cmds_GCJ \
19611    allow_undefined_flag_GCJ \
19612    no_undefined_flag_GCJ \
19613    export_symbols_cmds_GCJ \
19614    hardcode_libdir_flag_spec_GCJ \
19615    hardcode_libdir_flag_spec_ld_GCJ \
19616    hardcode_libdir_separator_GCJ \
19617    hardcode_automatic_GCJ \
19618    module_cmds_GCJ \
19619    module_expsym_cmds_GCJ \
19620    lt_cv_prog_compiler_c_o_GCJ \
19621    exclude_expsyms_GCJ \
19622    include_expsyms_GCJ; do
19623
19624    case $var in
19625    old_archive_cmds_GCJ | \
19626    old_archive_from_new_cmds_GCJ | \
19627    archive_cmds_GCJ | \
19628    archive_expsym_cmds_GCJ | \
19629    module_cmds_GCJ | \
19630    module_expsym_cmds_GCJ | \
19631    old_archive_from_expsyms_cmds_GCJ | \
19632    export_symbols_cmds_GCJ | \
19633    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19634    postinstall_cmds | postuninstall_cmds | \
19635    old_postinstall_cmds | old_postuninstall_cmds | \
19636    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19637      # Double-quote double-evaled strings.
19638      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19639      ;;
19640    *)
19641      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19642      ;;
19643    esac
19644  done
19645
19646  case $lt_echo in
19647  *'\$0 --fallback-echo"')
19648    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19649    ;;
19650  esac
19651
19652cfgfile="$ofile"
19653
19654  cat <<__EOF__ >> "$cfgfile"
19655# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19656
19657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19658
19659# Shell to use when invoking shell scripts.
19660SHELL=$lt_SHELL
19661
19662# Whether or not to build shared libraries.
19663build_libtool_libs=$enable_shared
19664
19665# Whether or not to build static libraries.
19666build_old_libs=$enable_static
19667
19668# Whether or not to add -lc for building shared libraries.
19669build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19670
19671# Whether or not to disallow shared libs when runtime libs are static
19672allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19673
19674# Whether or not to optimize for fast installation.
19675fast_install=$enable_fast_install
19676
19677# The host system.
19678host_alias=$host_alias
19679host=$host
19680host_os=$host_os
19681
19682# The build system.
19683build_alias=$build_alias
19684build=$build
19685build_os=$build_os
19686
19687# An echo program that does not interpret backslashes.
19688echo=$lt_echo
19689
19690# The archiver.
19691AR=$lt_AR
19692AR_FLAGS=$lt_AR_FLAGS
19693
19694# A C compiler.
19695LTCC=$lt_LTCC
19696
19697# LTCC compiler flags.
19698LTCFLAGS=$lt_LTCFLAGS
19699
19700# A language-specific compiler.
19701CC=$lt_compiler_GCJ
19702
19703# Is the compiler the GNU C compiler?
19704with_gcc=$GCC_GCJ
19705
19706# An ERE matcher.
19707EGREP=$lt_EGREP
19708
19709# The linker used to build libraries.
19710LD=$lt_LD_GCJ
19711
19712# Whether we need hard or soft links.
19713LN_S=$lt_LN_S
19714
19715# A BSD-compatible nm program.
19716NM=$lt_NM
19717
19718# A symbol stripping program
19719STRIP=$lt_STRIP
19720
19721# Used to examine libraries when file_magic_cmd begins "file"
19722MAGIC_CMD=$MAGIC_CMD
19723
19724# Used on cygwin: DLL creation program.
19725DLLTOOL="$DLLTOOL"
19726
19727# Used on cygwin: object dumper.
19728OBJDUMP="$OBJDUMP"
19729
19730# Used on cygwin: assembler.
19731AS="$AS"
19732
19733# The name of the directory that contains temporary libtool files.
19734objdir=$objdir
19735
19736# How to create reloadable object files.
19737reload_flag=$lt_reload_flag
19738reload_cmds=$lt_reload_cmds
19739
19740# How to pass a linker flag through the compiler.
19741wl=$lt_lt_prog_compiler_wl_GCJ
19742
19743# Object file suffix (normally "o").
19744objext="$ac_objext"
19745
19746# Old archive suffix (normally "a").
19747libext="$libext"
19748
19749# Shared library suffix (normally ".so").
19750shrext_cmds='$shrext_cmds'
19751
19752# Executable file suffix (normally "").
19753exeext="$exeext"
19754
19755# Additional compiler flags for building library objects.
19756pic_flag=$lt_lt_prog_compiler_pic_GCJ
19757pic_mode=$pic_mode
19758
19759# What is the maximum length of a command?
19760max_cmd_len=$lt_cv_sys_max_cmd_len
19761
19762# Does compiler simultaneously support -c and -o options?
19763compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19764
19765# Must we lock files when doing compilation?
19766need_locks=$lt_need_locks
19767
19768# Do we need the lib prefix for modules?
19769need_lib_prefix=$need_lib_prefix
19770
19771# Do we need a version for libraries?
19772need_version=$need_version
19773
19774# Whether dlopen is supported.
19775dlopen_support=$enable_dlopen
19776
19777# Whether dlopen of programs is supported.
19778dlopen_self=$enable_dlopen_self
19779
19780# Whether dlopen of statically linked programs is supported.
19781dlopen_self_static=$enable_dlopen_self_static
19782
19783# Compiler flag to prevent dynamic linking.
19784link_static_flag=$lt_lt_prog_compiler_static_GCJ
19785
19786# Compiler flag to turn off builtin functions.
19787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19788
19789# Compiler flag to allow reflexive dlopens.
19790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19791
19792# Compiler flag to generate shared objects directly from archives.
19793whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19794
19795# Compiler flag to generate thread-safe objects.
19796thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19797
19798# Library versioning type.
19799version_type=$version_type
19800
19801# Format of library name prefix.
19802libname_spec=$lt_libname_spec
19803
19804# List of archive names.  First name is the real one, the rest are links.
19805# The last name is the one that the linker finds with -lNAME.
19806library_names_spec=$lt_library_names_spec
19807
19808# The coded name of the library, if different from the real name.
19809soname_spec=$lt_soname_spec
19810
19811# Commands used to build and install an old-style archive.
19812RANLIB=$lt_RANLIB
19813old_archive_cmds=$lt_old_archive_cmds_GCJ
19814old_postinstall_cmds=$lt_old_postinstall_cmds
19815old_postuninstall_cmds=$lt_old_postuninstall_cmds
19816
19817# Create an old-style archive from a shared archive.
19818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19819
19820# Create a temporary old-style archive to link instead of a shared archive.
19821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19822
19823# Commands used to build and install a shared archive.
19824archive_cmds=$lt_archive_cmds_GCJ
19825archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19826postinstall_cmds=$lt_postinstall_cmds
19827postuninstall_cmds=$lt_postuninstall_cmds
19828
19829# Commands used to build a loadable module (assumed same as above if empty)
19830module_cmds=$lt_module_cmds_GCJ
19831module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19832
19833# Commands to strip libraries.
19834old_striplib=$lt_old_striplib
19835striplib=$lt_striplib
19836
19837# Dependencies to place before the objects being linked to create a
19838# shared library.
19839predep_objects=$lt_predep_objects_GCJ
19840
19841# Dependencies to place after the objects being linked to create a
19842# shared library.
19843postdep_objects=$lt_postdep_objects_GCJ
19844
19845# Dependencies to place before the objects being linked to create a
19846# shared library.
19847predeps=$lt_predeps_GCJ
19848
19849# Dependencies to place after the objects being linked to create a
19850# shared library.
19851postdeps=$lt_postdeps_GCJ
19852
19853# The library search path used internally by the compiler when linking
19854# a shared library.
19855compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19856
19857# Method to check whether dependent libraries are shared objects.
19858deplibs_check_method=$lt_deplibs_check_method
19859
19860# Command to use when deplibs_check_method == file_magic.
19861file_magic_cmd=$lt_file_magic_cmd
19862
19863# Flag that allows shared libraries with undefined symbols to be built.
19864allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19865
19866# Flag that forces no undefined symbols.
19867no_undefined_flag=$lt_no_undefined_flag_GCJ
19868
19869# Commands used to finish a libtool library installation in a directory.
19870finish_cmds=$lt_finish_cmds
19871
19872# Same as above, but a single script fragment to be evaled but not shown.
19873finish_eval=$lt_finish_eval
19874
19875# Take the output of nm and produce a listing of raw symbols and C names.
19876global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19877
19878# Transform the output of nm in a proper C declaration
19879global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19880
19881# Transform the output of nm in a C name address pair
19882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19883
19884# This is the shared library runtime path variable.
19885runpath_var=$runpath_var
19886
19887# This is the shared library path variable.
19888shlibpath_var=$shlibpath_var
19889
19890# Is shlibpath searched before the hard-coded library search path?
19891shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19892
19893# How to hardcode a shared library path into an executable.
19894hardcode_action=$hardcode_action_GCJ
19895
19896# Whether we should hardcode library paths into libraries.
19897hardcode_into_libs=$hardcode_into_libs
19898
19899# Flag to hardcode \$libdir into a binary during linking.
19900# This must work even if \$libdir does not exist.
19901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19902
19903# If ld is used when linking, flag to hardcode \$libdir into
19904# a binary during linking. This must work even if \$libdir does
19905# not exist.
19906hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19907
19908# Whether we need a single -rpath flag with a separated argument.
19909hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19910
19911# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19912# resulting binary.
19913hardcode_direct=$hardcode_direct_GCJ
19914
19915# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19916# resulting binary.
19917hardcode_minus_L=$hardcode_minus_L_GCJ
19918
19919# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19920# the resulting binary.
19921hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19922
19923# Set to yes if building a shared library automatically hardcodes DIR into the library
19924# and all subsequent libraries and executables linked against it.
19925hardcode_automatic=$hardcode_automatic_GCJ
19926
19927# Variables whose values should be saved in libtool wrapper scripts and
19928# restored at relink time.
19929variables_saved_for_relink="$variables_saved_for_relink"
19930
19931# Whether libtool must link a program against all its dependency libraries.
19932link_all_deplibs=$link_all_deplibs_GCJ
19933
19934# Compile-time system search path for libraries
19935sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19936
19937# Run-time system search path for libraries
19938sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19939
19940# Fix the shell variable \$srcfile for the compiler.
19941fix_srcfile_path="$fix_srcfile_path_GCJ"
19942
19943# Set to yes if exported symbols are required.
19944always_export_symbols=$always_export_symbols_GCJ
19945
19946# The commands to list exported symbols.
19947export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19948
19949# The commands to extract the exported symbol list from a shared archive.
19950extract_expsyms_cmds=$lt_extract_expsyms_cmds
19951
19952# Symbols that should not be listed in the preloaded symbols.
19953exclude_expsyms=$lt_exclude_expsyms_GCJ
19954
19955# Symbols that must always be exported.
19956include_expsyms=$lt_include_expsyms_GCJ
19957
19958# ### END LIBTOOL TAG CONFIG: $tagname
19959
19960__EOF__
19961
19962
19963else
19964  # If there is no Makefile yet, we rely on a make rule to execute
19965  # `config.status --recheck' to rerun these tests and create the
19966  # libtool script then.
19967  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19968  if test -f "$ltmain_in"; then
19969    test -f Makefile && make "$ltmain"
19970  fi
19971fi
19972
19973
19974ac_ext=c
19975ac_cpp='$CPP $CPPFLAGS'
19976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978ac_compiler_gnu=$ac_cv_c_compiler_gnu
19979
19980CC="$lt_save_CC"
19981
19982	else
19983	  tagname=""
19984	fi
19985	;;
19986
19987      RC)
19988
19989
19990
19991# Source file extension for RC test sources.
19992ac_ext=rc
19993
19994# Object file extension for compiled RC test sources.
19995objext=o
19996objext_RC=$objext
19997
19998# Code to be used in simple compile tests
19999lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20000
20001# Code to be used in simple link tests
20002lt_simple_link_test_code="$lt_simple_compile_test_code"
20003
20004# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20005
20006# If no C compiler was specified, use CC.
20007LTCC=${LTCC-"$CC"}
20008
20009# If no C compiler flags were specified, use CFLAGS.
20010LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20011
20012# Allow CC to be a program name with arguments.
20013compiler=$CC
20014
20015
20016# save warnings/boilerplate of simple test code
20017ac_outfile=conftest.$ac_objext
20018printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20019eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20020_lt_compiler_boilerplate=`cat conftest.err`
20021$rm conftest*
20022
20023ac_outfile=conftest.$ac_objext
20024printf "$lt_simple_link_test_code" >conftest.$ac_ext
20025eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20026_lt_linker_boilerplate=`cat conftest.err`
20027$rm conftest*
20028
20029
20030# Allow CC to be a program name with arguments.
20031lt_save_CC="$CC"
20032CC=${RC-"windres"}
20033compiler=$CC
20034compiler_RC=$CC
20035for cc_temp in $compiler""; do
20036  case $cc_temp in
20037    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20038    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20039    \-*) ;;
20040    *) break;;
20041  esac
20042done
20043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20044
20045lt_cv_prog_compiler_c_o_RC=yes
20046
20047# The else clause should only fire when bootstrapping the
20048# libtool distribution, otherwise you forgot to ship ltmain.sh
20049# with your package, and you will get complaints that there are
20050# no rules to generate ltmain.sh.
20051if test -f "$ltmain"; then
20052  # See if we are running on zsh, and set the options which allow our commands through
20053  # without removal of \ escapes.
20054  if test -n "${ZSH_VERSION+set}" ; then
20055    setopt NO_GLOB_SUBST
20056  fi
20057  # Now quote all the things that may contain metacharacters while being
20058  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20059  # variables and quote the copies for generation of the libtool script.
20060  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20061    SED SHELL STRIP \
20062    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20063    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20064    deplibs_check_method reload_flag reload_cmds need_locks \
20065    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20066    lt_cv_sys_global_symbol_to_c_name_address \
20067    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20068    old_postinstall_cmds old_postuninstall_cmds \
20069    compiler_RC \
20070    CC_RC \
20071    LD_RC \
20072    lt_prog_compiler_wl_RC \
20073    lt_prog_compiler_pic_RC \
20074    lt_prog_compiler_static_RC \
20075    lt_prog_compiler_no_builtin_flag_RC \
20076    export_dynamic_flag_spec_RC \
20077    thread_safe_flag_spec_RC \
20078    whole_archive_flag_spec_RC \
20079    enable_shared_with_static_runtimes_RC \
20080    old_archive_cmds_RC \
20081    old_archive_from_new_cmds_RC \
20082    predep_objects_RC \
20083    postdep_objects_RC \
20084    predeps_RC \
20085    postdeps_RC \
20086    compiler_lib_search_path_RC \
20087    archive_cmds_RC \
20088    archive_expsym_cmds_RC \
20089    postinstall_cmds_RC \
20090    postuninstall_cmds_RC \
20091    old_archive_from_expsyms_cmds_RC \
20092    allow_undefined_flag_RC \
20093    no_undefined_flag_RC \
20094    export_symbols_cmds_RC \
20095    hardcode_libdir_flag_spec_RC \
20096    hardcode_libdir_flag_spec_ld_RC \
20097    hardcode_libdir_separator_RC \
20098    hardcode_automatic_RC \
20099    module_cmds_RC \
20100    module_expsym_cmds_RC \
20101    lt_cv_prog_compiler_c_o_RC \
20102    exclude_expsyms_RC \
20103    include_expsyms_RC; do
20104
20105    case $var in
20106    old_archive_cmds_RC | \
20107    old_archive_from_new_cmds_RC | \
20108    archive_cmds_RC | \
20109    archive_expsym_cmds_RC | \
20110    module_cmds_RC | \
20111    module_expsym_cmds_RC | \
20112    old_archive_from_expsyms_cmds_RC | \
20113    export_symbols_cmds_RC | \
20114    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20115    postinstall_cmds | postuninstall_cmds | \
20116    old_postinstall_cmds | old_postuninstall_cmds | \
20117    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20118      # Double-quote double-evaled strings.
20119      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20120      ;;
20121    *)
20122      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20123      ;;
20124    esac
20125  done
20126
20127  case $lt_echo in
20128  *'\$0 --fallback-echo"')
20129    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20130    ;;
20131  esac
20132
20133cfgfile="$ofile"
20134
20135  cat <<__EOF__ >> "$cfgfile"
20136# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20137
20138# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20139
20140# Shell to use when invoking shell scripts.
20141SHELL=$lt_SHELL
20142
20143# Whether or not to build shared libraries.
20144build_libtool_libs=$enable_shared
20145
20146# Whether or not to build static libraries.
20147build_old_libs=$enable_static
20148
20149# Whether or not to add -lc for building shared libraries.
20150build_libtool_need_lc=$archive_cmds_need_lc_RC
20151
20152# Whether or not to disallow shared libs when runtime libs are static
20153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20154
20155# Whether or not to optimize for fast installation.
20156fast_install=$enable_fast_install
20157
20158# The host system.
20159host_alias=$host_alias
20160host=$host
20161host_os=$host_os
20162
20163# The build system.
20164build_alias=$build_alias
20165build=$build
20166build_os=$build_os
20167
20168# An echo program that does not interpret backslashes.
20169echo=$lt_echo
20170
20171# The archiver.
20172AR=$lt_AR
20173AR_FLAGS=$lt_AR_FLAGS
20174
20175# A C compiler.
20176LTCC=$lt_LTCC
20177
20178# LTCC compiler flags.
20179LTCFLAGS=$lt_LTCFLAGS
20180
20181# A language-specific compiler.
20182CC=$lt_compiler_RC
20183
20184# Is the compiler the GNU C compiler?
20185with_gcc=$GCC_RC
20186
20187# An ERE matcher.
20188EGREP=$lt_EGREP
20189
20190# The linker used to build libraries.
20191LD=$lt_LD_RC
20192
20193# Whether we need hard or soft links.
20194LN_S=$lt_LN_S
20195
20196# A BSD-compatible nm program.
20197NM=$lt_NM
20198
20199# A symbol stripping program
20200STRIP=$lt_STRIP
20201
20202# Used to examine libraries when file_magic_cmd begins "file"
20203MAGIC_CMD=$MAGIC_CMD
20204
20205# Used on cygwin: DLL creation program.
20206DLLTOOL="$DLLTOOL"
20207
20208# Used on cygwin: object dumper.
20209OBJDUMP="$OBJDUMP"
20210
20211# Used on cygwin: assembler.
20212AS="$AS"
20213
20214# The name of the directory that contains temporary libtool files.
20215objdir=$objdir
20216
20217# How to create reloadable object files.
20218reload_flag=$lt_reload_flag
20219reload_cmds=$lt_reload_cmds
20220
20221# How to pass a linker flag through the compiler.
20222wl=$lt_lt_prog_compiler_wl_RC
20223
20224# Object file suffix (normally "o").
20225objext="$ac_objext"
20226
20227# Old archive suffix (normally "a").
20228libext="$libext"
20229
20230# Shared library suffix (normally ".so").
20231shrext_cmds='$shrext_cmds'
20232
20233# Executable file suffix (normally "").
20234exeext="$exeext"
20235
20236# Additional compiler flags for building library objects.
20237pic_flag=$lt_lt_prog_compiler_pic_RC
20238pic_mode=$pic_mode
20239
20240# What is the maximum length of a command?
20241max_cmd_len=$lt_cv_sys_max_cmd_len
20242
20243# Does compiler simultaneously support -c and -o options?
20244compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20245
20246# Must we lock files when doing compilation?
20247need_locks=$lt_need_locks
20248
20249# Do we need the lib prefix for modules?
20250need_lib_prefix=$need_lib_prefix
20251
20252# Do we need a version for libraries?
20253need_version=$need_version
20254
20255# Whether dlopen is supported.
20256dlopen_support=$enable_dlopen
20257
20258# Whether dlopen of programs is supported.
20259dlopen_self=$enable_dlopen_self
20260
20261# Whether dlopen of statically linked programs is supported.
20262dlopen_self_static=$enable_dlopen_self_static
20263
20264# Compiler flag to prevent dynamic linking.
20265link_static_flag=$lt_lt_prog_compiler_static_RC
20266
20267# Compiler flag to turn off builtin functions.
20268no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20269
20270# Compiler flag to allow reflexive dlopens.
20271export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20272
20273# Compiler flag to generate shared objects directly from archives.
20274whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20275
20276# Compiler flag to generate thread-safe objects.
20277thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20278
20279# Library versioning type.
20280version_type=$version_type
20281
20282# Format of library name prefix.
20283libname_spec=$lt_libname_spec
20284
20285# List of archive names.  First name is the real one, the rest are links.
20286# The last name is the one that the linker finds with -lNAME.
20287library_names_spec=$lt_library_names_spec
20288
20289# The coded name of the library, if different from the real name.
20290soname_spec=$lt_soname_spec
20291
20292# Commands used to build and install an old-style archive.
20293RANLIB=$lt_RANLIB
20294old_archive_cmds=$lt_old_archive_cmds_RC
20295old_postinstall_cmds=$lt_old_postinstall_cmds
20296old_postuninstall_cmds=$lt_old_postuninstall_cmds
20297
20298# Create an old-style archive from a shared archive.
20299old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20300
20301# Create a temporary old-style archive to link instead of a shared archive.
20302old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20303
20304# Commands used to build and install a shared archive.
20305archive_cmds=$lt_archive_cmds_RC
20306archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20307postinstall_cmds=$lt_postinstall_cmds
20308postuninstall_cmds=$lt_postuninstall_cmds
20309
20310# Commands used to build a loadable module (assumed same as above if empty)
20311module_cmds=$lt_module_cmds_RC
20312module_expsym_cmds=$lt_module_expsym_cmds_RC
20313
20314# Commands to strip libraries.
20315old_striplib=$lt_old_striplib
20316striplib=$lt_striplib
20317
20318# Dependencies to place before the objects being linked to create a
20319# shared library.
20320predep_objects=$lt_predep_objects_RC
20321
20322# Dependencies to place after the objects being linked to create a
20323# shared library.
20324postdep_objects=$lt_postdep_objects_RC
20325
20326# Dependencies to place before the objects being linked to create a
20327# shared library.
20328predeps=$lt_predeps_RC
20329
20330# Dependencies to place after the objects being linked to create a
20331# shared library.
20332postdeps=$lt_postdeps_RC
20333
20334# The library search path used internally by the compiler when linking
20335# a shared library.
20336compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20337
20338# Method to check whether dependent libraries are shared objects.
20339deplibs_check_method=$lt_deplibs_check_method
20340
20341# Command to use when deplibs_check_method == file_magic.
20342file_magic_cmd=$lt_file_magic_cmd
20343
20344# Flag that allows shared libraries with undefined symbols to be built.
20345allow_undefined_flag=$lt_allow_undefined_flag_RC
20346
20347# Flag that forces no undefined symbols.
20348no_undefined_flag=$lt_no_undefined_flag_RC
20349
20350# Commands used to finish a libtool library installation in a directory.
20351finish_cmds=$lt_finish_cmds
20352
20353# Same as above, but a single script fragment to be evaled but not shown.
20354finish_eval=$lt_finish_eval
20355
20356# Take the output of nm and produce a listing of raw symbols and C names.
20357global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20358
20359# Transform the output of nm in a proper C declaration
20360global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20361
20362# Transform the output of nm in a C name address pair
20363global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20364
20365# This is the shared library runtime path variable.
20366runpath_var=$runpath_var
20367
20368# This is the shared library path variable.
20369shlibpath_var=$shlibpath_var
20370
20371# Is shlibpath searched before the hard-coded library search path?
20372shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20373
20374# How to hardcode a shared library path into an executable.
20375hardcode_action=$hardcode_action_RC
20376
20377# Whether we should hardcode library paths into libraries.
20378hardcode_into_libs=$hardcode_into_libs
20379
20380# Flag to hardcode \$libdir into a binary during linking.
20381# This must work even if \$libdir does not exist.
20382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20383
20384# If ld is used when linking, flag to hardcode \$libdir into
20385# a binary during linking. This must work even if \$libdir does
20386# not exist.
20387hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20388
20389# Whether we need a single -rpath flag with a separated argument.
20390hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20391
20392# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20393# resulting binary.
20394hardcode_direct=$hardcode_direct_RC
20395
20396# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20397# resulting binary.
20398hardcode_minus_L=$hardcode_minus_L_RC
20399
20400# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20401# the resulting binary.
20402hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20403
20404# Set to yes if building a shared library automatically hardcodes DIR into the library
20405# and all subsequent libraries and executables linked against it.
20406hardcode_automatic=$hardcode_automatic_RC
20407
20408# Variables whose values should be saved in libtool wrapper scripts and
20409# restored at relink time.
20410variables_saved_for_relink="$variables_saved_for_relink"
20411
20412# Whether libtool must link a program against all its dependency libraries.
20413link_all_deplibs=$link_all_deplibs_RC
20414
20415# Compile-time system search path for libraries
20416sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20417
20418# Run-time system search path for libraries
20419sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20420
20421# Fix the shell variable \$srcfile for the compiler.
20422fix_srcfile_path="$fix_srcfile_path_RC"
20423
20424# Set to yes if exported symbols are required.
20425always_export_symbols=$always_export_symbols_RC
20426
20427# The commands to list exported symbols.
20428export_symbols_cmds=$lt_export_symbols_cmds_RC
20429
20430# The commands to extract the exported symbol list from a shared archive.
20431extract_expsyms_cmds=$lt_extract_expsyms_cmds
20432
20433# Symbols that should not be listed in the preloaded symbols.
20434exclude_expsyms=$lt_exclude_expsyms_RC
20435
20436# Symbols that must always be exported.
20437include_expsyms=$lt_include_expsyms_RC
20438
20439# ### END LIBTOOL TAG CONFIG: $tagname
20440
20441__EOF__
20442
20443
20444else
20445  # If there is no Makefile yet, we rely on a make rule to execute
20446  # `config.status --recheck' to rerun these tests and create the
20447  # libtool script then.
20448  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20449  if test -f "$ltmain_in"; then
20450    test -f Makefile && make "$ltmain"
20451  fi
20452fi
20453
20454
20455ac_ext=c
20456ac_cpp='$CPP $CPPFLAGS'
20457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460
20461CC="$lt_save_CC"
20462
20463	;;
20464
20465      *)
20466	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20467echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20468   { (exit 1); exit 1; }; }
20469	;;
20470      esac
20471
20472      # Append the new tag name to the list of available tags.
20473      if test -n "$tagname" ; then
20474      available_tags="$available_tags $tagname"
20475    fi
20476    fi
20477  done
20478  IFS="$lt_save_ifs"
20479
20480  # Now substitute the updated list of available tags.
20481  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20482    mv "${ofile}T" "$ofile"
20483    chmod +x "$ofile"
20484  else
20485    rm -f "${ofile}T"
20486    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20487echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20488   { (exit 1); exit 1; }; }
20489  fi
20490fi
20491
20492
20493
20494# This can be used to rebuild libtool when needed
20495LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20496
20497# Always use our own libtool.
20498LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20499
20500# Prevent multiple expansion
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20513 # AC_REQUIRE([AC_COIN_DLFCN_H])
20514
20515# NEW: If libtool exists in the directory higher up, we use that one
20516#      instead of creating a new one
20517
20518# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20519# out in front of this macro body. You'll notice that LIBTOOL is already
20520# defined here.  We'll have to count on this macro not being called if libtool
20521# already exists, or at least move the libtool fixes outside the conditional.
20522# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20523# This test is therefore removed.  -- lh, 061214 --
20524# if test "x$LIBTOOL" = x; then
20525
20526# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20537
20538
20539
20540  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20541echo "$as_me: Build is \"$build\"." >&6;}
20542  # Extract the first word of "dos2unix", so it can be a program name with args.
20543set dummy dos2unix; ac_word=$2
20544echo "$as_me:$LINENO: checking for $ac_word" >&5
20545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20546if test "${ac_cv_prog_dos2unix+set}" = set; then
20547  echo $ECHO_N "(cached) $ECHO_C" >&6
20548else
20549  if test -n "$dos2unix"; then
20550  ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
20551else
20552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20553for as_dir in $PATH
20554do
20555  IFS=$as_save_IFS
20556  test -z "$as_dir" && as_dir=.
20557  for ac_exec_ext in '' $ac_executable_extensions; do
20558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20559    ac_cv_prog_dos2unix="dos2unix"
20560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20561    break 2
20562  fi
20563done
20564done
20565
20566fi
20567fi
20568dos2unix=$ac_cv_prog_dos2unix
20569if test -n "$dos2unix"; then
20570  echo "$as_me:$LINENO: result: $dos2unix" >&5
20571echo "${ECHO_T}$dos2unix" >&6
20572else
20573  echo "$as_me:$LINENO: result: no" >&5
20574echo "${ECHO_T}no" >&6
20575fi
20576
20577  if test "$dos2unix" = dos2unix ; then
20578    mydos2unix="| dos2unix"
20579  fi
20580  case $build in
20581    *-mingw*)
20582      CYGPATH_W=echo
20583      ;;
20584  esac
20585
20586  case $build in
20587    # Here we need to check if -m32 is specified.  If so, we need to correct
20588    # sys_lib_search_path_spec
20589    *-cygwin* | *-mingw*)
20590       case "$CXX" in
20591    clang* )
20592      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20593      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20594echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20595      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20596	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20597	  -e 's|libext="lib"|libext="a"|' \
20598      libtool > conftest.bla
20599      ;;
20600    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20601      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20602echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20603      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20604	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20605	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20606	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20607	  -e 's%lib /OUT:%lib -OUT:%' \
20608	  -e "s%cygpath -w%$CYGPATH_W%" \
20609	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
20610	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20611	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20612	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20613	  -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"%' \
20614      libtool > conftest.bla
20615      ;;
20616    *)
20617      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20618echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20619      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20620	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20621	  -e 's|libext="lib"|libext="a"|' \
20622      libtool > conftest.bla
20623      ;;
20624  esac
20625  mv conftest.bla libtool
20626  chmod 755 libtool
20627
20628      ;;
20629    *x86_64-*)
20630      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20631        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20632echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20633        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20634        mv conftest.bla libtool
20635        chmod 755 libtool
20636      fi
20637      ;;
20638
20639    *-solaris*)
20640       if test "$GCC" = yes && \
20641     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20642    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20643    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20644      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20645echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20646      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20647      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20648      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20649	# AC_MSG_NOTICE(Compensating for broken gcc)
20650	for lib in $fixlibtmp ; do
20651	  if test -d "${lib}${hdwisa}" ; then
20652	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20653	  fi
20654	done
20655	syslibpath64="${syslibpath64} ${fixlibtmp}"
20656      else
20657	syslibpath64="$fixlibtmp"
20658      fi
20659      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20660      mv conftest.bla libtool
20661      chmod 755 libtool
20662    fi
20663    # AC_MSG_NOTICE(Result is )
20664    # $EGREP 'sys_lib_search_path_spec=' libtool
20665  fi
20666      ;;
20667    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20668    *-darwin*)
20669      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20670echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20671      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"/' \
20672        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20673      libtool > conftest.bla
20674
20675      mv conftest.bla libtool
20676      chmod 755 libtool
20677      ;;
20678  esac
20679# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20680# the macro. -- lh, 061214 --
20681# fi
20682
20683# AC_MSG_NOTICE([End libtool initialisation.])
20684
20685# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20686  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20687  # of the shared objects
20688  RPATH_FLAGS=
20689
20690if test $enable_shared = yes; then
20691  case $build in
20692    *-linux-*)
20693      if test "$GXX" = "yes"; then
20694        RPATH_FLAGS=
20695        for dir in $abs_lib_dir; do
20696          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20697        done
20698      fi ;;
20699    *-darwin*)
20700        RPATH_FLAGS=nothing ;;
20701    *-ibm-*)
20702      case "$CXX" in
20703      xlC* | */xlC* | mpxlC* | */mpxlC*)
20704        RPATH_FLAGS=nothing ;;
20705      esac ;;
20706    *-hp-*)
20707        RPATH_FLAGS=nothing ;;
20708    *-mingw32)
20709        RPATH_FLAGS=nothing ;;
20710    *-*-solaris*)
20711        RPATH_FLAGS=
20712        for dir in $abs_lib_dir; do
20713          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20714        done
20715  esac
20716
20717  if test "$RPATH_FLAGS" = ""; then
20718    { 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
20719echo "$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;}
20720  fi
20721  if test "$RPATH_FLAGS" = "nothing"; then
20722    RPATH_FLAGS=
20723  fi
20724fi
20725
20726
20727
20728
20729else
20730
20731  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20732echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20733  # get all missing information from the config.log file
20734
20735  # output variables and defines
20736  as_save_IFS=$IFS
20737  IFS='
20738'
20739  for oneline in `cat $coin_config_dir/config.status`; do
20740    case "$oneline" in
20741         # First some automake conditionals
20742      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20743      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20744      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20745      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20746        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20747#        echo "$command"
20748        eval "$command"
20749        ;;
20750      s,@DEFS@* )
20751        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20752#        echo "$command"
20753        eval "$command"
20754        ;;
20755    esac
20756  done
20757  IFS=$as_save_IFS
20758
20759  # And some defines (assuming here that the packages base dir
20760  # doesn't have a config.h file
20761  for word in $defsline; do
20762#    echo word $word
20763    case $word in
20764      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20765        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20766#        echo dd $i
20767        echo $i >>confdefs.h
20768        ;;
20769    esac
20770  done
20771fi
20772
20773# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20774
20775# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20776if test "${enable_dependency_linking+set}" = set; then
20777  enableval="$enable_dependency_linking"
20778  dependency_linking="$enableval"
20779else
20780  dependency_linking=auto
20781fi;
20782
20783if test "$dependency_linking" = auto; then
20784  # On Cygwin and AIX, building DLLs doesn't work
20785  dependency_linking=no
20786  if test x"$coin_disable_shared" = xno; then
20787    case $build in
20788      *-cygwin* | *-mingw*)
20789        case "$CC" in
20790          clang* )
20791            dependency_linking=yes
20792            ;;
20793          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20794            dependency_linking=no
20795            ;;
20796          *gcc*)
20797            dependency_linking=yes
20798            ;;
20799          *)
20800            dependency_linking=yes
20801            ;;
20802        esac
20803        ;;
20804      *)
20805        dependency_linking=yes
20806        ;;
20807    esac
20808  fi
20809fi
20810
20811if test "$dependency_linking" = yes ;
20812then
20813  LT_LDFLAGS="-no-undefined"
20814else
20815  LT_LDFLAGS=
20816fi
20817
20818
20819
20820if test "$dependency_linking" = yes; then
20821  DEPENDENCY_LINKING_TRUE=
20822  DEPENDENCY_LINKING_FALSE='#'
20823else
20824  DEPENDENCY_LINKING_TRUE='#'
20825  DEPENDENCY_LINKING_FALSE=
20826fi
20827
20828
20829# Check if we want to set the library version
20830echo "$as_me:$LINENO: checking if library version is set" >&5
20831echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20832if test x"$coin_libversion" != x; then
20833  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20834  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20835echo "${ECHO_T}$coin_libversion" >&6
20836else
20837  echo "$as_me:$LINENO: result: no" >&5
20838echo "${ECHO_T}no" >&6
20839fi
20840
20841
20842
20843#END
20844}
20845# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20846
20847
20848#############################################################################
20849#                  Check which subprojects are there                        #
20850#############################################################################
20851
20852
20853echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
20854echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
20855
20856coin_has_glpk=notGiven
20857coin_reason=
20858
20859# check if user wants to skip project in any case
20860
20861if test x"$COIN_SKIP_PROJECTS" != x; then
20862  for dir in $COIN_SKIP_PROJECTS; do
20863    if test $dir = "Glpk"; then
20864      coin_has_glpk="no"
20865      coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
20866    fi
20867
20868    if test $dir = "ThirdParty/Glpk"; then
20869      coin_has_glpk="no"
20870      coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
20871    fi
20872  done
20873fi
20874
20875if test "$coin_has_glpk" != no; then
20876
20877# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
20878if test "${with_glpk+set}" = set; then
20879  withval="$with_glpk"
20880  if test "$withval" = no ; then
20881       coin_has_glpk="no"
20882       coin_reason="--without-glpk has been specified"
20883     fi
20884
20885fi;
20886fi
20887
20888if test "$coin_has_glpk" != no; then
20889
20890# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
20891if test "${with_glpk_lib+set}" = set; then
20892  withval="$with_glpk_lib"
20893  if test "$withval" = no ; then
20894       coin_has_glpk="no"
20895       coin_reason="--without-glpk-lib has been specified"
20896     else
20897       coin_has_glpk="no"
20898       coin_reason="--with-glpk-lib has been specified"
20899     fi
20900fi;
20901fi
20902
20903if test "$coin_has_glpk" != no; then
20904
20905# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
20906if test "${with_glpk_incdir+set}" = set; then
20907  withval="$with_glpk_incdir"
20908  if test "$withval" = no ; then
20909       coin_has_glpk="no"
20910       coin_reason="--without-glpk-incdir has been specified"
20911     else
20912       coin_has_glpk="no"
20913       coin_reason="--with-glpk-incdir has been specified"
20914     fi
20915fi;
20916fi
20917
20918if test "$coin_has_glpk" != no; then
20919
20920# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
20921if test "${with_glpk_datadir+set}" = set; then
20922  withval="$with_glpk_datadir"
20923  if test "$withval" = no ; then
20924       coin_has_glpk="no"
20925       coin_reason="--without-glpk-datadir has been specified"
20926     else
20927       coin_has_glpk="no"
20928       coin_reason="--with-glpk-datadir has been specified"
20929     fi
20930fi;
20931fi
20932
20933
20934
20935
20936
20937# check if project is available in present directory
20938if test "$coin_has_glpk" = notGiven; then
20939  coin_has_glpk=no
20940  if test -d $srcdir/ThirdParty/Glpk; then
20941    coin_reason="source in ThirdParty/Glpk"
20942    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20943    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20944    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20945    for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
20946         if test -r $i; then
20947           coin_has_glpk="yes"
20948         else
20949           coin_has_glpk="no"
20950           coin_reason="source file $i not available"
20951           break
20952         fi
20953       done
20954
20955  fi
20956fi
20957
20958if test -z "$coin_reason" ; then
20959  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
20960echo "${ECHO_T}$coin_has_glpk" >&6
20961else
20962  echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
20963echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
20964fi
20965
20966if test "$coin_has_glpk" = yes ; then
20967  if test -r $srcdir/ThirdParty/Glpk/configure; then
20968    coin_subdirs="$coin_subdirs ThirdParty/Glpk"
20969
20970
20971subdirs="$subdirs ThirdParty/Glpk"
20972
20973  fi
20974fi
20975
20976
20977echo "$as_me:$LINENO: checking whether source of project SoPlex is available and should be compiled" >&5
20978echo $ECHO_N "checking whether source of project SoPlex is available and should be compiled... $ECHO_C" >&6
20979
20980coin_has_soplex=notGiven
20981coin_reason=
20982
20983# check if user wants to skip project in any case
20984
20985if test x"$COIN_SKIP_PROJECTS" != x; then
20986  for dir in $COIN_SKIP_PROJECTS; do
20987    if test $dir = "SoPlex"; then
20988      coin_has_soplex="no"
20989      coin_reason="SoPlex has been specified in COIN_SKIP_PROJECTS"
20990    fi
20991
20992    if test $dir = "ThirdParty/SoPlex"; then
20993      coin_has_soplex="no"
20994      coin_reason="ThirdParty/SoPlex has been specified in COIN_SKIP_PROJECTS"
20995    fi
20996  done
20997fi
20998
20999if test "$coin_has_soplex" != no; then
21000
21001# Check whether --with-m4_tolower(SoPlex) or --without-m4_tolower(SoPlex) was given.
21002if test "${with_soplex+set}" = set; then
21003  withval="$with_soplex"
21004  if test "$withval" = no ; then
21005       coin_has_soplex="no"
21006       coin_reason="--without-soplex has been specified"
21007     fi
21008
21009fi;
21010fi
21011
21012if test "$coin_has_soplex" != no; then
21013
21014# Check whether --with-m4_tolower(SoPlex)-lib or --without-m4_tolower(SoPlex)-lib was given.
21015if test "${with_soplex_lib+set}" = set; then
21016  withval="$with_soplex_lib"
21017  if test "$withval" = no ; then
21018       coin_has_soplex="no"
21019       coin_reason="--without-soplex-lib has been specified"
21020     else
21021       coin_has_soplex="no"
21022       coin_reason="--with-soplex-lib has been specified"
21023     fi
21024fi;
21025fi
21026
21027if test "$coin_has_soplex" != no; then
21028
21029# Check whether --with-m4_tolower(SoPlex)-incdir or --without-m4_tolower(SoPlex)-incdir was given.
21030if test "${with_soplex_incdir+set}" = set; then
21031  withval="$with_soplex_incdir"
21032  if test "$withval" = no ; then
21033       coin_has_soplex="no"
21034       coin_reason="--without-soplex-incdir has been specified"
21035     else
21036       coin_has_soplex="no"
21037       coin_reason="--with-soplex-incdir has been specified"
21038     fi
21039fi;
21040fi
21041
21042if test "$coin_has_soplex" != no; then
21043
21044# Check whether --with-m4_tolower(SoPlex)-datadir or --without-m4_tolower(SoPlex)-datadir was given.
21045if test "${with_soplex_datadir+set}" = set; then
21046  withval="$with_soplex_datadir"
21047  if test "$withval" = no ; then
21048       coin_has_soplex="no"
21049       coin_reason="--without-soplex-datadir has been specified"
21050     else
21051       coin_has_soplex="no"
21052       coin_reason="--with-soplex-datadir has been specified"
21053     fi
21054fi;
21055fi
21056
21057
21058
21059
21060
21061# check if project is available in present directory
21062if test "$coin_has_soplex" = notGiven; then
21063  coin_has_soplex=no
21064  if test -d $srcdir/ThirdParty/SoPlex; then
21065    coin_reason="source in ThirdParty/SoPlex"
21066    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21067    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21068    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21069    for i in $srcdir/ThirdParty/SoPlex/soplex/src/soplex.h; do
21070         if test -r $i; then
21071           coin_has_soplex="yes"
21072         else
21073           coin_has_soplex="no"
21074           coin_reason="source file $i not available"
21075           break
21076         fi
21077       done
21078
21079  fi
21080fi
21081
21082if test -z "$coin_reason" ; then
21083  echo "$as_me:$LINENO: result: $coin_has_soplex" >&5
21084echo "${ECHO_T}$coin_has_soplex" >&6
21085else
21086  echo "$as_me:$LINENO: result: $coin_has_soplex, $coin_reason" >&5
21087echo "${ECHO_T}$coin_has_soplex, $coin_reason" >&6
21088fi
21089
21090if test "$coin_has_soplex" = yes ; then
21091  if test -r $srcdir/ThirdParty/SoPlex/configure; then
21092    coin_subdirs="$coin_subdirs ThirdParty/SoPlex"
21093
21094
21095subdirs="$subdirs ThirdParty/SoPlex"
21096
21097  fi
21098fi
21099
21100
21101echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5
21102echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6
21103
21104coin_has_blas=notGiven
21105coin_reason=
21106
21107# check if user wants to skip project in any case
21108
21109if test x"$COIN_SKIP_PROJECTS" != x; then
21110  for dir in $COIN_SKIP_PROJECTS; do
21111    if test $dir = "Blas"; then
21112      coin_has_blas="no"
21113      coin_reason="Blas has been specified in COIN_SKIP_PROJECTS"
21114    fi
21115
21116    if test $dir = "ThirdParty/Blas"; then
21117      coin_has_blas="no"
21118      coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS"
21119    fi
21120  done
21121fi
21122
21123if test "$coin_has_blas" != no; then
21124
21125# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
21126if test "${with_blas+set}" = set; then
21127  withval="$with_blas"
21128  if test "$withval" = no ; then
21129       coin_has_blas="no"
21130       coin_reason="--without-blas has been specified"
21131     fi
21132
21133fi;
21134fi
21135
21136if test "$coin_has_blas" != no; then
21137
21138# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
21139if test "${with_blas_lib+set}" = set; then
21140  withval="$with_blas_lib"
21141  if test "$withval" = no ; then
21142       coin_has_blas="no"
21143       coin_reason="--without-blas-lib has been specified"
21144     else
21145       coin_has_blas="no"
21146       coin_reason="--with-blas-lib has been specified"
21147     fi
21148fi;
21149fi
21150
21151if test "$coin_has_blas" != no; then
21152
21153# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
21154if test "${with_blas_incdir+set}" = set; then
21155  withval="$with_blas_incdir"
21156  if test "$withval" = no ; then
21157       coin_has_blas="no"
21158       coin_reason="--without-blas-incdir has been specified"
21159     else
21160       coin_has_blas="no"
21161       coin_reason="--with-blas-incdir has been specified"
21162     fi
21163fi;
21164fi
21165
21166if test "$coin_has_blas" != no; then
21167
21168# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
21169if test "${with_blas_datadir+set}" = set; then
21170  withval="$with_blas_datadir"
21171  if test "$withval" = no ; then
21172       coin_has_blas="no"
21173       coin_reason="--without-blas-datadir has been specified"
21174     else
21175       coin_has_blas="no"
21176       coin_reason="--with-blas-datadir has been specified"
21177     fi
21178fi;
21179fi
21180
21181
21182  if test $coin_has_blas != no; then
21183    #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas
21184
21185# Check whether --with-blas or --without-blas was given.
21186if test "${with_blas+set}" = set; then
21187  withval="$with_blas"
21188  if test x"$withval" = "xno" ; then
21189           coin_has_blas="no"
21190           coin_reason="--without-blas has been specified"
21191         elif test x"$withval" != "xBUILD" ; then
21192           coin_has_blas="no"
21193           coin_reason="--with-blas has been specified"
21194         fi
21195fi;
21196  fi
21197
21198
21199
21200
21201# check if project is available in present directory
21202if test "$coin_has_blas" = notGiven; then
21203  coin_has_blas=no
21204  if test -d $srcdir/ThirdParty/Blas; then
21205    coin_reason="source in ThirdParty/Blas"
21206    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21207    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21208    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21209    for i in $srcdir/ThirdParty/Blas/daxpy.f; do
21210         if test -r $i; then
21211           coin_has_blas="yes"
21212         else
21213           coin_has_blas="no"
21214           coin_reason="source file $i not available"
21215           break
21216         fi
21217       done
21218
21219  fi
21220fi
21221
21222if test -z "$coin_reason" ; then
21223  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
21224echo "${ECHO_T}$coin_has_blas" >&6
21225else
21226  echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5
21227echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6
21228fi
21229
21230if test "$coin_has_blas" = yes ; then
21231  if test -r $srcdir/ThirdParty/Blas/configure; then
21232    coin_subdirs="$coin_subdirs ThirdParty/Blas"
21233
21234
21235subdirs="$subdirs ThirdParty/Blas"
21236
21237  fi
21238fi
21239
21240
21241echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5
21242echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6
21243
21244coin_has_lapack=notGiven
21245coin_reason=
21246
21247# check if user wants to skip project in any case
21248
21249if test x"$COIN_SKIP_PROJECTS" != x; then
21250  for dir in $COIN_SKIP_PROJECTS; do
21251    if test $dir = "Lapack"; then
21252      coin_has_lapack="no"
21253      coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS"
21254    fi
21255
21256    if test $dir = "ThirdParty/Lapack"; then
21257      coin_has_lapack="no"
21258      coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS"
21259    fi
21260  done
21261fi
21262
21263if test "$coin_has_lapack" != no; then
21264
21265# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
21266if test "${with_lapack+set}" = set; then
21267  withval="$with_lapack"
21268  if test "$withval" = no ; then
21269       coin_has_lapack="no"
21270       coin_reason="--without-lapack has been specified"
21271     fi
21272
21273fi;
21274fi
21275
21276if test "$coin_has_lapack" != no; then
21277
21278# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
21279if test "${with_lapack_lib+set}" = set; then
21280  withval="$with_lapack_lib"
21281  if test "$withval" = no ; then
21282       coin_has_lapack="no"
21283       coin_reason="--without-lapack-lib has been specified"
21284     else
21285       coin_has_lapack="no"
21286       coin_reason="--with-lapack-lib has been specified"
21287     fi
21288fi;
21289fi
21290
21291if test "$coin_has_lapack" != no; then
21292
21293# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
21294if test "${with_lapack_incdir+set}" = set; then
21295  withval="$with_lapack_incdir"
21296  if test "$withval" = no ; then
21297       coin_has_lapack="no"
21298       coin_reason="--without-lapack-incdir has been specified"
21299     else
21300       coin_has_lapack="no"
21301       coin_reason="--with-lapack-incdir has been specified"
21302     fi
21303fi;
21304fi
21305
21306if test "$coin_has_lapack" != no; then
21307
21308# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
21309if test "${with_lapack_datadir+set}" = set; then
21310  withval="$with_lapack_datadir"
21311  if test "$withval" = no ; then
21312       coin_has_lapack="no"
21313       coin_reason="--without-lapack-datadir has been specified"
21314     else
21315       coin_has_lapack="no"
21316       coin_reason="--with-lapack-datadir has been specified"
21317     fi
21318fi;
21319fi
21320
21321
21322
21323
21324  if test $coin_has_lapack != no; then
21325    #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack
21326
21327# Check whether --with-lapack or --without-lapack was given.
21328if test "${with_lapack+set}" = set; then
21329  withval="$with_lapack"
21330  if test x"$withval" = "xno" ; then
21331           coin_has_lapack="no"
21332           coin_reason="--without-lapack has been specified"
21333         elif test x"$withval" != "xBUILD" ; then
21334           coin_has_lapack="no"
21335           coin_reason="--with-lapack has been specified"
21336         fi
21337fi;
21338  fi
21339
21340
21341# check if project is available in present directory
21342if test "$coin_has_lapack" = notGiven; then
21343  coin_has_lapack=no
21344  if test -d $srcdir/ThirdParty/Lapack; then
21345    coin_reason="source in ThirdParty/Lapack"
21346    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21347    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21348    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21349    for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do
21350         if test -r $i; then
21351           coin_has_lapack="yes"
21352         else
21353           coin_has_lapack="no"
21354           coin_reason="source file $i not available"
21355           break
21356         fi
21357       done
21358
21359  fi
21360fi
21361
21362if test -z "$coin_reason" ; then
21363  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
21364echo "${ECHO_T}$coin_has_lapack" >&6
21365else
21366  echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5
21367echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6
21368fi
21369
21370if test "$coin_has_lapack" = yes ; then
21371  if test -r $srcdir/ThirdParty/Lapack/configure; then
21372    coin_subdirs="$coin_subdirs ThirdParty/Lapack"
21373
21374
21375subdirs="$subdirs ThirdParty/Lapack"
21376
21377  fi
21378fi
21379
21380
21381echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5
21382echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6
21383
21384coin_has_sample=notGiven
21385coin_reason=
21386
21387# check if user wants to skip project in any case
21388
21389if test x"$COIN_SKIP_PROJECTS" != x; then
21390  for dir in $COIN_SKIP_PROJECTS; do
21391    if test $dir = "Sample"; then
21392      coin_has_sample="no"
21393      coin_reason="Sample has been specified in COIN_SKIP_PROJECTS"
21394    fi
21395
21396    if test $dir = "Data/Sample"; then
21397      coin_has_sample="no"
21398      coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS"
21399    fi
21400  done
21401fi
21402
21403if test "$coin_has_sample" != no; then
21404
21405# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
21406if test "${with_sample+set}" = set; then
21407  withval="$with_sample"
21408  if test "$withval" = no ; then
21409       coin_has_sample="no"
21410       coin_reason="--without-sample has been specified"
21411     fi
21412
21413fi;
21414fi
21415
21416if test "$coin_has_sample" != no; then
21417
21418# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
21419if test "${with_sample_lib+set}" = set; then
21420  withval="$with_sample_lib"
21421  if test "$withval" = no ; then
21422       coin_has_sample="no"
21423       coin_reason="--without-sample-lib has been specified"
21424     else
21425       coin_has_sample="no"
21426       coin_reason="--with-sample-lib has been specified"
21427     fi
21428fi;
21429fi
21430
21431if test "$coin_has_sample" != no; then
21432
21433# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
21434if test "${with_sample_incdir+set}" = set; then
21435  withval="$with_sample_incdir"
21436  if test "$withval" = no ; then
21437       coin_has_sample="no"
21438       coin_reason="--without-sample-incdir has been specified"
21439     else
21440       coin_has_sample="no"
21441       coin_reason="--with-sample-incdir has been specified"
21442     fi
21443fi;
21444fi
21445
21446if test "$coin_has_sample" != no; then
21447
21448# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
21449if test "${with_sample_datadir+set}" = set; then
21450  withval="$with_sample_datadir"
21451  if test "$withval" = no ; then
21452       coin_has_sample="no"
21453       coin_reason="--without-sample-datadir has been specified"
21454     else
21455       coin_has_sample="no"
21456       coin_reason="--with-sample-datadir has been specified"
21457     fi
21458fi;
21459fi
21460
21461
21462
21463
21464
21465# check if project is available in present directory
21466if test "$coin_has_sample" = notGiven; then
21467  coin_has_sample=no
21468  if test -d $srcdir/Data/Sample; then
21469    coin_reason="source in Data/Sample"
21470    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21471    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21472    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21473     coin_has_sample="yes"
21474
21475  fi
21476fi
21477
21478if test -z "$coin_reason" ; then
21479  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
21480echo "${ECHO_T}$coin_has_sample" >&6
21481else
21482  echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5
21483echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6
21484fi
21485
21486if test "$coin_has_sample" = yes ; then
21487  if test -r $srcdir/Data/Sample/configure; then
21488    coin_subdirs="$coin_subdirs Data/Sample"
21489
21490
21491subdirs="$subdirs Data/Sample"
21492
21493  fi
21494fi
21495
21496
21497echo "$as_me:$LINENO: checking whether source of project Netlib is available and should be compiled" >&5
21498echo $ECHO_N "checking whether source of project Netlib is available and should be compiled... $ECHO_C" >&6
21499
21500coin_has_netlib=notGiven
21501coin_reason=
21502
21503# check if user wants to skip project in any case
21504
21505if test x"$COIN_SKIP_PROJECTS" != x; then
21506  for dir in $COIN_SKIP_PROJECTS; do
21507    if test $dir = "Netlib"; then
21508      coin_has_netlib="no"
21509      coin_reason="Netlib has been specified in COIN_SKIP_PROJECTS"
21510    fi
21511
21512    if test $dir = "Data/Netlib"; then
21513      coin_has_netlib="no"
21514      coin_reason="Data/Netlib has been specified in COIN_SKIP_PROJECTS"
21515    fi
21516  done
21517fi
21518
21519if test "$coin_has_netlib" != no; then
21520
21521# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
21522if test "${with_netlib+set}" = set; then
21523  withval="$with_netlib"
21524  if test "$withval" = no ; then
21525       coin_has_netlib="no"
21526       coin_reason="--without-netlib has been specified"
21527     fi
21528
21529fi;
21530fi
21531
21532if test "$coin_has_netlib" != no; then
21533
21534# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
21535if test "${with_netlib_lib+set}" = set; then
21536  withval="$with_netlib_lib"
21537  if test "$withval" = no ; then
21538       coin_has_netlib="no"
21539       coin_reason="--without-netlib-lib has been specified"
21540     else
21541       coin_has_netlib="no"
21542       coin_reason="--with-netlib-lib has been specified"
21543     fi
21544fi;
21545fi
21546
21547if test "$coin_has_netlib" != no; then
21548
21549# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
21550if test "${with_netlib_incdir+set}" = set; then
21551  withval="$with_netlib_incdir"
21552  if test "$withval" = no ; then
21553       coin_has_netlib="no"
21554       coin_reason="--without-netlib-incdir has been specified"
21555     else
21556       coin_has_netlib="no"
21557       coin_reason="--with-netlib-incdir has been specified"
21558     fi
21559fi;
21560fi
21561
21562if test "$coin_has_netlib" != no; then
21563
21564# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
21565if test "${with_netlib_datadir+set}" = set; then
21566  withval="$with_netlib_datadir"
21567  if test "$withval" = no ; then
21568       coin_has_netlib="no"
21569       coin_reason="--without-netlib-datadir has been specified"
21570     else
21571       coin_has_netlib="no"
21572       coin_reason="--with-netlib-datadir has been specified"
21573     fi
21574fi;
21575fi
21576
21577
21578
21579
21580
21581# check if project is available in present directory
21582if test "$coin_has_netlib" = notGiven; then
21583  coin_has_netlib=no
21584  if test -d $srcdir/Data/Netlib; then
21585    coin_reason="source in Data/Netlib"
21586    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21587    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21588    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21589     coin_has_netlib="yes"
21590
21591  fi
21592fi
21593
21594if test -z "$coin_reason" ; then
21595  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
21596echo "${ECHO_T}$coin_has_netlib" >&6
21597else
21598  echo "$as_me:$LINENO: result: $coin_has_netlib, $coin_reason" >&5
21599echo "${ECHO_T}$coin_has_netlib, $coin_reason" >&6
21600fi
21601
21602if test "$coin_has_netlib" = yes ; then
21603  if test -r $srcdir/Data/Netlib/configure; then
21604    coin_subdirs="$coin_subdirs Data/Netlib"
21605
21606
21607subdirs="$subdirs Data/Netlib"
21608
21609  fi
21610fi
21611
21612
21613echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
21614echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
21615
21616coin_has_coinutils=notGiven
21617coin_reason=
21618
21619# check if user wants to skip project in any case
21620
21621if test x"$COIN_SKIP_PROJECTS" != x; then
21622  for dir in $COIN_SKIP_PROJECTS; do
21623    if test $dir = "CoinUtils"; then
21624      coin_has_coinutils="no"
21625      coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
21626    fi
21627
21628  done
21629fi
21630
21631if test "$coin_has_coinutils" != no; then
21632
21633# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
21634if test "${with_coinutils+set}" = set; then
21635  withval="$with_coinutils"
21636  if test "$withval" = no ; then
21637       coin_has_coinutils="no"
21638       coin_reason="--without-coinutils has been specified"
21639     fi
21640
21641fi;
21642fi
21643
21644if test "$coin_has_coinutils" != no; then
21645
21646# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
21647if test "${with_coinutils_lib+set}" = set; then
21648  withval="$with_coinutils_lib"
21649  if test "$withval" = no ; then
21650       coin_has_coinutils="no"
21651       coin_reason="--without-coinutils-lib has been specified"
21652     else
21653       coin_has_coinutils="no"
21654       coin_reason="--with-coinutils-lib has been specified"
21655     fi
21656fi;
21657fi
21658
21659if test "$coin_has_coinutils" != no; then
21660
21661# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
21662if test "${with_coinutils_incdir+set}" = set; then
21663  withval="$with_coinutils_incdir"
21664  if test "$withval" = no ; then
21665       coin_has_coinutils="no"
21666       coin_reason="--without-coinutils-incdir has been specified"
21667     else
21668       coin_has_coinutils="no"
21669       coin_reason="--with-coinutils-incdir has been specified"
21670     fi
21671fi;
21672fi
21673
21674if test "$coin_has_coinutils" != no; then
21675
21676# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
21677if test "${with_coinutils_datadir+set}" = set; then
21678  withval="$with_coinutils_datadir"
21679  if test "$withval" = no ; then
21680       coin_has_coinutils="no"
21681       coin_reason="--without-coinutils-datadir has been specified"
21682     else
21683       coin_has_coinutils="no"
21684       coin_reason="--with-coinutils-datadir has been specified"
21685     fi
21686fi;
21687fi
21688
21689
21690
21691
21692
21693# check if project is available in present directory
21694if test "$coin_has_coinutils" = notGiven; then
21695  coin_has_coinutils=no
21696  if test -d $srcdir/CoinUtils; then
21697    coin_reason="source in CoinUtils"
21698    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21699    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21700    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21701     coin_has_coinutils="yes"
21702
21703  fi
21704fi
21705
21706if test -z "$coin_reason" ; then
21707  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21708echo "${ECHO_T}$coin_has_coinutils" >&6
21709else
21710  echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
21711echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
21712fi
21713
21714if test "$coin_has_coinutils" = yes ; then
21715  if test -r $srcdir/CoinUtils/configure; then
21716    coin_subdirs="$coin_subdirs CoinUtils"
21717
21718
21719subdirs="$subdirs CoinUtils"
21720
21721  fi
21722fi
21723
21724
21725echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
21726echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
21727
21728coin_has_osi=notGiven
21729coin_reason=
21730
21731# check if user wants to skip project in any case
21732
21733if test x"$COIN_SKIP_PROJECTS" != x; then
21734  for dir in $COIN_SKIP_PROJECTS; do
21735    if test $dir = "Osi"; then
21736      coin_has_osi="no"
21737      coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
21738    fi
21739
21740  done
21741fi
21742
21743if test "$coin_has_osi" != no; then
21744
21745# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21746if test "${with_osi+set}" = set; then
21747  withval="$with_osi"
21748  if test "$withval" = no ; then
21749       coin_has_osi="no"
21750       coin_reason="--without-osi has been specified"
21751     fi
21752
21753fi;
21754fi
21755
21756if test "$coin_has_osi" != no; then
21757
21758# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21759if test "${with_osi_lib+set}" = set; then
21760  withval="$with_osi_lib"
21761  if test "$withval" = no ; then
21762       coin_has_osi="no"
21763       coin_reason="--without-osi-lib has been specified"
21764     else
21765       coin_has_osi="no"
21766       coin_reason="--with-osi-lib has been specified"
21767     fi
21768fi;
21769fi
21770
21771if test "$coin_has_osi" != no; then
21772
21773# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21774if test "${with_osi_incdir+set}" = set; then
21775  withval="$with_osi_incdir"
21776  if test "$withval" = no ; then
21777       coin_has_osi="no"
21778       coin_reason="--without-osi-incdir has been specified"
21779     else
21780       coin_has_osi="no"
21781       coin_reason="--with-osi-incdir has been specified"
21782     fi
21783fi;
21784fi
21785
21786if test "$coin_has_osi" != no; then
21787
21788# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21789if test "${with_osi_datadir+set}" = set; then
21790  withval="$with_osi_datadir"
21791  if test "$withval" = no ; then
21792       coin_has_osi="no"
21793       coin_reason="--without-osi-datadir has been specified"
21794     else
21795       coin_has_osi="no"
21796       coin_reason="--with-osi-datadir has been specified"
21797     fi
21798fi;
21799fi
21800
21801
21802
21803
21804
21805# check if project is available in present directory
21806if test "$coin_has_osi" = notGiven; then
21807  coin_has_osi=no
21808  if test -d $srcdir/Osi; then
21809    coin_reason="source in Osi"
21810    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21811    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21812    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21813     coin_has_osi="yes"
21814
21815  fi
21816fi
21817
21818if test -z "$coin_reason" ; then
21819  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21820echo "${ECHO_T}$coin_has_osi" >&6
21821else
21822  echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21823echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21824fi
21825
21826if test "$coin_has_osi" = yes ; then
21827  if test -r $srcdir/Osi/configure; then
21828    coin_subdirs="$coin_subdirs Osi"
21829
21830
21831subdirs="$subdirs Osi"
21832
21833  fi
21834fi
21835
21836
21837#############################################################################
21838#                  Check for doxygen                                        #
21839#############################################################################
21840
21841
21842
21843{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
21844echo "$as_me: configuring doxygen documentation options" >&6;}
21845
21846# Check to see if doxygen is available.
21847
21848# Extract the first word of "doxygen", so it can be a program name with args.
21849set dummy doxygen; ac_word=$2
21850echo "$as_me:$LINENO: checking for $ac_word" >&5
21851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21852if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
21853  echo $ECHO_N "(cached) $ECHO_C" >&6
21854else
21855  if test -n "$coin_have_doxygen"; then
21856  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
21857else
21858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859for as_dir in $PATH
21860do
21861  IFS=$as_save_IFS
21862  test -z "$as_dir" && as_dir=.
21863  for ac_exec_ext in '' $ac_executable_extensions; do
21864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21865    ac_cv_prog_coin_have_doxygen="yes"
21866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21867    break 2
21868  fi
21869done
21870done
21871
21872  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
21873fi
21874fi
21875coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
21876if test -n "$coin_have_doxygen"; then
21877  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
21878echo "${ECHO_T}$coin_have_doxygen" >&6
21879else
21880  echo "$as_me:$LINENO: result: no" >&5
21881echo "${ECHO_T}no" >&6
21882fi
21883
21884# Extract the first word of "latex", so it can be a program name with args.
21885set dummy latex; ac_word=$2
21886echo "$as_me:$LINENO: checking for $ac_word" >&5
21887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21888if test "${ac_cv_prog_coin_have_latex+set}" = set; then
21889  echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891  if test -n "$coin_have_latex"; then
21892  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
21893else
21894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895for as_dir in $PATH
21896do
21897  IFS=$as_save_IFS
21898  test -z "$as_dir" && as_dir=.
21899  for ac_exec_ext in '' $ac_executable_extensions; do
21900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21901    ac_cv_prog_coin_have_latex="yes"
21902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21903    break 2
21904  fi
21905done
21906done
21907
21908  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
21909fi
21910fi
21911coin_have_latex=$ac_cv_prog_coin_have_latex
21912if test -n "$coin_have_latex"; then
21913  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
21914echo "${ECHO_T}$coin_have_latex" >&6
21915else
21916  echo "$as_me:$LINENO: result: no" >&5
21917echo "${ECHO_T}no" >&6
21918fi
21919
21920
21921# Look for the dot tool from the graphviz package, unless the user has
21922# disabled it.
21923
21924
21925# Check whether --with-dot or --without-dot was given.
21926if test "${with_dot+set}" = set; then
21927  withval="$with_dot"
21928
21929else
21930  withval=yes
21931fi;
21932if test x"$withval" = xno ; then
21933  coin_doxy_usedot=NO
21934  echo "$as_me:$LINENO: checking for dot " >&5
21935echo $ECHO_N "checking for dot ... $ECHO_C" >&6
21936  echo "$as_me:$LINENO: result: disabled" >&5
21937echo "${ECHO_T}disabled" >&6
21938else
21939  # Extract the first word of "dot", so it can be a program name with args.
21940set dummy dot; ac_word=$2
21941echo "$as_me:$LINENO: checking for $ac_word" >&5
21942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21943if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
21944  echo $ECHO_N "(cached) $ECHO_C" >&6
21945else
21946  if test -n "$coin_doxy_usedot"; then
21947  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
21948else
21949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21950for as_dir in $PATH
21951do
21952  IFS=$as_save_IFS
21953  test -z "$as_dir" && as_dir=.
21954  for ac_exec_ext in '' $ac_executable_extensions; do
21955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21956    ac_cv_prog_coin_doxy_usedot="YES"
21957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21958    break 2
21959  fi
21960done
21961done
21962
21963  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
21964fi
21965fi
21966coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
21967if test -n "$coin_doxy_usedot"; then
21968  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
21969echo "${ECHO_T}$coin_doxy_usedot" >&6
21970else
21971  echo "$as_me:$LINENO: result: no" >&5
21972echo "${ECHO_T}no" >&6
21973fi
21974
21975fi
21976
21977# Generate a tag file name and a log file name
21978
21979coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
21980
21981coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
21982
21983
21984
21985if test $coin_have_doxygen = yes; then
21986  COIN_HAS_DOXYGEN_TRUE=
21987  COIN_HAS_DOXYGEN_FALSE='#'
21988else
21989  COIN_HAS_DOXYGEN_TRUE='#'
21990  COIN_HAS_DOXYGEN_FALSE=
21991fi
21992
21993
21994
21995if test $coin_have_latex = yes; then
21996  COIN_HAS_LATEX_TRUE=
21997  COIN_HAS_LATEX_FALSE='#'
21998else
21999  COIN_HAS_LATEX_TRUE='#'
22000  COIN_HAS_LATEX_FALSE=
22001fi
22002
22003
22004# Process the list of project names and massage them into possible doxygen
22005# doc'n directories. Prefer 1) classic external, source processed using
22006# a project-specific doxygen.conf, we use the tag file; 2) classic
22007# external, source processed using package doxygen.conf; 3) installed
22008# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22009# configured, which we can't know unless this is the package base configure,
22010# since coin_subdirs is only set there. Hence it's sufficient to check for
22011# membership. If we use a tag file from a classic external, exclude the
22012# source from doxygen processing when doxygen runs in the base directory.
22013
22014coin_doxy_tagfiles=
22015coin_doxy_excludes=
22016tmp="CoinUtils Cgl Clp DyLP Vol SYMPHONY"
22017for proj in $tmp ; do
22018  lc_proj=`echo $proj | tr [A-Z] [a-z]`
22019  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22020echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22021  doxytag=${lc_proj}_doxy.tag
22022  doxyfound=no
22023  # proj will be configured, hence doxydoc present in build tree
22024  doxysrcdir="${srcdir}/../${proj}"
22025  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22026  if test -d "$doxysrcdir" ; then
22027    # with a doxydoc directory?
22028    doxydir="$doxysrcdir/doxydoc"
22029    # AC_MSG_NOTICE([Considering $doxydir (base)])
22030    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22031    if test -d "$doxydir" ; then
22032      # use tag file; don't process source
22033      doxydir="../${proj}/doxydoc"
22034      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
22035      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22036echo "${ECHO_T}$doxydir (tag)" >&6
22037      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
22038    else
22039      # will process the source -- nothing further to be done here
22040      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
22041echo "${ECHO_T}$doxysrcdir (src)" >&6
22042    fi
22043    doxyfound=yes
22044  fi
22045  # Not built, fall back to installed tag file
22046  if test $doxyfound = no ; then
22047    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
22048    # AC_MSG_NOTICE([Considering $doxydir (install)])
22049    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22050    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
22051    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22052echo "${ECHO_T}$doxydir (tag)" >&6
22053  fi
22054done
22055
22056
22057
22058
22059
22060##############################################################################
22061#                   Finishing up by writing all the output                   #
22062##############################################################################
22063
22064# Here list all the files that configure should create (except for the
22065# configuration header file)
22066          ac_config_files="$ac_config_files Makefile"
22067
22068          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
22069
22070
22071# Finally, we let configure write all the output...
22072
22073
22074
22075
22076echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22077echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22078coin_link_input_cmd="$LN_S"
22079case "$CC" in
22080  clang* ) ;;
22081  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22082    coin_link_input_cmd=cp ;;
22083esac
22084echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22085echo "${ECHO_T}$coin_link_input_cmd" >&6
22086
22087
22088
22089if test x$coin_skip_ac_output != xyes; then
22090
22091  # library extension
22092
22093  case "$CC" in
22094    clang* )
22095         LIBEXT=a ;;
22096    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22097         LIBEXT=lib ;;
22098      *) LIBEXT=a ;;
22099  esac
22100
22101  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22102  # cleaned for distclean in a vpath configuration
22103
22104  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22105
22106  # Take out subdirectories if their configuration concluded that they
22107  # don't need to be compiled
22108  if test x"$coin_ac_skip_subdirs" != x; then
22109    new_subdirs=
22110    for i in $subdirs; do
22111      skipme=no
22112      for j in $coin_ac_skip_subdirs; do
22113        if test $i = $j; then
22114          skipme=yes;
22115        fi
22116      done
22117      if test $skipme = no; then
22118        new_subdirs="$new_subdirs $i"
22119      fi
22120    done
22121    subdirs="$new_subdirs"
22122  fi
22123
22124  # need to come before AC_OUTPUT
22125  if test x$coin_projectdir != xyes; then
22126    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22127    echo $coin_subdirs > coin_subdirs.txt
22128  else
22129    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22130    ABSBUILDDIR="`pwd`"
22131
22132  fi
22133
22134  cat >confcache <<\_ACEOF
22135# This file is a shell script that caches the results of configure
22136# tests run on this system so they can be shared between configure
22137# scripts and configure runs, see configure's option --config-cache.
22138# It is not useful on other systems.  If it contains results you don't
22139# want to keep, you may remove or edit it.
22140#
22141# config.status only pays attention to the cache file if you give it
22142# the --recheck option to rerun configure.
22143#
22144# `ac_cv_env_foo' variables (set or unset) will be overridden when
22145# loading this file, other *unset* `ac_cv_foo' will be assigned the
22146# following values.
22147
22148_ACEOF
22149
22150# The following way of writing the cache mishandles newlines in values,
22151# but we know of no workaround that is simple, portable, and efficient.
22152# So, don't put newlines in cache variables' values.
22153# Ultrix sh set writes to stderr and can't be redirected directly,
22154# and sets the high bit in the cache file unless we assign to the vars.
22155{
22156  (set) 2>&1 |
22157    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22158    *ac_space=\ *)
22159      # `set' does not quote correctly, so add quotes (double-quote
22160      # substitution turns \\\\ into \\, and sed turns \\ into \).
22161      sed -n \
22162	"s/'/'\\\\''/g;
22163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22164      ;;
22165    *)
22166      # `set' quotes correctly as required by POSIX, so do not add quotes.
22167      sed -n \
22168	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22169      ;;
22170    esac;
22171} |
22172  sed '
22173     t clear
22174     : clear
22175     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22176     t end
22177     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22178     : end' >>confcache
22179if diff $cache_file confcache >/dev/null 2>&1; then :; else
22180  if test -w $cache_file; then
22181    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22182    cat confcache >$cache_file
22183  else
22184    echo "not updating unwritable cache $cache_file"
22185  fi
22186fi
22187rm -f confcache
22188
22189test "x$prefix" = xNONE && prefix=$ac_default_prefix
22190# Let make expand exec_prefix.
22191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22192
22193# VPATH may cause trouble with some makes, so we remove $(srcdir),
22194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22195# trailing colons and then remove the whole line if VPATH becomes empty
22196# (actually we leave an empty line to preserve line numbers).
22197if test "x$srcdir" = x.; then
22198  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22199s/:*\$(srcdir):*/:/;
22200s/:*\${srcdir}:*/:/;
22201s/:*@srcdir@:*/:/;
22202s/^\([^=]*=[	 ]*\):*/\1/;
22203s/:*$//;
22204s/^[^=]*=[	 ]*$//;
22205}'
22206fi
22207
22208# Transform confdefs.h into DEFS.
22209# Protect against shell expansion while executing Makefile rules.
22210# Protect against Makefile macro expansion.
22211#
22212# If the first sed substitution is executed (which looks for macros that
22213# take arguments), then we branch to the quote section.  Otherwise,
22214# look for a macro that doesn't take arguments.
22215cat >confdef2opt.sed <<\_ACEOF
22216t clear
22217: clear
22218s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
22219t quote
22220s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
22221t quote
22222d
22223: quote
22224s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
22225s,\[,\\&,g
22226s,\],\\&,g
22227s,\$,$$,g
22228p
22229_ACEOF
22230# We use echo to avoid assuming a particular line-breaking character.
22231# The extra dot is to prevent the shell from consuming trailing
22232# line-breaks from the sub-command output.  A line-break within
22233# single-quotes doesn't work because, if this script is created in a
22234# platform that uses two characters for line-breaks (e.g., DOS), tr
22235# would break.
22236ac_LF_and_DOT=`echo; echo .`
22237DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
22238rm -f confdef2opt.sed
22239
22240
22241ac_libobjs=
22242ac_ltlibobjs=
22243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22244  # 1. Remove the extension, and $U if already installed.
22245  ac_i=`echo "$ac_i" |
22246	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22247  # 2. Add them.
22248  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22249  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22250done
22251LIBOBJS=$ac_libobjs
22252
22253LTLIBOBJS=$ac_ltlibobjs
22254
22255
22256if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22257  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22258Usually this means the macro was only invoked conditionally." >&5
22259echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22260Usually this means the macro was only invoked conditionally." >&2;}
22261   { (exit 1); exit 1; }; }
22262fi
22263if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22264  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22265Usually this means the macro was only invoked conditionally." >&5
22266echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22267Usually this means the macro was only invoked conditionally." >&2;}
22268   { (exit 1); exit 1; }; }
22269fi
22270if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22271  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22272Usually this means the macro was only invoked conditionally." >&5
22273echo "$as_me: error: conditional \"AMDEP\" was never defined.
22274Usually this means the macro was only invoked conditionally." >&2;}
22275   { (exit 1); exit 1; }; }
22276fi
22277if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22278  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22279Usually this means the macro was only invoked conditionally." >&5
22280echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22281Usually this means the macro was only invoked conditionally." >&2;}
22282   { (exit 1); exit 1; }; }
22283fi
22284if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22285  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22286Usually this means the macro was only invoked conditionally." >&5
22287echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22288Usually this means the macro was only invoked conditionally." >&2;}
22289   { (exit 1); exit 1; }; }
22290fi
22291if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22292  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22293Usually this means the macro was only invoked conditionally." >&5
22294echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22295Usually this means the macro was only invoked conditionally." >&2;}
22296   { (exit 1); exit 1; }; }
22297fi
22298if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22299  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22300Usually this means the macro was only invoked conditionally." >&5
22301echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22302Usually this means the macro was only invoked conditionally." >&2;}
22303   { (exit 1); exit 1; }; }
22304fi
22305if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22306  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22307Usually this means the macro was only invoked conditionally." >&5
22308echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22309Usually this means the macro was only invoked conditionally." >&2;}
22310   { (exit 1); exit 1; }; }
22311fi
22312if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
22313  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22314Usually this means the macro was only invoked conditionally." >&5
22315echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22316Usually this means the macro was only invoked conditionally." >&2;}
22317   { (exit 1); exit 1; }; }
22318fi
22319if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
22320  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
22321Usually this means the macro was only invoked conditionally." >&5
22322echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
22323Usually this means the macro was only invoked conditionally." >&2;}
22324   { (exit 1); exit 1; }; }
22325fi
22326
22327: ${CONFIG_STATUS=./config.status}
22328ac_clean_files_save=$ac_clean_files
22329ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22330{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22331echo "$as_me: creating $CONFIG_STATUS" >&6;}
22332cat >$CONFIG_STATUS <<_ACEOF
22333#! $SHELL
22334# Generated by $as_me.
22335# Run this file to recreate the current configuration.
22336# Compiler output produced by configure, useful for debugging
22337# configure, is in config.log if it exists.
22338
22339debug=false
22340ac_cs_recheck=false
22341ac_cs_silent=false
22342SHELL=\${CONFIG_SHELL-$SHELL}
22343_ACEOF
22344
22345cat >>$CONFIG_STATUS <<\_ACEOF
22346## --------------------- ##
22347## M4sh Initialization.  ##
22348## --------------------- ##
22349
22350# Be Bourne compatible
22351if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22352  emulate sh
22353  NULLCMD=:
22354  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22355  # is contrary to our usage.  Disable this feature.
22356  alias -g '${1+"$@"}'='"$@"'
22357elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22358  set -o posix
22359fi
22360DUALCASE=1; export DUALCASE # for MKS sh
22361
22362# Support unset when possible.
22363if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22364  as_unset=unset
22365else
22366  as_unset=false
22367fi
22368
22369
22370# Work around bugs in pre-3.0 UWIN ksh.
22371$as_unset ENV MAIL MAILPATH
22372PS1='$ '
22373PS2='> '
22374PS4='+ '
22375
22376# NLS nuisances.
22377for as_var in \
22378  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22379  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22380  LC_TELEPHONE LC_TIME
22381do
22382  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22383    eval $as_var=C; export $as_var
22384  else
22385    $as_unset $as_var
22386  fi
22387done
22388
22389# Required to use basename.
22390if expr a : '\(a\)' >/dev/null 2>&1; then
22391  as_expr=expr
22392else
22393  as_expr=false
22394fi
22395
22396if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22397  as_basename=basename
22398else
22399  as_basename=false
22400fi
22401
22402
22403# Name of the executable.
22404as_me=`$as_basename "$0" ||
22405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22406	 X"$0" : 'X\(//\)$' \| \
22407	 X"$0" : 'X\(/\)$' \| \
22408	 .     : '\(.\)' 2>/dev/null ||
22409echo X/"$0" |
22410    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22411  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22412  	  /^X\/\(\/\).*/{ s//\1/; q; }
22413  	  s/.*/./; q'`
22414
22415
22416# PATH needs CR, and LINENO needs CR and PATH.
22417# Avoid depending upon Character Ranges.
22418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22421as_cr_digits='0123456789'
22422as_cr_alnum=$as_cr_Letters$as_cr_digits
22423
22424# The user is always right.
22425if test "${PATH_SEPARATOR+set}" != set; then
22426  echo "#! /bin/sh" >conf$$.sh
22427  echo  "exit 0"   >>conf$$.sh
22428  chmod +x conf$$.sh
22429  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22430    PATH_SEPARATOR=';'
22431  else
22432    PATH_SEPARATOR=:
22433  fi
22434  rm -f conf$$.sh
22435fi
22436
22437
22438  as_lineno_1=$LINENO
22439  as_lineno_2=$LINENO
22440  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22441  test "x$as_lineno_1" != "x$as_lineno_2" &&
22442  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22443  # Find who we are.  Look in the path if we contain no path at all
22444  # relative or not.
22445  case $0 in
22446    *[\\/]* ) as_myself=$0 ;;
22447    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22448for as_dir in $PATH
22449do
22450  IFS=$as_save_IFS
22451  test -z "$as_dir" && as_dir=.
22452  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22453done
22454
22455       ;;
22456  esac
22457  # We did not find ourselves, most probably we were run as `sh COMMAND'
22458  # in which case we are not to be found in the path.
22459  if test "x$as_myself" = x; then
22460    as_myself=$0
22461  fi
22462  if test ! -f "$as_myself"; then
22463    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22464echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22465   { (exit 1); exit 1; }; }
22466  fi
22467  case $CONFIG_SHELL in
22468  '')
22469    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22471do
22472  IFS=$as_save_IFS
22473  test -z "$as_dir" && as_dir=.
22474  for as_base in sh bash ksh sh5; do
22475	 case $as_dir in
22476	 /*)
22477	   if ("$as_dir/$as_base" -c '
22478  as_lineno_1=$LINENO
22479  as_lineno_2=$LINENO
22480  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22481  test "x$as_lineno_1" != "x$as_lineno_2" &&
22482  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22483	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22484	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22485	     CONFIG_SHELL=$as_dir/$as_base
22486	     export CONFIG_SHELL
22487	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22488	   fi;;
22489	 esac
22490       done
22491done
22492;;
22493  esac
22494
22495  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22496  # uniformly replaced by the line number.  The first 'sed' inserts a
22497  # line-number line before each line; the second 'sed' does the real
22498  # work.  The second script uses 'N' to pair each line-number line
22499  # with the numbered line, and appends trailing '-' during
22500  # substitution so that $LINENO is not a special case at line end.
22501  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22502  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22503  sed '=' <$as_myself |
22504    sed '
22505      N
22506      s,$,-,
22507      : loop
22508      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22509      t loop
22510      s,-$,,
22511      s,^['$as_cr_digits']*\n,,
22512    ' >$as_me.lineno &&
22513  chmod +x $as_me.lineno ||
22514    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22515echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22516   { (exit 1); exit 1; }; }
22517
22518  # Don't try to exec as it changes $[0], causing all sort of problems
22519  # (the dirname of $[0] is not the place where we might find the
22520  # original and so on.  Autoconf is especially sensible to this).
22521  . ./$as_me.lineno
22522  # Exit status is that of the last command.
22523  exit
22524}
22525
22526
22527case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22528  *c*,-n*) ECHO_N= ECHO_C='
22529' ECHO_T='	' ;;
22530  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22531  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22532esac
22533
22534if expr a : '\(a\)' >/dev/null 2>&1; then
22535  as_expr=expr
22536else
22537  as_expr=false
22538fi
22539
22540rm -f conf$$ conf$$.exe conf$$.file
22541echo >conf$$.file
22542if ln -s conf$$.file conf$$ 2>/dev/null; then
22543  # We could just check for DJGPP; but this test a) works b) is more generic
22544  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22545  if test -f conf$$.exe; then
22546    # Don't use ln at all; we don't have any links
22547    as_ln_s='cp -p'
22548  else
22549    as_ln_s='ln -s'
22550  fi
22551elif ln conf$$.file conf$$ 2>/dev/null; then
22552  as_ln_s=ln
22553else
22554  as_ln_s='cp -p'
22555fi
22556rm -f conf$$ conf$$.exe conf$$.file
22557
22558if mkdir -p . 2>/dev/null; then
22559  as_mkdir_p=:
22560else
22561  test -d ./-p && rmdir ./-p
22562  as_mkdir_p=false
22563fi
22564
22565as_executable_p="test -f"
22566
22567# Sed expression to map a string onto a valid CPP name.
22568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22569
22570# Sed expression to map a string onto a valid variable name.
22571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22572
22573
22574# IFS
22575# We need space, tab and new line, in precisely that order.
22576as_nl='
22577'
22578IFS=" 	$as_nl"
22579
22580# CDPATH.
22581$as_unset CDPATH
22582
22583exec 6>&1
22584
22585# Open the log real soon, to keep \$[0] and so on meaningful, and to
22586# report actual input values of CONFIG_FILES etc. instead of their
22587# values after options handling.  Logging --version etc. is OK.
22588exec 5>>config.log
22589{
22590  echo
22591  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22592## Running $as_me. ##
22593_ASBOX
22594} >&5
22595cat >&5 <<_CSEOF
22596
22597This file was extended by Osi $as_me 0.108.6, which was
22598generated by GNU Autoconf 2.59.  Invocation command line was
22599
22600  CONFIG_FILES    = $CONFIG_FILES
22601  CONFIG_HEADERS  = $CONFIG_HEADERS
22602  CONFIG_LINKS    = $CONFIG_LINKS
22603  CONFIG_COMMANDS = $CONFIG_COMMANDS
22604  $ $0 $@
22605
22606_CSEOF
22607echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22608echo >&5
22609_ACEOF
22610
22611# Files that config.status was made for.
22612if test -n "$ac_config_files"; then
22613  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22614fi
22615
22616if test -n "$ac_config_headers"; then
22617  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22618fi
22619
22620if test -n "$ac_config_links"; then
22621  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22622fi
22623
22624if test -n "$ac_config_commands"; then
22625  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22626fi
22627
22628cat >>$CONFIG_STATUS <<\_ACEOF
22629
22630ac_cs_usage="\
22631\`$as_me' instantiates files from templates according to the
22632current configuration.
22633
22634Usage: $0 [OPTIONS] [FILE]...
22635
22636  -h, --help       print this help, then exit
22637  -V, --version    print version number, then exit
22638  -q, --quiet      do not print progress messages
22639  -d, --debug      don't remove temporary files
22640      --recheck    update $as_me by reconfiguring in the same conditions
22641  --file=FILE[:TEMPLATE]
22642		   instantiate the configuration file FILE
22643
22644Configuration files:
22645$config_files
22646
22647Configuration commands:
22648$config_commands
22649
22650Report bugs to <bug-autoconf@gnu.org>."
22651_ACEOF
22652
22653cat >>$CONFIG_STATUS <<_ACEOF
22654ac_cs_version="\\
22655Osi config.status 0.108.6
22656configured by $0, generated by GNU Autoconf 2.59,
22657  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22658
22659Copyright (C) 2003 Free Software Foundation, Inc.
22660This config.status script is free software; the Free Software Foundation
22661gives unlimited permission to copy, distribute and modify it."
22662srcdir=$srcdir
22663INSTALL="$INSTALL"
22664_ACEOF
22665
22666cat >>$CONFIG_STATUS <<\_ACEOF
22667# If no file are specified by the user, then we need to provide default
22668# value.  By we need to know if files were specified by the user.
22669ac_need_defaults=:
22670while test $# != 0
22671do
22672  case $1 in
22673  --*=*)
22674    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22675    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22676    ac_shift=:
22677    ;;
22678  -*)
22679    ac_option=$1
22680    ac_optarg=$2
22681    ac_shift=shift
22682    ;;
22683  *) # This is not an option, so the user has probably given explicit
22684     # arguments.
22685     ac_option=$1
22686     ac_need_defaults=false;;
22687  esac
22688
22689  case $ac_option in
22690  # Handling of the options.
22691_ACEOF
22692cat >>$CONFIG_STATUS <<\_ACEOF
22693  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22694    ac_cs_recheck=: ;;
22695  --version | --vers* | -V )
22696    echo "$ac_cs_version"; exit 0 ;;
22697  --he | --h)
22698    # Conflict between --help and --header
22699    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22700Try \`$0 --help' for more information." >&5
22701echo "$as_me: error: ambiguous option: $1
22702Try \`$0 --help' for more information." >&2;}
22703   { (exit 1); exit 1; }; };;
22704  --help | --hel | -h )
22705    echo "$ac_cs_usage"; exit 0 ;;
22706  --debug | --d* | -d )
22707    debug=: ;;
22708  --file | --fil | --fi | --f )
22709    $ac_shift
22710    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22711    ac_need_defaults=false;;
22712  --header | --heade | --head | --hea )
22713    $ac_shift
22714    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22715    ac_need_defaults=false;;
22716  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22717  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22718    ac_cs_silent=: ;;
22719
22720  # This is an error.
22721  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22722Try \`$0 --help' for more information." >&5
22723echo "$as_me: error: unrecognized option: $1
22724Try \`$0 --help' for more information." >&2;}
22725   { (exit 1); exit 1; }; } ;;
22726
22727  *) ac_config_targets="$ac_config_targets $1" ;;
22728
22729  esac
22730  shift
22731done
22732
22733ac_configure_extra_args=
22734
22735if $ac_cs_silent; then
22736  exec 6>/dev/null
22737  ac_configure_extra_args="$ac_configure_extra_args --silent"
22738fi
22739
22740_ACEOF
22741cat >>$CONFIG_STATUS <<_ACEOF
22742if \$ac_cs_recheck; then
22743  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22744  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22745fi
22746
22747_ACEOF
22748
22749cat >>$CONFIG_STATUS <<_ACEOF
22750#
22751# INIT-COMMANDS section.
22752#
22753
22754AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22755
22756_ACEOF
22757
22758
22759
22760cat >>$CONFIG_STATUS <<\_ACEOF
22761for ac_config_target in $ac_config_targets
22762do
22763  case "$ac_config_target" in
22764  # Handling of arguments.
22765  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22766  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
22767  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22768  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22769echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22770   { (exit 1); exit 1; }; };;
22771  esac
22772done
22773
22774# If the user did not use the arguments to specify the items to instantiate,
22775# then the envvar interface is used.  Set only those that are not.
22776# We use the long form for the default assignment because of an extremely
22777# bizarre bug on SunOS 4.1.3.
22778if $ac_need_defaults; then
22779  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22780  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22781fi
22782
22783# Have a temporary directory for convenience.  Make it in the build tree
22784# simply because there is no reason to put it here, and in addition,
22785# creating and moving files from /tmp can sometimes cause problems.
22786# Create a temporary directory, and hook for its removal unless debugging.
22787$debug ||
22788{
22789  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22790  trap '{ (exit 1); exit 1; }' 1 2 13 15
22791}
22792
22793# Create a (secure) tmp directory for tmp files.
22794
22795{
22796  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22797  test -n "$tmp" && test -d "$tmp"
22798}  ||
22799{
22800  tmp=./confstat$$-$RANDOM
22801  (umask 077 && mkdir $tmp)
22802} ||
22803{
22804   echo "$me: cannot create a temporary directory in ." >&2
22805   { (exit 1); exit 1; }
22806}
22807
22808_ACEOF
22809
22810cat >>$CONFIG_STATUS <<_ACEOF
22811
22812#
22813# CONFIG_FILES section.
22814#
22815
22816# No need to generate the scripts if there are no CONFIG_FILES.
22817# This happens for instance when ./config.status config.h
22818if test -n "\$CONFIG_FILES"; then
22819  # Protect against being on the right side of a sed subst in config.status.
22820  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22821   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22822s,@SHELL@,$SHELL,;t t
22823s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22824s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22825s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22826s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22827s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22828s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22829s,@exec_prefix@,$exec_prefix,;t t
22830s,@prefix@,$prefix,;t t
22831s,@program_transform_name@,$program_transform_name,;t t
22832s,@bindir@,$bindir,;t t
22833s,@sbindir@,$sbindir,;t t
22834s,@libexecdir@,$libexecdir,;t t
22835s,@datadir@,$datadir,;t t
22836s,@sysconfdir@,$sysconfdir,;t t
22837s,@sharedstatedir@,$sharedstatedir,;t t
22838s,@localstatedir@,$localstatedir,;t t
22839s,@libdir@,$libdir,;t t
22840s,@includedir@,$includedir,;t t
22841s,@oldincludedir@,$oldincludedir,;t t
22842s,@infodir@,$infodir,;t t
22843s,@mandir@,$mandir,;t t
22844s,@build_alias@,$build_alias,;t t
22845s,@host_alias@,$host_alias,;t t
22846s,@target_alias@,$target_alias,;t t
22847s,@DEFS@,$DEFS,;t t
22848s,@ECHO_C@,$ECHO_C,;t t
22849s,@ECHO_N@,$ECHO_N,;t t
22850s,@ECHO_T@,$ECHO_T,;t t
22851s,@LIBS@,$LIBS,;t t
22852s,@build@,$build,;t t
22853s,@build_cpu@,$build_cpu,;t t
22854s,@build_vendor@,$build_vendor,;t t
22855s,@build_os@,$build_os,;t t
22856s,@CDEFS@,$CDEFS,;t t
22857s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22858s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22859s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22860s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22861s,@CC@,$CC,;t t
22862s,@CFLAGS@,$CFLAGS,;t t
22863s,@LDFLAGS@,$LDFLAGS,;t t
22864s,@CPPFLAGS@,$CPPFLAGS,;t t
22865s,@ac_ct_CC@,$ac_ct_CC,;t t
22866s,@EXEEXT@,$EXEEXT,;t t
22867s,@OBJEXT@,$OBJEXT,;t t
22868s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22869s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22870s,@MPICC@,$MPICC,;t t
22871s,@CXXDEFS@,$CXXDEFS,;t t
22872s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22873s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22874s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22875s,@CXX@,$CXX,;t t
22876s,@CXXFLAGS@,$CXXFLAGS,;t t
22877s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22878s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22879s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22880s,@MPICXX@,$MPICXX,;t t
22881s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22882s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22883s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22884s,@F77@,$F77,;t t
22885s,@ac_ct_F77@,$ac_ct_F77,;t t
22886s,@FFLAGS@,$FFLAGS,;t t
22887s,@MPIF77@,$MPIF77,;t t
22888s,@EGREP@,$EGREP,;t t
22889s,@LN_S@,$LN_S,;t t
22890s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22891s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22892s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22893s,@CYGPATH_W@,$CYGPATH_W,;t t
22894s,@PACKAGE@,$PACKAGE,;t t
22895s,@VERSION@,$VERSION,;t t
22896s,@ACLOCAL@,$ACLOCAL,;t t
22897s,@AUTOCONF@,$AUTOCONF,;t t
22898s,@AUTOMAKE@,$AUTOMAKE,;t t
22899s,@AUTOHEADER@,$AUTOHEADER,;t t
22900s,@MAKEINFO@,$MAKEINFO,;t t
22901s,@install_sh@,$install_sh,;t t
22902s,@STRIP@,$STRIP,;t t
22903s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22904s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22905s,@mkdir_p@,$mkdir_p,;t t
22906s,@AWK@,$AWK,;t t
22907s,@SET_MAKE@,$SET_MAKE,;t t
22908s,@am__leading_dot@,$am__leading_dot,;t t
22909s,@AMTAR@,$AMTAR,;t t
22910s,@am__tar@,$am__tar,;t t
22911s,@am__untar@,$am__untar,;t t
22912s,@DEPDIR@,$DEPDIR,;t t
22913s,@am__include@,$am__include,;t t
22914s,@am__quote@,$am__quote,;t t
22915s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22916s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22917s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22918s,@CCDEPMODE@,$CCDEPMODE,;t t
22919s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22920s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22921s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22922s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22923s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22924s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22925s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22926s,@MAINT@,$MAINT,;t t
22927s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22928s,@have_autoconf@,$have_autoconf,;t t
22929s,@have_automake@,$have_automake,;t t
22930s,@have_svn@,$have_svn,;t t
22931s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22932s,@AUX_DIR@,$AUX_DIR,;t t
22933s,@abs_source_dir@,$abs_source_dir,;t t
22934s,@abs_lib_dir@,$abs_lib_dir,;t t
22935s,@abs_include_dir@,$abs_include_dir,;t t
22936s,@abs_bin_dir@,$abs_bin_dir,;t t
22937s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22938s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22939s,@host@,$host,;t t
22940s,@host_cpu@,$host_cpu,;t t
22941s,@host_vendor@,$host_vendor,;t t
22942s,@host_os@,$host_os,;t t
22943s,@ECHO@,$ECHO,;t t
22944s,@AR@,$AR,;t t
22945s,@ac_ct_AR@,$ac_ct_AR,;t t
22946s,@RANLIB@,$RANLIB,;t t
22947s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22948s,@CPP@,$CPP,;t t
22949s,@CXXCPP@,$CXXCPP,;t t
22950s,@LIBTOOL@,$LIBTOOL,;t t
22951s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22952s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22953s,@dos2unix@,$dos2unix,;t t
22954s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22955s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22956s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22957s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22958s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22959s,@subdirs@,$subdirs,;t t
22960s,@coin_have_doxygen@,$coin_have_doxygen,;t t
22961s,@coin_have_latex@,$coin_have_latex,;t t
22962s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
22963s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
22964s,@coin_doxy_logname@,$coin_doxy_logname,;t t
22965s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
22966s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
22967s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
22968s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
22969s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
22970s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
22971s,@LIBEXT@,$LIBEXT,;t t
22972s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22973s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22974s,@LIBOBJS@,$LIBOBJS,;t t
22975s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22976CEOF
22977
22978_ACEOF
22979
22980  cat >>$CONFIG_STATUS <<\_ACEOF
22981  # Split the substitutions into bite-sized pieces for seds with
22982  # small command number limits, like on Digital OSF/1 and HP-UX.
22983  ac_max_sed_lines=48
22984  ac_sed_frag=1 # Number of current file.
22985  ac_beg=1 # First line for current file.
22986  ac_end=$ac_max_sed_lines # Line after last line for current file.
22987  ac_more_lines=:
22988  ac_sed_cmds=
22989  while $ac_more_lines; do
22990    if test $ac_beg -gt 1; then
22991      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22992    else
22993      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22994    fi
22995    if test ! -s $tmp/subs.frag; then
22996      ac_more_lines=false
22997    else
22998      # The purpose of the label and of the branching condition is to
22999      # speed up the sed processing (if there are no `@' at all, there
23000      # is no need to browse any of the substitutions).
23001      # These are the two extra sed commands mentioned above.
23002      (echo ':t
23003  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23004      if test -z "$ac_sed_cmds"; then
23005	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23006      else
23007	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23008      fi
23009      ac_sed_frag=`expr $ac_sed_frag + 1`
23010      ac_beg=$ac_end
23011      ac_end=`expr $ac_end + $ac_max_sed_lines`
23012    fi
23013  done
23014  if test -z "$ac_sed_cmds"; then
23015    ac_sed_cmds=cat
23016  fi
23017fi # test -n "$CONFIG_FILES"
23018
23019_ACEOF
23020cat >>$CONFIG_STATUS <<\_ACEOF
23021for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23022  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23023  case $ac_file in
23024  - | *:- | *:-:* ) # input from stdin
23025	cat >$tmp/stdin
23026	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23027	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23028  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23029	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23030  * )   ac_file_in=$ac_file.in ;;
23031  esac
23032
23033  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23034  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23035$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036	 X"$ac_file" : 'X\(//\)[^/]' \| \
23037	 X"$ac_file" : 'X\(//\)$' \| \
23038	 X"$ac_file" : 'X\(/\)' \| \
23039	 .     : '\(.\)' 2>/dev/null ||
23040echo X"$ac_file" |
23041    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043  	  /^X\(\/\/\)$/{ s//\1/; q; }
23044  	  /^X\(\/\).*/{ s//\1/; q; }
23045  	  s/.*/./; q'`
23046  { if $as_mkdir_p; then
23047    mkdir -p "$ac_dir"
23048  else
23049    as_dir="$ac_dir"
23050    as_dirs=
23051    while test ! -d "$as_dir"; do
23052      as_dirs="$as_dir $as_dirs"
23053      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23055	 X"$as_dir" : 'X\(//\)[^/]' \| \
23056	 X"$as_dir" : 'X\(//\)$' \| \
23057	 X"$as_dir" : 'X\(/\)' \| \
23058	 .     : '\(.\)' 2>/dev/null ||
23059echo X"$as_dir" |
23060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23061  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23062  	  /^X\(\/\/\)$/{ s//\1/; q; }
23063  	  /^X\(\/\).*/{ s//\1/; q; }
23064  	  s/.*/./; q'`
23065    done
23066    test ! -n "$as_dirs" || mkdir $as_dirs
23067  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23068echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23069   { (exit 1); exit 1; }; }; }
23070
23071  ac_builddir=.
23072
23073if test "$ac_dir" != .; then
23074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23075  # A "../" for each directory in $ac_dir_suffix.
23076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23077else
23078  ac_dir_suffix= ac_top_builddir=
23079fi
23080
23081case $srcdir in
23082  .)  # No --srcdir option.  We are building in place.
23083    ac_srcdir=.
23084    if test -z "$ac_top_builddir"; then
23085       ac_top_srcdir=.
23086    else
23087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23088    fi ;;
23089  [\\/]* | ?:[\\/]* )  # Absolute path.
23090    ac_srcdir=$srcdir$ac_dir_suffix;
23091    ac_top_srcdir=$srcdir ;;
23092  *) # Relative path.
23093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23095esac
23096
23097# Do not use `cd foo && pwd` to compute absolute paths, because
23098# the directories may not exist.
23099case `pwd` in
23100.) ac_abs_builddir="$ac_dir";;
23101*)
23102  case "$ac_dir" in
23103  .) ac_abs_builddir=`pwd`;;
23104  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23105  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23106  esac;;
23107esac
23108case $ac_abs_builddir in
23109.) ac_abs_top_builddir=${ac_top_builddir}.;;
23110*)
23111  case ${ac_top_builddir}. in
23112  .) ac_abs_top_builddir=$ac_abs_builddir;;
23113  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23114  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23115  esac;;
23116esac
23117case $ac_abs_builddir in
23118.) ac_abs_srcdir=$ac_srcdir;;
23119*)
23120  case $ac_srcdir in
23121  .) ac_abs_srcdir=$ac_abs_builddir;;
23122  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23123  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23124  esac;;
23125esac
23126case $ac_abs_builddir in
23127.) ac_abs_top_srcdir=$ac_top_srcdir;;
23128*)
23129  case $ac_top_srcdir in
23130  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23131  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23132  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23133  esac;;
23134esac
23135
23136
23137  case $INSTALL in
23138  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23139  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23140  esac
23141
23142  if test x"$ac_file" != x-; then
23143    { echo "$as_me:$LINENO: creating $ac_file" >&5
23144echo "$as_me: creating $ac_file" >&6;}
23145    rm -f "$ac_file"
23146  fi
23147  # Let's still pretend it is `configure' which instantiates (i.e., don't
23148  # use $as_me), people would be surprised to read:
23149  #    /* config.h.  Generated by config.status.  */
23150  if test x"$ac_file" = x-; then
23151    configure_input=
23152  else
23153    configure_input="$ac_file.  "
23154  fi
23155  configure_input=$configure_input"Generated from `echo $ac_file_in |
23156				     sed 's,.*/,,'` by configure."
23157
23158  # First look for the input files in the build tree, otherwise in the
23159  # src tree.
23160  ac_file_inputs=`IFS=:
23161    for f in $ac_file_in; do
23162      case $f in
23163      -) echo $tmp/stdin ;;
23164      [\\/$]*)
23165	 # Absolute (can't be DOS-style, as IFS=:)
23166	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23167echo "$as_me: error: cannot find input file: $f" >&2;}
23168   { (exit 1); exit 1; }; }
23169	 echo "$f";;
23170      *) # Relative
23171	 if test -f "$f"; then
23172	   # Build tree
23173	   echo "$f"
23174	 elif test -f "$srcdir/$f"; then
23175	   # Source tree
23176	   echo "$srcdir/$f"
23177	 else
23178	   # /dev/null tree
23179	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23180echo "$as_me: error: cannot find input file: $f" >&2;}
23181   { (exit 1); exit 1; }; }
23182	 fi;;
23183      esac
23184    done` || { (exit 1); exit 1; }
23185_ACEOF
23186cat >>$CONFIG_STATUS <<_ACEOF
23187  sed "$ac_vpsub
23188$extrasub
23189_ACEOF
23190cat >>$CONFIG_STATUS <<\_ACEOF
23191:t
23192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23193s,@configure_input@,$configure_input,;t t
23194s,@srcdir@,$ac_srcdir,;t t
23195s,@abs_srcdir@,$ac_abs_srcdir,;t t
23196s,@top_srcdir@,$ac_top_srcdir,;t t
23197s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23198s,@builddir@,$ac_builddir,;t t
23199s,@abs_builddir@,$ac_abs_builddir,;t t
23200s,@top_builddir@,$ac_top_builddir,;t t
23201s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23202s,@INSTALL@,$ac_INSTALL,;t t
23203" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23204  rm -f $tmp/stdin
23205  if test x"$ac_file" != x-; then
23206    mv $tmp/out $ac_file
23207  else
23208    cat $tmp/out
23209    rm -f $tmp/out
23210  fi
23211
23212done
23213_ACEOF
23214cat >>$CONFIG_STATUS <<\_ACEOF
23215
23216#
23217# CONFIG_COMMANDS section.
23218#
23219for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23220  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23221  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23222  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23223$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23224	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23225	 X"$ac_dest" : 'X\(//\)$' \| \
23226	 X"$ac_dest" : 'X\(/\)' \| \
23227	 .     : '\(.\)' 2>/dev/null ||
23228echo X"$ac_dest" |
23229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23230  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23231  	  /^X\(\/\/\)$/{ s//\1/; q; }
23232  	  /^X\(\/\).*/{ s//\1/; q; }
23233  	  s/.*/./; q'`
23234  { if $as_mkdir_p; then
23235    mkdir -p "$ac_dir"
23236  else
23237    as_dir="$ac_dir"
23238    as_dirs=
23239    while test ! -d "$as_dir"; do
23240      as_dirs="$as_dir $as_dirs"
23241      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23243	 X"$as_dir" : 'X\(//\)[^/]' \| \
23244	 X"$as_dir" : 'X\(//\)$' \| \
23245	 X"$as_dir" : 'X\(/\)' \| \
23246	 .     : '\(.\)' 2>/dev/null ||
23247echo X"$as_dir" |
23248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23249  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23250  	  /^X\(\/\/\)$/{ s//\1/; q; }
23251  	  /^X\(\/\).*/{ s//\1/; q; }
23252  	  s/.*/./; q'`
23253    done
23254    test ! -n "$as_dirs" || mkdir $as_dirs
23255  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23256echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23257   { (exit 1); exit 1; }; }; }
23258
23259  ac_builddir=.
23260
23261if test "$ac_dir" != .; then
23262  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23263  # A "../" for each directory in $ac_dir_suffix.
23264  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23265else
23266  ac_dir_suffix= ac_top_builddir=
23267fi
23268
23269case $srcdir in
23270  .)  # No --srcdir option.  We are building in place.
23271    ac_srcdir=.
23272    if test -z "$ac_top_builddir"; then
23273       ac_top_srcdir=.
23274    else
23275       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23276    fi ;;
23277  [\\/]* | ?:[\\/]* )  # Absolute path.
23278    ac_srcdir=$srcdir$ac_dir_suffix;
23279    ac_top_srcdir=$srcdir ;;
23280  *) # Relative path.
23281    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23282    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23283esac
23284
23285# Do not use `cd foo && pwd` to compute absolute paths, because
23286# the directories may not exist.
23287case `pwd` in
23288.) ac_abs_builddir="$ac_dir";;
23289*)
23290  case "$ac_dir" in
23291  .) ac_abs_builddir=`pwd`;;
23292  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23293  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23294  esac;;
23295esac
23296case $ac_abs_builddir in
23297.) ac_abs_top_builddir=${ac_top_builddir}.;;
23298*)
23299  case ${ac_top_builddir}. in
23300  .) ac_abs_top_builddir=$ac_abs_builddir;;
23301  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23302  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23303  esac;;
23304esac
23305case $ac_abs_builddir in
23306.) ac_abs_srcdir=$ac_srcdir;;
23307*)
23308  case $ac_srcdir in
23309  .) ac_abs_srcdir=$ac_abs_builddir;;
23310  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23311  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23312  esac;;
23313esac
23314case $ac_abs_builddir in
23315.) ac_abs_top_srcdir=$ac_top_srcdir;;
23316*)
23317  case $ac_top_srcdir in
23318  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23319  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23320  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23321  esac;;
23322esac
23323
23324
23325  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23326echo "$as_me: executing $ac_dest commands" >&6;}
23327  case $ac_dest in
23328    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23329  # Strip MF so we end up with the name of the file.
23330  mf=`echo "$mf" | sed -e 's/:.*$//'`
23331  # Check whether this is an Automake generated Makefile or not.
23332  # We used to match only the files named `Makefile.in', but
23333  # some people rename them; so instead we look at the file content.
23334  # Grep'ing the first line is not enough: some people post-process
23335  # each Makefile.in and add a new line on top of each file to say so.
23336  # So let's grep whole file.
23337  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23338    dirpart=`(dirname "$mf") 2>/dev/null ||
23339$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23340	 X"$mf" : 'X\(//\)[^/]' \| \
23341	 X"$mf" : 'X\(//\)$' \| \
23342	 X"$mf" : 'X\(/\)' \| \
23343	 .     : '\(.\)' 2>/dev/null ||
23344echo X"$mf" |
23345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23346  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23347  	  /^X\(\/\/\)$/{ s//\1/; q; }
23348  	  /^X\(\/\).*/{ s//\1/; q; }
23349  	  s/.*/./; q'`
23350  else
23351    continue
23352  fi
23353  # Extract the definition of DEPDIR, am__include, and am__quote
23354  # from the Makefile without running `make'.
23355  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23356  test -z "$DEPDIR" && continue
23357  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23358  test -z "am__include" && continue
23359  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23360  # When using ansi2knr, U may be empty or an underscore; expand it
23361  U=`sed -n 's/^U = //p' < "$mf"`
23362  # Find all dependency output files, they are included files with
23363  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23364  # simplest approach to changing $(DEPDIR) to its actual value in the
23365  # expansion.
23366  for file in `sed -n "
23367    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23368       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23369    # Make sure the directory exists.
23370    test -f "$dirpart/$file" && continue
23371    fdir=`(dirname "$file") 2>/dev/null ||
23372$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373	 X"$file" : 'X\(//\)[^/]' \| \
23374	 X"$file" : 'X\(//\)$' \| \
23375	 X"$file" : 'X\(/\)' \| \
23376	 .     : '\(.\)' 2>/dev/null ||
23377echo X"$file" |
23378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23379  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23380  	  /^X\(\/\/\)$/{ s//\1/; q; }
23381  	  /^X\(\/\).*/{ s//\1/; q; }
23382  	  s/.*/./; q'`
23383    { if $as_mkdir_p; then
23384    mkdir -p $dirpart/$fdir
23385  else
23386    as_dir=$dirpart/$fdir
23387    as_dirs=
23388    while test ! -d "$as_dir"; do
23389      as_dirs="$as_dir $as_dirs"
23390      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23392	 X"$as_dir" : 'X\(//\)[^/]' \| \
23393	 X"$as_dir" : 'X\(//\)$' \| \
23394	 X"$as_dir" : 'X\(/\)' \| \
23395	 .     : '\(.\)' 2>/dev/null ||
23396echo X"$as_dir" |
23397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23398  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23399  	  /^X\(\/\/\)$/{ s//\1/; q; }
23400  	  /^X\(\/\).*/{ s//\1/; q; }
23401  	  s/.*/./; q'`
23402    done
23403    test ! -n "$as_dirs" || mkdir $as_dirs
23404  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23405echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23406   { (exit 1); exit 1; }; }; }
23407
23408    # echo "creating $dirpart/$file"
23409    echo '# dummy' > "$dirpart/$file"
23410  done
23411done
23412 ;;
23413  esac
23414done
23415_ACEOF
23416
23417cat >>$CONFIG_STATUS <<\_ACEOF
23418
23419{ (exit 0); exit 0; }
23420_ACEOF
23421chmod +x $CONFIG_STATUS
23422ac_clean_files=$ac_clean_files_save
23423
23424
23425# configure is writing to config.log, and then calls config.status.
23426# config.status does its own redirection, appending to config.log.
23427# Unfortunately, on DOS this fails, as config.log is still kept open
23428# by configure, so config.status won't be able to write to it; its
23429# output is simply discarded.  So we exec the FD to /dev/null,
23430# effectively closing config.log, so it can be properly (re)opened and
23431# appended to by config.status.  When coming back to configure, we
23432# need to make the FD available again.
23433if test "$no_create" != yes; then
23434  ac_cs_success=:
23435  ac_config_status_args=
23436  test "$silent" = yes &&
23437    ac_config_status_args="$ac_config_status_args --quiet"
23438  exec 5>/dev/null
23439  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23440  exec 5>>config.log
23441  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23442  # would make configure fail if this is the last instruction.
23443  $ac_cs_success || { (exit 1); exit 1; }
23444fi
23445
23446#
23447# CONFIG_SUBDIRS section.
23448#
23449if test "$no_recursion" != yes; then
23450
23451  # Remove --cache-file and --srcdir arguments so they do not pile up.
23452  ac_sub_configure_args=
23453  ac_prev=
23454  for ac_arg in $ac_configure_args; do
23455    if test -n "$ac_prev"; then
23456      ac_prev=
23457      continue
23458    fi
23459    case $ac_arg in
23460    -cache-file | --cache-file | --cache-fil | --cache-fi \
23461    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23462      ac_prev=cache_file ;;
23463    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23464    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23465    | --c=*)
23466      ;;
23467    --config-cache | -C)
23468      ;;
23469    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23470      ac_prev=srcdir ;;
23471    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23472      ;;
23473    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23474      ac_prev=prefix ;;
23475    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23476      ;;
23477    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23478    esac
23479  done
23480
23481  # Always prepend --prefix to ensure using the same prefix
23482  # in subdir configurations.
23483  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23484
23485  ac_popdir=`pwd`
23486  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23487
23488    # Do not complain, so a configure script can configure whichever
23489    # parts of a large source tree are present.
23490    test -d $srcdir/$ac_dir || continue
23491
23492    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23493echo "$as_me: configuring in $ac_dir" >&6;}
23494    { if $as_mkdir_p; then
23495    mkdir -p "$ac_dir"
23496  else
23497    as_dir="$ac_dir"
23498    as_dirs=
23499    while test ! -d "$as_dir"; do
23500      as_dirs="$as_dir $as_dirs"
23501      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23503	 X"$as_dir" : 'X\(//\)[^/]' \| \
23504	 X"$as_dir" : 'X\(//\)$' \| \
23505	 X"$as_dir" : 'X\(/\)' \| \
23506	 .     : '\(.\)' 2>/dev/null ||
23507echo X"$as_dir" |
23508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23509  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23510  	  /^X\(\/\/\)$/{ s//\1/; q; }
23511  	  /^X\(\/\).*/{ s//\1/; q; }
23512  	  s/.*/./; q'`
23513    done
23514    test ! -n "$as_dirs" || mkdir $as_dirs
23515  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23516echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23517   { (exit 1); exit 1; }; }; }
23518
23519    ac_builddir=.
23520
23521if test "$ac_dir" != .; then
23522  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23523  # A "../" for each directory in $ac_dir_suffix.
23524  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23525else
23526  ac_dir_suffix= ac_top_builddir=
23527fi
23528
23529case $srcdir in
23530  .)  # No --srcdir option.  We are building in place.
23531    ac_srcdir=.
23532    if test -z "$ac_top_builddir"; then
23533       ac_top_srcdir=.
23534    else
23535       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23536    fi ;;
23537  [\\/]* | ?:[\\/]* )  # Absolute path.
23538    ac_srcdir=$srcdir$ac_dir_suffix;
23539    ac_top_srcdir=$srcdir ;;
23540  *) # Relative path.
23541    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23542    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23543esac
23544
23545# Do not use `cd foo && pwd` to compute absolute paths, because
23546# the directories may not exist.
23547case `pwd` in
23548.) ac_abs_builddir="$ac_dir";;
23549*)
23550  case "$ac_dir" in
23551  .) ac_abs_builddir=`pwd`;;
23552  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23553  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23554  esac;;
23555esac
23556case $ac_abs_builddir in
23557.) ac_abs_top_builddir=${ac_top_builddir}.;;
23558*)
23559  case ${ac_top_builddir}. in
23560  .) ac_abs_top_builddir=$ac_abs_builddir;;
23561  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23562  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23563  esac;;
23564esac
23565case $ac_abs_builddir in
23566.) ac_abs_srcdir=$ac_srcdir;;
23567*)
23568  case $ac_srcdir in
23569  .) ac_abs_srcdir=$ac_abs_builddir;;
23570  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23571  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23572  esac;;
23573esac
23574case $ac_abs_builddir in
23575.) ac_abs_top_srcdir=$ac_top_srcdir;;
23576*)
23577  case $ac_top_srcdir in
23578  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23579  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23580  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23581  esac;;
23582esac
23583
23584
23585    cd $ac_dir
23586
23587    # Check for guested configure; otherwise get Cygnus style configure.
23588    if test -f $ac_srcdir/configure.gnu; then
23589      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23590    elif test -f $ac_srcdir/configure; then
23591      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23592    elif test -f $ac_srcdir/configure.in; then
23593      ac_sub_configure=$ac_configure
23594    else
23595      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23596echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23597      ac_sub_configure=
23598    fi
23599
23600    # The recursion is here.
23601    if test -n "$ac_sub_configure"; then
23602      # Make the cache file name correct relative to the subdirectory.
23603      case $cache_file in
23604      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23605      *) # Relative path.
23606	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23607      esac
23608
23609      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23610echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23611      # The eval makes quoting arguments work.
23612      eval $ac_sub_configure $ac_sub_configure_args \
23613	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23614	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23615echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23616   { (exit 1); exit 1; }; }
23617    fi
23618
23619    cd $ac_popdir
23620  done
23621fi
23622
23623
23624  if test x"$coin_vpath_link_files" = x; then : ; else
23625    lnkcmd="$coin_link_input_cmd"
23626    if test "$lnkcmd" = cp; then
23627      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23628echo "$as_me: Copying data files for VPATH configuration" >&6;}
23629    else
23630      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23631echo "$as_me: Creating VPATH links for data files" >&6;}
23632    fi
23633    for file in $coin_vpath_link_files; do
23634      dir=`(dirname "./$file") 2>/dev/null ||
23635$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23636	 X"./$file" : 'X\(//\)[^/]' \| \
23637	 X"./$file" : 'X\(//\)$' \| \
23638	 X"./$file" : 'X\(/\)' \| \
23639	 .     : '\(.\)' 2>/dev/null ||
23640echo X"./$file" |
23641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23642  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23643  	  /^X\(\/\/\)$/{ s//\1/; q; }
23644  	  /^X\(\/\).*/{ s//\1/; q; }
23645  	  s/.*/./; q'`
23646      if test -d $dir; then : ; else
23647        { if $as_mkdir_p; then
23648    mkdir -p $dir
23649  else
23650    as_dir=$dir
23651    as_dirs=
23652    while test ! -d "$as_dir"; do
23653      as_dirs="$as_dir $as_dirs"
23654      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656	 X"$as_dir" : 'X\(//\)[^/]' \| \
23657	 X"$as_dir" : 'X\(//\)$' \| \
23658	 X"$as_dir" : 'X\(/\)' \| \
23659	 .     : '\(.\)' 2>/dev/null ||
23660echo X"$as_dir" |
23661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23662  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23663  	  /^X\(\/\/\)$/{ s//\1/; q; }
23664  	  /^X\(\/\).*/{ s//\1/; q; }
23665  	  s/.*/./; q'`
23666    done
23667    test ! -n "$as_dirs" || mkdir $as_dirs
23668  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23669echo "$as_me: error: cannot create directory $dir" >&2;}
23670   { (exit 1); exit 1; }; }; }
23671
23672      fi
23673      rm -f $file
23674      $lnkcmd $abs_source_dir/$file $file
23675    done
23676  fi
23677
23678  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23679echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23680  if test x$coin_projectdir = xyes; then
23681    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23682echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23683  else
23684    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23685echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23686  fi
23687else
23688  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23689echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23690fi
23691
23692
23693