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 FlopCpp trunk.
5#
6# Report bugs to <flopcpp@list.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 FlopC++ which is distributed
16# under the Common 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='FlopCpp'
432PACKAGE_TARNAME='flopcpp'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='FlopCpp trunk'
435PACKAGE_BUGREPORT='flopcpp@list.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 CoinUtils"
477ac_subdirs_all="$ac_subdirs_all Osi"
478ac_subdirs_all="$ac_subdirs_all Clp"
479ac_subdirs_all="$ac_subdirs_all Cgl"
480ac_subdirs_all="$ac_subdirs_all Cbc"
481ac_subdirs_all="$ac_subdirs_all FlopCpp"
482ac_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 RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
483ac_subst_files=''
484
485# Initialize some variables set by options.
486ac_init_help=
487ac_init_version=false
488# The variables have the same names as the options, with
489# dashes changed to underlines.
490cache_file=/dev/null
491exec_prefix=NONE
492no_create=
493no_recursion=
494prefix=NONE
495program_prefix=NONE
496program_suffix=NONE
497program_transform_name=s,x,x,
498silent=
499site=
500srcdir=
501verbose=
502x_includes=NONE
503x_libraries=NONE
504
505# Installation directory options.
506# These are left unexpanded so users can "make install exec_prefix=/foo"
507# and all the variables that are supposed to be based on exec_prefix
508# by default will actually change.
509# Use braces instead of parens because sh, perl, etc. also accept them.
510bindir='${exec_prefix}/bin'
511sbindir='${exec_prefix}/sbin'
512libexecdir='${exec_prefix}/libexec'
513datadir='${prefix}/share'
514sysconfdir='${prefix}/etc'
515sharedstatedir='${prefix}/com'
516localstatedir='${prefix}/var'
517libdir='${exec_prefix}/lib'
518includedir='${prefix}/include'
519oldincludedir='/usr/include'
520infodir='${prefix}/info'
521mandir='${prefix}/man'
522
523ac_prev=
524for ac_option
525do
526  # If the previous option needs an argument, assign it.
527  if test -n "$ac_prev"; then
528    eval "$ac_prev=\$ac_option"
529    ac_prev=
530    continue
531  fi
532
533  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
534
535  # Accept the important Cygnus configure options, so we can diagnose typos.
536
537  case $ac_option in
538
539  -bindir | --bindir | --bindi | --bind | --bin | --bi)
540    ac_prev=bindir ;;
541  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542    bindir=$ac_optarg ;;
543
544  -build | --build | --buil | --bui | --bu)
545    ac_prev=build_alias ;;
546  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
547    build_alias=$ac_optarg ;;
548
549  -cache-file | --cache-file | --cache-fil | --cache-fi \
550  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
551    ac_prev=cache_file ;;
552  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
553  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
554    cache_file=$ac_optarg ;;
555
556  --config-cache | -C)
557    cache_file=config.cache ;;
558
559  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
560    ac_prev=datadir ;;
561  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
562  | --da=*)
563    datadir=$ac_optarg ;;
564
565  -disable-* | --disable-*)
566    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
567    # Reject names that are not valid shell variable names.
568    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570   { (exit 1); exit 1; }; }
571    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572    eval "enable_$ac_feature=no" ;;
573
574  -enable-* | --enable-*)
575    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
576    # Reject names that are not valid shell variable names.
577    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
579   { (exit 1); exit 1; }; }
580    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
581    case $ac_option in
582      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583      *) ac_optarg=yes ;;
584    esac
585    eval "enable_$ac_feature='$ac_optarg'" ;;
586
587  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
588  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
589  | --exec | --exe | --ex)
590    ac_prev=exec_prefix ;;
591  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
592  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
593  | --exec=* | --exe=* | --ex=*)
594    exec_prefix=$ac_optarg ;;
595
596  -gas | --gas | --ga | --g)
597    # Obsolete; use --with-gas.
598    with_gas=yes ;;
599
600  -help | --help | --hel | --he | -h)
601    ac_init_help=long ;;
602  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
603    ac_init_help=recursive ;;
604  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
605    ac_init_help=short ;;
606
607  -host | --host | --hos | --ho)
608    ac_prev=host_alias ;;
609  -host=* | --host=* | --hos=* | --ho=*)
610    host_alias=$ac_optarg ;;
611
612  -includedir | --includedir | --includedi | --included | --include \
613  | --includ | --inclu | --incl | --inc)
614    ac_prev=includedir ;;
615  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
616  | --includ=* | --inclu=* | --incl=* | --inc=*)
617    includedir=$ac_optarg ;;
618
619  -infodir | --infodir | --infodi | --infod | --info | --inf)
620    ac_prev=infodir ;;
621  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
622    infodir=$ac_optarg ;;
623
624  -libdir | --libdir | --libdi | --libd)
625    ac_prev=libdir ;;
626  -libdir=* | --libdir=* | --libdi=* | --libd=*)
627    libdir=$ac_optarg ;;
628
629  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
630  | --libexe | --libex | --libe)
631    ac_prev=libexecdir ;;
632  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
633  | --libexe=* | --libex=* | --libe=*)
634    libexecdir=$ac_optarg ;;
635
636  -localstatedir | --localstatedir | --localstatedi | --localstated \
637  | --localstate | --localstat | --localsta | --localst \
638  | --locals | --local | --loca | --loc | --lo)
639    ac_prev=localstatedir ;;
640  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
641  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
642  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
643    localstatedir=$ac_optarg ;;
644
645  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
646    ac_prev=mandir ;;
647  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648    mandir=$ac_optarg ;;
649
650  -nfp | --nfp | --nf)
651    # Obsolete; use --without-fp.
652    with_fp=no ;;
653
654  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
655  | --no-cr | --no-c | -n)
656    no_create=yes ;;
657
658  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
659  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660    no_recursion=yes ;;
661
662  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
663  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
664  | --oldin | --oldi | --old | --ol | --o)
665    ac_prev=oldincludedir ;;
666  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
667  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
668  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
669    oldincludedir=$ac_optarg ;;
670
671  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
672    ac_prev=prefix ;;
673  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674    prefix=$ac_optarg ;;
675
676  -program-prefix | --program-prefix | --program-prefi | --program-pref \
677  | --program-pre | --program-pr | --program-p)
678    ac_prev=program_prefix ;;
679  -program-prefix=* | --program-prefix=* | --program-prefi=* \
680  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
681    program_prefix=$ac_optarg ;;
682
683  -program-suffix | --program-suffix | --program-suffi | --program-suff \
684  | --program-suf | --program-su | --program-s)
685    ac_prev=program_suffix ;;
686  -program-suffix=* | --program-suffix=* | --program-suffi=* \
687  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
688    program_suffix=$ac_optarg ;;
689
690  -program-transform-name | --program-transform-name \
691  | --program-transform-nam | --program-transform-na \
692  | --program-transform-n | --program-transform- \
693  | --program-transform | --program-transfor \
694  | --program-transfo | --program-transf \
695  | --program-trans | --program-tran \
696  | --progr-tra | --program-tr | --program-t)
697    ac_prev=program_transform_name ;;
698  -program-transform-name=* | --program-transform-name=* \
699  | --program-transform-nam=* | --program-transform-na=* \
700  | --program-transform-n=* | --program-transform-=* \
701  | --program-transform=* | --program-transfor=* \
702  | --program-transfo=* | --program-transf=* \
703  | --program-trans=* | --program-tran=* \
704  | --progr-tra=* | --program-tr=* | --program-t=*)
705    program_transform_name=$ac_optarg ;;
706
707  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
708  | -silent | --silent | --silen | --sile | --sil)
709    silent=yes ;;
710
711  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712    ac_prev=sbindir ;;
713  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714  | --sbi=* | --sb=*)
715    sbindir=$ac_optarg ;;
716
717  -sharedstatedir | --sharedstatedir | --sharedstatedi \
718  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
719  | --sharedst | --shareds | --shared | --share | --shar \
720  | --sha | --sh)
721    ac_prev=sharedstatedir ;;
722  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
723  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
724  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725  | --sha=* | --sh=*)
726    sharedstatedir=$ac_optarg ;;
727
728  -site | --site | --sit)
729    ac_prev=site ;;
730  -site=* | --site=* | --sit=*)
731    site=$ac_optarg ;;
732
733  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734    ac_prev=srcdir ;;
735  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736    srcdir=$ac_optarg ;;
737
738  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
739  | --syscon | --sysco | --sysc | --sys | --sy)
740    ac_prev=sysconfdir ;;
741  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
742  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
743    sysconfdir=$ac_optarg ;;
744
745  -target | --target | --targe | --targ | --tar | --ta | --t)
746    ac_prev=target_alias ;;
747  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
748    target_alias=$ac_optarg ;;
749
750  -v | -verbose | --verbose | --verbos | --verbo | --verb)
751    verbose=yes ;;
752
753  -version | --version | --versio | --versi | --vers | -V)
754    ac_init_version=: ;;
755
756  -with-* | --with-*)
757    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package| sed 's/-/_/g'`
763    case $ac_option in
764      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765      *) ac_optarg=yes ;;
766    esac
767    eval "with_$ac_package='$ac_optarg'" ;;
768
769  -without-* | --without-*)
770    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
771    # Reject names that are not valid shell variable names.
772    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
773      { echo "$as_me: error: invalid package name: $ac_package" >&2
774   { (exit 1); exit 1; }; }
775    ac_package=`echo $ac_package | sed 's/-/_/g'`
776    eval "with_$ac_package=no" ;;
777
778  --x)
779    # Obsolete; use --with-x.
780    with_x=yes ;;
781
782  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
783  | --x-incl | --x-inc | --x-in | --x-i)
784    ac_prev=x_includes ;;
785  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
786  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
787    x_includes=$ac_optarg ;;
788
789  -x-libraries | --x-libraries | --x-librarie | --x-librari \
790  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
791    ac_prev=x_libraries ;;
792  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
793  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
794    x_libraries=$ac_optarg ;;
795
796  -*) { echo "$as_me: error: unrecognized option: $ac_option
797Try \`$0 --help' for more information." >&2
798   { (exit 1); exit 1; }; }
799    ;;
800
801  *=*)
802    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
803    # Reject names that are not valid shell variable names.
804    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
805      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
806   { (exit 1); exit 1; }; }
807    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
808    eval "$ac_envvar='$ac_optarg'"
809    export $ac_envvar ;;
810
811  *)
812    # FIXME: should be removed in autoconf 3.0.
813    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
814    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
816    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817    ;;
818
819  esac
820done
821
822if test -n "$ac_prev"; then
823  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
824  { echo "$as_me: error: missing argument to $ac_option" >&2
825   { (exit 1); exit 1; }; }
826fi
827
828# Be sure to have absolute paths.
829for ac_var in exec_prefix prefix
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# Be sure to have absolute paths.
840for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
841	      localstatedir libdir includedir oldincludedir infodir mandir
842do
843  eval ac_val=$`echo $ac_var`
844  case $ac_val in
845    [\\/$]* | ?:[\\/]* ) ;;
846    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
847   { (exit 1); exit 1; }; };;
848  esac
849done
850
851# There might be people who depend on the old broken behavior: `$host'
852# used to hold the argument of --host etc.
853# FIXME: To remove some day.
854build=$build_alias
855host=$host_alias
856target=$target_alias
857
858# FIXME: To remove some day.
859if test "x$host_alias" != x; then
860  if test "x$build_alias" = x; then
861    cross_compiling=maybe
862    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
863    If a cross compiler is detected then cross compile mode will be used." >&2
864  elif test "x$build_alias" != "x$host_alias"; then
865    cross_compiling=yes
866  fi
867fi
868
869ac_tool_prefix=
870test -n "$host_alias" && ac_tool_prefix=$host_alias-
871
872test "$silent" = yes && exec 6>/dev/null
873
874
875# Find the source files, if location was not specified.
876if test -z "$srcdir"; then
877  ac_srcdir_defaulted=yes
878  # Try the directory containing this script, then its parent.
879  ac_confdir=`(dirname "$0") 2>/dev/null ||
880$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
881	 X"$0" : 'X\(//\)[^/]' \| \
882	 X"$0" : 'X\(//\)$' \| \
883	 X"$0" : 'X\(/\)' \| \
884	 .     : '\(.\)' 2>/dev/null ||
885echo X"$0" |
886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
887  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
888  	  /^X\(\/\/\)$/{ s//\1/; q; }
889  	  /^X\(\/\).*/{ s//\1/; q; }
890  	  s/.*/./; q'`
891  srcdir=$ac_confdir
892  if test ! -r $srcdir/$ac_unique_file; then
893    srcdir=..
894  fi
895else
896  ac_srcdir_defaulted=no
897fi
898if test ! -r $srcdir/$ac_unique_file; then
899  if test "$ac_srcdir_defaulted" = yes; then
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
901   { (exit 1); exit 1; }; }
902  else
903    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
904   { (exit 1); exit 1; }; }
905  fi
906fi
907(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
908  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
909   { (exit 1); exit 1; }; }
910srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
911ac_env_build_alias_set=${build_alias+set}
912ac_env_build_alias_value=$build_alias
913ac_cv_env_build_alias_set=${build_alias+set}
914ac_cv_env_build_alias_value=$build_alias
915ac_env_host_alias_set=${host_alias+set}
916ac_env_host_alias_value=$host_alias
917ac_cv_env_host_alias_set=${host_alias+set}
918ac_cv_env_host_alias_value=$host_alias
919ac_env_target_alias_set=${target_alias+set}
920ac_env_target_alias_value=$target_alias
921ac_cv_env_target_alias_set=${target_alias+set}
922ac_cv_env_target_alias_value=$target_alias
923ac_env_CDEFS_set=${CDEFS+set}
924ac_env_CDEFS_value=$CDEFS
925ac_cv_env_CDEFS_set=${CDEFS+set}
926ac_cv_env_CDEFS_value=$CDEFS
927ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
929ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
930ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
931ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
933ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
934ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
935ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
937ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
938ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
939ac_env_CC_set=${CC+set}
940ac_env_CC_value=$CC
941ac_cv_env_CC_set=${CC+set}
942ac_cv_env_CC_value=$CC
943ac_env_CFLAGS_set=${CFLAGS+set}
944ac_env_CFLAGS_value=$CFLAGS
945ac_cv_env_CFLAGS_set=${CFLAGS+set}
946ac_cv_env_CFLAGS_value=$CFLAGS
947ac_env_LDFLAGS_set=${LDFLAGS+set}
948ac_env_LDFLAGS_value=$LDFLAGS
949ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
950ac_cv_env_LDFLAGS_value=$LDFLAGS
951ac_env_CPPFLAGS_set=${CPPFLAGS+set}
952ac_env_CPPFLAGS_value=$CPPFLAGS
953ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
954ac_cv_env_CPPFLAGS_value=$CPPFLAGS
955ac_env_MPICC_set=${MPICC+set}
956ac_env_MPICC_value=$MPICC
957ac_cv_env_MPICC_set=${MPICC+set}
958ac_cv_env_MPICC_value=$MPICC
959ac_env_CXXDEFS_set=${CXXDEFS+set}
960ac_env_CXXDEFS_value=$CXXDEFS
961ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
962ac_cv_env_CXXDEFS_value=$CXXDEFS
963ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
966ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
967ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
970ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
971ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
974ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
975ac_env_CXX_set=${CXX+set}
976ac_env_CXX_value=$CXX
977ac_cv_env_CXX_set=${CXX+set}
978ac_cv_env_CXX_value=$CXX
979ac_env_CXXFLAGS_set=${CXXFLAGS+set}
980ac_env_CXXFLAGS_value=$CXXFLAGS
981ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
982ac_cv_env_CXXFLAGS_value=$CXXFLAGS
983ac_env_MPICXX_set=${MPICXX+set}
984ac_env_MPICXX_value=$MPICXX
985ac_cv_env_MPICXX_set=${MPICXX+set}
986ac_cv_env_MPICXX_value=$MPICXX
987ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
989ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
990ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
991ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
993ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
994ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
995ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
997ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
998ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
999ac_env_F77_set=${F77+set}
1000ac_env_F77_value=$F77
1001ac_cv_env_F77_set=${F77+set}
1002ac_cv_env_F77_value=$F77
1003ac_env_FFLAGS_set=${FFLAGS+set}
1004ac_env_FFLAGS_value=$FFLAGS
1005ac_cv_env_FFLAGS_set=${FFLAGS+set}
1006ac_cv_env_FFLAGS_value=$FFLAGS
1007ac_env_MPIF77_set=${MPIF77+set}
1008ac_env_MPIF77_value=$MPIF77
1009ac_cv_env_MPIF77_set=${MPIF77+set}
1010ac_cv_env_MPIF77_value=$MPIF77
1011ac_env_CPP_set=${CPP+set}
1012ac_env_CPP_value=$CPP
1013ac_cv_env_CPP_set=${CPP+set}
1014ac_cv_env_CPP_value=$CPP
1015ac_env_CXXCPP_set=${CXXCPP+set}
1016ac_env_CXXCPP_value=$CXXCPP
1017ac_cv_env_CXXCPP_set=${CXXCPP+set}
1018ac_cv_env_CXXCPP_value=$CXXCPP
1019ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1020ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1021ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1022ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1023
1024#
1025# Report the --help message.
1026#
1027if test "$ac_init_help" = "long"; then
1028  # Omit some internal or obsolete options to make the list less imposing.
1029  # This message is too long to be a string in the A/UX 3.1 sh.
1030  cat <<_ACEOF
1031\`configure' configures FlopCpp trunk to adapt to many kinds of systems.
1032
1033Usage: $0 [OPTION]... [VAR=VALUE]...
1034
1035To assign environment variables (e.g., CC, CFLAGS...), specify them as
1036VAR=VALUE.  See below for descriptions of some of the useful variables.
1037
1038Defaults for the options are specified in brackets.
1039
1040Configuration:
1041  -h, --help              display this help and exit
1042      --help=short        display options specific to this package
1043      --help=recursive    display the short help of all the included packages
1044  -V, --version           display version information and exit
1045  -q, --quiet, --silent   do not print \`checking...' messages
1046      --cache-file=FILE   cache test results in FILE [disabled]
1047  -C, --config-cache      alias for \`--cache-file=config.cache'
1048  -n, --no-create         do not create output files
1049      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1050
1051_ACEOF
1052
1053  cat <<_ACEOF
1054Installation directories:
1055  --prefix=PREFIX         install architecture-independent files in PREFIX
1056			  [$ac_default_prefix]
1057  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1058			  [PREFIX]
1059
1060By default, \`make install' will install all the files in
1061\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1062an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1063for instance \`--prefix=\$HOME'.
1064
1065For better control, use the options below.
1066
1067Fine tuning of the installation directories:
1068  --bindir=DIR           user executables [EPREFIX/bin]
1069  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1070  --libexecdir=DIR       program executables [EPREFIX/libexec]
1071  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1072  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1073  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1074  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1075  --libdir=DIR           object code libraries [EPREFIX/lib]
1076  --includedir=DIR       C header files [PREFIX/include]
1077  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1078  --infodir=DIR          info documentation [PREFIX/info]
1079  --mandir=DIR           man documentation [PREFIX/man]
1080_ACEOF
1081
1082  cat <<\_ACEOF
1083
1084Program names:
1085  --program-prefix=PREFIX            prepend PREFIX to installed program names
1086  --program-suffix=SUFFIX            append SUFFIX to installed program names
1087  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1088
1089System types:
1090  --build=BUILD     configure for building on BUILD [guessed]
1091  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1092_ACEOF
1093fi
1094
1095if test -n "$ac_init_help"; then
1096  case $ac_init_help in
1097     short | recursive ) echo "Configuration of FlopCpp trunk:";;
1098   esac
1099  cat <<\_ACEOF
1100
1101Optional Features:
1102  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1103  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1104  --enable-debug          compile all projects with debug options tests
1105                          (implies --disable-shared)
1106
1107  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1108  --enable-static[=PKGS]
1109                          build static libraries [default=no]
1110  --disable-dependency-tracking  speeds up one-time build
1111  --enable-dependency-tracking   do not reject slow dependency extractors
1112  --enable-maintainer-mode  enable make rules and dependencies not useful
1113			  (and sometimes confusing) to the casual installer
1114  --enable-shared[=PKGS]
1115                          build shared libraries [default=yes]
1116  --enable-fast-install[=PKGS]
1117                          optimize for fast installation [default=yes]
1118  --disable-libtool-lock  avoid locking (might break parallel builds)
1119  --disable-dependency-linking
1120                          disable linking library dependencies into shared
1121                          libraries
1122
1123Optional Packages:
1124  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1125  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1126  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1127  --with-pic              try to use only PIC/non-PIC objects [default=use
1128                          both]
1129  --with-tags[=TAGS]
1130                          include additional configurations [automatic]
1131
1132  --with-coinutils-lib linker flags for using project CoinUtils
1133  --with-coinutils-incdir directory with header files for using project
1134                          CoinUtils
1135  --with-coinutils-datadir
1136                          directory with data files for using project
1137                          CoinUtils
1138  --with-osi-lib linker flags for using project Osi
1139  --with-osi-incdir directory with header files for using project Osi
1140  --with-osi-datadir directory with data files for using project Osi
1141  --with-clp-lib linker flags for using project Clp
1142  --with-clp-incdir directory with header files for using project Clp
1143  --with-clp-datadir directory with data files for using project Clp
1144  --with-cgl-lib linker flags for using project Cgl
1145  --with-cgl-incdir directory with header files for using project Cgl
1146  --with-cgl-datadir directory with data files for using project Cgl
1147  --with-cbc-lib linker flags for using project Cbc
1148  --with-cbc-incdir directory with header files for using project Cbc
1149  --with-cbc-datadir directory with data files for using project Cbc
1150  --with-flopcpp-lib linker flags for using project FlopCpp
1151  --with-flopcpp-incdir directory with header files for using project FlopCpp
1152  --with-flopcpp-datadir directory with data files for using project FlopCpp
1153
1154Some influential environment variables:
1155  CDEFS       Additional -D flags to be used when compiling C code.
1156  ADD_CFLAGS  Additional C compiler options
1157  DBG_CFLAGS  Debug C compiler options
1158  OPT_CFLAGS  Optimize C compiler options
1159  CC          C compiler command
1160  CFLAGS      C compiler flags
1161  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1162              nonstandard directory <lib dir>
1163  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1164              headers in a nonstandard directory <include dir>
1165  MPICC       C MPI Compiler
1166  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1167  ADD_CXXFLAGS
1168              Additional C++ compiler options
1169  DBG_CXXFLAGS
1170              Debug C++ compiler options
1171  OPT_CXXFLAGS
1172              Optimize C++ compiler options
1173  CXX         C++ compiler command
1174  CXXFLAGS    C++ compiler flags
1175  MPICXX      C++ MPI Compiler
1176  ADD_FFLAGS  Additional Fortran compiler options
1177  DBG_FFLAGS  Debug Fortran compiler options
1178  OPT_FFLAGS  Optimize Fortran compiler options
1179  F77         Fortran 77 compiler command
1180  FFLAGS      Fortran 77 compiler flags
1181  MPIF77      Fortran MPI Compiler
1182  CPP         C preprocessor
1183  CXXCPP      C++ preprocessor
1184  COIN_SKIP_PROJECTS
1185              Set to the subdirectories of projects that should be skipped in
1186              the configuration
1187
1188Use these variables to override the choices made by `configure' or to help
1189it to find libraries and programs with nonstandard names/locations.
1190
1191Report bugs to <flopcpp@list.coin-or.org>.
1192_ACEOF
1193fi
1194
1195if test "$ac_init_help" = "recursive"; then
1196  # If there are subdirs, report their specific --help.
1197  ac_popdir=`pwd`
1198  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1199    test -d $ac_dir || continue
1200    ac_builddir=.
1201
1202if test "$ac_dir" != .; then
1203  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1204  # A "../" for each directory in $ac_dir_suffix.
1205  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1206else
1207  ac_dir_suffix= ac_top_builddir=
1208fi
1209
1210case $srcdir in
1211  .)  # No --srcdir option.  We are building in place.
1212    ac_srcdir=.
1213    if test -z "$ac_top_builddir"; then
1214       ac_top_srcdir=.
1215    else
1216       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1217    fi ;;
1218  [\\/]* | ?:[\\/]* )  # Absolute path.
1219    ac_srcdir=$srcdir$ac_dir_suffix;
1220    ac_top_srcdir=$srcdir ;;
1221  *) # Relative path.
1222    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1223    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1224esac
1225
1226# Do not use `cd foo && pwd` to compute absolute paths, because
1227# the directories may not exist.
1228case `pwd` in
1229.) ac_abs_builddir="$ac_dir";;
1230*)
1231  case "$ac_dir" in
1232  .) ac_abs_builddir=`pwd`;;
1233  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1234  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1235  esac;;
1236esac
1237case $ac_abs_builddir in
1238.) ac_abs_top_builddir=${ac_top_builddir}.;;
1239*)
1240  case ${ac_top_builddir}. in
1241  .) ac_abs_top_builddir=$ac_abs_builddir;;
1242  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1243  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1244  esac;;
1245esac
1246case $ac_abs_builddir in
1247.) ac_abs_srcdir=$ac_srcdir;;
1248*)
1249  case $ac_srcdir in
1250  .) ac_abs_srcdir=$ac_abs_builddir;;
1251  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1252  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1253  esac;;
1254esac
1255case $ac_abs_builddir in
1256.) ac_abs_top_srcdir=$ac_top_srcdir;;
1257*)
1258  case $ac_top_srcdir in
1259  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1260  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1261  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1262  esac;;
1263esac
1264
1265    cd $ac_dir
1266    # Check for guested configure; otherwise get Cygnus style configure.
1267    if test -f $ac_srcdir/configure.gnu; then
1268      echo
1269      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1270    elif test -f $ac_srcdir/configure; then
1271      echo
1272      $SHELL $ac_srcdir/configure  --help=recursive
1273    elif test -f $ac_srcdir/configure.ac ||
1274	   test -f $ac_srcdir/configure.in; then
1275      echo
1276      $ac_configure --help
1277    else
1278      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1279    fi
1280    cd $ac_popdir
1281  done
1282fi
1283
1284test -n "$ac_init_help" && exit 0
1285if $ac_init_version; then
1286  cat <<\_ACEOF
1287FlopCpp configure trunk
1288generated by GNU Autoconf 2.59
1289
1290Copyright (C) 2003 Free Software Foundation, Inc.
1291This configure script is free software; the Free Software Foundation
1292gives unlimited permission to copy, distribute and modify it.
1293
1294
1295Copyright 2006 International Business Machines and others.
1296All Rights Reserved.
1297This file is part of the open source package FlopC++ which is distributed
1298under the Common Public License.
1299_ACEOF
1300  exit 0
1301fi
1302exec 5>config.log
1303cat >&5 <<_ACEOF
1304This file contains any messages produced by compilers while
1305running configure, to aid debugging if configure makes a mistake.
1306
1307It was created by FlopCpp $as_me trunk, which was
1308generated by GNU Autoconf 2.59.  Invocation command line was
1309
1310  $ $0 $@
1311
1312_ACEOF
1313{
1314cat <<_ASUNAME
1315## --------- ##
1316## Platform. ##
1317## --------- ##
1318
1319hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1320uname -m = `(uname -m) 2>/dev/null || echo unknown`
1321uname -r = `(uname -r) 2>/dev/null || echo unknown`
1322uname -s = `(uname -s) 2>/dev/null || echo unknown`
1323uname -v = `(uname -v) 2>/dev/null || echo unknown`
1324
1325/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1326/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1327
1328/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1329/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1330/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1331hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1332/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1333/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1334/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1335
1336_ASUNAME
1337
1338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339for as_dir in $PATH
1340do
1341  IFS=$as_save_IFS
1342  test -z "$as_dir" && as_dir=.
1343  echo "PATH: $as_dir"
1344done
1345
1346} >&5
1347
1348cat >&5 <<_ACEOF
1349
1350
1351## ----------- ##
1352## Core tests. ##
1353## ----------- ##
1354
1355_ACEOF
1356
1357
1358# Keep a trace of the command line.
1359# Strip out --no-create and --no-recursion so they do not pile up.
1360# Strip out --silent because we don't want to record it for future runs.
1361# Also quote any args containing shell meta-characters.
1362# Make two passes to allow for proper duplicate-argument suppression.
1363ac_configure_args=
1364ac_configure_args0=
1365ac_configure_args1=
1366ac_sep=
1367ac_must_keep_next=false
1368for ac_pass in 1 2
1369do
1370  for ac_arg
1371  do
1372    case $ac_arg in
1373    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1374    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1375    | -silent | --silent | --silen | --sile | --sil)
1376      continue ;;
1377    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1378      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1379    esac
1380    case $ac_pass in
1381    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1382    2)
1383      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1384      if test $ac_must_keep_next = true; then
1385	ac_must_keep_next=false # Got value, back to normal.
1386      else
1387	case $ac_arg in
1388	  *=* | --config-cache | -C | -disable-* | --disable-* \
1389	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1390	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1391	  | -with-* | --with-* | -without-* | --without-* | --x)
1392	    case "$ac_configure_args0 " in
1393	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1394	    esac
1395	    ;;
1396	  -* ) ac_must_keep_next=true ;;
1397	esac
1398      fi
1399      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1400      # Get rid of the leading space.
1401      ac_sep=" "
1402      ;;
1403    esac
1404  done
1405done
1406$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1407$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1408
1409# When interrupted or exit'd, cleanup temporary files, and complete
1410# config.log.  We remove comments because anyway the quotes in there
1411# would cause problems or look ugly.
1412# WARNING: Be sure not to use single quotes in there, as some shells,
1413# such as our DU 5.0 friend, will then `close' the trap.
1414trap 'exit_status=$?
1415  # Save into config.log some information that might help in debugging.
1416  {
1417    echo
1418
1419    cat <<\_ASBOX
1420## ---------------- ##
1421## Cache variables. ##
1422## ---------------- ##
1423_ASBOX
1424    echo
1425    # The following way of writing the cache mishandles newlines in values,
1426{
1427  (set) 2>&1 |
1428    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1429    *ac_space=\ *)
1430      sed -n \
1431	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1432	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1433      ;;
1434    *)
1435      sed -n \
1436	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1437      ;;
1438    esac;
1439}
1440    echo
1441
1442    cat <<\_ASBOX
1443## ----------------- ##
1444## Output variables. ##
1445## ----------------- ##
1446_ASBOX
1447    echo
1448    for ac_var in $ac_subst_vars
1449    do
1450      eval ac_val=$`echo $ac_var`
1451      echo "$ac_var='"'"'$ac_val'"'"'"
1452    done | sort
1453    echo
1454
1455    if test -n "$ac_subst_files"; then
1456      cat <<\_ASBOX
1457## ------------- ##
1458## Output files. ##
1459## ------------- ##
1460_ASBOX
1461      echo
1462      for ac_var in $ac_subst_files
1463      do
1464	eval ac_val=$`echo $ac_var`
1465	echo "$ac_var='"'"'$ac_val'"'"'"
1466      done | sort
1467      echo
1468    fi
1469
1470    if test -s confdefs.h; then
1471      cat <<\_ASBOX
1472## ----------- ##
1473## confdefs.h. ##
1474## ----------- ##
1475_ASBOX
1476      echo
1477      sed "/^$/d" confdefs.h | sort
1478      echo
1479    fi
1480    test "$ac_signal" != 0 &&
1481      echo "$as_me: caught signal $ac_signal"
1482    echo "$as_me: exit $exit_status"
1483  } >&5
1484  rm -f core *.core &&
1485  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1486    exit $exit_status
1487     ' 0
1488for ac_signal in 1 2 13 15; do
1489  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1490done
1491ac_signal=0
1492
1493# confdefs.h avoids OS command line length limits that DEFS can exceed.
1494rm -rf conftest* confdefs.h
1495# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1496echo >confdefs.h
1497
1498# Predefined preprocessor variables.
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_NAME "$PACKAGE_NAME"
1502_ACEOF
1503
1504
1505cat >>confdefs.h <<_ACEOF
1506#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1507_ACEOF
1508
1509
1510cat >>confdefs.h <<_ACEOF
1511#define PACKAGE_VERSION "$PACKAGE_VERSION"
1512_ACEOF
1513
1514
1515cat >>confdefs.h <<_ACEOF
1516#define PACKAGE_STRING "$PACKAGE_STRING"
1517_ACEOF
1518
1519
1520cat >>confdefs.h <<_ACEOF
1521#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1522_ACEOF
1523
1524
1525# Let the site file select an alternate cache file if it wants to.
1526# Prefer explicitly selected file to automatically selected ones.
1527if test -z "$CONFIG_SITE"; then
1528  if test "x$prefix" != xNONE; then
1529    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1530  else
1531    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1532  fi
1533fi
1534for ac_site_file in $CONFIG_SITE; do
1535  if test -r "$ac_site_file"; then
1536    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1537echo "$as_me: loading site script $ac_site_file" >&6;}
1538    sed 's/^/| /' "$ac_site_file" >&5
1539    . "$ac_site_file"
1540  fi
1541done
1542
1543if test -r "$cache_file"; then
1544  # Some versions of bash will fail to source /dev/null (special
1545  # files actually), so we avoid doing that.
1546  if test -f "$cache_file"; then
1547    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1548echo "$as_me: loading cache $cache_file" >&6;}
1549    case $cache_file in
1550      [\\/]* | ?:[\\/]* ) . $cache_file;;
1551      *)                      . ./$cache_file;;
1552    esac
1553  fi
1554else
1555  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1556echo "$as_me: creating cache $cache_file" >&6;}
1557  >$cache_file
1558fi
1559
1560# Check that the precious variables saved in the cache have kept the same
1561# value.
1562ac_cache_corrupted=false
1563for ac_var in `(set) 2>&1 |
1564	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1565  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1566  eval ac_new_set=\$ac_env_${ac_var}_set
1567  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1568  eval ac_new_val="\$ac_env_${ac_var}_value"
1569  case $ac_old_set,$ac_new_set in
1570    set,)
1571      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1572echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1573      ac_cache_corrupted=: ;;
1574    ,set)
1575      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1576echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1577      ac_cache_corrupted=: ;;
1578    ,);;
1579    *)
1580      if test "x$ac_old_val" != "x$ac_new_val"; then
1581	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1582echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1583	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1584echo "$as_me:   former value:  $ac_old_val" >&2;}
1585	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1586echo "$as_me:   current value: $ac_new_val" >&2;}
1587	ac_cache_corrupted=:
1588      fi;;
1589  esac
1590  # Pass precious variables to config.status.
1591  if test "$ac_new_set" = set; then
1592    case $ac_new_val in
1593    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1594      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1595    *) ac_arg=$ac_var=$ac_new_val ;;
1596    esac
1597    case " $ac_configure_args " in
1598      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1599      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1600    esac
1601  fi
1602done
1603if $ac_cache_corrupted; then
1604  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1605echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1606  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1607echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1608   { (exit 1); exit 1; }; }
1609fi
1610
1611ac_ext=c
1612ac_cpp='$CPP $CPPFLAGS'
1613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1615ac_compiler_gnu=$ac_cv_c_compiler_gnu
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648# List one file in the package so that the configure script can test
1649# whether the package is actually there
1650
1651
1652# Where should everything be installed by default?  Here, we want it
1653# to be installed directly in 'bin', 'lib', 'include' subdirectories
1654# of the directory where configure is run.  The default would be
1655# /usr/local.
1656
1657
1658#############################################################################
1659#     We only need automake to generate Makefiles for the distribution      #
1660#############################################################################
1661
1662# Initialize automake
1663ac_aux_dir=
1664for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1665  if test -f $ac_dir/install-sh; then
1666    ac_aux_dir=$ac_dir
1667    ac_install_sh="$ac_aux_dir/install-sh -c"
1668    break
1669  elif test -f $ac_dir/install.sh; then
1670    ac_aux_dir=$ac_dir
1671    ac_install_sh="$ac_aux_dir/install.sh -c"
1672    break
1673  elif test -f $ac_dir/shtool; then
1674    ac_aux_dir=$ac_dir
1675    ac_install_sh="$ac_aux_dir/shtool install -c"
1676    break
1677  fi
1678done
1679if test -z "$ac_aux_dir"; then
1680  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1681echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1682   { (exit 1); exit 1; }; }
1683fi
1684ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1685ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1686ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1687
1688# Make sure we can run config.sub.
1689$ac_config_sub sun4 >/dev/null 2>&1 ||
1690  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1691echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1692   { (exit 1); exit 1; }; }
1693
1694echo "$as_me:$LINENO: checking build system type" >&5
1695echo $ECHO_N "checking build system type... $ECHO_C" >&6
1696if test "${ac_cv_build+set}" = set; then
1697  echo $ECHO_N "(cached) $ECHO_C" >&6
1698else
1699  ac_cv_build_alias=$build_alias
1700test -z "$ac_cv_build_alias" &&
1701  ac_cv_build_alias=`$ac_config_guess`
1702test -z "$ac_cv_build_alias" &&
1703  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1704echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1705   { (exit 1); exit 1; }; }
1706ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1707  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1708echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1709   { (exit 1); exit 1; }; }
1710
1711fi
1712echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1713echo "${ECHO_T}$ac_cv_build" >&6
1714build=$ac_cv_build
1715build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1716build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1717build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1718
1719
1720
1721# Check if user wants to produce debugging code
1722
1723echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1724echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1725
1726# Check whether --enable-debug or --disable-debug was given.
1727if test "${enable_debug+set}" = set; then
1728  enableval="$enable_debug"
1729  case "${enableval}" in
1730   yes) coin_debug_compile=true
1731        if test "${enable_shared+set}" = set; then :; else
1732          enable_shared=no
1733        fi
1734        ;;
1735   no)  coin_debug_compile=false
1736        ;;
1737   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1738echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1739   { (exit 1); exit 1; }; }
1740        ;;
1741esac
1742else
1743  coin_debug_compile=false
1744fi;
1745
1746 # m4_ifvaln([],
1747
1748if test $coin_debug_compile = true; then
1749  echo "$as_me:$LINENO: result: yes" >&5
1750echo "${ECHO_T}yes" >&6
1751else
1752  echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756 # m4_ifvaln([],
1757
1758
1759
1760# Get the name of the C compiler and appropriate compiler options
1761
1762
1763  # for backward compatibility
1764  # Check whether --enable-doscompile or --disable-doscompile was given.
1765if test "${enable_doscompile+set}" = set; then
1766  enableval="$enable_doscompile"
1767  enable_doscompile=$enableval
1768else
1769  enable_doscompile=no
1770fi;
1771
1772  # Check whether --enable-msvc or --disable-msvc was given.
1773if test "${enable_msvc+set}" = set; then
1774  enableval="$enable_msvc"
1775  enable_msvc=$enableval
1776else
1777  enable_msvc=no
1778     if test "$enable_doscompile" = msvc ; then
1779       enable_msvc=yes
1780     elif test "$enable_doscompile" != no ; then
1781       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1782echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1783   { (exit 1); exit 1; }; }
1784     fi
1785
1786fi;
1787
1788  if test "$enable_msvc" = MD; then
1789    enable_shared=yes
1790    enable_msvc=yes
1791  fi
1792
1793  if test "$enable_msvc" = yes; then
1794    case $build in
1795      *-cygwin* | *-mingw*) ;;
1796      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1797echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1798   { (exit 1); exit 1; }; } ;;
1799    esac
1800  fi
1801
1802
1803
1804ac_ext=c
1805ac_cpp='$CPP $CPPFLAGS'
1806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809
1810
1811# For consistency, we set the C compiler to the same value of the C++
1812# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1813if test x"$CXX" != x; then
1814  case "$CXX" in
1815    clang* ) ;;
1816    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1817      if test x"$CC" = x; then
1818        CC="$CXX"
1819        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1820echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1821      fi
1822      ;;
1823  esac
1824fi
1825
1826
1827
1828
1829
1830
1831coin_has_cc=yes
1832
1833save_cflags="$CFLAGS"
1834
1835# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1836# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1837# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1838# compiler. In this case, put cc after gcc.
1839
1840case $build in
1841  *-cygwin* | *-mingw*)
1842  	     if test "$enable_msvc" = yes ; then
1843	       comps="icl cl gcc"
1844	     else
1845	       comps="gcc icl cl"
1846	     fi ;;
1847  *-*-solaris*)
1848	     # Extract the first word of "cc", so it can be a program name with args.
1849set dummy cc; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1853  echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855  if test -n "$sol_cc_compiler"; then
1856  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1857else
1858  ac_prog_rejected=no
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  test -z "$as_dir" && as_dir=.
1864  for ac_exec_ext in '' $ac_executable_extensions; do
1865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1867       ac_prog_rejected=yes
1868       continue
1869     fi
1870    ac_cv_prog_sol_cc_compiler="cc"
1871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872    break 2
1873  fi
1874done
1875done
1876
1877if test $ac_prog_rejected = yes; then
1878  # We found a bogon in the path, so make sure we never use it.
1879  set dummy $ac_cv_prog_sol_cc_compiler
1880  shift
1881  if test $# != 0; then
1882    # We chose a different compiler from the bogus one.
1883    # However, it has the same basename, so the bogon will be chosen
1884    # first if we set sol_cc_compiler to just the basename; use the full file name.
1885    shift
1886    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1887  fi
1888fi
1889fi
1890fi
1891sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1892if test -n "$sol_cc_compiler"; then
1893  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1894echo "${ECHO_T}$sol_cc_compiler" >&6
1895else
1896  echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900	     if test "$sol_cc_compiler" = "cc" ; then
1901	       comps="cc xlc gcc pgcc icc"
1902	     else
1903	       comps="xlc gcc pgcc icc cc"
1904	     fi
1905	     ;;
1906  *-*-darwin*) comps="clang gcc cc" ;;
1907  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1908  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1909  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1910esac
1911
1912# We delete the cached value, since the test might not have been
1913# performed with our choice of compilers earlier
1914$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1915# AC_MSG_NOTICE([C compiler candidates: $comps])
1916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921if test -n "$ac_tool_prefix"; then
1922  for ac_prog in $comps
1923  do
1924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_CC+set}" = set; then
1929  echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931  if test -n "$CC"; then
1932  ac_cv_prog_CC="$CC" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  test -z "$as_dir" && as_dir=.
1939  for ac_exec_ext in '' $ac_executable_extensions; do
1940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943    break 2
1944  fi
1945done
1946done
1947
1948fi
1949fi
1950CC=$ac_cv_prog_CC
1951if test -n "$CC"; then
1952  echo "$as_me:$LINENO: result: $CC" >&5
1953echo "${ECHO_T}$CC" >&6
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959    test -n "$CC" && break
1960  done
1961fi
1962if test -z "$CC"; then
1963  ac_ct_CC=$CC
1964  for ac_prog in $comps
1965do
1966  # Extract the first word of "$ac_prog", so it can be a program name with args.
1967set dummy $ac_prog; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$ac_ct_CC"; then
1974  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_ac_ct_CC="$ac_prog"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992ac_ct_CC=$ac_cv_prog_ac_ct_CC
1993if test -n "$ac_ct_CC"; then
1994  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995echo "${ECHO_T}$ac_ct_CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001  test -n "$ac_ct_CC" && break
2002done
2003
2004  CC=$ac_ct_CC
2005fi
2006
2007
2008test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2009See \`config.log' for more details." >&5
2010echo "$as_me: error: no acceptable C compiler found in \$PATH
2011See \`config.log' for more details." >&2;}
2012   { (exit 1); exit 1; }; }
2013
2014# Provide some information about the compiler.
2015echo "$as_me:$LINENO:" \
2016     "checking for C compiler version" >&5
2017ac_compiler=`set X $ac_compile; echo $2`
2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2019  (eval $ac_compiler --version </dev/null >&5) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }
2023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2024  (eval $ac_compiler -v </dev/null >&5) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }
2028{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2029  (eval $ac_compiler -V </dev/null >&5) 2>&5
2030  ac_status=$?
2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032  (exit $ac_status); }
2033
2034cat >conftest.$ac_ext <<_ACEOF
2035/* confdefs.h.  */
2036_ACEOF
2037cat confdefs.h >>conftest.$ac_ext
2038cat >>conftest.$ac_ext <<_ACEOF
2039/* end confdefs.h.  */
2040
2041int
2042main ()
2043{
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049ac_clean_files_save=$ac_clean_files
2050ac_clean_files="$ac_clean_files a.out a.exe b.out"
2051# Try to create an executable without -o first, disregard a.out.
2052# It will help us diagnose broken compilers, and finding out an intuition
2053# of exeext.
2054echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2055echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2056ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2057if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2058  (eval $ac_link_default) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; then
2062  # Find the output, starting from the most likely.  This scheme is
2063# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2064# resort.
2065
2066# Be careful to initialize this variable, since it used to be cached.
2067# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2068ac_cv_exeext=
2069# b.out is created by i960 compilers.
2070for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2071do
2072  test -f "$ac_file" || continue
2073  case $ac_file in
2074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2075	;;
2076    conftest.$ac_ext )
2077	# This is the source file.
2078	;;
2079    [ab].out )
2080	# We found the default executable, but exeext='' is most
2081	# certainly right.
2082	break;;
2083    *.* )
2084	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085	# FIXME: I believe we export ac_cv_exeext for Libtool,
2086	# but it would be cool to find out if it's true.  Does anybody
2087	# maintain Libtool? --akim.
2088	export ac_cv_exeext
2089	break;;
2090    * )
2091	break;;
2092  esac
2093done
2094else
2095  echo "$as_me: failed program was:" >&5
2096sed 's/^/| /' conftest.$ac_ext >&5
2097
2098{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2099See \`config.log' for more details." >&5
2100echo "$as_me: error: C compiler cannot create executables
2101See \`config.log' for more details." >&2;}
2102   { (exit 77); exit 77; }; }
2103fi
2104
2105ac_exeext=$ac_cv_exeext
2106echo "$as_me:$LINENO: result: $ac_file" >&5
2107echo "${ECHO_T}$ac_file" >&6
2108
2109# Check the compiler produces executables we can run.  If not, either
2110# the compiler is broken, or we cross compile.
2111echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2112echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2113# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2114# If not cross compiling, check that we can run a simple program.
2115if test "$cross_compiling" != yes; then
2116  if { ac_try='./$ac_file'
2117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118  (eval $ac_try) 2>&5
2119  ac_status=$?
2120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121  (exit $ac_status); }; }; then
2122    cross_compiling=no
2123  else
2124    if test "$cross_compiling" = maybe; then
2125	cross_compiling=yes
2126    else
2127	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2128If you meant to cross compile, use \`--host'.
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: cannot run C compiled programs.
2131If you meant to cross compile, use \`--host'.
2132See \`config.log' for more details." >&2;}
2133   { (exit 1); exit 1; }; }
2134    fi
2135  fi
2136fi
2137echo "$as_me:$LINENO: result: yes" >&5
2138echo "${ECHO_T}yes" >&6
2139
2140rm -f a.out a.exe conftest$ac_cv_exeext b.out
2141ac_clean_files=$ac_clean_files_save
2142# Check the compiler produces executables we can run.  If not, either
2143# the compiler is broken, or we cross compile.
2144echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147echo "${ECHO_T}$cross_compiling" >&6
2148
2149echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152  (eval $ac_link) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }; then
2156  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2158# work properly (i.e., refer to `conftest.exe'), while it won't with
2159# `rm'.
2160for ac_file in conftest.exe conftest conftest.*; do
2161  test -f "$ac_file" || continue
2162  case $ac_file in
2163    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2164    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165	  export ac_cv_exeext
2166	  break;;
2167    * ) break;;
2168  esac
2169done
2170else
2171  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2172See \`config.log' for more details." >&5
2173echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2174See \`config.log' for more details." >&2;}
2175   { (exit 1); exit 1; }; }
2176fi
2177
2178rm -f conftest$ac_cv_exeext
2179echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2180echo "${ECHO_T}$ac_cv_exeext" >&6
2181
2182rm -f conftest.$ac_ext
2183EXEEXT=$ac_cv_exeext
2184ac_exeext=$EXEEXT
2185echo "$as_me:$LINENO: checking for suffix of object files" >&5
2186echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2187if test "${ac_cv_objext+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h.  */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h.  */
2196
2197int
2198main ()
2199{
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205rm -f conftest.o conftest.obj
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207  (eval $ac_compile) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; then
2211  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212  case $ac_file in
2213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2214    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2215       break;;
2216  esac
2217done
2218else
2219  echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2223See \`config.log' for more details." >&5
2224echo "$as_me: error: cannot compute suffix of object files: cannot compile
2225See \`config.log' for more details." >&2;}
2226   { (exit 1); exit 1; }; }
2227fi
2228
2229rm -f conftest.$ac_cv_objext conftest.$ac_ext
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2232echo "${ECHO_T}$ac_cv_objext" >&6
2233OBJEXT=$ac_cv_objext
2234ac_objext=$OBJEXT
2235echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2236echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2237if test "${ac_cv_c_compiler_gnu+set}" = set; then
2238  echo $ECHO_N "(cached) $ECHO_C" >&6
2239else
2240  cat >conftest.$ac_ext <<_ACEOF
2241/* confdefs.h.  */
2242_ACEOF
2243cat confdefs.h >>conftest.$ac_ext
2244cat >>conftest.$ac_ext <<_ACEOF
2245/* end confdefs.h.  */
2246
2247int
2248main ()
2249{
2250#ifndef __GNUC__
2251       choke me
2252#endif
2253
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258rm -f conftest.$ac_objext
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260  (eval $ac_compile) 2>conftest.er1
2261  ac_status=$?
2262  grep -v '^ *+' conftest.er1 >conftest.err
2263  rm -f conftest.er1
2264  cat conftest.err >&5
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); } &&
2267	 { ac_try='test -z "$ac_c_werror_flag"
2268			 || test ! -s conftest.err'
2269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270  (eval $ac_try) 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; } &&
2274	 { ac_try='test -s conftest.$ac_objext'
2275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276  (eval $ac_try) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; }; then
2280  ac_compiler_gnu=yes
2281else
2282  echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285ac_compiler_gnu=no
2286fi
2287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289
2290fi
2291echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2292echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2293GCC=`test $ac_compiler_gnu = yes && echo yes`
2294ac_test_CFLAGS=${CFLAGS+set}
2295ac_save_CFLAGS=$CFLAGS
2296CFLAGS="-g"
2297echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2298echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2299if test "${ac_cv_prog_cc_g+set}" = set; then
2300  echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302  cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319  (eval $ac_compile) 2>conftest.er1
2320  ac_status=$?
2321  grep -v '^ *+' conftest.er1 >conftest.err
2322  rm -f conftest.er1
2323  cat conftest.err >&5
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); } &&
2326	 { ac_try='test -z "$ac_c_werror_flag"
2327			 || test ! -s conftest.err'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; } &&
2333	 { ac_try='test -s conftest.$ac_objext'
2334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335  (eval $ac_try) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; }; then
2339  ac_cv_prog_cc_g=yes
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344ac_cv_prog_cc_g=no
2345fi
2346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2349echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2350if test "$ac_test_CFLAGS" = set; then
2351  CFLAGS=$ac_save_CFLAGS
2352elif test $ac_cv_prog_cc_g = yes; then
2353  if test "$GCC" = yes; then
2354    CFLAGS="-g -O2"
2355  else
2356    CFLAGS="-g"
2357  fi
2358else
2359  if test "$GCC" = yes; then
2360    CFLAGS="-O2"
2361  else
2362    CFLAGS=
2363  fi
2364fi
2365echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2366echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2367if test "${ac_cv_prog_cc_stdc+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  ac_cv_prog_cc_stdc=no
2371ac_save_CC=$CC
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378#include <stdarg.h>
2379#include <stdio.h>
2380#include <sys/types.h>
2381#include <sys/stat.h>
2382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2383struct buf { int x; };
2384FILE * (*rcsopen) (struct buf *, struct stat *, int);
2385static char *e (p, i)
2386     char **p;
2387     int i;
2388{
2389  return p[i];
2390}
2391static char *f (char * (*g) (char **, int), char **p, ...)
2392{
2393  char *s;
2394  va_list v;
2395  va_start (v,p);
2396  s = g (p, va_arg (v,int));
2397  va_end (v);
2398  return s;
2399}
2400
2401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2402   function prototypes and stuff, but not '\xHH' hex character constants.
2403   These don't provoke an error unfortunately, instead are silently treated
2404   as 'x'.  The following induces an error, until -std1 is added to get
2405   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2406   array size at least.  It's necessary to write '\x00'==0 to get something
2407   that's true only with -std1.  */
2408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2409
2410int test (int i, double x);
2411struct s1 {int (*f) (int a);};
2412struct s2 {int (*f) (double a);};
2413int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2414int argc;
2415char **argv;
2416int
2417main ()
2418{
2419return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424# Don't try gcc -ansi; that turns off useful extensions and
2425# breaks some systems' header files.
2426# AIX			-qlanglvl=ansi
2427# Ultrix and OSF/1	-std1
2428# HP-UX 10.20 and later	-Ae
2429# HP-UX older versions	-Aa -D_HPUX_SOURCE
2430# SVR4			-Xc -D__EXTENSIONS__
2431for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2432do
2433  CC="$ac_save_CC $ac_arg"
2434  rm -f conftest.$ac_objext
2435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436  (eval $ac_compile) 2>conftest.er1
2437  ac_status=$?
2438  grep -v '^ *+' conftest.er1 >conftest.err
2439  rm -f conftest.er1
2440  cat conftest.err >&5
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); } &&
2443	 { ac_try='test -z "$ac_c_werror_flag"
2444			 || test ! -s conftest.err'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; } &&
2450	 { ac_try='test -s conftest.$ac_objext'
2451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452  (eval $ac_try) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; }; then
2456  ac_cv_prog_cc_stdc=$ac_arg
2457break
2458else
2459  echo "$as_me: failed program was:" >&5
2460sed 's/^/| /' conftest.$ac_ext >&5
2461
2462fi
2463rm -f conftest.err conftest.$ac_objext
2464done
2465rm -f conftest.$ac_ext conftest.$ac_objext
2466CC=$ac_save_CC
2467
2468fi
2469
2470case "x$ac_cv_prog_cc_stdc" in
2471  x|xno)
2472    echo "$as_me:$LINENO: result: none needed" >&5
2473echo "${ECHO_T}none needed" >&6 ;;
2474  *)
2475    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2476echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2477    CC="$CC $ac_cv_prog_cc_stdc" ;;
2478esac
2479
2480# Some people use a C++ compiler to compile C.  Since we use `exit',
2481# in C++ we need to declare it.  In case someone uses the same compiler
2482# for both compiling C and C++ we need to have the C++ compiler decide
2483# the declaration of exit, since it's the most demanding environment.
2484cat >conftest.$ac_ext <<_ACEOF
2485#ifndef __cplusplus
2486  choke me
2487#endif
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491  (eval $ac_compile) 2>conftest.er1
2492  ac_status=$?
2493  grep -v '^ *+' conftest.er1 >conftest.err
2494  rm -f conftest.er1
2495  cat conftest.err >&5
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); } &&
2498	 { ac_try='test -z "$ac_c_werror_flag"
2499			 || test ! -s conftest.err'
2500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501  (eval $ac_try) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }; } &&
2505	 { ac_try='test -s conftest.$ac_objext'
2506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507  (eval $ac_try) 2>&5
2508  ac_status=$?
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); }; }; then
2511  for ac_declaration in \
2512   '' \
2513   'extern "C" void std::exit (int) throw (); using std::exit;' \
2514   'extern "C" void std::exit (int); using std::exit;' \
2515   'extern "C" void exit (int) throw ();' \
2516   'extern "C" void exit (int);' \
2517   'void exit (int);'
2518do
2519  cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h.  */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h.  */
2525$ac_declaration
2526#include <stdlib.h>
2527int
2528main ()
2529{
2530exit (42);
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544	 { ac_try='test -z "$ac_c_werror_flag"
2545			 || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551	 { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  :
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562continue
2563fi
2564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565  cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571$ac_declaration
2572int
2573main ()
2574{
2575exit (42);
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext
2581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582  (eval $ac_compile) 2>conftest.er1
2583  ac_status=$?
2584  grep -v '^ *+' conftest.er1 >conftest.err
2585  rm -f conftest.er1
2586  cat conftest.err >&5
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); } &&
2589	 { ac_try='test -z "$ac_c_werror_flag"
2590			 || test ! -s conftest.err'
2591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592  (eval $ac_try) 2>&5
2593  ac_status=$?
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); }; } &&
2596	 { ac_try='test -s conftest.$ac_objext'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; }; then
2602  break
2603else
2604  echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607fi
2608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609done
2610rm -f conftest*
2611if test -n "$ac_declaration"; then
2612  echo '#ifdef __cplusplus' >>confdefs.h
2613  echo $ac_declaration      >>confdefs.h
2614  echo '#endif'             >>confdefs.h
2615fi
2616
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621fi
2622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623ac_ext=c
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629if test -z "$CC" ; then
2630  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2631echo "$as_me: error: Failed to find a C compiler!" >&2;}
2632   { (exit 1); exit 1; }; }
2633fi
2634# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2635case "$CC" in
2636  clang* ) ;;
2637  cl* | */cl* | CL* | */CL* )
2638    if test "$ac_cv_prog_cc_g" = yes ; then
2639      ac_cv_prog_cc_g=no
2640      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2641echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2642    fi ;;
2643  * )
2644    if test x"$CYGPATH_W" = x ; then
2645      CYGPATH_W=echo
2646    fi
2647    ;;
2648esac
2649CFLAGS="$save_cflags"
2650
2651# add automake conditional so we can recognize cl compiler in makefile
2652coin_cc_is_cl=false
2653case "$CC" in
2654  clang* ) ;;
2655  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2656    coin_cc_is_cl=true
2657    ;;
2658esac
2659
2660
2661if test $coin_cc_is_cl = true; then
2662  COIN_CC_IS_CL_TRUE=
2663  COIN_CC_IS_CL_FALSE='#'
2664else
2665  COIN_CC_IS_CL_TRUE='#'
2666  COIN_CC_IS_CL_FALSE=
2667fi
2668
2669
2670# Check if a project specific CFLAGS variable has been set
2671if test x$COIN_PRJCT != x; then
2672  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2673  if test x$coin_tmp = xset; then
2674    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2675  fi
2676fi
2677
2678if test x"$CFLAGS" = x; then
2679
2680  coin_add_cflags=
2681  coin_opt_cflags=
2682  coin_dbg_cflags=
2683  coin_warn_cflags=
2684
2685  if test "$GCC" = "yes"; then
2686    case "$CC" in
2687      icc* | */icc*)
2688        ;;
2689      *)
2690        coin_opt_cflags="-O3"
2691        coin_add_cflags="-pipe"
2692        coin_dbg_cflags="-g -O0"
2693        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2694    esac
2695  fi
2696  if test -z "$coin_opt_cflags"; then
2697    case $build in
2698      *-cygwin* | *-mingw*)
2699        case "$CC" in
2700          clang* ) ;;
2701          cl* | */cl* | CL* | */CL*)
2702            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2703              coin_opt_cflags='-MD -O2'
2704              coin_dbg_cflags='-MDd'
2705            else
2706              coin_opt_cflags='-MT -O2'
2707              coin_dbg_cflags='-MTd'
2708            fi
2709            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2710            ;;
2711          icl* | */icl* | ICL* | */ICL*)
2712            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2713              coin_opt_cflags='-MD -Ox'
2714              coin_dbg_cflags='-MDd -debug'
2715            else
2716              coin_opt_cflags='-MT -Ox'
2717              coin_dbg_cflags='-MTd -debug'
2718            fi
2719            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2720            ;;
2721        esac
2722        ;;
2723      *-linux-*)
2724        case "$CC" in
2725          icc* | */icc*)
2726            coin_opt_cflags="-O3 -ip -mp1"
2727            coin_add_cflags=""
2728            coin_dbg_cflags="-g"
2729            # Check if -i_dynamic is necessary (for new glibc library)
2730            CFLAGS=
2731            cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737
2738int
2739main ()
2740{
2741int i=0; i++;
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext conftest$ac_exeext
2747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2748  (eval $ac_link) 2>conftest.er1
2749  ac_status=$?
2750  grep -v '^ *+' conftest.er1 >conftest.err
2751  rm -f conftest.er1
2752  cat conftest.err >&5
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); } &&
2755	 { ac_try='test -z "$ac_c_werror_flag"
2756			 || test ! -s conftest.err'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; } &&
2762	 { ac_try='test -s conftest$ac_exeext'
2763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764  (eval $ac_try) 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; }; then
2768  :
2769else
2770  echo "$as_me: failed program was:" >&5
2771sed 's/^/| /' conftest.$ac_ext >&5
2772
2773coin_add_cflags="-i_dynamic $coin_add_cflags"
2774fi
2775rm -f conftest.err conftest.$ac_objext \
2776      conftest$ac_exeext conftest.$ac_ext
2777            ;;
2778          pgcc* | */pgcc*)
2779            coin_opt_cflags="-fast"
2780            coin_add_cflags="-Kieee -pc 64"
2781            coin_dbg_cflags="-g"
2782            ;;
2783        esac
2784        ;;
2785      *-ibm-*)
2786        case "$CC" in
2787          xlc* | */xlc* | mpxlc* | */mpxlc*)
2788            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2789            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2790            coin_dbg_cflags="-g"
2791          ;;
2792        esac
2793        ;;
2794      *-hp-*)
2795        coin_opt_cflags="-O"
2796        coin_add_cflags="-Ae"
2797        coin_dbg_cflags="-g"
2798        ;;
2799      *-*-solaris*)
2800        coin_opt_cflags="-xO4"
2801        coin_dbg_cflags="-g"
2802        ;;
2803      *-sgi-*)
2804        coin_opt_cflags="-O -OPT:Olimit=0"
2805        coin_dbg_cflags="-g"
2806        ;;
2807    esac
2808  fi
2809
2810  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2811    coin_dbg_cflags="-g"
2812  fi
2813
2814  if test -z "$coin_opt_cflags"; then
2815    # Try if -O option works if nothing else is set
2816    CFLAGS="-O"
2817    cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823
2824int
2825main ()
2826{
2827int i=0; i++;
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext conftest$ac_exeext
2833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834  (eval $ac_link) 2>conftest.er1
2835  ac_status=$?
2836  grep -v '^ *+' conftest.er1 >conftest.err
2837  rm -f conftest.er1
2838  cat conftest.err >&5
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841	 { ac_try='test -z "$ac_c_werror_flag"
2842			 || test ! -s conftest.err'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; } &&
2848	 { ac_try='test -s conftest$ac_exeext'
2849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }; }; then
2854  coin_opt_cflags="-O"
2855else
2856  echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859fi
2860rm -f conftest.err conftest.$ac_objext \
2861      conftest$ac_exeext conftest.$ac_ext
2862  fi
2863
2864  # if PM doesn't want the warning messages, take them out
2865  if test x"$coin_skip_warn_cflags" = xyes; then
2866    coin_warn_cflags=
2867  fi
2868
2869  if test x${DBG_CFLAGS+set} != xset; then
2870    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2871  fi
2872  if test x${OPT_CFLAGS+set} != xset; then
2873    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2874  fi
2875
2876  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2877  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2878
2879  if test "$coin_debug_compile" = "true"; then
2880    CFLAGS="$DBG_CFLAGS"
2881  else
2882    CFLAGS="$OPT_CFLAGS"
2883  fi
2884else
2885  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2886  if test x${DBG_CFLAGS+set} != xset; then
2887    DBG_CFLAGS="$CFLAGS"
2888  fi
2889  if test x${OPT_CFLAGS+set} != xset; then
2890    OPT_CFLAGS="$CFLAGS"
2891  fi
2892fi
2893
2894# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2895if test x$COIN_PRJCT != x; then
2896  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2897fi
2898
2899# Try if CFLAGS works
2900save_CFLAGS="$CFLAGS"
2901cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h.  */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h.  */
2907
2908int
2909main ()
2910{
2911int i=0; i++;
2912  ;
2913  return 0;
2914}
2915_ACEOF
2916rm -f conftest.$ac_objext conftest$ac_exeext
2917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918  (eval $ac_link) 2>conftest.er1
2919  ac_status=$?
2920  grep -v '^ *+' conftest.er1 >conftest.err
2921  rm -f conftest.er1
2922  cat conftest.err >&5
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); } &&
2925	 { ac_try='test -z "$ac_c_werror_flag"
2926			 || test ! -s conftest.err'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; } &&
2932	 { ac_try='test -s conftest$ac_exeext'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; }; then
2938  :
2939else
2940  echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943CFLAGS=
2944fi
2945rm -f conftest.err conftest.$ac_objext \
2946      conftest$ac_exeext conftest.$ac_ext
2947if test -z "$CFLAGS"; then
2948  { 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
2949echo "$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;}
2950  CFLAGS='-O'
2951  cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961int i=0; i++;
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext conftest$ac_exeext
2967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968  (eval $ac_link) 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } &&
2975	 { ac_try='test -z "$ac_c_werror_flag"
2976			 || test ! -s conftest.err'
2977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978  (eval $ac_try) 2>&5
2979  ac_status=$?
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); }; } &&
2982	 { ac_try='test -s conftest$ac_exeext'
2983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984  (eval $ac_try) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }; }; then
2988  :
2989else
2990  echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993CFLAGS=
2994fi
2995rm -f conftest.err conftest.$ac_objext \
2996      conftest$ac_exeext conftest.$ac_ext
2997  if test -z "$CFLAGS"; then
2998    { 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
2999echo "$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;}
3000  fi
3001fi
3002
3003{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3004echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3005
3006
3007if test x"$MPICC" = x; then :; else
3008  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3009echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3010  CC="$MPICC"
3011fi
3012
3013# Correct the LD variable if we are using the MS or Intel-windows compiler
3014case "$CC" in
3015  clang* ) ;;
3016  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3017    LD=link
3018    ;;
3019esac
3020
3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027
3028
3029# Get the name of the C++ compiler and appropriate compiler options
3030
3031 #Let's try if that overcomes configuration problem with VC++ 6.0
3032
3033ac_ext=cc
3034ac_cpp='$CXXCPP $CPPFLAGS'
3035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3038
3039
3040
3041
3042
3043
3044
3045coin_has_cxx=yes
3046
3047save_cxxflags="$CXXFLAGS"
3048# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3049case $build in
3050  *-cygwin* | *-mingw*)
3051      if test "$enable_msvc" = yes ; then
3052         comps="icl cl g++"
3053      else
3054         comps="g++ icl cl"
3055      fi ;;
3056  *-*-solaris*)
3057  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3058  *-darwin*) comps="clang++ g++ c++ CC" ;;
3059  *-linux-gnu*)
3060             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3061          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3062esac
3063
3064# We delete the cached value, since the test might not have been
3065# performed with our choice of compilers earlier
3066$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3067# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3068ac_ext=cc
3069ac_cpp='$CXXCPP $CPPFLAGS'
3070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3073if test -n "$ac_tool_prefix"; then
3074  for ac_prog in $CCC $comps
3075  do
3076    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078echo "$as_me:$LINENO: checking for $ac_word" >&5
3079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080if test "${ac_cv_prog_CXX+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  if test -n "$CXX"; then
3084  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091  for ac_exec_ext in '' $ac_executable_extensions; do
3092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098done
3099
3100fi
3101fi
3102CXX=$ac_cv_prog_CXX
3103if test -n "$CXX"; then
3104  echo "$as_me:$LINENO: result: $CXX" >&5
3105echo "${ECHO_T}$CXX" >&6
3106else
3107  echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
3109fi
3110
3111    test -n "$CXX" && break
3112  done
3113fi
3114if test -z "$CXX"; then
3115  ac_ct_CXX=$CXX
3116  for ac_prog in $CCC $comps
3117do
3118  # Extract the first word of "$ac_prog", so it can be a program name with args.
3119set dummy $ac_prog; ac_word=$2
3120echo "$as_me:$LINENO: checking for $ac_word" >&5
3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3123  echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125  if test -n "$ac_ct_CXX"; then
3126  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133  for ac_exec_ext in '' $ac_executable_extensions; do
3134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_ac_ct_CXX="$ac_prog"
3136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140done
3141
3142fi
3143fi
3144ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3145if test -n "$ac_ct_CXX"; then
3146  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3147echo "${ECHO_T}$ac_ct_CXX" >&6
3148else
3149  echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151fi
3152
3153  test -n "$ac_ct_CXX" && break
3154done
3155test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3156
3157  CXX=$ac_ct_CXX
3158fi
3159
3160
3161# Provide some information about the compiler.
3162echo "$as_me:$LINENO:" \
3163     "checking for C++ compiler version" >&5
3164ac_compiler=`set X $ac_compile; echo $2`
3165{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3166  (eval $ac_compiler --version </dev/null >&5) 2>&5
3167  ac_status=$?
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }
3170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3171  (eval $ac_compiler -v </dev/null >&5) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }
3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3176  (eval $ac_compiler -V </dev/null >&5) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }
3180
3181echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3182echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3183if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3184  echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186  cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h.  */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h.  */
3192
3193int
3194main ()
3195{
3196#ifndef __GNUC__
3197       choke me
3198#endif
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206  (eval $ac_compile) 2>conftest.er1
3207  ac_status=$?
3208  grep -v '^ *+' conftest.er1 >conftest.err
3209  rm -f conftest.er1
3210  cat conftest.err >&5
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); } &&
3213	 { ac_try='test -z "$ac_cxx_werror_flag"
3214			 || test ! -s conftest.err'
3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216  (eval $ac_try) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; } &&
3220	 { ac_try='test -s conftest.$ac_objext'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; }; then
3226  ac_compiler_gnu=yes
3227else
3228  echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231ac_compiler_gnu=no
3232fi
3233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3235
3236fi
3237echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3238echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3239GXX=`test $ac_compiler_gnu = yes && echo yes`
3240ac_test_CXXFLAGS=${CXXFLAGS+set}
3241ac_save_CXXFLAGS=$CXXFLAGS
3242CXXFLAGS="-g"
3243echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3244echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3245if test "${ac_cv_prog_cxx_g+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h.  */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263rm -f conftest.$ac_objext
3264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265  (eval $ac_compile) 2>conftest.er1
3266  ac_status=$?
3267  grep -v '^ *+' conftest.er1 >conftest.err
3268  rm -f conftest.er1
3269  cat conftest.err >&5
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); } &&
3272	 { ac_try='test -z "$ac_cxx_werror_flag"
3273			 || test ! -s conftest.err'
3274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275  (eval $ac_try) 2>&5
3276  ac_status=$?
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); }; } &&
3279	 { ac_try='test -s conftest.$ac_objext'
3280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281  (eval $ac_try) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }; }; then
3285  ac_cv_prog_cxx_g=yes
3286else
3287  echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290ac_cv_prog_cxx_g=no
3291fi
3292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3293fi
3294echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3295echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3296if test "$ac_test_CXXFLAGS" = set; then
3297  CXXFLAGS=$ac_save_CXXFLAGS
3298elif test $ac_cv_prog_cxx_g = yes; then
3299  if test "$GXX" = yes; then
3300    CXXFLAGS="-g -O2"
3301  else
3302    CXXFLAGS="-g"
3303  fi
3304else
3305  if test "$GXX" = yes; then
3306    CXXFLAGS="-O2"
3307  else
3308    CXXFLAGS=
3309  fi
3310fi
3311for ac_declaration in \
3312   '' \
3313   'extern "C" void std::exit (int) throw (); using std::exit;' \
3314   'extern "C" void std::exit (int); using std::exit;' \
3315   'extern "C" void exit (int) throw ();' \
3316   'extern "C" void exit (int);' \
3317   'void exit (int);'
3318do
3319  cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h.  */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h.  */
3325$ac_declaration
3326#include <stdlib.h>
3327int
3328main ()
3329{
3330exit (42);
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335rm -f conftest.$ac_objext
3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337  (eval $ac_compile) 2>conftest.er1
3338  ac_status=$?
3339  grep -v '^ *+' conftest.er1 >conftest.err
3340  rm -f conftest.er1
3341  cat conftest.err >&5
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); } &&
3344	 { ac_try='test -z "$ac_cxx_werror_flag"
3345			 || test ! -s conftest.err'
3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347  (eval $ac_try) 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; } &&
3351	 { ac_try='test -s conftest.$ac_objext'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  :
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362continue
3363fi
3364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365  cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h.  */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h.  */
3371$ac_declaration
3372int
3373main ()
3374{
3375exit (42);
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
3381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382  (eval $ac_compile) 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } &&
3389	 { ac_try='test -z "$ac_cxx_werror_flag"
3390			 || test ! -s conftest.err'
3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392  (eval $ac_try) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }; } &&
3396	 { ac_try='test -s conftest.$ac_objext'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; }; then
3402  break
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409done
3410rm -f conftest*
3411if test -n "$ac_declaration"; then
3412  echo '#ifdef __cplusplus' >>confdefs.h
3413  echo $ac_declaration      >>confdefs.h
3414  echo '#endif'             >>confdefs.h
3415fi
3416
3417ac_ext=cc
3418ac_cpp='$CXXCPP $CPPFLAGS'
3419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3422
3423
3424#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3425#thus, we test here whether $CXX is actually working
3426ac_ext=cc
3427ac_cpp='$CXXCPP $CPPFLAGS'
3428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3431
3432echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3433echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3434cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h.  */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444int i=0;
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451  (eval $ac_compile) 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458	 { ac_try='test -z "$ac_cxx_werror_flag"
3459			 || test ! -s conftest.err'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; } &&
3465	 { ac_try='test -s conftest.$ac_objext'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; }; then
3471  echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473else
3474  echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6
3479   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3480echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3481   { (exit 1); exit 1; }; }
3482
3483fi
3484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485ac_ext=cc
3486ac_cpp='$CXXCPP $CPPFLAGS'
3487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3490
3491
3492coin_cxx_is_cl=false
3493# It seems that we need to cleanup something here for the Windows
3494case "$CXX" in
3495  clang* | */clang*) ;;
3496  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3497    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3498    mv confdefs.hh confdefs.h
3499    coin_cxx_is_cl=true
3500    ;;
3501esac
3502
3503# add automake conditional so we can recognize cl compiler in makefile
3504
3505
3506if test $coin_cxx_is_cl = true; then
3507  COIN_CXX_IS_CL_TRUE=
3508  COIN_CXX_IS_CL_FALSE='#'
3509else
3510  COIN_CXX_IS_CL_TRUE='#'
3511  COIN_CXX_IS_CL_FALSE=
3512fi
3513
3514
3515# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3516case "$CXX" in
3517  clang* ) ;;
3518  cl* | */cl* | CL* | */CL* )
3519    if test "$ac_cv_prog_cxx_g" = yes ; then
3520      ac_cv_prog_cxx_g=no
3521      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3522echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3523    fi ;;
3524  * )
3525    if test x"$CYGPATH_W" = x ; then
3526      CYGPATH_W=echo
3527    fi
3528    ;;
3529esac
3530CXXFLAGS="$save_cxxflags"
3531
3532# Check if a project specific CXXFLAGS variable has been set
3533if test x$COIN_PRJCT != x; then
3534  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3535  if test x$coin_tmp = xset; then
3536    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3537  fi
3538fi
3539
3540if test x"$CXXFLAGS" = x; then
3541
3542# ToDo decide whether we want -DNDEBUG for optimization
3543  coin_add_cxxflags=
3544  coin_opt_cxxflags=
3545  coin_dbg_cxxflags=
3546  coin_warn_cxxflags=
3547
3548  if test "$GXX" = "yes"; then
3549    case "$CXX" in
3550      icpc* | */icpc*)
3551        ;;
3552      *)
3553# ToDo decide about unroll-loops
3554        coin_opt_cxxflags="-O3"
3555        coin_add_cxxflags="-pipe"
3556        coin_dbg_cxxflags="-g -O0"
3557        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3558    esac
3559  fi
3560
3561# Note that we do not need to cover GCC in the following tests.
3562
3563  if test -z "$coin_opt_cxxflags"; then
3564    case $build in
3565      *-cygwin* | *-mingw*)
3566        case "$CXX" in
3567          clang* ) ;;
3568          cl* | */cl* | CL* | */CL*)
3569            # The MT and MTd options are mutually exclusive
3570            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3571               coin_opt_cxxflags='-MD -O2'
3572               coin_dbg_cxxflags='-MDd'
3573            else
3574               coin_opt_cxxflags='-MT -O2'
3575               coin_dbg_cxxflags='-MTd'
3576            fi
3577            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3578            ;;
3579          icl* | */icl* | ICL* | */ICL*)
3580          # The MT and MTd options are mutually exclusive
3581            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3582              coin_opt_cxxflags='-MD -Ox'
3583              coin_dbg_cxxflags='-MDd -debug'
3584            else
3585              coin_opt_cxxflags='-MT -Ox'
3586              coin_dbg_cxxflags='-MTd -debug'
3587            fi
3588            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3589            ;;
3590        esac
3591        ;;
3592      *-linux-*)
3593        case "$CXX" in
3594          icpc* | */icpc*)
3595            coin_opt_cxxflags="-O3 -ip -mp1"
3596            coin_add_cxxflags=""
3597            coin_dbg_cxxflags="-g"
3598            # Check if -i_dynamic is necessary (for new glibc library)
3599            CXXFLAGS=
3600            cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610int i=0; i++;
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617  (eval $ac_link) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624	 { ac_try='test -z "$ac_cxx_werror_flag"
3625			 || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631	 { ac_try='test -s conftest$ac_exeext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  :
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3643fi
3644rm -f conftest.err conftest.$ac_objext \
3645      conftest$ac_exeext conftest.$ac_ext
3646            ;;
3647          pgCC* | */pgCC*)
3648            coin_opt_cxxflags="-fast"
3649            coin_add_cxxflags="-Kieee -pc 64"
3650            coin_dbg_cxxflags="-g"
3651            ;;
3652        esac
3653        ;;
3654      *-ibm-*)
3655        case "$CXX" in
3656          xlC* | */xlC* | mpxlC* | */mpxlC*)
3657            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3658            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3659            coin_dbg_cxxflags="-g"
3660            ;;
3661        esac
3662        ;;
3663      *-hp-*)
3664        case "$CXX" in
3665          aCC* | */aCC* )
3666            coin_opt_cxxflags="-O"
3667            coin_add_cxxflags="-AA"
3668            coin_dbg_cxxflags="-g"
3669            ;;
3670        esac
3671        ;;
3672      *-*-solaris*)
3673          coin_opt_cxxflags="-O4"
3674          coin_dbg_cxxflags="-g"
3675        ;;
3676    esac
3677  fi
3678
3679# Generic flag settings. If these don't work, add a case above.
3680
3681  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3682    coin_dbg_cxxflags="-g"
3683  fi
3684
3685  if test -z "$coin_opt_cxxflags"; then
3686    # Try if -O option works if nothing else is set
3687    CXXFLAGS=-O
3688    cat >conftest.$ac_ext <<_ACEOF
3689/* confdefs.h.  */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698int i=0; i++;
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705  (eval $ac_link) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712	 { ac_try='test -z "$ac_cxx_werror_flag"
3713			 || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719	 { ac_try='test -s conftest$ac_exeext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  coin_opt_cxxflags="-O"
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733  fi
3734
3735  # if PM doesn't want the warning messages, take them out
3736  if test x"$coin_skip_warn_cxxflags" = xyes; then
3737    coin_warn_cxxflags=
3738  fi
3739
3740# Do final setup of flags based on values determined above.
3741
3742  if test x${DBG_CXXFLAGS+set} != xset; then
3743    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3744  fi
3745  if test x${OPT_CXXFLAGS+set} != xset; then
3746    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3747  fi
3748
3749  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3750  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3751
3752  if test "$coin_debug_compile" = "true"; then
3753    CXXFLAGS="$DBG_CXXFLAGS"
3754  else
3755    CXXFLAGS="$OPT_CXXFLAGS"
3756  fi
3757
3758# Handle the case where CXXFLAGS was set externally.
3759else
3760  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3761  if test x${DBG_CXXFLAGS+set} != xset; then
3762    DBG_CXXFLAGS="$CXXFLAGS"
3763  fi
3764  if test x${OPT_CXXFLAGS+set} != xset; then
3765    OPT_CXXFLAGS="$CXXFLAGS"
3766  fi
3767fi
3768
3769# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3770if test x$COIN_PRJCT != x; then
3771  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3772fi
3773
3774# Try if CXXFLAGS works
3775save_CXXFLAGS="$CXXFLAGS"
3776cat >conftest.$ac_ext <<_ACEOF
3777/* confdefs.h.  */
3778_ACEOF
3779cat confdefs.h >>conftest.$ac_ext
3780cat >>conftest.$ac_ext <<_ACEOF
3781/* end confdefs.h.  */
3782
3783int
3784main ()
3785{
3786int i=0; i++;
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
3792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793  (eval $ac_link) 2>conftest.er1
3794  ac_status=$?
3795  grep -v '^ *+' conftest.er1 >conftest.err
3796  rm -f conftest.er1
3797  cat conftest.err >&5
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); } &&
3800	 { ac_try='test -z "$ac_cxx_werror_flag"
3801			 || test ! -s conftest.err'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; } &&
3807	 { ac_try='test -s conftest$ac_exeext'
3808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809  (eval $ac_try) 2>&5
3810  ac_status=$?
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); }; }; then
3813  :
3814else
3815  echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818CXXFLAGS=
3819fi
3820rm -f conftest.err conftest.$ac_objext \
3821      conftest$ac_exeext conftest.$ac_ext
3822if test -z "$CXXFLAGS"; then
3823  { 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
3824echo "$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;}
3825  CXXFLAGS='-O'
3826  cat >conftest.$ac_ext <<_ACEOF
3827/* confdefs.h.  */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h.  */
3832
3833int
3834main ()
3835{
3836int i=0; i++;
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841rm -f conftest.$ac_objext conftest$ac_exeext
3842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843  (eval $ac_link) 2>conftest.er1
3844  ac_status=$?
3845  grep -v '^ *+' conftest.er1 >conftest.err
3846  rm -f conftest.er1
3847  cat conftest.err >&5
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); } &&
3850	 { ac_try='test -z "$ac_cxx_werror_flag"
3851			 || test ! -s conftest.err'
3852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853  (eval $ac_try) 2>&5
3854  ac_status=$?
3855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); }; } &&
3857	 { ac_try='test -s conftest$ac_exeext'
3858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859  (eval $ac_try) 2>&5
3860  ac_status=$?
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); }; }; then
3863  :
3864else
3865  echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868CXXFLAGS=
3869fi
3870rm -f conftest.err conftest.$ac_objext \
3871      conftest$ac_exeext conftest.$ac_ext
3872  if test -z "$CXXFLAGS"; then
3873    { 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
3874echo "$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;}
3875  fi
3876fi
3877
3878{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3879echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3880
3881
3882if test x"$MPICXX" = x; then :; else
3883  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3884echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3885  CXX="$MPICXX"
3886fi
3887
3888# correct the LD variable in a build with MS or Intel-windows compiler
3889case "$CXX" in
3890  clang* ) ;;
3891  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3892    LD=link
3893    ;;
3894esac
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903
3904# Get the name of the Fortran compiler and appropriate compiler options
3905case $build in
3906  *-cygwin* | *-mingw*)
3907     if test "$enable_msvc" = yes ; then
3908       coin_f77_comps="ifort fl32 compile_f2c"
3909     else
3910       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3911     fi ;;
3912  *-*-solaris*)
3913     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3914  *-linux-gnu*)
3915     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3916  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3917 esac
3918
3919
3920
3921
3922
3923ac_ext=f
3924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3927
3928
3929
3930
3931
3932
3933coin_has_f77=yes
3934
3935save_fflags="$FFLAGS"
3936
3937# We delete the cached value, since the test might not have been
3938# performed with our choice of compilers earlier
3939$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3940
3941# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3942# coin_f77_comps to see if there's a program that matches one of the names.
3943# If there's no such program, F77 = unavailable. If we match the name,
3944# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3945# compiler.
3946# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3947
3948
3949{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3950echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3951if test -n "$ac_tool_prefix"; then
3952  for ac_prog in $coin_f77_comps
3953  do
3954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_F77+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  if test -n "$F77"; then
3962  ac_cv_prog_F77="$F77" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967  IFS=$as_save_IFS
3968  test -z "$as_dir" && as_dir=.
3969  for ac_exec_ext in '' $ac_executable_extensions; do
3970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973    break 2
3974  fi
3975done
3976done
3977
3978fi
3979fi
3980F77=$ac_cv_prog_F77
3981if test -n "$F77"; then
3982  echo "$as_me:$LINENO: result: $F77" >&5
3983echo "${ECHO_T}$F77" >&6
3984else
3985  echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987fi
3988
3989    test -n "$F77" && break
3990  done
3991fi
3992if test -z "$F77"; then
3993  ac_ct_F77=$F77
3994  for ac_prog in $coin_f77_comps
3995do
3996  # Extract the first word of "$ac_prog", so it can be a program name with args.
3997set dummy $ac_prog; ac_word=$2
3998echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4001  echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003  if test -n "$ac_ct_F77"; then
4004  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011  for ac_exec_ext in '' $ac_executable_extensions; do
4012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013    ac_cv_prog_ac_ct_F77="$ac_prog"
4014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015    break 2
4016  fi
4017done
4018done
4019
4020fi
4021fi
4022ac_ct_F77=$ac_cv_prog_ac_ct_F77
4023if test -n "$ac_ct_F77"; then
4024  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4025echo "${ECHO_T}$ac_ct_F77" >&6
4026else
4027  echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029fi
4030
4031  test -n "$ac_ct_F77" && break
4032done
4033test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4034
4035  F77=$ac_ct_F77
4036fi
4037
4038
4039if test "$F77" != "unavailable" ; then
4040  ac_ext=f
4041ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4042ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4044if test -n "$ac_tool_prefix"; then
4045  for ac_prog in $coin_f77_comps
4046  do
4047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049echo "$as_me:$LINENO: checking for $ac_word" >&5
4050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051if test "${ac_cv_prog_F77+set}" = set; then
4052  echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054  if test -n "$F77"; then
4055  ac_cv_prog_F77="$F77" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060  IFS=$as_save_IFS
4061  test -z "$as_dir" && as_dir=.
4062  for ac_exec_ext in '' $ac_executable_extensions; do
4063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066    break 2
4067  fi
4068done
4069done
4070
4071fi
4072fi
4073F77=$ac_cv_prog_F77
4074if test -n "$F77"; then
4075  echo "$as_me:$LINENO: result: $F77" >&5
4076echo "${ECHO_T}$F77" >&6
4077else
4078  echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081
4082    test -n "$F77" && break
4083  done
4084fi
4085if test -z "$F77"; then
4086  ac_ct_F77=$F77
4087  for ac_prog in $coin_f77_comps
4088do
4089  # Extract the first word of "$ac_prog", so it can be a program name with args.
4090set dummy $ac_prog; ac_word=$2
4091echo "$as_me:$LINENO: checking for $ac_word" >&5
4092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  if test -n "$ac_ct_F77"; then
4097  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4098else
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102  IFS=$as_save_IFS
4103  test -z "$as_dir" && as_dir=.
4104  for ac_exec_ext in '' $ac_executable_extensions; do
4105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106    ac_cv_prog_ac_ct_F77="$ac_prog"
4107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108    break 2
4109  fi
4110done
4111done
4112
4113fi
4114fi
4115ac_ct_F77=$ac_cv_prog_ac_ct_F77
4116if test -n "$ac_ct_F77"; then
4117  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4118echo "${ECHO_T}$ac_ct_F77" >&6
4119else
4120  echo "$as_me:$LINENO: result: no" >&5
4121echo "${ECHO_T}no" >&6
4122fi
4123
4124  test -n "$ac_ct_F77" && break
4125done
4126
4127  F77=$ac_ct_F77
4128fi
4129
4130
4131# Provide some information about the compiler.
4132echo "$as_me:4132:" \
4133     "checking for Fortran 77 compiler version" >&5
4134ac_compiler=`set X $ac_compile; echo $2`
4135{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4136  (eval $ac_compiler --version </dev/null >&5) 2>&5
4137  ac_status=$?
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); }
4140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4141  (eval $ac_compiler -v </dev/null >&5) 2>&5
4142  ac_status=$?
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); }
4145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4146  (eval $ac_compiler -V </dev/null >&5) 2>&5
4147  ac_status=$?
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); }
4150rm -f a.out
4151
4152# If we don't use `.F' as extension, the preprocessor is not run on the
4153# input file.  (Note that this only needs to work for GNU compilers.)
4154ac_save_ext=$ac_ext
4155ac_ext=F
4156echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4157echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4158if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  cat >conftest.$ac_ext <<_ACEOF
4162      program main
4163#ifndef __GNUC__
4164       choke me
4165#endif
4166
4167      end
4168_ACEOF
4169rm -f conftest.$ac_objext
4170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171  (eval $ac_compile) 2>conftest.er1
4172  ac_status=$?
4173  grep -v '^ *+' conftest.er1 >conftest.err
4174  rm -f conftest.er1
4175  cat conftest.err >&5
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } &&
4178	 { ac_try='test -z "$ac_f77_werror_flag"
4179			 || test ! -s conftest.err'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; } &&
4185	 { ac_try='test -s conftest.$ac_objext'
4186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187  (eval $ac_try) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; }; then
4191  ac_compiler_gnu=yes
4192else
4193  echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196ac_compiler_gnu=no
4197fi
4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4200
4201fi
4202echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4203echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4204ac_ext=$ac_save_ext
4205ac_test_FFLAGS=${FFLAGS+set}
4206ac_save_FFLAGS=$FFLAGS
4207FFLAGS=
4208echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4209echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4210if test "${ac_cv_prog_f77_g+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  FFLAGS=-g
4214cat >conftest.$ac_ext <<_ACEOF
4215      program main
4216
4217      end
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221  (eval $ac_compile) 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } &&
4228	 { ac_try='test -z "$ac_f77_werror_flag"
4229			 || test ! -s conftest.err'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; } &&
4235	 { ac_try='test -s conftest.$ac_objext'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; }; then
4241  ac_cv_prog_f77_g=yes
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv_prog_f77_g=no
4247fi
4248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4249
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4252echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4253if test "$ac_test_FFLAGS" = set; then
4254  FFLAGS=$ac_save_FFLAGS
4255elif test $ac_cv_prog_f77_g = yes; then
4256  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4257    FFLAGS="-g -O2"
4258  else
4259    FFLAGS="-g"
4260  fi
4261else
4262  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4263    FFLAGS="-O2"
4264  else
4265    FFLAGS=
4266  fi
4267fi
4268
4269G77=`test $ac_compiler_gnu = yes && echo yes`
4270ac_ext=f
4271ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4272ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4274
4275else
4276  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4277echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4278fi
4279
4280FFLAGS="$save_fflags"
4281
4282# Check if a project specific FFLAGS variable has been set
4283if test x$COIN_PRJCT != x; then
4284  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4285  if test x$coin_tmp = xset; then
4286    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4287  fi
4288fi
4289
4290if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4291
4292  coin_add_fflags=
4293  coin_opt_fflags=
4294  coin_dbg_fflags=
4295  coin_warn_fflags=
4296
4297  if test "$G77" = "yes"; then
4298    coin_opt_fflags="-O3"
4299    coin_add_fflags="-pipe"
4300    coin_dbg_fflags="-g -O0"
4301  else
4302    case $build in
4303      *-cygwin* | *-mingw*)
4304        case $F77 in
4305          ifort* | */ifort* | IFORT* | */IFORT* )
4306            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4307              coin_opt_fflags='-MD -O3'
4308              coin_dbg_fflags='-MDd -debug'
4309            else
4310              coin_opt_fflags='-MT -O3'
4311              coin_dbg_fflags='-MTd -debug'
4312            fi
4313            coin_add_fflags='-fpp -nologo'
4314          ;;
4315          compile_f2c*)
4316            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4317              coin_opt_fflags='-MD -O2'
4318              coin_dbg_fflags='-MDd'
4319            else
4320              coin_opt_fflags='-MT -O2'
4321              coin_dbg_fflags='-MTd'
4322            fi
4323            coin_add_fflags='-nologo -wd4996'
4324          ;;
4325        esac
4326        ;;
4327      *-linux-*)
4328        case $F77 in
4329          ifc* | */ifc* | ifort* | */ifort*)
4330            coin_opt_fflags="-O3 -ip"
4331            coin_add_fflags="-cm -w90 -w95"
4332            coin_dbg_fflags="-g -CA -CB -CS"
4333            # Check if -i_dynamic is necessary (for new glibc library)
4334            FFLAGS=
4335            cat >conftest.$ac_ext <<_ACEOF
4336      program main
4337      write(*,*) 'Hello world'
4338      end
4339_ACEOF
4340rm -f conftest.$ac_objext conftest$ac_exeext
4341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342  (eval $ac_link) 2>conftest.er1
4343  ac_status=$?
4344  grep -v '^ *+' conftest.er1 >conftest.err
4345  rm -f conftest.er1
4346  cat conftest.err >&5
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); } &&
4349	 { ac_try='test -z "$ac_f77_werror_flag"
4350			 || test ! -s conftest.err'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; } &&
4356	 { ac_try='test -s conftest$ac_exeext'
4357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358  (eval $ac_try) 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; }; then
4362  :
4363else
4364  echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367coin_add_fflags="-i_dynamic $coin_add_fflags"
4368fi
4369rm -f conftest.err conftest.$ac_objext \
4370      conftest$ac_exeext conftest.$ac_ext
4371            ;;
4372          pgf77* | */pgf77* | pgf90* | */pgf90*)
4373            coin_opt_fflags="-fast"
4374            coin_add_fflags="-Kieee -pc 64"
4375            coin_dbg_fflags="-g"
4376          ;;
4377        esac
4378        ;;
4379      *-ibm-*)
4380        case "$F77" in
4381          xlf* | */xlf* | mpxlf* | */mpxlf* )
4382            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4383            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4384            coin_dbg_fflags="-g -C"
4385            ;;
4386        esac
4387        ;;
4388      *-hp-*)
4389        coin_opt_fflags="+O3"
4390        coin_add_fflags="+U77"
4391        coin_dbg_fflags="-C -g"
4392        ;;
4393      *-*-solaris*)
4394        coin_opt_fflags="-O4"
4395        coin_dbg_fflags="-g"
4396        ;;
4397      *-sgi-*)
4398        coin_opt_fflags="-O5 -OPT:Olimit=0"
4399        coin_dbg_fflags="-g"
4400        ;;
4401    esac
4402  fi
4403
4404  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4405    coin_dbg_fflags="-g"
4406  fi
4407
4408  if test -z "$coin_opt_fflags"; then
4409    # Try if -O option works if nothing else is set
4410    FFLAGS=-O
4411    cat >conftest.$ac_ext <<_ACEOF
4412      program main
4413      integer i
4414      end
4415_ACEOF
4416rm -f conftest.$ac_objext conftest$ac_exeext
4417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4418  (eval $ac_link) 2>conftest.er1
4419  ac_status=$?
4420  grep -v '^ *+' conftest.er1 >conftest.err
4421  rm -f conftest.er1
4422  cat conftest.err >&5
4423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); } &&
4425	 { ac_try='test -z "$ac_f77_werror_flag"
4426			 || test ! -s conftest.err'
4427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428  (eval $ac_try) 2>&5
4429  ac_status=$?
4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431  (exit $ac_status); }; } &&
4432	 { ac_try='test -s conftest$ac_exeext'
4433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434  (eval $ac_try) 2>&5
4435  ac_status=$?
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); }; }; then
4438  coin_opt_fflags="-O"
4439else
4440  echo "$as_me: failed program was:" >&5
4441sed 's/^/| /' conftest.$ac_ext >&5
4442
4443fi
4444rm -f conftest.err conftest.$ac_objext \
4445      conftest$ac_exeext conftest.$ac_ext
4446  fi
4447
4448  # if PM doesn't want the warning messages, take them out
4449  if test x"$coin_skip_warn_fflags" = xyes; then
4450    coin_warn_fflags=
4451  fi
4452
4453  if test x${DBG_FFLAGS+set} != xset; then
4454    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4455  fi
4456  if test x${OPT_FFLAGS+set} != xset; then
4457    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4458  fi
4459
4460  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4461  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4462
4463  if test "$coin_debug_compile" = "true"; then
4464    FFLAGS="$DBG_FFLAGS"
4465  else
4466    FFLAGS="$OPT_FFLAGS"
4467  fi
4468else
4469  FFLAGS="$FFLAGS $ADD_FFLAGS"
4470  if test x${DBG_FFLAGS+set} != xset; then
4471    DBG_FFLAGS="$FFLAGS"
4472  fi
4473  if test x${OPT_FFLAGS+set} != xset; then
4474    OPT_FFLAGS="$FFLAGS"
4475  fi
4476fi
4477
4478# Try if FFLAGS works
4479if test "$F77" != "unavailable" ; then
4480  orig_FFLAGS="FFLAGS"
4481  cat >conftest.$ac_ext <<_ACEOF
4482      program main
4483      integer i
4484      end
4485_ACEOF
4486rm -f conftest.$ac_objext conftest$ac_exeext
4487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488  (eval $ac_link) 2>conftest.er1
4489  ac_status=$?
4490  grep -v '^ *+' conftest.er1 >conftest.err
4491  rm -f conftest.er1
4492  cat conftest.err >&5
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); } &&
4495	 { ac_try='test -z "$ac_f77_werror_flag"
4496			 || test ! -s conftest.err'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; } &&
4502	 { ac_try='test -s conftest$ac_exeext'
4503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504  (eval $ac_try) 2>&5
4505  ac_status=$?
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); }; }; then
4508  :
4509else
4510  echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513FFLAGS=
4514fi
4515rm -f conftest.err conftest.$ac_objext \
4516      conftest$ac_exeext conftest.$ac_ext
4517  if test -z "$FFLAGS"; then
4518    { 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
4519echo "$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;}
4520    FFLAGS='-O'
4521    cat >conftest.$ac_ext <<_ACEOF
4522      program main
4523      integer i
4524      end
4525_ACEOF
4526rm -f conftest.$ac_objext conftest$ac_exeext
4527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528  (eval $ac_link) 2>conftest.er1
4529  ac_status=$?
4530  grep -v '^ *+' conftest.er1 >conftest.err
4531  rm -f conftest.er1
4532  cat conftest.err >&5
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); } &&
4535	 { ac_try='test -z "$ac_f77_werror_flag"
4536			 || test ! -s conftest.err'
4537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538  (eval $ac_try) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; } &&
4542	 { ac_try='test -s conftest$ac_exeext'
4543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544  (eval $ac_try) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; }; then
4548  :
4549else
4550  echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553FFLAGS=
4554fi
4555rm -f conftest.err conftest.$ac_objext \
4556      conftest$ac_exeext conftest.$ac_ext
4557    if test -z "$FFLAGS"; then
4558      { 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
4559echo "$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;}
4560    fi
4561  fi
4562fi
4563
4564{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4565echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4566
4567
4568if test x"$MPIF77" = x; then :; else
4569  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4570echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4571  F77="$MPIF77"
4572fi
4573
4574# correct the LD variable if we use the intel fortran compiler in windows
4575case $build in
4576  *-cygwin* | *-mingw*)
4577    case "$F77" in
4578      ifort* | */ifort* | IFORT* | */IFORT*)
4579        LD=link
4580      ;;
4581    esac
4582  ;;
4583esac
4584
4585ac_ext=c
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591
4592
4593# Initialize automake and libtool
4594# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4595{
4596
4597
4598
4599# START
4600
4601coin_disable_shared=no
4602# Test if force_shared has been set
4603if test "x" = xforce_shared; then
4604  if test x$enable_shared = xno; then
4605    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4606echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4607   { (exit 1); exit 1; }; }
4608  fi
4609  enable_shared=yes;
4610else
4611  case $build in
4612    *-cygwin* | *-mingw*)
4613      coin_disable_shared=yes
4614      if test x"$enable_shared" = xyes; then
4615        case "$CC" in
4616          clang* )
4617            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4618echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4619            ;;
4620          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4621            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4622echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4623            ;;
4624          *gcc*)
4625            if test x"$enable_dependency_linking" = xyes; then
4626              coin_disable_shared=no
4627            else
4628              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4629echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4630            fi
4631            ;;
4632          *)
4633            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4634echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4635            ;;
4636        esac
4637      fi
4638    ;;
4639    *-aix*)
4640      coin_disable_shared=yes
4641      platform=AIX
4642      if test x"$enable_shared" = xyes; then
4643        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4644echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4645      fi
4646    ;;
4647  esac
4648fi
4649if test x"$coin_disable_shared" = xyes; then
4650  if test x"$enable_shared" = xyes; then
4651    :
4652  else
4653    # we don't disable shared, because it was not selected anyway
4654    coin_disable_shared=no
4655  fi
4656  enable_shared=no
4657fi
4658# By default, we only want the shared objects to be compiled
4659# Check whether --enable-static or --disable-static was given.
4660if test "${enable_static+set}" = set; then
4661  enableval="$enable_static"
4662  p=${PACKAGE-default}
4663    case $enableval in
4664    yes) enable_static=yes ;;
4665    no) enable_static=no ;;
4666    *)
4667     enable_static=no
4668      # Look at the argument we got.  We use all the common list separators.
4669      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4670      for pkg in $enableval; do
4671	IFS="$lt_save_ifs"
4672	if test "X$pkg" = "X$p"; then
4673	  enable_static=yes
4674	fi
4675      done
4676      IFS="$lt_save_ifs"
4677      ;;
4678    esac
4679else
4680  enable_static=no
4681fi;
4682
4683
4684
4685
4686# Initialize automake
4687echo "$as_me:$LINENO: checking for egrep" >&5
4688echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4689if test "${ac_cv_prog_egrep+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4693    then ac_cv_prog_egrep='grep -E'
4694    else ac_cv_prog_egrep='egrep'
4695    fi
4696fi
4697echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4698echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4699 EGREP=$ac_cv_prog_egrep
4700
4701
4702echo "$as_me:$LINENO: checking whether ln -s works" >&5
4703echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4704LN_S=$as_ln_s
4705if test "$LN_S" = "ln -s"; then
4706  echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708else
4709  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4710echo "${ECHO_T}no, using $LN_S" >&6
4711fi
4712
4713am__api_version="1.9"
4714# Find a good install program.  We prefer a C program (faster),
4715# so one script is as good as another.  But avoid the broken or
4716# incompatible versions:
4717# SysV /etc/install, /usr/sbin/install
4718# SunOS /usr/etc/install
4719# IRIX /sbin/install
4720# AIX /bin/install
4721# AmigaOS /C/install, which installs bootblocks on floppy discs
4722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4723# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4725# OS/2's system install, which has a completely different semantic
4726# ./install, which can be erroneously created by make from ./install.sh.
4727echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4728echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4729if test -z "$INSTALL"; then
4730if test "${ac_cv_path_install+set}" = set; then
4731  echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736  IFS=$as_save_IFS
4737  test -z "$as_dir" && as_dir=.
4738  # Account for people who put trailing slashes in PATH elements.
4739case $as_dir/ in
4740  ./ | .// | /cC/* | \
4741  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4742  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4743  /usr/ucb/* ) ;;
4744  *)
4745    # OSF1 and SCO ODT 3.0 have their own names for install.
4746    # Don't use installbsd from OSF since it installs stuff as root
4747    # by default.
4748    for ac_prog in ginstall scoinst install; do
4749      for ac_exec_ext in '' $ac_executable_extensions; do
4750	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4751	  if test $ac_prog = install &&
4752	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4753	    # AIX install.  It has an incompatible calling convention.
4754	    :
4755	  elif test $ac_prog = install &&
4756	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4757	    # program-specific install script used by HP pwplus--don't use.
4758	    :
4759	  else
4760	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4761	    break 3
4762	  fi
4763	fi
4764      done
4765    done
4766    ;;
4767esac
4768done
4769
4770
4771fi
4772  if test "${ac_cv_path_install+set}" = set; then
4773    INSTALL=$ac_cv_path_install
4774  else
4775    # As a last resort, use the slow shell script.  We don't cache a
4776    # path for INSTALL within a source directory, because that will
4777    # break other packages using the cache if that directory is
4778    # removed, or if the path is relative.
4779    INSTALL=$ac_install_sh
4780  fi
4781fi
4782echo "$as_me:$LINENO: result: $INSTALL" >&5
4783echo "${ECHO_T}$INSTALL" >&6
4784
4785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4786# It thinks the first close brace ends the variable substitution.
4787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4788
4789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4790
4791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4792
4793echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4794echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4795# Just in case
4796sleep 1
4797echo timestamp > conftest.file
4798# Do `set' in a subshell so we don't clobber the current shell's
4799# arguments.  Must try -L first in case configure is actually a
4800# symlink; some systems play weird games with the mod time of symlinks
4801# (eg FreeBSD returns the mod time of the symlink's containing
4802# directory).
4803if (
4804   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4805   if test "$*" = "X"; then
4806      # -L didn't work.
4807      set X `ls -t $srcdir/configure conftest.file`
4808   fi
4809   rm -f conftest.file
4810   if test "$*" != "X $srcdir/configure conftest.file" \
4811      && test "$*" != "X conftest.file $srcdir/configure"; then
4812
4813      # If neither matched, then we have a broken ls.  This can happen
4814      # if, for instance, CONFIG_SHELL is bash and it inherits a
4815      # broken ls alias from the environment.  This has actually
4816      # happened.  Such a system could not be considered "sane".
4817      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4818alias in your environment" >&5
4819echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4820alias in your environment" >&2;}
4821   { (exit 1); exit 1; }; }
4822   fi
4823
4824   test "$2" = conftest.file
4825   )
4826then
4827   # Ok.
4828   :
4829else
4830   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4831Check your system clock" >&5
4832echo "$as_me: error: newly created file is older than distributed files!
4833Check your system clock" >&2;}
4834   { (exit 1); exit 1; }; }
4835fi
4836echo "$as_me:$LINENO: result: yes" >&5
4837echo "${ECHO_T}yes" >&6
4838test "$program_prefix" != NONE &&
4839  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4840# Use a double $ so make ignores it.
4841test "$program_suffix" != NONE &&
4842  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4843# Double any \ or $.  echo might interpret backslashes.
4844# By default was `s,x,x', remove it if useless.
4845cat <<\_ACEOF >conftest.sed
4846s/[\\$]/&&/g;s/;s,x,x,$//
4847_ACEOF
4848program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4849rm conftest.sed
4850
4851# expand $ac_aux_dir to an absolute path
4852am_aux_dir=`cd $ac_aux_dir && pwd`
4853
4854test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4855# Use eval to expand $SHELL
4856if eval "$MISSING --run true"; then
4857  am_missing_run="$MISSING --run "
4858else
4859  am_missing_run=
4860  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4861echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4862fi
4863
4864if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4865  # We used to keeping the `.' as first argument, in order to
4866  # allow $(mkdir_p) to be used without argument.  As in
4867  #   $(mkdir_p) $(somedir)
4868  # where $(somedir) is conditionally defined.  However this is wrong
4869  # for two reasons:
4870  #  1. if the package is installed by a user who cannot write `.'
4871  #     make install will fail,
4872  #  2. the above comment should most certainly read
4873  #     $(mkdir_p) $(DESTDIR)$(somedir)
4874  #     so it does not work when $(somedir) is undefined and
4875  #     $(DESTDIR) is not.
4876  #  To support the latter case, we have to write
4877  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4878  #  so the `.' trick is pointless.
4879  mkdir_p='mkdir -p --'
4880else
4881  # On NextStep and OpenStep, the `mkdir' command does not
4882  # recognize any option.  It will interpret all options as
4883  # directories to create, and then abort because `.' already
4884  # exists.
4885  for d in ./-p ./--version;
4886  do
4887    test -d $d && rmdir $d
4888  done
4889  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4890  if test -f "$ac_aux_dir/mkinstalldirs"; then
4891    mkdir_p='$(mkinstalldirs)'
4892  else
4893    mkdir_p='$(install_sh) -d'
4894  fi
4895fi
4896
4897for ac_prog in gawk mawk nawk awk
4898do
4899  # Extract the first word of "$ac_prog", so it can be a program name with args.
4900set dummy $ac_prog; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_AWK+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906  if test -n "$AWK"; then
4907  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914  for ac_exec_ext in '' $ac_executable_extensions; do
4915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916    ac_cv_prog_AWK="$ac_prog"
4917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918    break 2
4919  fi
4920done
4921done
4922
4923fi
4924fi
4925AWK=$ac_cv_prog_AWK
4926if test -n "$AWK"; then
4927  echo "$as_me:$LINENO: result: $AWK" >&5
4928echo "${ECHO_T}$AWK" >&6
4929else
4930  echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
4934  test -n "$AWK" && break
4935done
4936
4937echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4938echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4939set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4940if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  cat >conftest.make <<\_ACEOF
4944all:
4945	@echo 'ac_maketemp="$(MAKE)"'
4946_ACEOF
4947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4948eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4949if test -n "$ac_maketemp"; then
4950  eval ac_cv_prog_make_${ac_make}_set=yes
4951else
4952  eval ac_cv_prog_make_${ac_make}_set=no
4953fi
4954rm -f conftest.make
4955fi
4956if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4957  echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959  SET_MAKE=
4960else
4961  echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963  SET_MAKE="MAKE=${MAKE-make}"
4964fi
4965
4966rm -rf .tst 2>/dev/null
4967mkdir .tst 2>/dev/null
4968if test -d .tst; then
4969  am__leading_dot=.
4970else
4971  am__leading_dot=_
4972fi
4973rmdir .tst 2>/dev/null
4974
4975DEPDIR="${am__leading_dot}deps"
4976
4977          ac_config_commands="$ac_config_commands depfiles"
4978
4979
4980am_make=${MAKE-make}
4981cat > confinc << 'END'
4982am__doit:
4983	@echo done
4984.PHONY: am__doit
4985END
4986# If we don't find an include directive, just comment out the code.
4987echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4988echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4989am__include="#"
4990am__quote=
4991_am_result=none
4992# First try GNU make style include.
4993echo "include confinc" > confmf
4994# We grep out `Entering directory' and `Leaving directory'
4995# messages which can occur if `w' ends up in MAKEFLAGS.
4996# In particular we don't look at `^make:' because GNU make might
4997# be invoked under some other name (usually "gmake"), in which
4998# case it prints its new name instead of `make'.
4999if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5000   am__include=include
5001   am__quote=
5002   _am_result=GNU
5003fi
5004# Now try BSD make style include.
5005if test "$am__include" = "#"; then
5006   echo '.include "confinc"' > confmf
5007   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5008      am__include=.include
5009      am__quote="\""
5010      _am_result=BSD
5011   fi
5012fi
5013
5014
5015echo "$as_me:$LINENO: result: $_am_result" >&5
5016echo "${ECHO_T}$_am_result" >&6
5017rm -f confinc confmf
5018
5019# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5020if test "${enable_dependency_tracking+set}" = set; then
5021  enableval="$enable_dependency_tracking"
5022
5023fi;
5024if test "x$enable_dependency_tracking" != xno; then
5025  am_depcomp="$ac_aux_dir/depcomp"
5026  AMDEPBACKSLASH='\'
5027fi
5028
5029
5030if test "x$enable_dependency_tracking" != xno; then
5031  AMDEP_TRUE=
5032  AMDEP_FALSE='#'
5033else
5034  AMDEP_TRUE='#'
5035  AMDEP_FALSE=
5036fi
5037
5038
5039
5040
5041
5042
5043# AC_MSG_NOTICE([Beginning automake initialisation.])
5044# Stuff for automake
5045# test to see if srcdir already configured
5046if test "`cd $srcdir && pwd`" != "`pwd`" &&
5047   test -f $srcdir/config.status; then
5048  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5049echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5050   { (exit 1); exit 1; }; }
5051fi
5052
5053# test whether we have cygpath
5054if test -z "$CYGPATH_W"; then
5055  if (cygpath --version) >/dev/null 2>/dev/null; then
5056    CYGPATH_W='cygpath -w'
5057  else
5058    CYGPATH_W=echo
5059  fi
5060fi
5061
5062
5063# Define the identity of the package.
5064 PACKAGE='flopcpp'
5065 VERSION='trunk'
5066
5067
5068cat >>confdefs.h <<_ACEOF
5069#define PACKAGE "$PACKAGE"
5070_ACEOF
5071
5072
5073cat >>confdefs.h <<_ACEOF
5074#define VERSION "$VERSION"
5075_ACEOF
5076
5077# Some tools Automake needs.
5078
5079ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5080
5081
5082AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5083
5084
5085AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5086
5087
5088AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5089
5090
5091MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5092
5093install_sh=${install_sh-"$am_aux_dir/install-sh"}
5094
5095# Installed binaries are usually stripped using `strip' when the user
5096# run `make install-strip'.  However `strip' might not be the right
5097# tool to use in cross-compilation environments, therefore Automake
5098# will honor the `STRIP' environment variable to overrule this program.
5099if test "$cross_compiling" != no; then
5100  if test -n "$ac_tool_prefix"; then
5101  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5102set dummy ${ac_tool_prefix}strip; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_prog_STRIP+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  if test -n "$STRIP"; then
5109  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116  for ac_exec_ext in '' $ac_executable_extensions; do
5117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123done
5124
5125fi
5126fi
5127STRIP=$ac_cv_prog_STRIP
5128if test -n "$STRIP"; then
5129  echo "$as_me:$LINENO: result: $STRIP" >&5
5130echo "${ECHO_T}$STRIP" >&6
5131else
5132  echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134fi
5135
5136fi
5137if test -z "$ac_cv_prog_STRIP"; then
5138  ac_ct_STRIP=$STRIP
5139  # Extract the first word of "strip", so it can be a program name with args.
5140set dummy strip; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  if test -n "$ac_ct_STRIP"; then
5147  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154  for ac_exec_ext in '' $ac_executable_extensions; do
5155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156    ac_cv_prog_ac_ct_STRIP="strip"
5157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158    break 2
5159  fi
5160done
5161done
5162
5163  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5164fi
5165fi
5166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5167if test -n "$ac_ct_STRIP"; then
5168  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5169echo "${ECHO_T}$ac_ct_STRIP" >&6
5170else
5171  echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
5175  STRIP=$ac_ct_STRIP
5176else
5177  STRIP="$ac_cv_prog_STRIP"
5178fi
5179
5180fi
5181INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5182
5183# We need awk for the "check" target.  The system "awk" is bad on
5184# some platforms.
5185# Always define AMTAR for backward compatibility.
5186
5187AMTAR=${AMTAR-"${am_missing_run}tar"}
5188
5189am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5190
5191
5192
5193
5194depcc="$CC"   am_compiler_list=
5195
5196echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5197echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5198if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5202  # We make a subdir and do the tests there.  Otherwise we can end up
5203  # making bogus files that we don't know about and never remove.  For
5204  # instance it was reported that on HP-UX the gcc test will end up
5205  # making a dummy file named `D' -- because `-MD' means `put the output
5206  # in D'.
5207  mkdir conftest.dir
5208  # Copy depcomp to subdir because otherwise we won't find it if we're
5209  # using a relative directory.
5210  cp "$am_depcomp" conftest.dir
5211  cd conftest.dir
5212  # We will build objects and dependencies in a subdirectory because
5213  # it helps to detect inapplicable dependency modes.  For instance
5214  # both Tru64's cc and ICC support -MD to output dependencies as a
5215  # side effect of compilation, but ICC will put the dependencies in
5216  # the current directory while Tru64 will put them in the object
5217  # directory.
5218  mkdir sub
5219
5220  am_cv_CC_dependencies_compiler_type=none
5221  if test "$am_compiler_list" = ""; then
5222     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5223  fi
5224  for depmode in $am_compiler_list; do
5225    # Setup a source with many dependencies, because some compilers
5226    # like to wrap large dependency lists on column 80 (with \), and
5227    # we should not choose a depcomp mode which is confused by this.
5228    #
5229    # We need to recreate these files for each test, as the compiler may
5230    # overwrite some of them when testing with obscure command lines.
5231    # This happens at least with the AIX C compiler.
5232    : > sub/conftest.c
5233    for i in 1 2 3 4 5 6; do
5234      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5235      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5236      # Solaris 8's {/usr,}/bin/sh.
5237      touch sub/conftst$i.h
5238    done
5239    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5240
5241    case $depmode in
5242    nosideeffect)
5243      # after this tag, mechanisms are not by side-effect, so they'll
5244      # only be used when explicitly requested
5245      if test "x$enable_dependency_tracking" = xyes; then
5246	continue
5247      else
5248	break
5249      fi
5250      ;;
5251    none) break ;;
5252    esac
5253    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5254    # mode.  It turns out that the SunPro C++ compiler does not properly
5255    # handle `-M -o', and we need to detect this.
5256    if depmode=$depmode \
5257       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5258       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5259       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5260         >/dev/null 2>conftest.err &&
5261       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5262       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5263       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5264      # icc doesn't choke on unknown options, it will just issue warnings
5265      # or remarks (even with -Werror).  So we grep stderr for any message
5266      # that says an option was ignored or not supported.
5267      # When given -MP, icc 7.0 and 7.1 complain thusly:
5268      #   icc: Command line warning: ignoring option '-M'; no argument required
5269      # The diagnosis changed in icc 8.0:
5270      #   icc: Command line remark: option '-MP' not supported
5271      if (grep 'ignoring option' conftest.err ||
5272          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5273        am_cv_CC_dependencies_compiler_type=$depmode
5274        break
5275      fi
5276    fi
5277  done
5278
5279  cd ..
5280  rm -rf conftest.dir
5281else
5282  am_cv_CC_dependencies_compiler_type=none
5283fi
5284
5285fi
5286echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5287echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5288CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5289
5290
5291
5292if
5293  test "x$enable_dependency_tracking" != xno \
5294  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5295  am__fastdepCC_TRUE=
5296  am__fastdepCC_FALSE='#'
5297else
5298  am__fastdepCC_TRUE='#'
5299  am__fastdepCC_FALSE=
5300fi
5301
5302
5303depcc="$CXX"  am_compiler_list=
5304
5305echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5306echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5307if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5311  # We make a subdir and do the tests there.  Otherwise we can end up
5312  # making bogus files that we don't know about and never remove.  For
5313  # instance it was reported that on HP-UX the gcc test will end up
5314  # making a dummy file named `D' -- because `-MD' means `put the output
5315  # in D'.
5316  mkdir conftest.dir
5317  # Copy depcomp to subdir because otherwise we won't find it if we're
5318  # using a relative directory.
5319  cp "$am_depcomp" conftest.dir
5320  cd conftest.dir
5321  # We will build objects and dependencies in a subdirectory because
5322  # it helps to detect inapplicable dependency modes.  For instance
5323  # both Tru64's cc and ICC support -MD to output dependencies as a
5324  # side effect of compilation, but ICC will put the dependencies in
5325  # the current directory while Tru64 will put them in the object
5326  # directory.
5327  mkdir sub
5328
5329  am_cv_CXX_dependencies_compiler_type=none
5330  if test "$am_compiler_list" = ""; then
5331     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5332  fi
5333  for depmode in $am_compiler_list; do
5334    # Setup a source with many dependencies, because some compilers
5335    # like to wrap large dependency lists on column 80 (with \), and
5336    # we should not choose a depcomp mode which is confused by this.
5337    #
5338    # We need to recreate these files for each test, as the compiler may
5339    # overwrite some of them when testing with obscure command lines.
5340    # This happens at least with the AIX C compiler.
5341    : > sub/conftest.c
5342    for i in 1 2 3 4 5 6; do
5343      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5344      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5345      # Solaris 8's {/usr,}/bin/sh.
5346      touch sub/conftst$i.h
5347    done
5348    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5349
5350    case $depmode in
5351    nosideeffect)
5352      # after this tag, mechanisms are not by side-effect, so they'll
5353      # only be used when explicitly requested
5354      if test "x$enable_dependency_tracking" = xyes; then
5355	continue
5356      else
5357	break
5358      fi
5359      ;;
5360    none) break ;;
5361    esac
5362    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5363    # mode.  It turns out that the SunPro C++ compiler does not properly
5364    # handle `-M -o', and we need to detect this.
5365    if depmode=$depmode \
5366       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5367       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5368       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5369         >/dev/null 2>conftest.err &&
5370       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5371       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5372       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5373      # icc doesn't choke on unknown options, it will just issue warnings
5374      # or remarks (even with -Werror).  So we grep stderr for any message
5375      # that says an option was ignored or not supported.
5376      # When given -MP, icc 7.0 and 7.1 complain thusly:
5377      #   icc: Command line warning: ignoring option '-M'; no argument required
5378      # The diagnosis changed in icc 8.0:
5379      #   icc: Command line remark: option '-MP' not supported
5380      if (grep 'ignoring option' conftest.err ||
5381          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5382        am_cv_CXX_dependencies_compiler_type=$depmode
5383        break
5384      fi
5385    fi
5386  done
5387
5388  cd ..
5389  rm -rf conftest.dir
5390else
5391  am_cv_CXX_dependencies_compiler_type=none
5392fi
5393
5394fi
5395echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5396echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5397CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5398
5399
5400
5401if
5402  test "x$enable_dependency_tracking" != xno \
5403  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5404  am__fastdepCXX_TRUE=
5405  am__fastdepCXX_FALSE='#'
5406else
5407  am__fastdepCXX_TRUE='#'
5408  am__fastdepCXX_FALSE=
5409fi
5410
5411
5412
5413echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5414echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5415    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5416if test "${enable_maintainer_mode+set}" = set; then
5417  enableval="$enable_maintainer_mode"
5418  USE_MAINTAINER_MODE=$enableval
5419else
5420  USE_MAINTAINER_MODE=no
5421fi;
5422  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5423echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5424
5425
5426if test $USE_MAINTAINER_MODE = yes; then
5427  MAINTAINER_MODE_TRUE=
5428  MAINTAINER_MODE_FALSE='#'
5429else
5430  MAINTAINER_MODE_TRUE='#'
5431  MAINTAINER_MODE_FALSE=
5432fi
5433
5434  MAINT=$MAINTAINER_MODE_TRUE
5435
5436
5437
5438coin_have_externals=no
5439if test "$enable_maintainer_mode" = yes; then
5440
5441  # If maintainer mode is chosen, we make sure that the correct versions
5442  # of the tools are used, and that we know where libtool.m4 is (to
5443  # recreate acinclude.m4)
5444
5445
5446  LIBTOOLM4=
5447  # Normally, $HOME
5448  AUTOTOOLS_DFLT=$HOME
5449
5450  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5451echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5452if test "${ac_cv_use_correct_autotools+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  ac_cv_use_correct_autotools=check
5456fi
5457echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5458echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5459
5460  if test $ac_cv_use_correct_autotools = check; then
5461    ac_cv_use_correct_autotools=yes
5462    # Check if we have autoconf
5463    # Extract the first word of "autoconf", so it can be a program name with args.
5464set dummy autoconf; ac_word=$2
5465echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467if test "${ac_cv_prog_have_autoconf+set}" = set; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  if test -n "$have_autoconf"; then
5471  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476  IFS=$as_save_IFS
5477  test -z "$as_dir" && as_dir=.
5478  for ac_exec_ext in '' $ac_executable_extensions; do
5479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480    ac_cv_prog_have_autoconf="yes"
5481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482    break 2
5483  fi
5484done
5485done
5486
5487  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5488fi
5489fi
5490have_autoconf=$ac_cv_prog_have_autoconf
5491if test -n "$have_autoconf"; then
5492  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5493echo "${ECHO_T}$have_autoconf" >&6
5494else
5495  echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497fi
5498
5499    if test $have_autoconf = no; then
5500      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5501echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5502   { (exit 1); exit 1; }; }
5503    fi
5504
5505    # Check whether autoconf is the correct version
5506    correct_version='2.59'
5507    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5508    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5509echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5510    autoconf --version > confauto.out 2>&1
5511    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5512      echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514    else
5515      rm -f confauto.out
5516      echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5519echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5520   { (exit 1); exit 1; }; }
5521    fi
5522    rm -f confauto.out
5523
5524    # Check if the executable autoconf is picked up from the correct location
5525    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5526echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5527    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5528    autoconf_dir=`cd $autoconf_dir; pwd`
5529    if test x$AUTOTOOLS_DIR = x; then
5530      want_dir=$AUTOTOOLS_DFLT/bin
5531    else
5532      want_dir=$AUTOTOOLS_DIR/bin
5533    fi
5534    if test $autoconf_dir = `cd $want_dir; pwd`; then
5535      echo "$as_me:$LINENO: result: yes" >&5
5536echo "${ECHO_T}yes" >&6
5537    else
5538      rm -f confauto.out
5539      echo "$as_me:$LINENO: result: no" >&5
5540echo "${ECHO_T}no" >&6
5541      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5542echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5543   { (exit 1); exit 1; }; }
5544    fi
5545
5546    # Check if we have automake
5547    # Extract the first word of "automake", so it can be a program name with args.
5548set dummy automake; ac_word=$2
5549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551if test "${ac_cv_prog_have_automake+set}" = set; then
5552  echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554  if test -n "$have_automake"; then
5555  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560  IFS=$as_save_IFS
5561  test -z "$as_dir" && as_dir=.
5562  for ac_exec_ext in '' $ac_executable_extensions; do
5563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564    ac_cv_prog_have_automake="yes"
5565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566    break 2
5567  fi
5568done
5569done
5570
5571  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5572fi
5573fi
5574have_automake=$ac_cv_prog_have_automake
5575if test -n "$have_automake"; then
5576  echo "$as_me:$LINENO: result: $have_automake" >&5
5577echo "${ECHO_T}$have_automake" >&6
5578else
5579  echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
5581fi
5582
5583    if test $have_automake = no; then
5584      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5585echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5586   { (exit 1); exit 1; }; }
5587    fi
5588
5589    # Check whether automake is the correct version
5590    correct_version='1.9.6'
5591    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5592    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5593echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5594    automake --version > confauto.out 2>&1
5595    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5596      echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598    else
5599      rm -f confauto.out
5600      echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
5602      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5603echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5604   { (exit 1); exit 1; }; }
5605    fi
5606    rm -f confauto.out
5607
5608    # Check if the executable automake is picked up from the correct location
5609    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5610echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5611    automake_dir=`which automake | sed -e 's=/automake=='`
5612    automake_dir=`cd $automake_dir; pwd`
5613    if test x$AUTOTOOLS_DIR = x; then
5614      want_dir=$AUTOTOOLS_DFLT/bin
5615    else
5616      want_dir=$AUTOTOOLS_DIR/bin
5617    fi
5618    if test $automake_dir = `cd $want_dir; pwd`; then
5619      echo "$as_me:$LINENO: result: yes" >&5
5620echo "${ECHO_T}yes" >&6
5621    else
5622      rm -f confauto.out
5623      echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5626echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5627   { (exit 1); exit 1; }; }
5628    fi
5629
5630    # Check if this is the correct version of libtool (with escaped dots)
5631    if test x$AUTOTOOLS_DIR = x; then
5632      want_dir=$AUTOTOOLS_DFLT/share
5633    else
5634      want_dir=$AUTOTOOLS_DIR/share
5635    fi
5636    correct_version='1.5.22'
5637    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5638    if test -r $want_dir/libtool/ltmain.sh; then
5639  have_ltmain=yes
5640  :
5641else
5642  have_ltmain=no
5643  :
5644fi
5645
5646    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5647echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5648    if test $have_ltmain = yes; then
5649    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5650        echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652      else
5653        echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5656echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5657   { (exit 1); exit 1; }; }
5658      fi
5659    else
5660      echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5663echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5664   { (exit 1); exit 1; }; }
5665    fi
5666  fi
5667
5668  # Check if we can find the libtool file
5669  if test x$AUTOTOOLS_DIR = x; then
5670    want_dir=$AUTOTOOLS_DFLT/share
5671  else
5672    want_dir=$AUTOTOOLS_DIR/share
5673  fi
5674  if test -r $want_dir/aclocal/libtool.m4; then
5675  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5676  :
5677else
5678  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5679echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5680   { (exit 1); exit 1; }; }
5681  :
5682fi
5683
5684
5685  # Check if we have an Dependencies file
5686  if test -r $srcdir/Dependencies; then
5687    coin_have_externals=yes
5688  fi
5689  # Check if subversion is installed and understands https
5690  # Extract the first word of "svn", so it can be a program name with args.
5691set dummy svn; ac_word=$2
5692echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694if test "${ac_cv_prog_have_svn+set}" = set; then
5695  echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697  if test -n "$have_svn"; then
5698  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703  IFS=$as_save_IFS
5704  test -z "$as_dir" && as_dir=.
5705  for ac_exec_ext in '' $ac_executable_extensions; do
5706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707    ac_cv_prog_have_svn="yes"
5708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709    break 2
5710  fi
5711done
5712done
5713
5714  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5715fi
5716fi
5717have_svn=$ac_cv_prog_have_svn
5718if test -n "$have_svn"; then
5719  echo "$as_me:$LINENO: result: $have_svn" >&5
5720echo "${ECHO_T}$have_svn" >&6
5721else
5722  echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724fi
5725
5726  if test x$have_svn = xyes; then
5727    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5728echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5729if test "${ac_cv_svn_understands_https+set}" = set; then
5730  echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732  svn --version > confauto.out 2>&1
5733                    if $EGREP https confauto.out >/dev/null 2>&1; then
5734                      ac_cv_svn_understands_https=yes
5735                    else
5736                      ac_cv_svn_understands_https=no
5737                      have_svn=no
5738                      ac_cv_prog_have_svn=no
5739                    fi
5740                    rm -f confauto.out
5741fi
5742echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5743echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5744  fi
5745
5746  # Find the location of the BuildTools directory
5747  BUILDTOOLSDIR=
5748  if test -r $srcdir/BuildTools/coin.m4; then
5749    BUILDTOOLSDIR=$srcdir/BuildTools
5750  elif test -r $srcdir/../BuildTools/coin.m4; then
5751    BUILDTOOLSDIR=$srcdir/../BuildTools
5752  elif test -r $srcdir/../../BuildTools/coin.m4; then
5753    BUILDTOOLSDIR=$srcdir/../../BuildTools
5754  elif test -r $srcdir/../../../BuildTools/coin.m4; then
5755    BUILDTOOLSDIR=$srcdir/../../../BuildTools
5756  else
5757    { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5758echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5759   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5760  fi
5761
5762
5763  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5764  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5765    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5766  fi
5767
5768  # The following variable is set to the name of the directory where
5769  # the autotool scripts are located
5770
5771  AUX_DIR=$ac_aux_dir
5772fi
5773
5774# helpful variable for the base directory of this package
5775abs_source_dir=`cd $srcdir; pwd`
5776
5777
5778# Stuff for example Makefiles
5779if test x$prefix = xNONE; then
5780  full_prefix=$ac_default_prefix
5781else
5782  full_prefix=$prefix
5783fi
5784full_prefix=`cd $full_prefix ; pwd`
5785
5786abs_lib_dir=$full_prefix/lib
5787
5788abs_include_dir=$full_prefix/include
5789
5790abs_bin_dir=$full_prefix/bin
5791
5792
5793
5794if test $coin_have_externals = yes && test x$have_svn = xyes; then
5795  HAVE_EXTERNALS_TRUE=
5796  HAVE_EXTERNALS_FALSE='#'
5797else
5798  HAVE_EXTERNALS_TRUE='#'
5799  HAVE_EXTERNALS_FALSE=
5800fi
5801
5802
5803# AC_MSG_NOTICE([End automake initialisation.])
5804
5805
5806
5807LIBTOOL=
5808if test -f ../libtool; then
5809  coin_config_dir=..
5810  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5811fi
5812if test "x$LIBTOOL" = x; then
5813  if test -f ../../libtool; then
5814    coin_config_dir=../..
5815    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5816  fi
5817fi
5818
5819if test "x$LIBTOOL" = x; then
5820# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5821  # Stuff for libtool
5822  # Check whether --enable-shared or --disable-shared was given.
5823if test "${enable_shared+set}" = set; then
5824  enableval="$enable_shared"
5825  p=${PACKAGE-default}
5826    case $enableval in
5827    yes) enable_shared=yes ;;
5828    no) enable_shared=no ;;
5829    *)
5830      enable_shared=no
5831      # Look at the argument we got.  We use all the common list separators.
5832      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5833      for pkg in $enableval; do
5834	IFS="$lt_save_ifs"
5835	if test "X$pkg" = "X$p"; then
5836	  enable_shared=yes
5837	fi
5838      done
5839      IFS="$lt_save_ifs"
5840      ;;
5841    esac
5842else
5843  enable_shared=yes
5844fi;
5845
5846# Check whether --enable-fast-install or --disable-fast-install was given.
5847if test "${enable_fast_install+set}" = set; then
5848  enableval="$enable_fast_install"
5849  p=${PACKAGE-default}
5850    case $enableval in
5851    yes) enable_fast_install=yes ;;
5852    no) enable_fast_install=no ;;
5853    *)
5854      enable_fast_install=no
5855      # Look at the argument we got.  We use all the common list separators.
5856      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5857      for pkg in $enableval; do
5858	IFS="$lt_save_ifs"
5859	if test "X$pkg" = "X$p"; then
5860	  enable_fast_install=yes
5861	fi
5862      done
5863      IFS="$lt_save_ifs"
5864      ;;
5865    esac
5866else
5867  enable_fast_install=yes
5868fi;
5869
5870echo "$as_me:$LINENO: checking host system type" >&5
5871echo $ECHO_N "checking host system type... $ECHO_C" >&6
5872if test "${ac_cv_host+set}" = set; then
5873  echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875  ac_cv_host_alias=$host_alias
5876test -z "$ac_cv_host_alias" &&
5877  ac_cv_host_alias=$ac_cv_build_alias
5878ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5879  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5880echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5881   { (exit 1); exit 1; }; }
5882
5883fi
5884echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5885echo "${ECHO_T}$ac_cv_host" >&6
5886host=$ac_cv_host
5887host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5888host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5889host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5890
5891
5892echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5893echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5894if test "${lt_cv_path_SED+set}" = set; then
5895  echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897  # Loop through the user's path and test for sed and gsed.
5898# Then use that list of sed's as ones to test for truncation.
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902  IFS=$as_save_IFS
5903  test -z "$as_dir" && as_dir=.
5904  for lt_ac_prog in sed gsed; do
5905    for ac_exec_ext in '' $ac_executable_extensions; do
5906      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5907        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5908      fi
5909    done
5910  done
5911done
5912lt_ac_max=0
5913lt_ac_count=0
5914# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5915# along with /bin/sed that truncates output.
5916for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5917  test ! -f $lt_ac_sed && continue
5918  cat /dev/null > conftest.in
5919  lt_ac_count=0
5920  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5921  # Check for GNU sed and select it if it is found.
5922  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5923    lt_cv_path_SED=$lt_ac_sed
5924    break
5925  fi
5926  while true; do
5927    cat conftest.in conftest.in >conftest.tmp
5928    mv conftest.tmp conftest.in
5929    cp conftest.in conftest.nl
5930    echo >>conftest.nl
5931    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5932    cmp -s conftest.out conftest.nl || break
5933    # 10000 chars as input seems more than enough
5934    test $lt_ac_count -gt 10 && break
5935    lt_ac_count=`expr $lt_ac_count + 1`
5936    if test $lt_ac_count -gt $lt_ac_max; then
5937      lt_ac_max=$lt_ac_count
5938      lt_cv_path_SED=$lt_ac_sed
5939    fi
5940  done
5941done
5942
5943fi
5944
5945SED=$lt_cv_path_SED
5946echo "$as_me:$LINENO: result: $SED" >&5
5947echo "${ECHO_T}$SED" >&6
5948
5949
5950# Check whether --with-gnu-ld or --without-gnu-ld was given.
5951if test "${with_gnu_ld+set}" = set; then
5952  withval="$with_gnu_ld"
5953  test "$withval" = no || with_gnu_ld=yes
5954else
5955  with_gnu_ld=no
5956fi;
5957ac_prog=ld
5958if test "$GCC" = yes; then
5959  # Check if gcc -print-prog-name=ld gives a path.
5960  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5961echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5962  case $host in
5963  *-*-mingw*)
5964    # gcc leaves a trailing carriage return which upsets mingw
5965    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5966  *)
5967    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5968  esac
5969  case $ac_prog in
5970    # Accept absolute paths.
5971    [\\/]* | ?:[\\/]*)
5972      re_direlt='/[^/][^/]*/\.\./'
5973      # Canonicalize the pathname of ld
5974      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5975      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5976	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5977      done
5978      test -z "$LD" && LD="$ac_prog"
5979      ;;
5980  "")
5981    # If it fails, then pretend we aren't using GCC.
5982    ac_prog=ld
5983    ;;
5984  *)
5985    # If it is relative, then search for the first ld in PATH.
5986    with_gnu_ld=unknown
5987    ;;
5988  esac
5989elif test "$with_gnu_ld" = yes; then
5990  echo "$as_me:$LINENO: checking for GNU ld" >&5
5991echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5992else
5993  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5994echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5995fi
5996if test "${lt_cv_path_LD+set}" = set; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  if test -z "$LD"; then
6000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6001  for ac_dir in $PATH; do
6002    IFS="$lt_save_ifs"
6003    test -z "$ac_dir" && ac_dir=.
6004    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6005      lt_cv_path_LD="$ac_dir/$ac_prog"
6006      # Check to see if the program is GNU ld.  I'd rather use --version,
6007      # but apparently some variants of GNU ld only accept -v.
6008      # Break only if it was the GNU/non-GNU ld that we prefer.
6009      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6010      *GNU* | *'with BFD'*)
6011	test "$with_gnu_ld" != no && break
6012	;;
6013      *)
6014	test "$with_gnu_ld" != yes && break
6015	;;
6016      esac
6017    fi
6018  done
6019  IFS="$lt_save_ifs"
6020else
6021  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6022fi
6023fi
6024
6025LD="$lt_cv_path_LD"
6026if test -n "$LD"; then
6027  echo "$as_me:$LINENO: result: $LD" >&5
6028echo "${ECHO_T}$LD" >&6
6029else
6030  echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032fi
6033test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6034echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6035   { (exit 1); exit 1; }; }
6036echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6037echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6038if test "${lt_cv_prog_gnu_ld+set}" = set; then
6039  echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6042case `$LD -v 2>&1 </dev/null` in
6043*GNU* | *'with BFD'*)
6044  lt_cv_prog_gnu_ld=yes
6045  ;;
6046*)
6047  lt_cv_prog_gnu_ld=no
6048  ;;
6049esac
6050fi
6051echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6052echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6053with_gnu_ld=$lt_cv_prog_gnu_ld
6054
6055
6056echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6057echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6058if test "${lt_cv_ld_reload_flag+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  lt_cv_ld_reload_flag='-r'
6062fi
6063echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6064echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6065reload_flag=$lt_cv_ld_reload_flag
6066case $reload_flag in
6067"" | " "*) ;;
6068*) reload_flag=" $reload_flag" ;;
6069esac
6070reload_cmds='$LD$reload_flag -o $output$reload_objs'
6071case $host_os in
6072  darwin*)
6073    if test "$GCC" = yes; then
6074      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6075    else
6076      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6077    fi
6078    ;;
6079esac
6080
6081echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6082echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6083if test "${lt_cv_path_NM+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  if test -n "$NM"; then
6087  # Let the user override the test.
6088  lt_cv_path_NM="$NM"
6089else
6090  lt_nm_to_check="${ac_tool_prefix}nm"
6091  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6092    lt_nm_to_check="$lt_nm_to_check nm"
6093  fi
6094  for lt_tmp_nm in $lt_nm_to_check; do
6095    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6096    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6097      IFS="$lt_save_ifs"
6098      test -z "$ac_dir" && ac_dir=.
6099      tmp_nm="$ac_dir/$lt_tmp_nm"
6100      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6101	# Check to see if the nm accepts a BSD-compat flag.
6102	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6103	#   nm: unknown option "B" ignored
6104	# Tru64's nm complains that /dev/null is an invalid object file
6105	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6106	*/dev/null* | *'Invalid file or object type'*)
6107	  lt_cv_path_NM="$tmp_nm -B"
6108	  break
6109	  ;;
6110	*)
6111	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6112	  */dev/null*)
6113	    lt_cv_path_NM="$tmp_nm -p"
6114	    break
6115	    ;;
6116	  *)
6117	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6118	    continue # so that we can try to find one that supports BSD flags
6119	    ;;
6120	  esac
6121	  ;;
6122	esac
6123      fi
6124    done
6125    IFS="$lt_save_ifs"
6126  done
6127  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6128fi
6129fi
6130echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6131echo "${ECHO_T}$lt_cv_path_NM" >&6
6132NM="$lt_cv_path_NM"
6133
6134echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6135echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6136if test "${lt_cv_deplibs_check_method+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  lt_cv_file_magic_cmd='$MAGIC_CMD'
6140lt_cv_file_magic_test_file=
6141lt_cv_deplibs_check_method='unknown'
6142# Need to set the preceding variable on all platforms that support
6143# interlibrary dependencies.
6144# 'none' -- dependencies not supported.
6145# `unknown' -- same as none, but documents that we really don't know.
6146# 'pass_all' -- all dependencies passed with no checks.
6147# 'test_compile' -- check by making test program.
6148# 'file_magic [[regex]]' -- check by looking for files in library path
6149# which responds to the $file_magic_cmd with a given extended regex.
6150# If you have `file' or equivalent on your system and you're not sure
6151# whether `pass_all' will *always* work, you probably want this one.
6152
6153case $host_os in
6154aix4* | aix5*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158beos*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162bsdi[45]*)
6163  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6164  lt_cv_file_magic_cmd='/usr/bin/file -L'
6165  lt_cv_file_magic_test_file=/shlib/libc.so
6166  ;;
6167
6168cygwin*)
6169  # func_win32_libid is a shell function defined in ltmain.sh
6170  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6171  lt_cv_file_magic_cmd='func_win32_libid'
6172  ;;
6173
6174mingw* | pw32*)
6175  # Base MSYS/MinGW do not provide the 'file' command needed by
6176  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6177  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6178  lt_cv_file_magic_cmd='$OBJDUMP -f'
6179  ;;
6180
6181darwin* | rhapsody*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185freebsd* | kfreebsd*-gnu | dragonfly*)
6186  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6187    case $host_cpu in
6188    i*86 )
6189      # Not sure whether the presence of OpenBSD here was a mistake.
6190      # Let's accept both of them until this is cleared up.
6191      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6192      lt_cv_file_magic_cmd=/usr/bin/file
6193      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6194      ;;
6195    esac
6196  else
6197    lt_cv_deplibs_check_method=pass_all
6198  fi
6199  ;;
6200
6201gnu*)
6202  lt_cv_deplibs_check_method=pass_all
6203  ;;
6204
6205hpux10.20* | hpux11*)
6206  lt_cv_file_magic_cmd=/usr/bin/file
6207  case $host_cpu in
6208  ia64*)
6209    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6210    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6211    ;;
6212  hppa*64*)
6213    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]'
6214    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6215    ;;
6216  *)
6217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6218    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219    ;;
6220  esac
6221  ;;
6222
6223interix3*)
6224  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6225  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6226  ;;
6227
6228irix5* | irix6* | nonstopux*)
6229  case $LD in
6230  *-32|*"-32 ") libmagic=32-bit;;
6231  *-n32|*"-n32 ") libmagic=N32;;
6232  *-64|*"-64 ") libmagic=64-bit;;
6233  *) libmagic=never-match;;
6234  esac
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238# This must be Linux ELF.
6239linux*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243netbsd*)
6244  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246  else
6247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6248  fi
6249  ;;
6250
6251newos6*)
6252  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6253  lt_cv_file_magic_cmd=/usr/bin/file
6254  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6255  ;;
6256
6257nto-qnx*)
6258  lt_cv_deplibs_check_method=unknown
6259  ;;
6260
6261openbsd*)
6262  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6264  else
6265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266  fi
6267  ;;
6268
6269osf3* | osf4* | osf5*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272
6273solaris*)
6274  lt_cv_deplibs_check_method=pass_all
6275  ;;
6276
6277sysv4 | sysv4.3*)
6278  case $host_vendor in
6279  motorola)
6280    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]'
6281    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6282    ;;
6283  ncr)
6284    lt_cv_deplibs_check_method=pass_all
6285    ;;
6286  sequent)
6287    lt_cv_file_magic_cmd='/bin/file'
6288    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6289    ;;
6290  sni)
6291    lt_cv_file_magic_cmd='/bin/file'
6292    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6293    lt_cv_file_magic_test_file=/lib/libc.so
6294    ;;
6295  siemens)
6296    lt_cv_deplibs_check_method=pass_all
6297    ;;
6298  pc)
6299    lt_cv_deplibs_check_method=pass_all
6300    ;;
6301  esac
6302  ;;
6303
6304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307esac
6308
6309fi
6310echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6311echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6312file_magic_cmd=$lt_cv_file_magic_cmd
6313deplibs_check_method=$lt_cv_deplibs_check_method
6314test -z "$deplibs_check_method" && deplibs_check_method=unknown
6315
6316
6317
6318
6319# If no C compiler was specified, use CC.
6320LTCC=${LTCC-"$CC"}
6321
6322# If no C compiler flags were specified, use CFLAGS.
6323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324
6325# Allow CC to be a program name with arguments.
6326compiler=$CC
6327
6328# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6329if test "${enable_libtool_lock+set}" = set; then
6330  enableval="$enable_libtool_lock"
6331
6332fi;
6333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6334
6335# Some flags need to be propagated to the compiler or linker for good
6336# libtool support.
6337case $host in
6338ia64-*-hpux*)
6339  # Find out which ABI we are using.
6340  echo 'int i;' > conftest.$ac_ext
6341  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342  (eval $ac_compile) 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; then
6346    case `/usr/bin/file conftest.$ac_objext` in
6347    *ELF-32*)
6348      HPUX_IA64_MODE="32"
6349      ;;
6350    *ELF-64*)
6351      HPUX_IA64_MODE="64"
6352      ;;
6353    esac
6354  fi
6355  rm -rf conftest*
6356  ;;
6357*-*-irix6*)
6358  # Find out which ABI we are using.
6359  echo '#line 6359 "configure"' > conftest.$ac_ext
6360  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361  (eval $ac_compile) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; then
6365   if test "$lt_cv_prog_gnu_ld" = yes; then
6366    case `/usr/bin/file conftest.$ac_objext` in
6367    *32-bit*)
6368      LD="${LD-ld} -melf32bsmip"
6369      ;;
6370    *N32*)
6371      LD="${LD-ld} -melf32bmipn32"
6372      ;;
6373    *64-bit*)
6374      LD="${LD-ld} -melf64bmip"
6375      ;;
6376    esac
6377   else
6378    case `/usr/bin/file conftest.$ac_objext` in
6379    *32-bit*)
6380      LD="${LD-ld} -32"
6381      ;;
6382    *N32*)
6383      LD="${LD-ld} -n32"
6384      ;;
6385    *64-bit*)
6386      LD="${LD-ld} -64"
6387      ;;
6388    esac
6389   fi
6390  fi
6391  rm -rf conftest*
6392  ;;
6393
6394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6395  # Find out which ABI we are using.
6396  echo 'int i;' > conftest.$ac_ext
6397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398  (eval $ac_compile) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; then
6402    case `/usr/bin/file conftest.o` in
6403    *32-bit*)
6404      case $host in
6405        x86_64-*linux*)
6406          LD="${LD-ld} -m elf_i386"
6407          ;;
6408        ppc64-*linux*|powerpc64-*linux*)
6409          LD="${LD-ld} -m elf32ppclinux"
6410          ;;
6411        s390x-*linux*)
6412          LD="${LD-ld} -m elf_s390"
6413          ;;
6414        sparc64-*linux*)
6415          LD="${LD-ld} -m elf32_sparc"
6416          ;;
6417      esac
6418      ;;
6419    *64-bit*)
6420      case $host in
6421        x86_64-*linux*)
6422          LD="${LD-ld} -m elf_x86_64"
6423          ;;
6424        ppc*-*linux*|powerpc*-*linux*)
6425          LD="${LD-ld} -m elf64ppc"
6426          ;;
6427        s390*-*linux*)
6428          LD="${LD-ld} -m elf64_s390"
6429          ;;
6430        sparc*-*linux*)
6431          LD="${LD-ld} -m elf64_sparc"
6432          ;;
6433      esac
6434      ;;
6435    esac
6436  fi
6437  rm -rf conftest*
6438  ;;
6439
6440*-*-sco3.2v5*)
6441  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6442  SAVE_CFLAGS="$CFLAGS"
6443  CFLAGS="$CFLAGS -belf"
6444  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6446if test "${lt_cv_cc_needs_belf+set}" = set; then
6447  echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449  ac_ext=c
6450ac_cpp='$CPP $CPPFLAGS'
6451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454
6455     cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461
6462int
6463main ()
6464{
6465
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472  (eval $ac_link) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } &&
6479	 { ac_try='test -z "$ac_c_werror_flag"
6480			 || test ! -s conftest.err'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; } &&
6486	 { ac_try='test -s conftest$ac_exeext'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; }; then
6492  lt_cv_cc_needs_belf=yes
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497lt_cv_cc_needs_belf=no
6498fi
6499rm -f conftest.err conftest.$ac_objext \
6500      conftest$ac_exeext conftest.$ac_ext
6501     ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507fi
6508echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6509echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6510  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6511    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6512    CFLAGS="$SAVE_CFLAGS"
6513  fi
6514  ;;
6515sparc*-*solaris*)
6516  # Find out which ABI we are using.
6517  echo 'int i;' > conftest.$ac_ext
6518  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519  (eval $ac_compile) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; then
6523    case `/usr/bin/file conftest.o` in
6524    *64-bit*)
6525      case $lt_cv_prog_gnu_ld in
6526      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6527      *)    LD="${LD-ld} -64" ;;
6528      esac
6529      ;;
6530    esac
6531  fi
6532  rm -rf conftest*
6533  ;;
6534
6535
6536esac
6537
6538need_locks="$enable_libtool_lock"
6539
6540
6541ac_ext=c
6542ac_cpp='$CPP $CPPFLAGS'
6543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6548# On Suns, sometimes $CPP names a directory.
6549if test -n "$CPP" && test -d "$CPP"; then
6550  CPP=
6551fi
6552if test -z "$CPP"; then
6553  if test "${ac_cv_prog_CPP+set}" = set; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556      # Double quotes because CPP needs to be expanded
6557    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6558    do
6559      ac_preproc_ok=false
6560for ac_c_preproc_warn_flag in '' yes
6561do
6562  # Use a header file that comes with gcc, so configuring glibc
6563  # with a fresh cross-compiler works.
6564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565  # <limits.h> exists even on freestanding compilers.
6566  # On the NeXT, cc -E runs the code through the compiler's parser,
6567  # not just through cpp. "Syntax error" is here to catch this case.
6568  cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h.  */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h.  */
6574#ifdef __STDC__
6575# include <limits.h>
6576#else
6577# include <assert.h>
6578#endif
6579		     Syntax error
6580_ACEOF
6581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6583  ac_status=$?
6584  grep -v '^ *+' conftest.er1 >conftest.err
6585  rm -f conftest.er1
6586  cat conftest.err >&5
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); } >/dev/null; then
6589  if test -s conftest.err; then
6590    ac_cpp_err=$ac_c_preproc_warn_flag
6591    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6592  else
6593    ac_cpp_err=
6594  fi
6595else
6596  ac_cpp_err=yes
6597fi
6598if test -z "$ac_cpp_err"; then
6599  :
6600else
6601  echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604  # Broken: fails on valid input.
6605continue
6606fi
6607rm -f conftest.err conftest.$ac_ext
6608
6609  # OK, works on sane cases.  Now check whether non-existent headers
6610  # can be detected and how.
6611  cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h.  */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h.  */
6617#include <ac_nonexistent.h>
6618_ACEOF
6619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6620  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } >/dev/null; then
6627  if test -s conftest.err; then
6628    ac_cpp_err=$ac_c_preproc_warn_flag
6629    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6630  else
6631    ac_cpp_err=
6632  fi
6633else
6634  ac_cpp_err=yes
6635fi
6636if test -z "$ac_cpp_err"; then
6637  # Broken: success on invalid input.
6638continue
6639else
6640  echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643  # Passes both tests.
6644ac_preproc_ok=:
6645break
6646fi
6647rm -f conftest.err conftest.$ac_ext
6648
6649done
6650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6651rm -f conftest.err conftest.$ac_ext
6652if $ac_preproc_ok; then
6653  break
6654fi
6655
6656    done
6657    ac_cv_prog_CPP=$CPP
6658
6659fi
6660  CPP=$ac_cv_prog_CPP
6661else
6662  ac_cv_prog_CPP=$CPP
6663fi
6664echo "$as_me:$LINENO: result: $CPP" >&5
6665echo "${ECHO_T}$CPP" >&6
6666ac_preproc_ok=false
6667for ac_c_preproc_warn_flag in '' yes
6668do
6669  # Use a header file that comes with gcc, so configuring glibc
6670  # with a fresh cross-compiler works.
6671  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672  # <limits.h> exists even on freestanding compilers.
6673  # On the NeXT, cc -E runs the code through the compiler's parser,
6674  # not just through cpp. "Syntax error" is here to catch this case.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#ifdef __STDC__
6682# include <limits.h>
6683#else
6684# include <assert.h>
6685#endif
6686		     Syntax error
6687_ACEOF
6688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } >/dev/null; then
6696  if test -s conftest.err; then
6697    ac_cpp_err=$ac_c_preproc_warn_flag
6698    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6699  else
6700    ac_cpp_err=
6701  fi
6702else
6703  ac_cpp_err=yes
6704fi
6705if test -z "$ac_cpp_err"; then
6706  :
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Broken: fails on valid input.
6712continue
6713fi
6714rm -f conftest.err conftest.$ac_ext
6715
6716  # OK, works on sane cases.  Now check whether non-existent headers
6717  # can be detected and how.
6718  cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724#include <ac_nonexistent.h>
6725_ACEOF
6726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null; then
6734  if test -s conftest.err; then
6735    ac_cpp_err=$ac_c_preproc_warn_flag
6736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6737  else
6738    ac_cpp_err=
6739  fi
6740else
6741  ac_cpp_err=yes
6742fi
6743if test -z "$ac_cpp_err"; then
6744  # Broken: success on invalid input.
6745continue
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750  # Passes both tests.
6751ac_preproc_ok=:
6752break
6753fi
6754rm -f conftest.err conftest.$ac_ext
6755
6756done
6757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6758rm -f conftest.err conftest.$ac_ext
6759if $ac_preproc_ok; then
6760  :
6761else
6762  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6763See \`config.log' for more details." >&5
6764echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765See \`config.log' for more details." >&2;}
6766   { (exit 1); exit 1; }; }
6767fi
6768
6769ac_ext=c
6770ac_cpp='$CPP $CPPFLAGS'
6771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775
6776echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6778if test "${ac_cv_header_stdc+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <stdlib.h>
6788#include <stdarg.h>
6789#include <string.h>
6790#include <float.h>
6791
6792int
6793main ()
6794{
6795
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802  (eval $ac_compile) 2>conftest.er1
6803  ac_status=$?
6804  grep -v '^ *+' conftest.er1 >conftest.err
6805  rm -f conftest.er1
6806  cat conftest.err >&5
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } &&
6809	 { ac_try='test -z "$ac_c_werror_flag"
6810			 || test ! -s conftest.err'
6811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812  (eval $ac_try) 2>&5
6813  ac_status=$?
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); }; } &&
6816	 { ac_try='test -s conftest.$ac_objext'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; }; then
6822  ac_cv_header_stdc=yes
6823else
6824  echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827ac_cv_header_stdc=no
6828fi
6829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831if test $ac_cv_header_stdc = yes; then
6832  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833  cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h.  */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h.  */
6839#include <string.h>
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843  $EGREP "memchr" >/dev/null 2>&1; then
6844  :
6845else
6846  ac_cv_header_stdc=no
6847fi
6848rm -f conftest*
6849
6850fi
6851
6852if test $ac_cv_header_stdc = yes; then
6853  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854  cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860#include <stdlib.h>
6861
6862_ACEOF
6863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864  $EGREP "free" >/dev/null 2>&1; then
6865  :
6866else
6867  ac_cv_header_stdc=no
6868fi
6869rm -f conftest*
6870
6871fi
6872
6873if test $ac_cv_header_stdc = yes; then
6874  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875  if test "$cross_compiling" = yes; then
6876  :
6877else
6878  cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h.  */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h.  */
6884#include <ctype.h>
6885#if ((' ' & 0x0FF) == 0x020)
6886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888#else
6889# define ISLOWER(c) \
6890		   (('a' <= (c) && (c) <= 'i') \
6891		     || ('j' <= (c) && (c) <= 'r') \
6892		     || ('s' <= (c) && (c) <= 'z'))
6893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894#endif
6895
6896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897int
6898main ()
6899{
6900  int i;
6901  for (i = 0; i < 256; i++)
6902    if (XOR (islower (i), ISLOWER (i))
6903	|| toupper (i) != TOUPPER (i))
6904      exit(2);
6905  exit (0);
6906}
6907_ACEOF
6908rm -f conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910  (eval $ac_link) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915  (eval $ac_try) 2>&5
6916  ac_status=$?
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); }; }; then
6919  :
6920else
6921  echo "$as_me: program exited with status $ac_status" >&5
6922echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925( exit $ac_status )
6926ac_cv_header_stdc=no
6927fi
6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929fi
6930fi
6931fi
6932echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6933echo "${ECHO_T}$ac_cv_header_stdc" >&6
6934if test $ac_cv_header_stdc = yes; then
6935
6936cat >>confdefs.h <<\_ACEOF
6937#define STDC_HEADERS 1
6938_ACEOF
6939
6940fi
6941
6942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6953		  inttypes.h stdint.h unistd.h
6954do
6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956echo "$as_me:$LINENO: checking for $ac_header" >&5
6957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  cat >conftest.$ac_ext <<_ACEOF
6962/* confdefs.h.  */
6963_ACEOF
6964cat confdefs.h >>conftest.$ac_ext
6965cat >>conftest.$ac_ext <<_ACEOF
6966/* end confdefs.h.  */
6967$ac_includes_default
6968
6969#include <$ac_header>
6970_ACEOF
6971rm -f conftest.$ac_objext
6972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973  (eval $ac_compile) 2>conftest.er1
6974  ac_status=$?
6975  grep -v '^ *+' conftest.er1 >conftest.err
6976  rm -f conftest.er1
6977  cat conftest.err >&5
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); } &&
6980	 { ac_try='test -z "$ac_c_werror_flag"
6981			 || test ! -s conftest.err'
6982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983  (eval $ac_try) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); }; } &&
6987	 { ac_try='test -s conftest.$ac_objext'
6988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989  (eval $ac_try) 2>&5
6990  ac_status=$?
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); }; }; then
6993  eval "$as_ac_Header=yes"
6994else
6995  echo "$as_me: failed program was:" >&5
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998eval "$as_ac_Header=no"
6999fi
7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005  cat >>confdefs.h <<_ACEOF
7006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007_ACEOF
7008
7009fi
7010
7011done
7012
7013
7014
7015for ac_header in dlfcn.h
7016do
7017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018if eval "test \"\${$as_ac_Header+set}\" = set"; then
7019  echo "$as_me:$LINENO: checking for $ac_header" >&5
7020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023fi
7024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7026else
7027  # Is the header compilable?
7028echo "$as_me:$LINENO: checking $ac_header usability" >&5
7029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7030cat >conftest.$ac_ext <<_ACEOF
7031/* confdefs.h.  */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h.  */
7036$ac_includes_default
7037#include <$ac_header>
7038_ACEOF
7039rm -f conftest.$ac_objext
7040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041  (eval $ac_compile) 2>conftest.er1
7042  ac_status=$?
7043  grep -v '^ *+' conftest.er1 >conftest.err
7044  rm -f conftest.er1
7045  cat conftest.err >&5
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); } &&
7048	 { ac_try='test -z "$ac_c_werror_flag"
7049			 || test ! -s conftest.err'
7050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051  (eval $ac_try) 2>&5
7052  ac_status=$?
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); }; } &&
7055	 { ac_try='test -s conftest.$ac_objext'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; }; then
7061  ac_header_compiler=yes
7062else
7063  echo "$as_me: failed program was:" >&5
7064sed 's/^/| /' conftest.$ac_ext >&5
7065
7066ac_header_compiler=no
7067fi
7068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7070echo "${ECHO_T}$ac_header_compiler" >&6
7071
7072# Is the header present?
7073echo "$as_me:$LINENO: checking $ac_header presence" >&5
7074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7075cat >conftest.$ac_ext <<_ACEOF
7076/* confdefs.h.  */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h.  */
7081#include <$ac_header>
7082_ACEOF
7083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7085  ac_status=$?
7086  grep -v '^ *+' conftest.er1 >conftest.err
7087  rm -f conftest.er1
7088  cat conftest.err >&5
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); } >/dev/null; then
7091  if test -s conftest.err; then
7092    ac_cpp_err=$ac_c_preproc_warn_flag
7093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7094  else
7095    ac_cpp_err=
7096  fi
7097else
7098  ac_cpp_err=yes
7099fi
7100if test -z "$ac_cpp_err"; then
7101  ac_header_preproc=yes
7102else
7103  echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106  ac_header_preproc=no
7107fi
7108rm -f conftest.err conftest.$ac_ext
7109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110echo "${ECHO_T}$ac_header_preproc" >&6
7111
7112# So?  What about this header?
7113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7114  yes:no: )
7115    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119    ac_header_preproc=yes
7120    ;;
7121  no:yes:* )
7122    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7125echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7126    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7129echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7134    (
7135      cat <<\_ASBOX
7136## --------------------------------------- ##
7137## Report this to flopcpp@list.coin-or.org ##
7138## --------------------------------------- ##
7139_ASBOX
7140    ) |
7141      sed "s/^/$as_me: WARNING:     /" >&2
7142    ;;
7143esac
7144echo "$as_me:$LINENO: checking for $ac_header" >&5
7145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149  eval "$as_ac_Header=\$ac_header_preproc"
7150fi
7151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153
7154fi
7155if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156  cat >>confdefs.h <<_ACEOF
7157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158_ACEOF
7159
7160fi
7161
7162done
7163
7164
7165
7166if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7167    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7168    (test "X$CXX" != "Xg++"))) ; then
7169  ac_ext=cc
7170ac_cpp='$CXXCPP $CPPFLAGS'
7171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7174echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7175echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7176if test -z "$CXXCPP"; then
7177  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180      # Double quotes because CXXCPP needs to be expanded
7181    for CXXCPP in "$CXX -E" "/lib/cpp"
7182    do
7183      ac_preproc_ok=false
7184for ac_cxx_preproc_warn_flag in '' yes
7185do
7186  # Use a header file that comes with gcc, so configuring glibc
7187  # with a fresh cross-compiler works.
7188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189  # <limits.h> exists even on freestanding compilers.
7190  # On the NeXT, cc -E runs the code through the compiler's parser,
7191  # not just through cpp. "Syntax error" is here to catch this case.
7192  cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h.  */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h.  */
7198#ifdef __STDC__
7199# include <limits.h>
7200#else
7201# include <assert.h>
7202#endif
7203		     Syntax error
7204_ACEOF
7205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207  ac_status=$?
7208  grep -v '^ *+' conftest.er1 >conftest.err
7209  rm -f conftest.er1
7210  cat conftest.err >&5
7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212  (exit $ac_status); } >/dev/null; then
7213  if test -s conftest.err; then
7214    ac_cpp_err=$ac_cxx_preproc_warn_flag
7215    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7216  else
7217    ac_cpp_err=
7218  fi
7219else
7220  ac_cpp_err=yes
7221fi
7222if test -z "$ac_cpp_err"; then
7223  :
7224else
7225  echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228  # Broken: fails on valid input.
7229continue
7230fi
7231rm -f conftest.err conftest.$ac_ext
7232
7233  # OK, works on sane cases.  Now check whether non-existent headers
7234  # can be detected and how.
7235  cat >conftest.$ac_ext <<_ACEOF
7236/* confdefs.h.  */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h.  */
7241#include <ac_nonexistent.h>
7242_ACEOF
7243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245  ac_status=$?
7246  grep -v '^ *+' conftest.er1 >conftest.err
7247  rm -f conftest.er1
7248  cat conftest.err >&5
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); } >/dev/null; then
7251  if test -s conftest.err; then
7252    ac_cpp_err=$ac_cxx_preproc_warn_flag
7253    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7254  else
7255    ac_cpp_err=
7256  fi
7257else
7258  ac_cpp_err=yes
7259fi
7260if test -z "$ac_cpp_err"; then
7261  # Broken: success on invalid input.
7262continue
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267  # Passes both tests.
7268ac_preproc_ok=:
7269break
7270fi
7271rm -f conftest.err conftest.$ac_ext
7272
7273done
7274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275rm -f conftest.err conftest.$ac_ext
7276if $ac_preproc_ok; then
7277  break
7278fi
7279
7280    done
7281    ac_cv_prog_CXXCPP=$CXXCPP
7282
7283fi
7284  CXXCPP=$ac_cv_prog_CXXCPP
7285else
7286  ac_cv_prog_CXXCPP=$CXXCPP
7287fi
7288echo "$as_me:$LINENO: result: $CXXCPP" >&5
7289echo "${ECHO_T}$CXXCPP" >&6
7290ac_preproc_ok=false
7291for ac_cxx_preproc_warn_flag in '' yes
7292do
7293  # Use a header file that comes with gcc, so configuring glibc
7294  # with a fresh cross-compiler works.
7295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296  # <limits.h> exists even on freestanding compilers.
7297  # On the NeXT, cc -E runs the code through the compiler's parser,
7298  # not just through cpp. "Syntax error" is here to catch this case.
7299  cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h.  */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h.  */
7305#ifdef __STDC__
7306# include <limits.h>
7307#else
7308# include <assert.h>
7309#endif
7310		     Syntax error
7311_ACEOF
7312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7314  ac_status=$?
7315  grep -v '^ *+' conftest.er1 >conftest.err
7316  rm -f conftest.er1
7317  cat conftest.err >&5
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } >/dev/null; then
7320  if test -s conftest.err; then
7321    ac_cpp_err=$ac_cxx_preproc_warn_flag
7322    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7323  else
7324    ac_cpp_err=
7325  fi
7326else
7327  ac_cpp_err=yes
7328fi
7329if test -z "$ac_cpp_err"; then
7330  :
7331else
7332  echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335  # Broken: fails on valid input.
7336continue
7337fi
7338rm -f conftest.err conftest.$ac_ext
7339
7340  # OK, works on sane cases.  Now check whether non-existent headers
7341  # can be detected and how.
7342  cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h.  */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h.  */
7348#include <ac_nonexistent.h>
7349_ACEOF
7350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } >/dev/null; then
7358  if test -s conftest.err; then
7359    ac_cpp_err=$ac_cxx_preproc_warn_flag
7360    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7361  else
7362    ac_cpp_err=
7363  fi
7364else
7365  ac_cpp_err=yes
7366fi
7367if test -z "$ac_cpp_err"; then
7368  # Broken: success on invalid input.
7369continue
7370else
7371  echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374  # Passes both tests.
7375ac_preproc_ok=:
7376break
7377fi
7378rm -f conftest.err conftest.$ac_ext
7379
7380done
7381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7382rm -f conftest.err conftest.$ac_ext
7383if $ac_preproc_ok; then
7384  :
7385else
7386  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7387See \`config.log' for more details." >&5
7388echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7389See \`config.log' for more details." >&2;}
7390   { (exit 1); exit 1; }; }
7391fi
7392
7393ac_ext=cc
7394ac_cpp='$CXXCPP $CPPFLAGS'
7395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7398
7399fi
7400
7401
7402# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7403
7404# find the maximum length of command line arguments
7405echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7406echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7407if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7408  echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
7410    i=0
7411  teststring="ABCD"
7412
7413  case $build_os in
7414  msdosdjgpp*)
7415    # On DJGPP, this test can blow up pretty badly due to problems in libc
7416    # (any single argument exceeding 2000 bytes causes a buffer overrun
7417    # during glob expansion).  Even if it were fixed, the result of this
7418    # check would be larger than it should be.
7419    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7420    ;;
7421
7422  gnu*)
7423    # Under GNU Hurd, this test is not required because there is
7424    # no limit to the length of command line arguments.
7425    # Libtool will interpret -1 as no limit whatsoever
7426    lt_cv_sys_max_cmd_len=-1;
7427    ;;
7428
7429  cygwin* | mingw*)
7430    # On Win9x/ME, this test blows up -- it succeeds, but takes
7431    # about 5 minutes as the teststring grows exponentially.
7432    # Worse, since 9x/ME are not pre-emptively multitasking,
7433    # you end up with a "frozen" computer, even though with patience
7434    # the test eventually succeeds (with a max line length of 256k).
7435    # Instead, let's just punt: use the minimum linelength reported by
7436    # all of the supported platforms: 8192 (on NT/2K/XP).
7437    lt_cv_sys_max_cmd_len=8192;
7438    ;;
7439
7440  amigaos*)
7441    # On AmigaOS with pdksh, this test takes hours, literally.
7442    # So we just punt and use a minimum line length of 8192.
7443    lt_cv_sys_max_cmd_len=8192;
7444    ;;
7445
7446  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7447    # This has been around since 386BSD, at least.  Likely further.
7448    if test -x /sbin/sysctl; then
7449      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7450    elif test -x /usr/sbin/sysctl; then
7451      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7452    else
7453      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7454    fi
7455    # And add a safety zone
7456    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7457    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7458    ;;
7459
7460  interix*)
7461    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7462    lt_cv_sys_max_cmd_len=196608
7463    ;;
7464
7465  osf*)
7466    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7467    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7468    # nice to cause kernel panics so lets avoid the loop below.
7469    # First set a reasonable default.
7470    lt_cv_sys_max_cmd_len=16384
7471    #
7472    if test -x /sbin/sysconfig; then
7473      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7474        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7475      esac
7476    fi
7477    ;;
7478  sco3.2v5*)
7479    lt_cv_sys_max_cmd_len=102400
7480    ;;
7481  sysv5* | sco5v6* | sysv4.2uw2*)
7482    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7483    if test -n "$kargmax"; then
7484      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7485    else
7486      lt_cv_sys_max_cmd_len=32768
7487    fi
7488    ;;
7489  *)
7490    # If test is not a shell built-in, we'll probably end up computing a
7491    # maximum length that is only half of the actual maximum length, but
7492    # we can't tell.
7493    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7494    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7495	       = "XX$teststring") >/dev/null 2>&1 &&
7496	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7497	    lt_cv_sys_max_cmd_len=$new_result &&
7498	    test $i != 17 # 1/2 MB should be enough
7499    do
7500      i=`expr $i + 1`
7501      teststring=$teststring$teststring
7502    done
7503    teststring=
7504    # Add a significant safety factor because C++ compilers can tack on massive
7505    # amounts of additional arguments before passing them to the linker.
7506    # It appears as though 1/2 is a usable value.
7507    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7508    ;;
7509  esac
7510
7511fi
7512
7513if test -n $lt_cv_sys_max_cmd_len ; then
7514  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7515echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7516else
7517  echo "$as_me:$LINENO: result: none" >&5
7518echo "${ECHO_T}none" >&6
7519fi
7520
7521
7522
7523
7524# Check for command to grab the raw symbol name followed by C symbol from nm.
7525echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7526echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7527if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7528  echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530
7531# These are sane defaults that work on at least a few old systems.
7532# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7533
7534# Character class describing NM global symbol codes.
7535symcode='[BCDEGRST]'
7536
7537# Regexp to match symbols that can be accessed directly from C.
7538sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7539
7540# Transform an extracted symbol line into a proper C declaration
7541lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7542
7543# Transform an extracted symbol line into symbol name and symbol address
7544lt_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'"
7545
7546# Define system-specific variables.
7547case $host_os in
7548aix*)
7549  symcode='[BCDT]'
7550  ;;
7551cygwin* | mingw* | pw32*)
7552  symcode='[ABCDGISTW]'
7553  ;;
7554hpux*) # Its linker distinguishes data from code symbols
7555  if test "$host_cpu" = ia64; then
7556    symcode='[ABCDEGRST]'
7557  fi
7558  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7559  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'"
7560  ;;
7561linux*)
7562  if test "$host_cpu" = ia64; then
7563    symcode='[ABCDGIRSTW]'
7564    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7565    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'"
7566  fi
7567  ;;
7568irix* | nonstopux*)
7569  symcode='[BCDEGRST]'
7570  ;;
7571osf*)
7572  symcode='[BCDEGQRST]'
7573  ;;
7574solaris*)
7575  symcode='[BDRT]'
7576  ;;
7577sco3.2v5*)
7578  symcode='[DT]'
7579  ;;
7580sysv4.2uw2*)
7581  symcode='[DT]'
7582  ;;
7583sysv5* | sco5v6* | unixware* | OpenUNIX*)
7584  symcode='[ABDT]'
7585  ;;
7586sysv4)
7587  symcode='[DFNSTU]'
7588  ;;
7589esac
7590
7591# Handle CRLF in mingw tool chain
7592opt_cr=
7593case $build_os in
7594mingw*)
7595  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7596  ;;
7597esac
7598
7599# If we're using GNU nm, then use its standard symbol codes.
7600case `$NM -V 2>&1` in
7601*GNU* | *'with BFD'*)
7602  symcode='[ABCDGIRSTW]' ;;
7603esac
7604
7605# Try without a prefix undercore, then with it.
7606for ac_symprfx in "" "_"; do
7607
7608  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7609  symxfrm="\\1 $ac_symprfx\\2 \\2"
7610
7611  # Write the raw and C identifiers.
7612  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7613
7614  # Check to see that the pipe works correctly.
7615  pipe_works=no
7616
7617  rm -f conftest*
7618  cat > conftest.$ac_ext <<EOF
7619#ifdef __cplusplus
7620extern "C" {
7621#endif
7622char nm_test_var;
7623void nm_test_func(){}
7624#ifdef __cplusplus
7625}
7626#endif
7627int main(){nm_test_var='a';nm_test_func();return(0);}
7628EOF
7629
7630  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631  (eval $ac_compile) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }; then
7635    # Now try to grab the symbols.
7636    nlist=conftest.nm
7637    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7638  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7639  ac_status=$?
7640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641  (exit $ac_status); } && test -s "$nlist"; then
7642      # Try sorting and uniquifying the output.
7643      if sort "$nlist" | uniq > "$nlist"T; then
7644	mv -f "$nlist"T "$nlist"
7645      else
7646	rm -f "$nlist"T
7647      fi
7648
7649      # Make sure that we snagged all the symbols we need.
7650      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7651	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7652	  cat <<EOF > conftest.$ac_ext
7653#ifdef __cplusplus
7654extern "C" {
7655#endif
7656
7657EOF
7658	  # Now generate the symbol file.
7659	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7660
7661	  cat <<EOF >> conftest.$ac_ext
7662#if defined (__STDC__) && __STDC__
7663# define lt_ptr_t void *
7664#else
7665# define lt_ptr_t char *
7666# define const
7667#endif
7668
7669/* The mapping between symbol names and symbols. */
7670const struct {
7671  const char *name;
7672  lt_ptr_t address;
7673}
7674lt_preloaded_symbols[] =
7675{
7676EOF
7677	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7678	  cat <<\EOF >> conftest.$ac_ext
7679  {0, (lt_ptr_t) 0}
7680};
7681
7682#ifdef __cplusplus
7683}
7684#endif
7685EOF
7686	  # Now try linking the two files.
7687	  mv conftest.$ac_objext conftstm.$ac_objext
7688	  lt_save_LIBS="$LIBS"
7689	  lt_save_CFLAGS="$CFLAGS"
7690	  LIBS="conftstm.$ac_objext"
7691	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7692	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693  (eval $ac_link) 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7697	    pipe_works=yes
7698	  fi
7699	  LIBS="$lt_save_LIBS"
7700	  CFLAGS="$lt_save_CFLAGS"
7701	else
7702	  echo "cannot find nm_test_func in $nlist" >&5
7703	fi
7704      else
7705	echo "cannot find nm_test_var in $nlist" >&5
7706      fi
7707    else
7708      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7709    fi
7710  else
7711    echo "$progname: failed program was:" >&5
7712    cat conftest.$ac_ext >&5
7713  fi
7714  rm -f conftest* conftst*
7715
7716  # Do not use the global_symbol_pipe unless it works.
7717  if test "$pipe_works" = yes; then
7718    break
7719  else
7720    lt_cv_sys_global_symbol_pipe=
7721  fi
7722done
7723
7724fi
7725
7726if test -z "$lt_cv_sys_global_symbol_pipe"; then
7727  lt_cv_sys_global_symbol_to_cdecl=
7728fi
7729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7730  echo "$as_me:$LINENO: result: failed" >&5
7731echo "${ECHO_T}failed" >&6
7732else
7733  echo "$as_me:$LINENO: result: ok" >&5
7734echo "${ECHO_T}ok" >&6
7735fi
7736
7737echo "$as_me:$LINENO: checking for objdir" >&5
7738echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7739if test "${lt_cv_objdir+set}" = set; then
7740  echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742  rm -f .libs 2>/dev/null
7743mkdir .libs 2>/dev/null
7744if test -d .libs; then
7745  lt_cv_objdir=.libs
7746else
7747  # MS-DOS does not allow filenames that begin with a dot.
7748  lt_cv_objdir=_libs
7749fi
7750rmdir .libs 2>/dev/null
7751fi
7752echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7753echo "${ECHO_T}$lt_cv_objdir" >&6
7754objdir=$lt_cv_objdir
7755
7756
7757
7758
7759
7760case $host_os in
7761aix3*)
7762  # AIX sometimes has problems with the GCC collect2 program.  For some
7763  # reason, if we set the COLLECT_NAMES environment variable, the problems
7764  # vanish in a puff of smoke.
7765  if test "X${COLLECT_NAMES+set}" != Xset; then
7766    COLLECT_NAMES=
7767    export COLLECT_NAMES
7768  fi
7769  ;;
7770esac
7771
7772# Sed substitution that helps us do robust quoting.  It backslashifies
7773# metacharacters that are still active within double-quoted strings.
7774Xsed='sed -e 1s/^X//'
7775sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7776
7777# Same as above, but do not quote variable references.
7778double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7779
7780# Sed substitution to delay expansion of an escaped shell variable in a
7781# double_quote_subst'ed string.
7782delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7783
7784# Sed substitution to avoid accidental globbing in evaled expressions
7785no_glob_subst='s/\*/\\\*/g'
7786
7787# Constants:
7788rm="rm -f"
7789
7790# Global variables:
7791default_ofile=libtool
7792can_build_shared=yes
7793
7794# All known linkers require a `.a' archive for static linking (except MSVC,
7795# which needs '.lib').
7796libext=a
7797ltmain="$ac_aux_dir/ltmain.sh"
7798ofile="$default_ofile"
7799with_gnu_ld="$lt_cv_prog_gnu_ld"
7800
7801if test -n "$ac_tool_prefix"; then
7802  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7803set dummy ${ac_tool_prefix}ar; ac_word=$2
7804echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806if test "${ac_cv_prog_AR+set}" = set; then
7807  echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809  if test -n "$AR"; then
7810  ac_cv_prog_AR="$AR" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817  for ac_exec_ext in '' $ac_executable_extensions; do
7818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_AR="${ac_tool_prefix}ar"
7820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824done
7825
7826fi
7827fi
7828AR=$ac_cv_prog_AR
7829if test -n "$AR"; then
7830  echo "$as_me:$LINENO: result: $AR" >&5
7831echo "${ECHO_T}$AR" >&6
7832else
7833  echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835fi
7836
7837fi
7838if test -z "$ac_cv_prog_AR"; then
7839  ac_ct_AR=$AR
7840  # Extract the first word of "ar", so it can be a program name with args.
7841set dummy ar; ac_word=$2
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  if test -n "$ac_ct_AR"; then
7848  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855  for ac_exec_ext in '' $ac_executable_extensions; do
7856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_ac_ct_AR="ar"
7858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862done
7863
7864  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7865fi
7866fi
7867ac_ct_AR=$ac_cv_prog_ac_ct_AR
7868if test -n "$ac_ct_AR"; then
7869  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7870echo "${ECHO_T}$ac_ct_AR" >&6
7871else
7872  echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874fi
7875
7876  AR=$ac_ct_AR
7877else
7878  AR="$ac_cv_prog_AR"
7879fi
7880
7881if test -n "$ac_tool_prefix"; then
7882  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7883set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7884echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886if test "${ac_cv_prog_RANLIB+set}" = set; then
7887  echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889  if test -n "$RANLIB"; then
7890  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895  IFS=$as_save_IFS
7896  test -z "$as_dir" && as_dir=.
7897  for ac_exec_ext in '' $ac_executable_extensions; do
7898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901    break 2
7902  fi
7903done
7904done
7905
7906fi
7907fi
7908RANLIB=$ac_cv_prog_RANLIB
7909if test -n "$RANLIB"; then
7910  echo "$as_me:$LINENO: result: $RANLIB" >&5
7911echo "${ECHO_T}$RANLIB" >&6
7912else
7913  echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915fi
7916
7917fi
7918if test -z "$ac_cv_prog_RANLIB"; then
7919  ac_ct_RANLIB=$RANLIB
7920  # Extract the first word of "ranlib", so it can be a program name with args.
7921set dummy ranlib; ac_word=$2
7922echo "$as_me:$LINENO: checking for $ac_word" >&5
7923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  if test -n "$ac_ct_RANLIB"; then
7928  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935  for ac_exec_ext in '' $ac_executable_extensions; do
7936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_RANLIB="ranlib"
7938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942done
7943
7944  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7945fi
7946fi
7947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7948if test -n "$ac_ct_RANLIB"; then
7949  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7950echo "${ECHO_T}$ac_ct_RANLIB" >&6
7951else
7952  echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954fi
7955
7956  RANLIB=$ac_ct_RANLIB
7957else
7958  RANLIB="$ac_cv_prog_RANLIB"
7959fi
7960
7961if test -n "$ac_tool_prefix"; then
7962  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7963set dummy ${ac_tool_prefix}strip; ac_word=$2
7964echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966if test "${ac_cv_prog_STRIP+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  if test -n "$STRIP"; then
7970  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7971else
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975  IFS=$as_save_IFS
7976  test -z "$as_dir" && as_dir=.
7977  for ac_exec_ext in '' $ac_executable_extensions; do
7978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981    break 2
7982  fi
7983done
7984done
7985
7986fi
7987fi
7988STRIP=$ac_cv_prog_STRIP
7989if test -n "$STRIP"; then
7990  echo "$as_me:$LINENO: result: $STRIP" >&5
7991echo "${ECHO_T}$STRIP" >&6
7992else
7993  echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995fi
7996
7997fi
7998if test -z "$ac_cv_prog_STRIP"; then
7999  ac_ct_STRIP=$STRIP
8000  # Extract the first word of "strip", so it can be a program name with args.
8001set dummy strip; ac_word=$2
8002echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  if test -n "$ac_ct_STRIP"; then
8008  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8009else
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013  IFS=$as_save_IFS
8014  test -z "$as_dir" && as_dir=.
8015  for ac_exec_ext in '' $ac_executable_extensions; do
8016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017    ac_cv_prog_ac_ct_STRIP="strip"
8018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019    break 2
8020  fi
8021done
8022done
8023
8024  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8025fi
8026fi
8027ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8028if test -n "$ac_ct_STRIP"; then
8029  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8030echo "${ECHO_T}$ac_ct_STRIP" >&6
8031else
8032  echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034fi
8035
8036  STRIP=$ac_ct_STRIP
8037else
8038  STRIP="$ac_cv_prog_STRIP"
8039fi
8040
8041
8042old_CC="$CC"
8043old_CFLAGS="$CFLAGS"
8044
8045# Set sane defaults for various variables
8046test -z "$AR" && AR=ar
8047test -z "$AR_FLAGS" && AR_FLAGS=cru
8048test -z "$AS" && AS=as
8049test -z "$CC" && CC=cc
8050test -z "$LTCC" && LTCC=$CC
8051test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8052test -z "$DLLTOOL" && DLLTOOL=dlltool
8053test -z "$LD" && LD=ld
8054test -z "$LN_S" && LN_S="ln -s"
8055test -z "$MAGIC_CMD" && MAGIC_CMD=file
8056test -z "$NM" && NM=nm
8057test -z "$SED" && SED=sed
8058test -z "$OBJDUMP" && OBJDUMP=objdump
8059test -z "$RANLIB" && RANLIB=:
8060test -z "$STRIP" && STRIP=:
8061test -z "$ac_objext" && ac_objext=o
8062
8063# Determine commands to create old-style static archives.
8064old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8065old_postinstall_cmds='chmod 644 $oldlib'
8066old_postuninstall_cmds=
8067
8068if test -n "$RANLIB"; then
8069  case $host_os in
8070  openbsd*)
8071    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8072    ;;
8073  *)
8074    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8075    ;;
8076  esac
8077  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8078fi
8079
8080for cc_temp in $compiler""; do
8081  case $cc_temp in
8082    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8083    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8084    \-*) ;;
8085    *) break;;
8086  esac
8087done
8088cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8089
8090
8091# Only perform the check for file, if the check method requires it
8092case $deplibs_check_method in
8093file_magic*)
8094  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8095    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8096echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  case $MAGIC_CMD in
8101[\\/*] |  ?:[\\/]*)
8102  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8103  ;;
8104*)
8105  lt_save_MAGIC_CMD="$MAGIC_CMD"
8106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8108  for ac_dir in $ac_dummy; do
8109    IFS="$lt_save_ifs"
8110    test -z "$ac_dir" && ac_dir=.
8111    if test -f $ac_dir/${ac_tool_prefix}file; then
8112      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8113      if test -n "$file_magic_test_file"; then
8114	case $deplibs_check_method in
8115	"file_magic "*)
8116	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8117	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8118	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8119	    $EGREP "$file_magic_regex" > /dev/null; then
8120	    :
8121	  else
8122	    cat <<EOF 1>&2
8123
8124*** Warning: the command libtool uses to detect shared libraries,
8125*** $file_magic_cmd, produces output that libtool cannot recognize.
8126*** The result is that libtool may fail to recognize shared libraries
8127*** as such.  This will affect the creation of libtool libraries that
8128*** depend on shared libraries, but programs linked with such libtool
8129*** libraries will work regardless of this problem.  Nevertheless, you
8130*** may want to report the problem to your system manager and/or to
8131*** bug-libtool@gnu.org
8132
8133EOF
8134	  fi ;;
8135	esac
8136      fi
8137      break
8138    fi
8139  done
8140  IFS="$lt_save_ifs"
8141  MAGIC_CMD="$lt_save_MAGIC_CMD"
8142  ;;
8143esac
8144fi
8145
8146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147if test -n "$MAGIC_CMD"; then
8148  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8149echo "${ECHO_T}$MAGIC_CMD" >&6
8150else
8151  echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
8153fi
8154
8155if test -z "$lt_cv_path_MAGIC_CMD"; then
8156  if test -n "$ac_tool_prefix"; then
8157    echo "$as_me:$LINENO: checking for file" >&5
8158echo $ECHO_N "checking for file... $ECHO_C" >&6
8159if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8160  echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162  case $MAGIC_CMD in
8163[\\/*] |  ?:[\\/]*)
8164  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8165  ;;
8166*)
8167  lt_save_MAGIC_CMD="$MAGIC_CMD"
8168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8169  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8170  for ac_dir in $ac_dummy; do
8171    IFS="$lt_save_ifs"
8172    test -z "$ac_dir" && ac_dir=.
8173    if test -f $ac_dir/file; then
8174      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8175      if test -n "$file_magic_test_file"; then
8176	case $deplibs_check_method in
8177	"file_magic "*)
8178	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8179	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8180	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8181	    $EGREP "$file_magic_regex" > /dev/null; then
8182	    :
8183	  else
8184	    cat <<EOF 1>&2
8185
8186*** Warning: the command libtool uses to detect shared libraries,
8187*** $file_magic_cmd, produces output that libtool cannot recognize.
8188*** The result is that libtool may fail to recognize shared libraries
8189*** as such.  This will affect the creation of libtool libraries that
8190*** depend on shared libraries, but programs linked with such libtool
8191*** libraries will work regardless of this problem.  Nevertheless, you
8192*** may want to report the problem to your system manager and/or to
8193*** bug-libtool@gnu.org
8194
8195EOF
8196	  fi ;;
8197	esac
8198      fi
8199      break
8200    fi
8201  done
8202  IFS="$lt_save_ifs"
8203  MAGIC_CMD="$lt_save_MAGIC_CMD"
8204  ;;
8205esac
8206fi
8207
8208MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209if test -n "$MAGIC_CMD"; then
8210  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8211echo "${ECHO_T}$MAGIC_CMD" >&6
8212else
8213  echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6
8215fi
8216
8217  else
8218    MAGIC_CMD=:
8219  fi
8220fi
8221
8222  fi
8223  ;;
8224esac
8225
8226enable_dlopen=no
8227enable_win32_dll=no
8228
8229# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8230if test "${enable_libtool_lock+set}" = set; then
8231  enableval="$enable_libtool_lock"
8232
8233fi;
8234test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8235
8236
8237# Check whether --with-pic or --without-pic was given.
8238if test "${with_pic+set}" = set; then
8239  withval="$with_pic"
8240  pic_mode="$withval"
8241else
8242  pic_mode=default
8243fi;
8244test -z "$pic_mode" && pic_mode=default
8245
8246# Use C for the default configuration in the libtool script
8247tagname=
8248lt_save_CC="$CC"
8249ac_ext=c
8250ac_cpp='$CPP $CPPFLAGS'
8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255
8256# Source file extension for C test sources.
8257ac_ext=c
8258
8259# Object file extension for compiled C test sources.
8260objext=o
8261objext=$objext
8262
8263# Code to be used in simple compile tests
8264lt_simple_compile_test_code="int some_variable = 0;\n"
8265
8266# Code to be used in simple link tests
8267lt_simple_link_test_code='int main(){return(0);}\n'
8268
8269
8270# If no C compiler was specified, use CC.
8271LTCC=${LTCC-"$CC"}
8272
8273# If no C compiler flags were specified, use CFLAGS.
8274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8275
8276# Allow CC to be a program name with arguments.
8277compiler=$CC
8278
8279
8280# save warnings/boilerplate of simple test code
8281ac_outfile=conftest.$ac_objext
8282printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284_lt_compiler_boilerplate=`cat conftest.err`
8285$rm conftest*
8286
8287ac_outfile=conftest.$ac_objext
8288printf "$lt_simple_link_test_code" >conftest.$ac_ext
8289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290_lt_linker_boilerplate=`cat conftest.err`
8291$rm conftest*
8292
8293
8294## CAVEAT EMPTOR:
8295## There is no encapsulation within the following macros, do not change
8296## the running order or otherwise move them around unless you know exactly
8297## what you are doing...
8298
8299lt_prog_compiler_no_builtin_flag=
8300
8301if test "$GCC" = yes; then
8302  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8303
8304
8305echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8308  echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310  lt_cv_prog_compiler_rtti_exceptions=no
8311  ac_outfile=conftest.$ac_objext
8312   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8313   lt_compiler_flag="-fno-rtti -fno-exceptions"
8314   # Insert the option either (1) after the last *FLAGS variable, or
8315   # (2) before a word containing "conftest.", or (3) at the end.
8316   # Note that $ac_compile itself does not contain backslashes and begins
8317   # with a dollar sign (not a hyphen), so the echo should work correctly.
8318   # The option is referenced via a variable to avoid confusing sed.
8319   lt_compile=`echo "$ac_compile" | $SED \
8320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8322   -e 's:$: $lt_compiler_flag:'`
8323   (eval echo "\"\$as_me:8323: $lt_compile\"" >&5)
8324   (eval "$lt_compile" 2>conftest.err)
8325   ac_status=$?
8326   cat conftest.err >&5
8327   echo "$as_me:8327: \$? = $ac_status" >&5
8328   if (exit $ac_status) && test -s "$ac_outfile"; then
8329     # The compiler can only warn and ignore the option if not recognized
8330     # So say no if there are warnings other than the usual output.
8331     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8334       lt_cv_prog_compiler_rtti_exceptions=yes
8335     fi
8336   fi
8337   $rm conftest*
8338
8339fi
8340echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8342
8343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8344    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8345else
8346    :
8347fi
8348
8349fi
8350
8351lt_prog_compiler_wl=
8352lt_prog_compiler_pic=
8353lt_prog_compiler_static=
8354
8355echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8357
8358  if test "$GCC" = yes; then
8359    lt_prog_compiler_wl='-Wl,'
8360    lt_prog_compiler_static='-static'
8361
8362    case $host_os in
8363      aix*)
8364      # All AIX code is PIC.
8365      if test "$host_cpu" = ia64; then
8366	# AIX 5 now supports IA64 processor
8367	lt_prog_compiler_static='-Bstatic'
8368      fi
8369      ;;
8370
8371    amigaos*)
8372      # FIXME: we need at least 68020 code to build shared libraries, but
8373      # adding the `-m68020' flag to GCC prevents building anything better,
8374      # like `-m68040'.
8375      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8376      ;;
8377
8378    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8379      # PIC is the default for these OSes.
8380      ;;
8381
8382    mingw* | pw32* | os2*)
8383      # This hack is so that the source file can tell whether it is being
8384      # built for inclusion in a dll (and should export symbols for example).
8385      lt_prog_compiler_pic='-DDLL_EXPORT'
8386      ;;
8387
8388    darwin* | rhapsody*)
8389      # PIC is the default on this platform
8390      # Common symbols not allowed in MH_DYLIB files
8391      lt_prog_compiler_pic='-fno-common'
8392      ;;
8393
8394    interix3*)
8395      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8396      # Instead, we relocate shared libraries at runtime.
8397      ;;
8398
8399    msdosdjgpp*)
8400      # Just because we use GCC doesn't mean we suddenly get shared libraries
8401      # on systems that don't support them.
8402      lt_prog_compiler_can_build_shared=no
8403      enable_shared=no
8404      ;;
8405
8406    sysv4*MP*)
8407      if test -d /usr/nec; then
8408	lt_prog_compiler_pic=-Kconform_pic
8409      fi
8410      ;;
8411
8412    hpux*)
8413      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8414      # not for PA HP-UX.
8415      case $host_cpu in
8416      hppa*64*|ia64*)
8417	# +Z the default
8418	;;
8419      *)
8420	lt_prog_compiler_pic='-fPIC'
8421	;;
8422      esac
8423      ;;
8424
8425    *)
8426      lt_prog_compiler_pic='-fPIC'
8427      ;;
8428    esac
8429  else
8430    # PORTME Check for flag to pass linker flags through the system compiler.
8431    case $host_os in
8432    aix*)
8433      lt_prog_compiler_wl='-Wl,'
8434      if test "$host_cpu" = ia64; then
8435	# AIX 5 now supports IA64 processor
8436	lt_prog_compiler_static='-Bstatic'
8437      else
8438	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8439      fi
8440      ;;
8441      darwin*)
8442        # PIC is the default on this platform
8443        # Common symbols not allowed in MH_DYLIB files
8444       case $cc_basename in
8445         xlc*)
8446         lt_prog_compiler_pic='-qnocommon'
8447         lt_prog_compiler_wl='-Wl,'
8448         ;;
8449       esac
8450       ;;
8451
8452    mingw* | pw32* | os2*)
8453      # This hack is so that the source file can tell whether it is being
8454      # built for inclusion in a dll (and should export symbols for example).
8455      lt_prog_compiler_pic='-DDLL_EXPORT'
8456      ;;
8457
8458    hpux9* | hpux10* | hpux11*)
8459      lt_prog_compiler_wl='-Wl,'
8460      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8461      # not for PA HP-UX.
8462      case $host_cpu in
8463      hppa*64*|ia64*)
8464	# +Z the default
8465	;;
8466      *)
8467	lt_prog_compiler_pic='+Z'
8468	;;
8469      esac
8470      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8471      lt_prog_compiler_static='${wl}-a ${wl}archive'
8472      ;;
8473
8474    irix5* | irix6* | nonstopux*)
8475      lt_prog_compiler_wl='-Wl,'
8476      # PIC (with -KPIC) is the default.
8477      lt_prog_compiler_static='-non_shared'
8478      ;;
8479
8480    newsos6)
8481      lt_prog_compiler_pic='-KPIC'
8482      lt_prog_compiler_static='-Bstatic'
8483      ;;
8484
8485    linux*)
8486      case $cc_basename in
8487      icc* | ecc*)
8488	lt_prog_compiler_wl='-Wl,'
8489	lt_prog_compiler_pic='-KPIC'
8490	lt_prog_compiler_static='-static'
8491        ;;
8492      pgcc* | pgf77* | pgf90* | pgf95*)
8493        # Portland Group compilers (*not* the Pentium gcc compiler,
8494	# which looks to be a dead project)
8495	lt_prog_compiler_wl='-Wl,'
8496	lt_prog_compiler_pic='-fpic'
8497	lt_prog_compiler_static='-Bstatic'
8498        ;;
8499      ccc*)
8500        lt_prog_compiler_wl='-Wl,'
8501        # All Alpha code is PIC.
8502        lt_prog_compiler_static='-non_shared'
8503        ;;
8504      esac
8505      ;;
8506
8507    osf3* | osf4* | osf5*)
8508      lt_prog_compiler_wl='-Wl,'
8509      # All OSF/1 code is PIC.
8510      lt_prog_compiler_static='-non_shared'
8511      ;;
8512
8513    solaris*)
8514      lt_prog_compiler_pic='-KPIC'
8515      lt_prog_compiler_static='-Bstatic'
8516      case $cc_basename in
8517      f77* | f90* | f95*)
8518	lt_prog_compiler_wl='-Qoption ld ';;
8519      *)
8520	lt_prog_compiler_wl='-Wl,';;
8521      esac
8522      ;;
8523
8524    sunos4*)
8525      lt_prog_compiler_wl='-Qoption ld '
8526      lt_prog_compiler_pic='-PIC'
8527      lt_prog_compiler_static='-Bstatic'
8528      ;;
8529
8530    sysv4 | sysv4.2uw2* | sysv4.3*)
8531      lt_prog_compiler_wl='-Wl,'
8532      lt_prog_compiler_pic='-KPIC'
8533      lt_prog_compiler_static='-Bstatic'
8534      ;;
8535
8536    sysv4*MP*)
8537      if test -d /usr/nec ;then
8538	lt_prog_compiler_pic='-Kconform_pic'
8539	lt_prog_compiler_static='-Bstatic'
8540      fi
8541      ;;
8542
8543    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8544      lt_prog_compiler_wl='-Wl,'
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    unicos*)
8550      lt_prog_compiler_wl='-Wl,'
8551      lt_prog_compiler_can_build_shared=no
8552      ;;
8553
8554    uts4*)
8555      lt_prog_compiler_pic='-pic'
8556      lt_prog_compiler_static='-Bstatic'
8557      ;;
8558
8559    *)
8560      lt_prog_compiler_can_build_shared=no
8561      ;;
8562    esac
8563  fi
8564
8565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8566echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8567
8568#
8569# Check to make sure the PIC flag actually works.
8570#
8571if test -n "$lt_prog_compiler_pic"; then
8572
8573echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8575if test "${lt_prog_compiler_pic_works+set}" = set; then
8576  echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578  lt_prog_compiler_pic_works=no
8579  ac_outfile=conftest.$ac_objext
8580   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8581   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8582   # Insert the option either (1) after the last *FLAGS variable, or
8583   # (2) before a word containing "conftest.", or (3) at the end.
8584   # Note that $ac_compile itself does not contain backslashes and begins
8585   # with a dollar sign (not a hyphen), so the echo should work correctly.
8586   # The option is referenced via a variable to avoid confusing sed.
8587   lt_compile=`echo "$ac_compile" | $SED \
8588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590   -e 's:$: $lt_compiler_flag:'`
8591   (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
8592   (eval "$lt_compile" 2>conftest.err)
8593   ac_status=$?
8594   cat conftest.err >&5
8595   echo "$as_me:8595: \$? = $ac_status" >&5
8596   if (exit $ac_status) && test -s "$ac_outfile"; then
8597     # The compiler can only warn and ignore the option if not recognized
8598     # So say no if there are warnings other than the usual output.
8599     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8600     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8601     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8602       lt_prog_compiler_pic_works=yes
8603     fi
8604   fi
8605   $rm conftest*
8606
8607fi
8608echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8609echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8610
8611if test x"$lt_prog_compiler_pic_works" = xyes; then
8612    case $lt_prog_compiler_pic in
8613     "" | " "*) ;;
8614     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8615     esac
8616else
8617    lt_prog_compiler_pic=
8618     lt_prog_compiler_can_build_shared=no
8619fi
8620
8621fi
8622case $host_os in
8623  # For platforms which do not support PIC, -DPIC is meaningless:
8624  *djgpp*)
8625    lt_prog_compiler_pic=
8626    ;;
8627  *)
8628    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8629    ;;
8630esac
8631
8632#
8633# Check to make sure the static flag actually works.
8634#
8635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8638if test "${lt_prog_compiler_static_works+set}" = set; then
8639  echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641  lt_prog_compiler_static_works=no
8642   save_LDFLAGS="$LDFLAGS"
8643   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8645   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646     # The linker can only warn and ignore the option if not recognized
8647     # So say no if there are warnings
8648     if test -s conftest.err; then
8649       # Append any errors to the config.log.
8650       cat conftest.err 1>&5
8651       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8652       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653       if diff conftest.exp conftest.er2 >/dev/null; then
8654         lt_prog_compiler_static_works=yes
8655       fi
8656     else
8657       lt_prog_compiler_static_works=yes
8658     fi
8659   fi
8660   $rm conftest*
8661   LDFLAGS="$save_LDFLAGS"
8662
8663fi
8664echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8665echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8666
8667if test x"$lt_prog_compiler_static_works" = xyes; then
8668    :
8669else
8670    lt_prog_compiler_static=
8671fi
8672
8673
8674echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8675echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8676if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8677  echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679  lt_cv_prog_compiler_c_o=no
8680   $rm -r conftest 2>/dev/null
8681   mkdir conftest
8682   cd conftest
8683   mkdir out
8684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8685
8686   lt_compiler_flag="-o out/conftest2.$ac_objext"
8687   # Insert the option either (1) after the last *FLAGS variable, or
8688   # (2) before a word containing "conftest.", or (3) at the end.
8689   # Note that $ac_compile itself does not contain backslashes and begins
8690   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691   lt_compile=`echo "$ac_compile" | $SED \
8692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694   -e 's:$: $lt_compiler_flag:'`
8695   (eval echo "\"\$as_me:8695: $lt_compile\"" >&5)
8696   (eval "$lt_compile" 2>out/conftest.err)
8697   ac_status=$?
8698   cat out/conftest.err >&5
8699   echo "$as_me:8699: \$? = $ac_status" >&5
8700   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8701   then
8702     # The compiler can only warn and ignore the option if not recognized
8703     # So say no if there are warnings
8704     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8705     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8706     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8707       lt_cv_prog_compiler_c_o=yes
8708     fi
8709   fi
8710   chmod u+w . 2>&5
8711   $rm conftest*
8712   # SGI C++ compiler will create directory out/ii_files/ for
8713   # template instantiation
8714   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8715   $rm out/* && rmdir out
8716   cd ..
8717   rmdir conftest
8718   $rm conftest*
8719
8720fi
8721echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8722echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8723
8724
8725hard_links="nottested"
8726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8727  # do not overwrite the value of need_locks provided by the user
8728  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8729echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8730  hard_links=yes
8731  $rm conftest*
8732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8733  touch conftest.a
8734  ln conftest.a conftest.b 2>&5 || hard_links=no
8735  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8736  echo "$as_me:$LINENO: result: $hard_links" >&5
8737echo "${ECHO_T}$hard_links" >&6
8738  if test "$hard_links" = no; then
8739    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8740echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8741    need_locks=warn
8742  fi
8743else
8744  need_locks=no
8745fi
8746
8747echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8749
8750  runpath_var=
8751  allow_undefined_flag=
8752  enable_shared_with_static_runtimes=no
8753  archive_cmds=
8754  archive_expsym_cmds=
8755  old_archive_From_new_cmds=
8756  old_archive_from_expsyms_cmds=
8757  export_dynamic_flag_spec=
8758  whole_archive_flag_spec=
8759  thread_safe_flag_spec=
8760  hardcode_libdir_flag_spec=
8761  hardcode_libdir_flag_spec_ld=
8762  hardcode_libdir_separator=
8763  hardcode_direct=no
8764  hardcode_minus_L=no
8765  hardcode_shlibpath_var=unsupported
8766  link_all_deplibs=unknown
8767  hardcode_automatic=no
8768  module_cmds=
8769  module_expsym_cmds=
8770  always_export_symbols=no
8771  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8772  # include_expsyms should be a list of space-separated symbols to be *always*
8773  # included in the symbol list
8774  include_expsyms=
8775  # exclude_expsyms can be an extended regexp of symbols to exclude
8776  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8777  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8778  # as well as any symbol that contains `d'.
8779  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8780  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8781  # platforms (ab)use it in PIC code, but their linkers get confused if
8782  # the symbol is explicitly referenced.  Since portable code cannot
8783  # rely on this symbol name, it's probably fine to never include it in
8784  # preloaded symbol tables.
8785  extract_expsyms_cmds=
8786  # Just being paranoid about ensuring that cc_basename is set.
8787  for cc_temp in $compiler""; do
8788  case $cc_temp in
8789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8791    \-*) ;;
8792    *) break;;
8793  esac
8794done
8795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8796
8797  case $host_os in
8798  cygwin* | mingw* | pw32*)
8799    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8800    # When not using gcc, we currently assume that we are using
8801    # Microsoft Visual C++.
8802    if test "$GCC" != yes; then
8803      with_gnu_ld=no
8804    fi
8805    ;;
8806  interix*)
8807    # we just hope/assume this is gcc and not c89 (= MSVC++)
8808    with_gnu_ld=yes
8809    ;;
8810  openbsd*)
8811    with_gnu_ld=no
8812    ;;
8813  esac
8814
8815  ld_shlibs=yes
8816  if test "$with_gnu_ld" = yes; then
8817    # If archive_cmds runs LD, not CC, wlarc should be empty
8818    wlarc='${wl}'
8819
8820    # Set some defaults for GNU ld with shared library support. These
8821    # are reset later if shared libraries are not supported. Putting them
8822    # here allows them to be overridden if necessary.
8823    runpath_var=LD_RUN_PATH
8824    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8825    export_dynamic_flag_spec='${wl}--export-dynamic'
8826    # ancient GNU ld didn't support --whole-archive et. al.
8827    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8828	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8829      else
8830  	whole_archive_flag_spec=
8831    fi
8832    supports_anon_versioning=no
8833    case `$LD -v 2>/dev/null` in
8834      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8835      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8836      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8837      *\ 2.11.*) ;; # other 2.11 versions
8838      *) supports_anon_versioning=yes ;;
8839    esac
8840
8841    # See if GNU ld supports shared libraries.
8842    case $host_os in
8843    aix3* | aix4* | aix5*)
8844      # On AIX/PPC, the GNU linker is very broken
8845      if test "$host_cpu" != ia64; then
8846	ld_shlibs=no
8847	cat <<EOF 1>&2
8848
8849*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8850*** to be unable to reliably create shared libraries on AIX.
8851*** Therefore, libtool is disabling shared libraries support.  If you
8852*** really care for shared libraries, you may want to modify your PATH
8853*** so that a non-GNU linker is found, and then restart.
8854
8855EOF
8856      fi
8857      ;;
8858
8859    amigaos*)
8860      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)'
8861      hardcode_libdir_flag_spec='-L$libdir'
8862      hardcode_minus_L=yes
8863
8864      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8865      # that the semantics of dynamic libraries on AmigaOS, at least up
8866      # to version 4, is to share data among multiple programs linked
8867      # with the same dynamic library.  Since this doesn't match the
8868      # behavior of shared libraries on other platforms, we can't use
8869      # them.
8870      ld_shlibs=no
8871      ;;
8872
8873    beos*)
8874      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8875	allow_undefined_flag=unsupported
8876	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877	# support --undefined.  This deserves some investigation.  FIXME
8878	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879      else
8880	ld_shlibs=no
8881      fi
8882      ;;
8883
8884    cygwin* | mingw* | pw32*)
8885      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886      # as there is no search path for DLLs.
8887      hardcode_libdir_flag_spec='-L$libdir'
8888      allow_undefined_flag=unsupported
8889      always_export_symbols=no
8890      enable_shared_with_static_runtimes=yes
8891      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8892
8893      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8894        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895	# If the export-symbols file already is a .def file (1st line
8896	# is EXPORTS), use it as is; otherwise, prepend...
8897	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898	  cp $export_symbols $output_objdir/$soname.def;
8899	else
8900	  echo EXPORTS > $output_objdir/$soname.def;
8901	  cat $export_symbols >> $output_objdir/$soname.def;
8902	fi~
8903	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904      else
8905	ld_shlibs=no
8906      fi
8907      ;;
8908
8909    interix3*)
8910      hardcode_direct=no
8911      hardcode_shlibpath_var=no
8912      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913      export_dynamic_flag_spec='${wl}-E'
8914      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915      # Instead, shared libraries are loaded at an image base (0x10000000 by
8916      # default) and relocated if they conflict, which is a slow very memory
8917      # consuming and fragmenting process.  To avoid this, we pick a random,
8918      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8920      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921      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'
8922      ;;
8923
8924    linux*)
8925      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8926	tmp_addflag=
8927	case $cc_basename,$host_cpu in
8928	pgcc*)				# Portland Group C compiler
8929	  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'
8930	  tmp_addflag=' $pic_flag'
8931	  ;;
8932	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8933	  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'
8934	  tmp_addflag=' $pic_flag -Mnomain' ;;
8935	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8936	  tmp_addflag=' -i_dynamic' ;;
8937	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8938	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8939	ifc* | ifort*)			# Intel Fortran compiler
8940	  tmp_addflag=' -nofor_main' ;;
8941	esac
8942	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943
8944	if test $supports_anon_versioning = yes; then
8945	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8946  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8947  $echo "local: *; };" >> $output_objdir/$libname.ver~
8948	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8949	fi
8950      else
8951	ld_shlibs=no
8952      fi
8953      ;;
8954
8955    netbsd*)
8956      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8957	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8958	wlarc=
8959      else
8960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962      fi
8963      ;;
8964
8965    solaris*)
8966      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8967	ld_shlibs=no
8968	cat <<EOF 1>&2
8969
8970*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8971*** create shared libraries on Solaris systems.  Therefore, libtool
8972*** is disabling shared libraries support.  We urge you to upgrade GNU
8973*** binutils to release 2.9.1 or newer.  Another option is to modify
8974*** your PATH or compiler configuration so that the native linker is
8975*** used, and then restart.
8976
8977EOF
8978      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8979	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981      else
8982	ld_shlibs=no
8983      fi
8984      ;;
8985
8986    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8987      case `$LD -v 2>&1` in
8988        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8989	ld_shlibs=no
8990	cat <<_LT_EOF 1>&2
8991
8992*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8993*** reliably create shared libraries on SCO systems.  Therefore, libtool
8994*** is disabling shared libraries support.  We urge you to upgrade GNU
8995*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8996*** your PATH or compiler configuration so that the native linker is
8997*** used, and then restart.
8998
8999_LT_EOF
9000	;;
9001	*)
9002	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9003	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9004	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9005	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9006	  else
9007	    ld_shlibs=no
9008	  fi
9009	;;
9010      esac
9011      ;;
9012
9013    sunos4*)
9014      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015      wlarc=
9016      hardcode_direct=yes
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    *)
9021      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9022	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024      else
9025	ld_shlibs=no
9026      fi
9027      ;;
9028    esac
9029
9030    if test "$ld_shlibs" = no; then
9031      runpath_var=
9032      hardcode_libdir_flag_spec=
9033      export_dynamic_flag_spec=
9034      whole_archive_flag_spec=
9035    fi
9036  else
9037    # PORTME fill in a description of your system's linker (not GNU ld)
9038    case $host_os in
9039    aix3*)
9040      allow_undefined_flag=unsupported
9041      always_export_symbols=yes
9042      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'
9043      # Note: this linker hardcodes the directories in LIBPATH if there
9044      # are no directories specified by -L.
9045      hardcode_minus_L=yes
9046      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9047	# Neither direct hardcoding nor static linking is supported with a
9048	# broken collect2.
9049	hardcode_direct=unsupported
9050      fi
9051      ;;
9052
9053    aix4* | aix5*)
9054      if test "$host_cpu" = ia64; then
9055	# On IA64, the linker does run time linking by default, so we don't
9056	# have to do anything special.
9057	aix_use_runtimelinking=no
9058	exp_sym_flag='-Bexport'
9059	no_entry_flag=""
9060      else
9061	# If we're using GNU nm, then we don't want the "-C" option.
9062	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9063	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9064	  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'
9065	else
9066	  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'
9067	fi
9068	aix_use_runtimelinking=no
9069
9070	# Test if we are trying to use run time linking or normal
9071	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9072	# need to do runtime linking.
9073	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9074	  for ld_flag in $LDFLAGS; do
9075  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9076  	    aix_use_runtimelinking=yes
9077  	    break
9078  	  fi
9079	  done
9080	  ;;
9081	esac
9082
9083	exp_sym_flag='-bexport'
9084	no_entry_flag='-bnoentry'
9085      fi
9086
9087      # When large executables or shared objects are built, AIX ld can
9088      # have problems creating the table of contents.  If linking a library
9089      # or program results in "error TOC overflow" add -mminimal-toc to
9090      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9091      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9092
9093      archive_cmds=''
9094      hardcode_direct=yes
9095      hardcode_libdir_separator=':'
9096      link_all_deplibs=yes
9097
9098      if test "$GCC" = yes; then
9099	case $host_os in aix4.[012]|aix4.[012].*)
9100	# We only want to do this on AIX 4.2 and lower, the check
9101	# below for broken collect2 doesn't work under 4.3+
9102	  collect2name=`${CC} -print-prog-name=collect2`
9103	  if test -f "$collect2name" && \
9104  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9105	  then
9106  	  # We have reworked collect2
9107  	  hardcode_direct=yes
9108	  else
9109  	  # We have old collect2
9110  	  hardcode_direct=unsupported
9111  	  # It fails to find uninstalled libraries when the uninstalled
9112  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9113  	  # to unsupported forces relinking
9114  	  hardcode_minus_L=yes
9115  	  hardcode_libdir_flag_spec='-L$libdir'
9116  	  hardcode_libdir_separator=
9117	  fi
9118	  ;;
9119	esac
9120	shared_flag='-shared'
9121	if test "$aix_use_runtimelinking" = yes; then
9122	  shared_flag="$shared_flag "'${wl}-G'
9123	fi
9124      else
9125	# not using gcc
9126	if test "$host_cpu" = ia64; then
9127  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9128  	# chokes on -Wl,-G. The following line is correct:
9129	  shared_flag='-G'
9130	else
9131	  if test "$aix_use_runtimelinking" = yes; then
9132	    shared_flag='${wl}-G'
9133	  else
9134	    shared_flag='${wl}-bM:SRE'
9135	  fi
9136	fi
9137      fi
9138
9139      # It seems that -bexpall does not export symbols beginning with
9140      # underscore (_), so it is better to generate a list of symbols to export.
9141      always_export_symbols=yes
9142      if test "$aix_use_runtimelinking" = yes; then
9143	# Warning - without using the other runtime loading flags (-brtl),
9144	# -berok will link without error, but may produce a broken library.
9145	allow_undefined_flag='-berok'
9146       # Determine the default libpath from the value encoded in an empty executable.
9147       cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h.  */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h.  */
9153
9154int
9155main ()
9156{
9157
9158  ;
9159  return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext conftest$ac_exeext
9163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164  (eval $ac_link) 2>conftest.er1
9165  ac_status=$?
9166  grep -v '^ *+' conftest.er1 >conftest.err
9167  rm -f conftest.er1
9168  cat conftest.err >&5
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); } &&
9171	 { ac_try='test -z "$ac_c_werror_flag"
9172			 || test ! -s conftest.err'
9173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174  (eval $ac_try) 2>&5
9175  ac_status=$?
9176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177  (exit $ac_status); }; } &&
9178	 { ac_try='test -s conftest$ac_exeext'
9179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180  (eval $ac_try) 2>&5
9181  ac_status=$?
9182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183  (exit $ac_status); }; }; then
9184
9185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9186}'`
9187# Check for a 64-bit object if we didn't find anything.
9188if 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; }
9189}'`; fi
9190else
9191  echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196      conftest$ac_exeext conftest.$ac_ext
9197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198
9199       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9200	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"
9201       else
9202	if test "$host_cpu" = ia64; then
9203	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9204	  allow_undefined_flag="-z nodefs"
9205	  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"
9206	else
9207	 # Determine the default libpath from the value encoded in an empty executable.
9208	 cat >conftest.$ac_ext <<_ACEOF
9209/* confdefs.h.  */
9210_ACEOF
9211cat confdefs.h >>conftest.$ac_ext
9212cat >>conftest.$ac_ext <<_ACEOF
9213/* end confdefs.h.  */
9214
9215int
9216main ()
9217{
9218
9219  ;
9220  return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225  (eval $ac_link) 2>conftest.er1
9226  ac_status=$?
9227  grep -v '^ *+' conftest.er1 >conftest.err
9228  rm -f conftest.er1
9229  cat conftest.err >&5
9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231  (exit $ac_status); } &&
9232	 { ac_try='test -z "$ac_c_werror_flag"
9233			 || test ! -s conftest.err'
9234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235  (eval $ac_try) 2>&5
9236  ac_status=$?
9237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238  (exit $ac_status); }; } &&
9239	 { ac_try='test -s conftest$ac_exeext'
9240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241  (eval $ac_try) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); }; }; then
9245
9246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9247}'`
9248# Check for a 64-bit object if we didn't find anything.
9249if 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; }
9250}'`; fi
9251else
9252  echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
9255fi
9256rm -f conftest.err conftest.$ac_objext \
9257      conftest$ac_exeext conftest.$ac_ext
9258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9259
9260	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9261	  # Warning - without using the other run time loading flags,
9262	  # -berok will link without error, but may produce a broken library.
9263	  no_undefined_flag=' ${wl}-bernotok'
9264	  allow_undefined_flag=' ${wl}-berok'
9265	  # Exported symbols can be pulled into shared objects from archives
9266	  whole_archive_flag_spec='$convenience'
9267	  archive_cmds_need_lc=yes
9268	  # This is similar to how AIX traditionally builds its shared libraries.
9269	  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'
9270	fi
9271      fi
9272      ;;
9273
9274    amigaos*)
9275      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)'
9276      hardcode_libdir_flag_spec='-L$libdir'
9277      hardcode_minus_L=yes
9278      # see comment about different semantics on the GNU ld section
9279      ld_shlibs=no
9280      ;;
9281
9282    bsdi[45]*)
9283      export_dynamic_flag_spec=-rdynamic
9284      ;;
9285
9286    cygwin* | mingw* | pw32*)
9287      # When not using gcc, we currently assume that we are using
9288      # Microsoft Visual C++.
9289      # hardcode_libdir_flag_spec is actually meaningless, as there is
9290      # no search path for DLLs.
9291      hardcode_libdir_flag_spec=' '
9292      allow_undefined_flag=unsupported
9293      # Tell ltmain to make .lib files, not .a files.
9294      libext=lib
9295      # Tell ltmain to make .dll files, not .so files.
9296      shrext_cmds=".dll"
9297      # FIXME: Setting linknames here is a bad hack.
9298      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9299      # The linker will automatically build a .lib file if we build a DLL.
9300      old_archive_From_new_cmds='true'
9301      # FIXME: Should let the user specify the lib program.
9302      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9303      fix_srcfile_path='`cygpath -w "$srcfile"`'
9304      enable_shared_with_static_runtimes=yes
9305      ;;
9306
9307    darwin* | rhapsody*)
9308      case $host_os in
9309        rhapsody* | darwin1.[012])
9310         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9311         ;;
9312       *) # Darwin 1.3 on
9313         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9314           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9315         else
9316           case ${MACOSX_DEPLOYMENT_TARGET} in
9317             10.[012])
9318               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9319               ;;
9320             10.*)
9321               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9322               ;;
9323           esac
9324         fi
9325         ;;
9326      esac
9327      archive_cmds_need_lc=no
9328      hardcode_direct=no
9329      hardcode_automatic=yes
9330      hardcode_shlibpath_var=unsupported
9331      whole_archive_flag_spec=''
9332      link_all_deplibs=yes
9333    if test "$GCC" = yes ; then
9334    	output_verbose_link_cmd='echo'
9335        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9336      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9337      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9338      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}'
9339      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}'
9340    else
9341      case $cc_basename in
9342        xlc*)
9343         output_verbose_link_cmd='echo'
9344         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9345         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9346          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9347         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}'
9348          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}'
9349          ;;
9350       *)
9351         ld_shlibs=no
9352          ;;
9353      esac
9354    fi
9355      ;;
9356
9357    dgux*)
9358      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359      hardcode_libdir_flag_spec='-L$libdir'
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    freebsd1*)
9364      ld_shlibs=no
9365      ;;
9366
9367    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9368    # support.  Future versions do this automatically, but an explicit c++rt0.o
9369    # does not break anything, and helps significantly (at the cost of a little
9370    # extra space).
9371    freebsd2.2*)
9372      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9373      hardcode_libdir_flag_spec='-R$libdir'
9374      hardcode_direct=yes
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9379    freebsd2*)
9380      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9381      hardcode_direct=yes
9382      hardcode_minus_L=yes
9383      hardcode_shlibpath_var=no
9384      ;;
9385
9386    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9387    freebsd* | kfreebsd*-gnu | dragonfly*)
9388      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9389      hardcode_libdir_flag_spec='-R$libdir'
9390      hardcode_direct=yes
9391      hardcode_shlibpath_var=no
9392      ;;
9393
9394    hpux9*)
9395      if test "$GCC" = yes; then
9396	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'
9397      else
9398	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'
9399      fi
9400      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401      hardcode_libdir_separator=:
9402      hardcode_direct=yes
9403
9404      # hardcode_minus_L: Not really in the search PATH,
9405      # but as the default location of the library.
9406      hardcode_minus_L=yes
9407      export_dynamic_flag_spec='${wl}-E'
9408      ;;
9409
9410    hpux10*)
9411      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9412	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413      else
9414	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415      fi
9416      if test "$with_gnu_ld" = no; then
9417	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418	hardcode_libdir_separator=:
9419
9420	hardcode_direct=yes
9421	export_dynamic_flag_spec='${wl}-E'
9422
9423	# hardcode_minus_L: Not really in the search PATH,
9424	# but as the default location of the library.
9425	hardcode_minus_L=yes
9426      fi
9427      ;;
9428
9429    hpux11*)
9430      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9431	case $host_cpu in
9432	hppa*64*)
9433	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434	  ;;
9435	ia64*)
9436	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9437	  ;;
9438	*)
9439	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9440	  ;;
9441	esac
9442      else
9443	case $host_cpu in
9444	hppa*64*)
9445	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446	  ;;
9447	ia64*)
9448	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449	  ;;
9450	*)
9451	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452	  ;;
9453	esac
9454      fi
9455      if test "$with_gnu_ld" = no; then
9456	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457	hardcode_libdir_separator=:
9458
9459	case $host_cpu in
9460	hppa*64*|ia64*)
9461	  hardcode_libdir_flag_spec_ld='+b $libdir'
9462	  hardcode_direct=no
9463	  hardcode_shlibpath_var=no
9464	  ;;
9465	*)
9466	  hardcode_direct=yes
9467	  export_dynamic_flag_spec='${wl}-E'
9468
9469	  # hardcode_minus_L: Not really in the search PATH,
9470	  # but as the default location of the library.
9471	  hardcode_minus_L=yes
9472	  ;;
9473	esac
9474      fi
9475      ;;
9476
9477    irix5* | irix6* | nonstopux*)
9478      if test "$GCC" = yes; then
9479	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'
9480      else
9481	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'
9482	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9483      fi
9484      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      link_all_deplibs=yes
9487      ;;
9488
9489    netbsd*)
9490      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9491	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9492      else
9493	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9494      fi
9495      hardcode_libdir_flag_spec='-R$libdir'
9496      hardcode_direct=yes
9497      hardcode_shlibpath_var=no
9498      ;;
9499
9500    newsos6)
9501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502      hardcode_direct=yes
9503      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504      hardcode_libdir_separator=:
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    openbsd*)
9509      hardcode_direct=yes
9510      hardcode_shlibpath_var=no
9511      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9514	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515	export_dynamic_flag_spec='${wl}-E'
9516      else
9517       case $host_os in
9518	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9519	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520	   hardcode_libdir_flag_spec='-R$libdir'
9521	   ;;
9522	 *)
9523	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9525	   ;;
9526       esac
9527      fi
9528      ;;
9529
9530    os2*)
9531      hardcode_libdir_flag_spec='-L$libdir'
9532      hardcode_minus_L=yes
9533      allow_undefined_flag=unsupported
9534      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'
9535      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9536      ;;
9537
9538    osf3*)
9539      if test "$GCC" = yes; then
9540	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9541	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'
9542      else
9543	allow_undefined_flag=' -expect_unresolved \*'
9544	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'
9545      fi
9546      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547      hardcode_libdir_separator=:
9548      ;;
9549
9550    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9551      if test "$GCC" = yes; then
9552	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9553	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'
9554	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555      else
9556	allow_undefined_flag=' -expect_unresolved \*'
9557	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'
9558	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9559	$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'
9560
9561	# Both c and cxx compiler support -rpath directly
9562	hardcode_libdir_flag_spec='-rpath $libdir'
9563      fi
9564      hardcode_libdir_separator=:
9565      ;;
9566
9567    solaris*)
9568      no_undefined_flag=' -z text'
9569      if test "$GCC" = yes; then
9570	wlarc='${wl}'
9571	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9572	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9573	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9574      else
9575	wlarc=''
9576	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9579      fi
9580      hardcode_libdir_flag_spec='-R$libdir'
9581      hardcode_shlibpath_var=no
9582      case $host_os in
9583      solaris2.[0-5] | solaris2.[0-5].*) ;;
9584      *)
9585 	# The compiler driver will combine linker options so we
9586 	# cannot just pass the convience library names through
9587 	# without $wl, iff we do not link with $LD.
9588 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9589 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9590 	case $wlarc in
9591 	'')
9592 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9593 	*)
9594 	  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' ;;
9595 	esac ;;
9596      esac
9597      link_all_deplibs=yes
9598      ;;
9599
9600    sunos4*)
9601      if test "x$host_vendor" = xsequent; then
9602	# Use $CC to link under sequent, because it throws in some extra .o
9603	# files that make .init and .fini sections work.
9604	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605      else
9606	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9607      fi
9608      hardcode_libdir_flag_spec='-L$libdir'
9609      hardcode_direct=yes
9610      hardcode_minus_L=yes
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    sysv4)
9615      case $host_vendor in
9616	sni)
9617	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618	  hardcode_direct=yes # is this really true???
9619	;;
9620	siemens)
9621	  ## LD is ld it makes a PLAMLIB
9622	  ## CC just makes a GrossModule.
9623	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9624	  reload_cmds='$CC -r -o $output$reload_objs'
9625	  hardcode_direct=no
9626        ;;
9627	motorola)
9628	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9630	;;
9631      esac
9632      runpath_var='LD_RUN_PATH'
9633      hardcode_shlibpath_var=no
9634      ;;
9635
9636    sysv4.3*)
9637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638      hardcode_shlibpath_var=no
9639      export_dynamic_flag_spec='-Bexport'
9640      ;;
9641
9642    sysv4*MP*)
9643      if test -d /usr/nec; then
9644	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645	hardcode_shlibpath_var=no
9646	runpath_var=LD_RUN_PATH
9647	hardcode_runpath_var=yes
9648	ld_shlibs=yes
9649      fi
9650      ;;
9651
9652    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9653      no_undefined_flag='${wl}-z,text'
9654      archive_cmds_need_lc=no
9655      hardcode_shlibpath_var=no
9656      runpath_var='LD_RUN_PATH'
9657
9658      if test "$GCC" = yes; then
9659	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661      else
9662	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664      fi
9665      ;;
9666
9667    sysv5* | sco3.2v5* | sco5v6*)
9668      # Note: We can NOT use -z defs as we might desire, because we do not
9669      # link with -lc, and that would cause any symbols used from libc to
9670      # always be unresolved, which means just about no library would
9671      # ever link correctly.  If we're not using GNU ld we use -z text
9672      # though, which does catch some bad symbols but isn't as heavy-handed
9673      # as -z defs.
9674      no_undefined_flag='${wl}-z,text'
9675      allow_undefined_flag='${wl}-z,nodefs'
9676      archive_cmds_need_lc=no
9677      hardcode_shlibpath_var=no
9678      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9679      hardcode_libdir_separator=':'
9680      link_all_deplibs=yes
9681      export_dynamic_flag_spec='${wl}-Bexport'
9682      runpath_var='LD_RUN_PATH'
9683
9684      if test "$GCC" = yes; then
9685	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9686	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687      else
9688	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690      fi
9691      ;;
9692
9693    uts4*)
9694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    *)
9700      ld_shlibs=no
9701      ;;
9702    esac
9703  fi
9704
9705echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9706echo "${ECHO_T}$ld_shlibs" >&6
9707test "$ld_shlibs" = no && can_build_shared=no
9708
9709#
9710# Do we need to explicitly link libc?
9711#
9712case "x$archive_cmds_need_lc" in
9713x|xyes)
9714  # Assume -lc should be added
9715  archive_cmds_need_lc=yes
9716
9717  if test "$enable_shared" = yes && test "$GCC" = yes; then
9718    case $archive_cmds in
9719    *'~'*)
9720      # FIXME: we may have to deal with multi-command sequences.
9721      ;;
9722    '$CC '*)
9723      # Test whether the compiler implicitly links with -lc since on some
9724      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9725      # to ld, don't add -lc before -lgcc.
9726      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9727echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9728      $rm conftest*
9729      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9730
9731      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732  (eval $ac_compile) 2>&5
9733  ac_status=$?
9734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735  (exit $ac_status); } 2>conftest.err; then
9736        soname=conftest
9737        lib=conftest
9738        libobjs=conftest.$ac_objext
9739        deplibs=
9740        wl=$lt_prog_compiler_wl
9741	pic_flag=$lt_prog_compiler_pic
9742        compiler_flags=-v
9743        linker_flags=-v
9744        verstring=
9745        output_objdir=.
9746        libname=conftest
9747        lt_save_allow_undefined_flag=$allow_undefined_flag
9748        allow_undefined_flag=
9749        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9750  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9751  ac_status=$?
9752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753  (exit $ac_status); }
9754        then
9755	  archive_cmds_need_lc=no
9756        else
9757	  archive_cmds_need_lc=yes
9758        fi
9759        allow_undefined_flag=$lt_save_allow_undefined_flag
9760      else
9761        cat conftest.err 1>&5
9762      fi
9763      $rm conftest*
9764      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9765echo "${ECHO_T}$archive_cmds_need_lc" >&6
9766      ;;
9767    esac
9768  fi
9769  ;;
9770esac
9771
9772echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9773echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9774library_names_spec=
9775libname_spec='lib$name'
9776soname_spec=
9777shrext_cmds=".so"
9778postinstall_cmds=
9779postuninstall_cmds=
9780finish_cmds=
9781finish_eval=
9782shlibpath_var=
9783shlibpath_overrides_runpath=unknown
9784version_type=none
9785dynamic_linker="$host_os ld.so"
9786sys_lib_dlsearch_path_spec="/lib /usr/lib"
9787if test "$GCC" = yes; then
9788  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9789  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9790    # if the path contains ";" then we assume it to be the separator
9791    # otherwise default to the standard path separator (i.e. ":") - it is
9792    # assumed that no part of a normal pathname contains ";" but that should
9793    # okay in the real world where ";" in dirpaths is itself problematic.
9794    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795  else
9796    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9797  fi
9798else
9799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9800fi
9801need_lib_prefix=unknown
9802hardcode_into_libs=no
9803
9804# when you set need_version to no, make sure it does not cause -set_version
9805# flags to be left without arguments
9806need_version=unknown
9807
9808case $host_os in
9809aix3*)
9810  version_type=linux
9811  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9812  shlibpath_var=LIBPATH
9813
9814  # AIX 3 has no versioning support, so we append a major version to the name.
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  ;;
9817
9818aix4* | aix5*)
9819  version_type=linux
9820  need_lib_prefix=no
9821  need_version=no
9822  hardcode_into_libs=yes
9823  if test "$host_cpu" = ia64; then
9824    # AIX 5 supports IA64
9825    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9826    shlibpath_var=LD_LIBRARY_PATH
9827  else
9828    # With GCC up to 2.95.x, collect2 would create an import file
9829    # for dependence libraries.  The import file would start with
9830    # the line `#! .'.  This would cause the generated library to
9831    # depend on `.', always an invalid library.  This was fixed in
9832    # development snapshots of GCC prior to 3.0.
9833    case $host_os in
9834      aix4 | aix4.[01] | aix4.[01].*)
9835      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9836	   echo ' yes '
9837	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9838	:
9839      else
9840	can_build_shared=no
9841      fi
9842      ;;
9843    esac
9844    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9845    # soname into executable. Probably we can add versioning support to
9846    # collect2, so additional links can be useful in future.
9847    if test "$aix_use_runtimelinking" = yes; then
9848      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9849      # instead of lib<name>.a to let people know that these are not
9850      # typical AIX shared libraries.
9851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852    else
9853      # We preserve .a as extension for shared libraries through AIX4.2
9854      # and later when we are not doing run time linking.
9855      library_names_spec='${libname}${release}.a $libname.a'
9856      soname_spec='${libname}${release}${shared_ext}$major'
9857    fi
9858    shlibpath_var=LIBPATH
9859  fi
9860  ;;
9861
9862amigaos*)
9863  library_names_spec='$libname.ixlibrary $libname.a'
9864  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9865  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'
9866  ;;
9867
9868beos*)
9869  library_names_spec='${libname}${shared_ext}'
9870  dynamic_linker="$host_os ld.so"
9871  shlibpath_var=LIBRARY_PATH
9872  ;;
9873
9874bsdi[45]*)
9875  version_type=linux
9876  need_version=no
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883  # the default ld.so.conf also contains /usr/contrib/lib and
9884  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885  # libtool to hard-code these into programs
9886  ;;
9887
9888cygwin* | mingw* | pw32*)
9889  version_type=windows
9890  shrext_cmds=".dll"
9891  need_version=no
9892  need_lib_prefix=no
9893
9894  case $GCC,$host_os in
9895  yes,cygwin* | yes,mingw* | yes,pw32*)
9896    library_names_spec='$libname.dll.a'
9897    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9898    postinstall_cmds='base_file=`basename \${file}`~
9899      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9900      dldir=$destdir/`dirname \$dlpath`~
9901      test -d \$dldir || mkdir -p \$dldir~
9902      $install_prog $dir/$dlname \$dldir/$dlname~
9903      chmod a+x \$dldir/$dlname'
9904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905      dlpath=$dir/\$dldll~
9906       $rm \$dlpath'
9907    shlibpath_overrides_runpath=yes
9908
9909    case $host_os in
9910    cygwin*)
9911      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9914      ;;
9915    mingw*)
9916      # MinGW DLLs use traditional 'lib' prefix
9917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9920        # It is most probably a Windows format PATH printed by
9921        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922        # path with ; separators, and with drive letters. We can handle the
9923        # drive letters (cygwin fileutils understands them), so leave them,
9924        # especially as we might pass files found there to a mingw objdump,
9925        # which wouldn't understand a cygwinified path. Ahh.
9926        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9927      else
9928        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9929      fi
9930      ;;
9931    pw32*)
9932      # pw32 DLLs use 'pw' prefix rather than 'lib'
9933      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934      ;;
9935    esac
9936    ;;
9937
9938  *)
9939    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9940    ;;
9941  esac
9942  dynamic_linker='Win32 ld.exe'
9943  # FIXME: first we should search . and the directory the executable is in
9944  shlibpath_var=PATH
9945  ;;
9946
9947darwin* | rhapsody*)
9948  dynamic_linker="$host_os dyld"
9949  version_type=darwin
9950  need_lib_prefix=no
9951  need_version=no
9952  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9953  soname_spec='${libname}${release}${major}$shared_ext'
9954  shlibpath_overrides_runpath=yes
9955  shlibpath_var=DYLD_LIBRARY_PATH
9956  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9957  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9958  if test "$GCC" = yes; then
9959    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"`
9960  else
9961    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9962  fi
9963  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9964  ;;
9965
9966dgux*)
9967  version_type=linux
9968  need_lib_prefix=no
9969  need_version=no
9970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9971  soname_spec='${libname}${release}${shared_ext}$major'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  ;;
9974
9975freebsd1*)
9976  dynamic_linker=no
9977  ;;
9978
9979kfreebsd*-gnu)
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  shlibpath_overrides_runpath=no
9987  hardcode_into_libs=yes
9988  dynamic_linker='GNU ld.so'
9989  ;;
9990
9991freebsd* | dragonfly*)
9992  # DragonFly does not have aout.  When/if they implement a new
9993  # versioning mechanism, adjust this.
9994  if test -x /usr/bin/objformat; then
9995    objformat=`/usr/bin/objformat`
9996  else
9997    case $host_os in
9998    freebsd[123]*) objformat=aout ;;
9999    *) objformat=elf ;;
10000    esac
10001  fi
10002  version_type=freebsd-$objformat
10003  case $version_type in
10004    freebsd-elf*)
10005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006      need_version=no
10007      need_lib_prefix=no
10008      ;;
10009    freebsd-*)
10010      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10011      need_version=yes
10012      ;;
10013  esac
10014  shlibpath_var=LD_LIBRARY_PATH
10015  case $host_os in
10016  freebsd2*)
10017    shlibpath_overrides_runpath=yes
10018    ;;
10019  freebsd3.[01]* | freebsdelf3.[01]*)
10020    shlibpath_overrides_runpath=yes
10021    hardcode_into_libs=yes
10022    ;;
10023  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025    shlibpath_overrides_runpath=no
10026    hardcode_into_libs=yes
10027    ;;
10028  freebsd*) # from 4.6 on
10029    shlibpath_overrides_runpath=yes
10030    hardcode_into_libs=yes
10031    ;;
10032  esac
10033  ;;
10034
10035gnu*)
10036  version_type=linux
10037  need_lib_prefix=no
10038  need_version=no
10039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040  soname_spec='${libname}${release}${shared_ext}$major'
10041  shlibpath_var=LD_LIBRARY_PATH
10042  hardcode_into_libs=yes
10043  ;;
10044
10045hpux9* | hpux10* | hpux11*)
10046  # Give a soname corresponding to the major version so that dld.sl refuses to
10047  # link against other versions.
10048  version_type=sunos
10049  need_lib_prefix=no
10050  need_version=no
10051  case $host_cpu in
10052  ia64*)
10053    shrext_cmds='.so'
10054    hardcode_into_libs=yes
10055    dynamic_linker="$host_os dld.so"
10056    shlibpath_var=LD_LIBRARY_PATH
10057    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059    soname_spec='${libname}${release}${shared_ext}$major'
10060    if test "X$HPUX_IA64_MODE" = X32; then
10061      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10062    else
10063      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10064    fi
10065    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066    ;;
10067   hppa*64*)
10068     shrext_cmds='.sl'
10069     hardcode_into_libs=yes
10070     dynamic_linker="$host_os dld.sl"
10071     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074     soname_spec='${libname}${release}${shared_ext}$major'
10075     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10076     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10077     ;;
10078   *)
10079    shrext_cmds='.sl'
10080    dynamic_linker="$host_os dld.sl"
10081    shlibpath_var=SHLIB_PATH
10082    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10083    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084    soname_spec='${libname}${release}${shared_ext}$major'
10085    ;;
10086  esac
10087  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10088  postinstall_cmds='chmod 555 $lib'
10089  ;;
10090
10091interix3*)
10092  version_type=linux
10093  need_lib_prefix=no
10094  need_version=no
10095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10096  soname_spec='${libname}${release}${shared_ext}$major'
10097  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10098  shlibpath_var=LD_LIBRARY_PATH
10099  shlibpath_overrides_runpath=no
10100  hardcode_into_libs=yes
10101  ;;
10102
10103irix5* | irix6* | nonstopux*)
10104  case $host_os in
10105    nonstopux*) version_type=nonstopux ;;
10106    *)
10107	if test "$lt_cv_prog_gnu_ld" = yes; then
10108		version_type=linux
10109	else
10110		version_type=irix
10111	fi ;;
10112  esac
10113  need_lib_prefix=no
10114  need_version=no
10115  soname_spec='${libname}${release}${shared_ext}$major'
10116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10117  case $host_os in
10118  irix5* | nonstopux*)
10119    libsuff= shlibsuff=
10120    ;;
10121  *)
10122    case $LD in # libtool.m4 will add one of these switches to LD
10123    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10124      libsuff= shlibsuff= libmagic=32-bit;;
10125    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10126      libsuff=32 shlibsuff=N32 libmagic=N32;;
10127    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10128      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10129    *) libsuff= shlibsuff= libmagic=never-match;;
10130    esac
10131    ;;
10132  esac
10133  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10134  shlibpath_overrides_runpath=no
10135  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10136  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10137  hardcode_into_libs=yes
10138  ;;
10139
10140# No shared lib support for Linux oldld, aout, or coff.
10141linux*oldld* | linux*aout* | linux*coff*)
10142  dynamic_linker=no
10143  ;;
10144
10145# This must be Linux ELF.
10146linux*)
10147  version_type=linux
10148  need_lib_prefix=no
10149  need_version=no
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10153  shlibpath_var=LD_LIBRARY_PATH
10154  shlibpath_overrides_runpath=no
10155  # This implies no fast_install, which is unacceptable.
10156  # Some rework will be needed to allow for fast_install
10157  # before this can be enabled.
10158  hardcode_into_libs=yes
10159
10160  # Append ld.so.conf contents to the search path
10161  if test -f /etc/ld.so.conf; then
10162    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' ' '`
10163    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10164  fi
10165
10166  # We used to test for /lib/ld.so.1 and disable shared libraries on
10167  # powerpc, because MkLinux only supported shared libraries with the
10168  # GNU dynamic linker.  Since this was broken with cross compilers,
10169  # most powerpc-linux boxes support dynamic linking these days and
10170  # people can always --disable-shared, the test was removed, and we
10171  # assume the GNU/Linux dynamic linker is in use.
10172  dynamic_linker='GNU/Linux ld.so'
10173  ;;
10174
10175knetbsd*-gnu)
10176  version_type=linux
10177  need_lib_prefix=no
10178  need_version=no
10179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  shlibpath_var=LD_LIBRARY_PATH
10182  shlibpath_overrides_runpath=no
10183  hardcode_into_libs=yes
10184  dynamic_linker='GNU ld.so'
10185  ;;
10186
10187netbsd*)
10188  version_type=sunos
10189  need_lib_prefix=no
10190  need_version=no
10191  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194    dynamic_linker='NetBSD (a.out) ld.so'
10195  else
10196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10197    soname_spec='${libname}${release}${shared_ext}$major'
10198    dynamic_linker='NetBSD ld.elf_so'
10199  fi
10200  shlibpath_var=LD_LIBRARY_PATH
10201  shlibpath_overrides_runpath=yes
10202  hardcode_into_libs=yes
10203  ;;
10204
10205newsos6)
10206  version_type=linux
10207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208  shlibpath_var=LD_LIBRARY_PATH
10209  shlibpath_overrides_runpath=yes
10210  ;;
10211
10212nto-qnx*)
10213  version_type=linux
10214  need_lib_prefix=no
10215  need_version=no
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217  soname_spec='${libname}${release}${shared_ext}$major'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  shlibpath_overrides_runpath=yes
10220  ;;
10221
10222openbsd*)
10223  version_type=sunos
10224  sys_lib_dlsearch_path_spec="/usr/lib"
10225  need_lib_prefix=no
10226  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227  case $host_os in
10228    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10229    *)                         need_version=no  ;;
10230  esac
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233  shlibpath_var=LD_LIBRARY_PATH
10234  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235    case $host_os in
10236      openbsd2.[89] | openbsd2.[89].*)
10237	shlibpath_overrides_runpath=no
10238	;;
10239      *)
10240	shlibpath_overrides_runpath=yes
10241	;;
10242      esac
10243  else
10244    shlibpath_overrides_runpath=yes
10245  fi
10246  ;;
10247
10248os2*)
10249  libname_spec='$name'
10250  shrext_cmds=".dll"
10251  need_lib_prefix=no
10252  library_names_spec='$libname${shared_ext} $libname.a'
10253  dynamic_linker='OS/2 ld.exe'
10254  shlibpath_var=LIBPATH
10255  ;;
10256
10257osf3* | osf4* | osf5*)
10258  version_type=osf
10259  need_lib_prefix=no
10260  need_version=no
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10266  ;;
10267
10268solaris*)
10269  version_type=linux
10270  need_lib_prefix=no
10271  need_version=no
10272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273  soname_spec='${libname}${release}${shared_ext}$major'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  shlibpath_overrides_runpath=yes
10276  hardcode_into_libs=yes
10277  # ldd complains unless libraries are executable
10278  postinstall_cmds='chmod +x $lib'
10279  ;;
10280
10281sunos4*)
10282  version_type=sunos
10283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10285  shlibpath_var=LD_LIBRARY_PATH
10286  shlibpath_overrides_runpath=yes
10287  if test "$with_gnu_ld" = yes; then
10288    need_lib_prefix=no
10289  fi
10290  need_version=yes
10291  ;;
10292
10293sysv4 | sysv4.3*)
10294  version_type=linux
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296  soname_spec='${libname}${release}${shared_ext}$major'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  case $host_vendor in
10299    sni)
10300      shlibpath_overrides_runpath=no
10301      need_lib_prefix=no
10302      export_dynamic_flag_spec='${wl}-Blargedynsym'
10303      runpath_var=LD_RUN_PATH
10304      ;;
10305    siemens)
10306      need_lib_prefix=no
10307      ;;
10308    motorola)
10309      need_lib_prefix=no
10310      need_version=no
10311      shlibpath_overrides_runpath=no
10312      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10313      ;;
10314  esac
10315  ;;
10316
10317sysv4*MP*)
10318  if test -d /usr/nec ;then
10319    version_type=linux
10320    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10321    soname_spec='$libname${shared_ext}.$major'
10322    shlibpath_var=LD_LIBRARY_PATH
10323  fi
10324  ;;
10325
10326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10327  version_type=freebsd-elf
10328  need_lib_prefix=no
10329  need_version=no
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  hardcode_into_libs=yes
10334  if test "$with_gnu_ld" = yes; then
10335    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10336    shlibpath_overrides_runpath=no
10337  else
10338    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10339    shlibpath_overrides_runpath=yes
10340    case $host_os in
10341      sco3.2v5*)
10342        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10343	;;
10344    esac
10345  fi
10346  sys_lib_dlsearch_path_spec='/usr/lib'
10347  ;;
10348
10349uts4*)
10350  version_type=linux
10351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352  soname_spec='${libname}${release}${shared_ext}$major'
10353  shlibpath_var=LD_LIBRARY_PATH
10354  ;;
10355
10356*)
10357  dynamic_linker=no
10358  ;;
10359esac
10360echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10361echo "${ECHO_T}$dynamic_linker" >&6
10362test "$dynamic_linker" = no && can_build_shared=no
10363
10364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10365if test "$GCC" = yes; then
10366  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10367fi
10368
10369echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10371hardcode_action=
10372if test -n "$hardcode_libdir_flag_spec" || \
10373   test -n "$runpath_var" || \
10374   test "X$hardcode_automatic" = "Xyes" ; then
10375
10376  # We can hardcode non-existant directories.
10377  if test "$hardcode_direct" != no &&
10378     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10379     # have to relink, otherwise we might link with an installed library
10380     # when we should be linking with a yet-to-be-installed one
10381     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10382     test "$hardcode_minus_L" != no; then
10383    # Linking always hardcodes the temporary library directory.
10384    hardcode_action=relink
10385  else
10386    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10387    hardcode_action=immediate
10388  fi
10389else
10390  # We cannot hardcode anything, or else we can only hardcode existing
10391  # directories.
10392  hardcode_action=unsupported
10393fi
10394echo "$as_me:$LINENO: result: $hardcode_action" >&5
10395echo "${ECHO_T}$hardcode_action" >&6
10396
10397if test "$hardcode_action" = relink; then
10398  # Fast installation is not supported
10399  enable_fast_install=no
10400elif test "$shlibpath_overrides_runpath" = yes ||
10401     test "$enable_shared" = no; then
10402  # Fast installation is not necessary
10403  enable_fast_install=needless
10404fi
10405
10406striplib=
10407old_striplib=
10408echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10409echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10410if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10411  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10412  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10413  echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415else
10416# FIXME - insert some real tests, host_os isn't really good enough
10417  case $host_os in
10418   darwin*)
10419       if test -n "$STRIP" ; then
10420         striplib="$STRIP -x"
10421         echo "$as_me:$LINENO: result: yes" >&5
10422echo "${ECHO_T}yes" >&6
10423       else
10424  echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427       ;;
10428   *)
10429  echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
10431    ;;
10432  esac
10433fi
10434
10435if test "x$enable_dlopen" != xyes; then
10436  enable_dlopen=unknown
10437  enable_dlopen_self=unknown
10438  enable_dlopen_self_static=unknown
10439else
10440  lt_cv_dlopen=no
10441  lt_cv_dlopen_libs=
10442
10443  case $host_os in
10444  beos*)
10445    lt_cv_dlopen="load_add_on"
10446    lt_cv_dlopen_libs=
10447    lt_cv_dlopen_self=yes
10448    ;;
10449
10450  mingw* | pw32*)
10451    lt_cv_dlopen="LoadLibrary"
10452    lt_cv_dlopen_libs=
10453   ;;
10454
10455  cygwin*)
10456    lt_cv_dlopen="dlopen"
10457    lt_cv_dlopen_libs=
10458   ;;
10459
10460  darwin*)
10461  # if libdl is installed we need to link against it
10462    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10463echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10464if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10465  echo $ECHO_N "(cached) $ECHO_C" >&6
10466else
10467  ac_check_lib_save_LIBS=$LIBS
10468LIBS="-ldl  $LIBS"
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h.  */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h.  */
10475
10476/* Override any gcc2 internal prototype to avoid an error.  */
10477#ifdef __cplusplus
10478extern "C"
10479#endif
10480/* We use char because int might match the return type of a gcc2
10481   builtin and then its argument prototype would still apply.  */
10482char dlopen ();
10483int
10484main ()
10485{
10486dlopen ();
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext conftest$ac_exeext
10492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493  (eval $ac_link) 2>conftest.er1
10494  ac_status=$?
10495  grep -v '^ *+' conftest.er1 >conftest.err
10496  rm -f conftest.er1
10497  cat conftest.err >&5
10498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499  (exit $ac_status); } &&
10500	 { ac_try='test -z "$ac_c_werror_flag"
10501			 || test ! -s conftest.err'
10502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503  (eval $ac_try) 2>&5
10504  ac_status=$?
10505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506  (exit $ac_status); }; } &&
10507	 { ac_try='test -s conftest$ac_exeext'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; }; then
10513  ac_cv_lib_dl_dlopen=yes
10514else
10515  echo "$as_me: failed program was:" >&5
10516sed 's/^/| /' conftest.$ac_ext >&5
10517
10518ac_cv_lib_dl_dlopen=no
10519fi
10520rm -f conftest.err conftest.$ac_objext \
10521      conftest$ac_exeext conftest.$ac_ext
10522LIBS=$ac_check_lib_save_LIBS
10523fi
10524echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10525echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10526if test $ac_cv_lib_dl_dlopen = yes; then
10527  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528else
10529
10530    lt_cv_dlopen="dyld"
10531    lt_cv_dlopen_libs=
10532    lt_cv_dlopen_self=yes
10533
10534fi
10535
10536   ;;
10537
10538  *)
10539    echo "$as_me:$LINENO: checking for shl_load" >&5
10540echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10541if test "${ac_cv_func_shl_load+set}" = set; then
10542  echo $ECHO_N "(cached) $ECHO_C" >&6
10543else
10544  cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10552#define shl_load innocuous_shl_load
10553
10554/* System header to define __stub macros and hopefully few prototypes,
10555    which can conflict with char shl_load (); below.
10556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557    <limits.h> exists even on freestanding compilers.  */
10558
10559#ifdef __STDC__
10560# include <limits.h>
10561#else
10562# include <assert.h>
10563#endif
10564
10565#undef shl_load
10566
10567/* Override any gcc2 internal prototype to avoid an error.  */
10568#ifdef __cplusplus
10569extern "C"
10570{
10571#endif
10572/* We use char because int might match the return type of a gcc2
10573   builtin and then its argument prototype would still apply.  */
10574char shl_load ();
10575/* The GNU C library defines this for functions which it implements
10576    to always fail with ENOSYS.  Some functions are actually named
10577    something starting with __ and the normal name is an alias.  */
10578#if defined (__stub_shl_load) || defined (__stub___shl_load)
10579choke me
10580#else
10581char (*f) () = shl_load;
10582#endif
10583#ifdef __cplusplus
10584}
10585#endif
10586
10587int
10588main ()
10589{
10590return f != shl_load;
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595rm -f conftest.$ac_objext conftest$ac_exeext
10596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597  (eval $ac_link) 2>conftest.er1
10598  ac_status=$?
10599  grep -v '^ *+' conftest.er1 >conftest.err
10600  rm -f conftest.er1
10601  cat conftest.err >&5
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } &&
10604	 { ac_try='test -z "$ac_c_werror_flag"
10605			 || test ! -s conftest.err'
10606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607  (eval $ac_try) 2>&5
10608  ac_status=$?
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); }; } &&
10611	 { ac_try='test -s conftest$ac_exeext'
10612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613  (eval $ac_try) 2>&5
10614  ac_status=$?
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); }; }; then
10617  ac_cv_func_shl_load=yes
10618else
10619  echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622ac_cv_func_shl_load=no
10623fi
10624rm -f conftest.err conftest.$ac_objext \
10625      conftest$ac_exeext conftest.$ac_ext
10626fi
10627echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10628echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10629if test $ac_cv_func_shl_load = yes; then
10630  lt_cv_dlopen="shl_load"
10631else
10632  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10633echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10634if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldld  $LIBS"
10639cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h.  */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h.  */
10645
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650/* We use char because int might match the return type of a gcc2
10651   builtin and then its argument prototype would still apply.  */
10652char shl_load ();
10653int
10654main ()
10655{
10656shl_load ();
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext conftest$ac_exeext
10662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663  (eval $ac_link) 2>conftest.er1
10664  ac_status=$?
10665  grep -v '^ *+' conftest.er1 >conftest.err
10666  rm -f conftest.er1
10667  cat conftest.err >&5
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); } &&
10670	 { ac_try='test -z "$ac_c_werror_flag"
10671			 || test ! -s conftest.err'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; } &&
10677	 { ac_try='test -s conftest$ac_exeext'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; }; then
10683  ac_cv_lib_dld_shl_load=yes
10684else
10685  echo "$as_me: failed program was:" >&5
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
10688ac_cv_lib_dld_shl_load=no
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691      conftest$ac_exeext conftest.$ac_ext
10692LIBS=$ac_check_lib_save_LIBS
10693fi
10694echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10695echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10696if test $ac_cv_lib_dld_shl_load = yes; then
10697  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10698else
10699  echo "$as_me:$LINENO: checking for dlopen" >&5
10700echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10701if test "${ac_cv_func_dlopen+set}" = set; then
10702  echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704  cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10712#define dlopen innocuous_dlopen
10713
10714/* System header to define __stub macros and hopefully few prototypes,
10715    which can conflict with char dlopen (); below.
10716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10717    <limits.h> exists even on freestanding compilers.  */
10718
10719#ifdef __STDC__
10720# include <limits.h>
10721#else
10722# include <assert.h>
10723#endif
10724
10725#undef dlopen
10726
10727/* Override any gcc2 internal prototype to avoid an error.  */
10728#ifdef __cplusplus
10729extern "C"
10730{
10731#endif
10732/* We use char because int might match the return type of a gcc2
10733   builtin and then its argument prototype would still apply.  */
10734char dlopen ();
10735/* The GNU C library defines this for functions which it implements
10736    to always fail with ENOSYS.  Some functions are actually named
10737    something starting with __ and the normal name is an alias.  */
10738#if defined (__stub_dlopen) || defined (__stub___dlopen)
10739choke me
10740#else
10741char (*f) () = dlopen;
10742#endif
10743#ifdef __cplusplus
10744}
10745#endif
10746
10747int
10748main ()
10749{
10750return f != dlopen;
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext conftest$ac_exeext
10756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757  (eval $ac_link) 2>conftest.er1
10758  ac_status=$?
10759  grep -v '^ *+' conftest.er1 >conftest.err
10760  rm -f conftest.er1
10761  cat conftest.err >&5
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); } &&
10764	 { ac_try='test -z "$ac_c_werror_flag"
10765			 || test ! -s conftest.err'
10766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767  (eval $ac_try) 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; } &&
10771	 { ac_try='test -s conftest$ac_exeext'
10772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773  (eval $ac_try) 2>&5
10774  ac_status=$?
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); }; }; then
10777  ac_cv_func_dlopen=yes
10778else
10779  echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782ac_cv_func_dlopen=no
10783fi
10784rm -f conftest.err conftest.$ac_objext \
10785      conftest$ac_exeext conftest.$ac_ext
10786fi
10787echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10788echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10789if test $ac_cv_func_dlopen = yes; then
10790  lt_cv_dlopen="dlopen"
10791else
10792  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10793echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10794if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10795  echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797  ac_check_lib_save_LIBS=$LIBS
10798LIBS="-ldl  $LIBS"
10799cat >conftest.$ac_ext <<_ACEOF
10800/* confdefs.h.  */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h.  */
10805
10806/* Override any gcc2 internal prototype to avoid an error.  */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810/* We use char because int might match the return type of a gcc2
10811   builtin and then its argument prototype would still apply.  */
10812char dlopen ();
10813int
10814main ()
10815{
10816dlopen ();
10817  ;
10818  return 0;
10819}
10820_ACEOF
10821rm -f conftest.$ac_objext conftest$ac_exeext
10822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823  (eval $ac_link) 2>conftest.er1
10824  ac_status=$?
10825  grep -v '^ *+' conftest.er1 >conftest.err
10826  rm -f conftest.er1
10827  cat conftest.err >&5
10828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829  (exit $ac_status); } &&
10830	 { ac_try='test -z "$ac_c_werror_flag"
10831			 || test ! -s conftest.err'
10832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833  (eval $ac_try) 2>&5
10834  ac_status=$?
10835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836  (exit $ac_status); }; } &&
10837	 { ac_try='test -s conftest$ac_exeext'
10838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839  (eval $ac_try) 2>&5
10840  ac_status=$?
10841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842  (exit $ac_status); }; }; then
10843  ac_cv_lib_dl_dlopen=yes
10844else
10845  echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848ac_cv_lib_dl_dlopen=no
10849fi
10850rm -f conftest.err conftest.$ac_objext \
10851      conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10855echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10856if test $ac_cv_lib_dl_dlopen = yes; then
10857  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10858else
10859  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10860echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10861if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10862  echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864  ac_check_lib_save_LIBS=$LIBS
10865LIBS="-lsvld  $LIBS"
10866cat >conftest.$ac_ext <<_ACEOF
10867/* confdefs.h.  */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h.  */
10872
10873/* Override any gcc2 internal prototype to avoid an error.  */
10874#ifdef __cplusplus
10875extern "C"
10876#endif
10877/* We use char because int might match the return type of a gcc2
10878   builtin and then its argument prototype would still apply.  */
10879char dlopen ();
10880int
10881main ()
10882{
10883dlopen ();
10884  ;
10885  return 0;
10886}
10887_ACEOF
10888rm -f conftest.$ac_objext conftest$ac_exeext
10889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890  (eval $ac_link) 2>conftest.er1
10891  ac_status=$?
10892  grep -v '^ *+' conftest.er1 >conftest.err
10893  rm -f conftest.er1
10894  cat conftest.err >&5
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); } &&
10897	 { ac_try='test -z "$ac_c_werror_flag"
10898			 || test ! -s conftest.err'
10899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900  (eval $ac_try) 2>&5
10901  ac_status=$?
10902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903  (exit $ac_status); }; } &&
10904	 { ac_try='test -s conftest$ac_exeext'
10905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906  (eval $ac_try) 2>&5
10907  ac_status=$?
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); }; }; then
10910  ac_cv_lib_svld_dlopen=yes
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915ac_cv_lib_svld_dlopen=no
10916fi
10917rm -f conftest.err conftest.$ac_objext \
10918      conftest$ac_exeext conftest.$ac_ext
10919LIBS=$ac_check_lib_save_LIBS
10920fi
10921echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10922echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10923if test $ac_cv_lib_svld_dlopen = yes; then
10924  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10925else
10926  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10927echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10928if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10929  echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931  ac_check_lib_save_LIBS=$LIBS
10932LIBS="-ldld  $LIBS"
10933cat >conftest.$ac_ext <<_ACEOF
10934/* confdefs.h.  */
10935_ACEOF
10936cat confdefs.h >>conftest.$ac_ext
10937cat >>conftest.$ac_ext <<_ACEOF
10938/* end confdefs.h.  */
10939
10940/* Override any gcc2 internal prototype to avoid an error.  */
10941#ifdef __cplusplus
10942extern "C"
10943#endif
10944/* We use char because int might match the return type of a gcc2
10945   builtin and then its argument prototype would still apply.  */
10946char dld_link ();
10947int
10948main ()
10949{
10950dld_link ();
10951  ;
10952  return 0;
10953}
10954_ACEOF
10955rm -f conftest.$ac_objext conftest$ac_exeext
10956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957  (eval $ac_link) 2>conftest.er1
10958  ac_status=$?
10959  grep -v '^ *+' conftest.er1 >conftest.err
10960  rm -f conftest.er1
10961  cat conftest.err >&5
10962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963  (exit $ac_status); } &&
10964	 { ac_try='test -z "$ac_c_werror_flag"
10965			 || test ! -s conftest.err'
10966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967  (eval $ac_try) 2>&5
10968  ac_status=$?
10969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970  (exit $ac_status); }; } &&
10971	 { ac_try='test -s conftest$ac_exeext'
10972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973  (eval $ac_try) 2>&5
10974  ac_status=$?
10975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); }; }; then
10977  ac_cv_lib_dld_dld_link=yes
10978else
10979  echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982ac_cv_lib_dld_dld_link=no
10983fi
10984rm -f conftest.err conftest.$ac_objext \
10985      conftest$ac_exeext conftest.$ac_ext
10986LIBS=$ac_check_lib_save_LIBS
10987fi
10988echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10989echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10990if test $ac_cv_lib_dld_dld_link = yes; then
10991  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10992fi
10993
10994
10995fi
10996
10997
10998fi
10999
11000
11001fi
11002
11003
11004fi
11005
11006
11007fi
11008
11009    ;;
11010  esac
11011
11012  if test "x$lt_cv_dlopen" != xno; then
11013    enable_dlopen=yes
11014  else
11015    enable_dlopen=no
11016  fi
11017
11018  case $lt_cv_dlopen in
11019  dlopen)
11020    save_CPPFLAGS="$CPPFLAGS"
11021    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11022
11023    save_LDFLAGS="$LDFLAGS"
11024    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11025
11026    save_LIBS="$LIBS"
11027    LIBS="$lt_cv_dlopen_libs $LIBS"
11028
11029    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11030echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11031if test "${lt_cv_dlopen_self+set}" = set; then
11032  echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034  	  if test "$cross_compiling" = yes; then :
11035  lt_cv_dlopen_self=cross
11036else
11037  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11038  lt_status=$lt_dlunknown
11039  cat > conftest.$ac_ext <<EOF
11040#line 11040 "configure"
11041#include "confdefs.h"
11042
11043#if HAVE_DLFCN_H
11044#include <dlfcn.h>
11045#endif
11046
11047#include <stdio.h>
11048
11049#ifdef RTLD_GLOBAL
11050#  define LT_DLGLOBAL		RTLD_GLOBAL
11051#else
11052#  ifdef DL_GLOBAL
11053#    define LT_DLGLOBAL		DL_GLOBAL
11054#  else
11055#    define LT_DLGLOBAL		0
11056#  endif
11057#endif
11058
11059/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11060   find out it does not work in some platform. */
11061#ifndef LT_DLLAZY_OR_NOW
11062#  ifdef RTLD_LAZY
11063#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11064#  else
11065#    ifdef DL_LAZY
11066#      define LT_DLLAZY_OR_NOW		DL_LAZY
11067#    else
11068#      ifdef RTLD_NOW
11069#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11070#      else
11071#        ifdef DL_NOW
11072#          define LT_DLLAZY_OR_NOW	DL_NOW
11073#        else
11074#          define LT_DLLAZY_OR_NOW	0
11075#        endif
11076#      endif
11077#    endif
11078#  endif
11079#endif
11080
11081#ifdef __cplusplus
11082extern "C" void exit (int);
11083#endif
11084
11085void fnord() { int i=42;}
11086int main ()
11087{
11088  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11089  int status = $lt_dlunknown;
11090
11091  if (self)
11092    {
11093      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11094      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11095      /* dlclose (self); */
11096    }
11097  else
11098    puts (dlerror ());
11099
11100    exit (status);
11101}
11102EOF
11103  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104  (eval $ac_link) 2>&5
11105  ac_status=$?
11106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11108    (./conftest; exit; ) >&5 2>/dev/null
11109    lt_status=$?
11110    case x$lt_status in
11111      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11112      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11113      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11114    esac
11115  else :
11116    # compilation failed
11117    lt_cv_dlopen_self=no
11118  fi
11119fi
11120rm -fr conftest*
11121
11122
11123fi
11124echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11125echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11126
11127    if test "x$lt_cv_dlopen_self" = xyes; then
11128      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11129      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11130echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11131if test "${lt_cv_dlopen_self_static+set}" = set; then
11132  echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134  	  if test "$cross_compiling" = yes; then :
11135  lt_cv_dlopen_self_static=cross
11136else
11137  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11138  lt_status=$lt_dlunknown
11139  cat > conftest.$ac_ext <<EOF
11140#line 11140 "configure"
11141#include "confdefs.h"
11142
11143#if HAVE_DLFCN_H
11144#include <dlfcn.h>
11145#endif
11146
11147#include <stdio.h>
11148
11149#ifdef RTLD_GLOBAL
11150#  define LT_DLGLOBAL		RTLD_GLOBAL
11151#else
11152#  ifdef DL_GLOBAL
11153#    define LT_DLGLOBAL		DL_GLOBAL
11154#  else
11155#    define LT_DLGLOBAL		0
11156#  endif
11157#endif
11158
11159/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11160   find out it does not work in some platform. */
11161#ifndef LT_DLLAZY_OR_NOW
11162#  ifdef RTLD_LAZY
11163#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11164#  else
11165#    ifdef DL_LAZY
11166#      define LT_DLLAZY_OR_NOW		DL_LAZY
11167#    else
11168#      ifdef RTLD_NOW
11169#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11170#      else
11171#        ifdef DL_NOW
11172#          define LT_DLLAZY_OR_NOW	DL_NOW
11173#        else
11174#          define LT_DLLAZY_OR_NOW	0
11175#        endif
11176#      endif
11177#    endif
11178#  endif
11179#endif
11180
11181#ifdef __cplusplus
11182extern "C" void exit (int);
11183#endif
11184
11185void fnord() { int i=42;}
11186int main ()
11187{
11188  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189  int status = $lt_dlunknown;
11190
11191  if (self)
11192    {
11193      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195      /* dlclose (self); */
11196    }
11197  else
11198    puts (dlerror ());
11199
11200    exit (status);
11201}
11202EOF
11203  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204  (eval $ac_link) 2>&5
11205  ac_status=$?
11206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11208    (./conftest; exit; ) >&5 2>/dev/null
11209    lt_status=$?
11210    case x$lt_status in
11211      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11212      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11213      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11214    esac
11215  else :
11216    # compilation failed
11217    lt_cv_dlopen_self_static=no
11218  fi
11219fi
11220rm -fr conftest*
11221
11222
11223fi
11224echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11225echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11226    fi
11227
11228    CPPFLAGS="$save_CPPFLAGS"
11229    LDFLAGS="$save_LDFLAGS"
11230    LIBS="$save_LIBS"
11231    ;;
11232  esac
11233
11234  case $lt_cv_dlopen_self in
11235  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11236  *) enable_dlopen_self=unknown ;;
11237  esac
11238
11239  case $lt_cv_dlopen_self_static in
11240  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11241  *) enable_dlopen_self_static=unknown ;;
11242  esac
11243fi
11244
11245
11246# Report which library types will actually be built
11247echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11248echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11249echo "$as_me:$LINENO: result: $can_build_shared" >&5
11250echo "${ECHO_T}$can_build_shared" >&6
11251
11252echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11253echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11254test "$can_build_shared" = "no" && enable_shared=no
11255
11256# On AIX, shared libraries and static libraries use the same namespace, and
11257# are all built from PIC.
11258case $host_os in
11259aix3*)
11260  test "$enable_shared" = yes && enable_static=no
11261  if test -n "$RANLIB"; then
11262    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11263    postinstall_cmds='$RANLIB $lib'
11264  fi
11265  ;;
11266
11267aix4* | aix5*)
11268  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11269    test "$enable_shared" = yes && enable_static=no
11270  fi
11271    ;;
11272esac
11273echo "$as_me:$LINENO: result: $enable_shared" >&5
11274echo "${ECHO_T}$enable_shared" >&6
11275
11276echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11277echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11278# Make sure either enable_shared or enable_static is yes.
11279test "$enable_shared" = yes || enable_static=yes
11280echo "$as_me:$LINENO: result: $enable_static" >&5
11281echo "${ECHO_T}$enable_static" >&6
11282
11283# The else clause should only fire when bootstrapping the
11284# libtool distribution, otherwise you forgot to ship ltmain.sh
11285# with your package, and you will get complaints that there are
11286# no rules to generate ltmain.sh.
11287if test -f "$ltmain"; then
11288  # See if we are running on zsh, and set the options which allow our commands through
11289  # without removal of \ escapes.
11290  if test -n "${ZSH_VERSION+set}" ; then
11291    setopt NO_GLOB_SUBST
11292  fi
11293  # Now quote all the things that may contain metacharacters while being
11294  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11295  # variables and quote the copies for generation of the libtool script.
11296  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11297    SED SHELL STRIP \
11298    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11299    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11300    deplibs_check_method reload_flag reload_cmds need_locks \
11301    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11302    lt_cv_sys_global_symbol_to_c_name_address \
11303    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11304    old_postinstall_cmds old_postuninstall_cmds \
11305    compiler \
11306    CC \
11307    LD \
11308    lt_prog_compiler_wl \
11309    lt_prog_compiler_pic \
11310    lt_prog_compiler_static \
11311    lt_prog_compiler_no_builtin_flag \
11312    export_dynamic_flag_spec \
11313    thread_safe_flag_spec \
11314    whole_archive_flag_spec \
11315    enable_shared_with_static_runtimes \
11316    old_archive_cmds \
11317    old_archive_from_new_cmds \
11318    predep_objects \
11319    postdep_objects \
11320    predeps \
11321    postdeps \
11322    compiler_lib_search_path \
11323    archive_cmds \
11324    archive_expsym_cmds \
11325    postinstall_cmds \
11326    postuninstall_cmds \
11327    old_archive_from_expsyms_cmds \
11328    allow_undefined_flag \
11329    no_undefined_flag \
11330    export_symbols_cmds \
11331    hardcode_libdir_flag_spec \
11332    hardcode_libdir_flag_spec_ld \
11333    hardcode_libdir_separator \
11334    hardcode_automatic \
11335    module_cmds \
11336    module_expsym_cmds \
11337    lt_cv_prog_compiler_c_o \
11338    exclude_expsyms \
11339    include_expsyms; do
11340
11341    case $var in
11342    old_archive_cmds | \
11343    old_archive_from_new_cmds | \
11344    archive_cmds | \
11345    archive_expsym_cmds | \
11346    module_cmds | \
11347    module_expsym_cmds | \
11348    old_archive_from_expsyms_cmds | \
11349    export_symbols_cmds | \
11350    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11351    postinstall_cmds | postuninstall_cmds | \
11352    old_postinstall_cmds | old_postuninstall_cmds | \
11353    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11354      # Double-quote double-evaled strings.
11355      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11356      ;;
11357    *)
11358      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11359      ;;
11360    esac
11361  done
11362
11363  case $lt_echo in
11364  *'\$0 --fallback-echo"')
11365    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11366    ;;
11367  esac
11368
11369cfgfile="${ofile}T"
11370  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11371  $rm -f "$cfgfile"
11372  { echo "$as_me:$LINENO: creating $ofile" >&5
11373echo "$as_me: creating $ofile" >&6;}
11374
11375  cat <<__EOF__ >> "$cfgfile"
11376#! $SHELL
11377
11378# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11379# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11380# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11381#
11382# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11383# Free Software Foundation, Inc.
11384#
11385# This file is part of GNU Libtool:
11386# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11387#
11388# This program is free software; you can redistribute it and/or modify
11389# it under the terms of the GNU General Public License as published by
11390# the Free Software Foundation; either version 2 of the License, or
11391# (at your option) any later version.
11392#
11393# This program is distributed in the hope that it will be useful, but
11394# WITHOUT ANY WARRANTY; without even the implied warranty of
11395# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11396# General Public License for more details.
11397#
11398# You should have received a copy of the GNU General Public License
11399# along with this program; if not, write to the Free Software
11400# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11401#
11402# As a special exception to the GNU General Public License, if you
11403# distribute this file as part of a program that contains a
11404# configuration script generated by Autoconf, you may include it under
11405# the same distribution terms that you use for the rest of that program.
11406
11407# A sed program that does not truncate output.
11408SED=$lt_SED
11409
11410# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11411Xsed="$SED -e 1s/^X//"
11412
11413# The HP-UX ksh and POSIX shell print the target directory to stdout
11414# if CDPATH is set.
11415(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11416
11417# The names of the tagged configurations supported by this script.
11418available_tags=
11419
11420# ### BEGIN LIBTOOL CONFIG
11421
11422# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11423
11424# Shell to use when invoking shell scripts.
11425SHELL=$lt_SHELL
11426
11427# Whether or not to build shared libraries.
11428build_libtool_libs=$enable_shared
11429
11430# Whether or not to build static libraries.
11431build_old_libs=$enable_static
11432
11433# Whether or not to add -lc for building shared libraries.
11434build_libtool_need_lc=$archive_cmds_need_lc
11435
11436# Whether or not to disallow shared libs when runtime libs are static
11437allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11438
11439# Whether or not to optimize for fast installation.
11440fast_install=$enable_fast_install
11441
11442# The host system.
11443host_alias=$host_alias
11444host=$host
11445host_os=$host_os
11446
11447# The build system.
11448build_alias=$build_alias
11449build=$build
11450build_os=$build_os
11451
11452# An echo program that does not interpret backslashes.
11453echo=$lt_echo
11454
11455# The archiver.
11456AR=$lt_AR
11457AR_FLAGS=$lt_AR_FLAGS
11458
11459# A C compiler.
11460LTCC=$lt_LTCC
11461
11462# LTCC compiler flags.
11463LTCFLAGS=$lt_LTCFLAGS
11464
11465# A language-specific compiler.
11466CC=$lt_compiler
11467
11468# Is the compiler the GNU C compiler?
11469with_gcc=$GCC
11470
11471# An ERE matcher.
11472EGREP=$lt_EGREP
11473
11474# The linker used to build libraries.
11475LD=$lt_LD
11476
11477# Whether we need hard or soft links.
11478LN_S=$lt_LN_S
11479
11480# A BSD-compatible nm program.
11481NM=$lt_NM
11482
11483# A symbol stripping program
11484STRIP=$lt_STRIP
11485
11486# Used to examine libraries when file_magic_cmd begins "file"
11487MAGIC_CMD=$MAGIC_CMD
11488
11489# Used on cygwin: DLL creation program.
11490DLLTOOL="$DLLTOOL"
11491
11492# Used on cygwin: object dumper.
11493OBJDUMP="$OBJDUMP"
11494
11495# Used on cygwin: assembler.
11496AS="$AS"
11497
11498# The name of the directory that contains temporary libtool files.
11499objdir=$objdir
11500
11501# How to create reloadable object files.
11502reload_flag=$lt_reload_flag
11503reload_cmds=$lt_reload_cmds
11504
11505# How to pass a linker flag through the compiler.
11506wl=$lt_lt_prog_compiler_wl
11507
11508# Object file suffix (normally "o").
11509objext="$ac_objext"
11510
11511# Old archive suffix (normally "a").
11512libext="$libext"
11513
11514# Shared library suffix (normally ".so").
11515shrext_cmds='$shrext_cmds'
11516
11517# Executable file suffix (normally "").
11518exeext="$exeext"
11519
11520# Additional compiler flags for building library objects.
11521pic_flag=$lt_lt_prog_compiler_pic
11522pic_mode=$pic_mode
11523
11524# What is the maximum length of a command?
11525max_cmd_len=$lt_cv_sys_max_cmd_len
11526
11527# Does compiler simultaneously support -c and -o options?
11528compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11529
11530# Must we lock files when doing compilation?
11531need_locks=$lt_need_locks
11532
11533# Do we need the lib prefix for modules?
11534need_lib_prefix=$need_lib_prefix
11535
11536# Do we need a version for libraries?
11537need_version=$need_version
11538
11539# Whether dlopen is supported.
11540dlopen_support=$enable_dlopen
11541
11542# Whether dlopen of programs is supported.
11543dlopen_self=$enable_dlopen_self
11544
11545# Whether dlopen of statically linked programs is supported.
11546dlopen_self_static=$enable_dlopen_self_static
11547
11548# Compiler flag to prevent dynamic linking.
11549link_static_flag=$lt_lt_prog_compiler_static
11550
11551# Compiler flag to turn off builtin functions.
11552no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11553
11554# Compiler flag to allow reflexive dlopens.
11555export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11556
11557# Compiler flag to generate shared objects directly from archives.
11558whole_archive_flag_spec=$lt_whole_archive_flag_spec
11559
11560# Compiler flag to generate thread-safe objects.
11561thread_safe_flag_spec=$lt_thread_safe_flag_spec
11562
11563# Library versioning type.
11564version_type=$version_type
11565
11566# Format of library name prefix.
11567libname_spec=$lt_libname_spec
11568
11569# List of archive names.  First name is the real one, the rest are links.
11570# The last name is the one that the linker finds with -lNAME.
11571library_names_spec=$lt_library_names_spec
11572
11573# The coded name of the library, if different from the real name.
11574soname_spec=$lt_soname_spec
11575
11576# Commands used to build and install an old-style archive.
11577RANLIB=$lt_RANLIB
11578old_archive_cmds=$lt_old_archive_cmds
11579old_postinstall_cmds=$lt_old_postinstall_cmds
11580old_postuninstall_cmds=$lt_old_postuninstall_cmds
11581
11582# Create an old-style archive from a shared archive.
11583old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11584
11585# Create a temporary old-style archive to link instead of a shared archive.
11586old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11587
11588# Commands used to build and install a shared archive.
11589archive_cmds=$lt_archive_cmds
11590archive_expsym_cmds=$lt_archive_expsym_cmds
11591postinstall_cmds=$lt_postinstall_cmds
11592postuninstall_cmds=$lt_postuninstall_cmds
11593
11594# Commands used to build a loadable module (assumed same as above if empty)
11595module_cmds=$lt_module_cmds
11596module_expsym_cmds=$lt_module_expsym_cmds
11597
11598# Commands to strip libraries.
11599old_striplib=$lt_old_striplib
11600striplib=$lt_striplib
11601
11602# Dependencies to place before the objects being linked to create a
11603# shared library.
11604predep_objects=$lt_predep_objects
11605
11606# Dependencies to place after the objects being linked to create a
11607# shared library.
11608postdep_objects=$lt_postdep_objects
11609
11610# Dependencies to place before the objects being linked to create a
11611# shared library.
11612predeps=$lt_predeps
11613
11614# Dependencies to place after the objects being linked to create a
11615# shared library.
11616postdeps=$lt_postdeps
11617
11618# The library search path used internally by the compiler when linking
11619# a shared library.
11620compiler_lib_search_path=$lt_compiler_lib_search_path
11621
11622# Method to check whether dependent libraries are shared objects.
11623deplibs_check_method=$lt_deplibs_check_method
11624
11625# Command to use when deplibs_check_method == file_magic.
11626file_magic_cmd=$lt_file_magic_cmd
11627
11628# Flag that allows shared libraries with undefined symbols to be built.
11629allow_undefined_flag=$lt_allow_undefined_flag
11630
11631# Flag that forces no undefined symbols.
11632no_undefined_flag=$lt_no_undefined_flag
11633
11634# Commands used to finish a libtool library installation in a directory.
11635finish_cmds=$lt_finish_cmds
11636
11637# Same as above, but a single script fragment to be evaled but not shown.
11638finish_eval=$lt_finish_eval
11639
11640# Take the output of nm and produce a listing of raw symbols and C names.
11641global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11642
11643# Transform the output of nm in a proper C declaration
11644global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11645
11646# Transform the output of nm in a C name address pair
11647global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11648
11649# This is the shared library runtime path variable.
11650runpath_var=$runpath_var
11651
11652# This is the shared library path variable.
11653shlibpath_var=$shlibpath_var
11654
11655# Is shlibpath searched before the hard-coded library search path?
11656shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11657
11658# How to hardcode a shared library path into an executable.
11659hardcode_action=$hardcode_action
11660
11661# Whether we should hardcode library paths into libraries.
11662hardcode_into_libs=$hardcode_into_libs
11663
11664# Flag to hardcode \$libdir into a binary during linking.
11665# This must work even if \$libdir does not exist.
11666hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11667
11668# If ld is used when linking, flag to hardcode \$libdir into
11669# a binary during linking. This must work even if \$libdir does
11670# not exist.
11671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11672
11673# Whether we need a single -rpath flag with a separated argument.
11674hardcode_libdir_separator=$lt_hardcode_libdir_separator
11675
11676# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11677# resulting binary.
11678hardcode_direct=$hardcode_direct
11679
11680# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11681# resulting binary.
11682hardcode_minus_L=$hardcode_minus_L
11683
11684# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11685# the resulting binary.
11686hardcode_shlibpath_var=$hardcode_shlibpath_var
11687
11688# Set to yes if building a shared library automatically hardcodes DIR into the library
11689# and all subsequent libraries and executables linked against it.
11690hardcode_automatic=$hardcode_automatic
11691
11692# Variables whose values should be saved in libtool wrapper scripts and
11693# restored at relink time.
11694variables_saved_for_relink="$variables_saved_for_relink"
11695
11696# Whether libtool must link a program against all its dependency libraries.
11697link_all_deplibs=$link_all_deplibs
11698
11699# Compile-time system search path for libraries
11700sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11701
11702# Run-time system search path for libraries
11703sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11704
11705# Fix the shell variable \$srcfile for the compiler.
11706fix_srcfile_path="$fix_srcfile_path"
11707
11708# Set to yes if exported symbols are required.
11709always_export_symbols=$always_export_symbols
11710
11711# The commands to list exported symbols.
11712export_symbols_cmds=$lt_export_symbols_cmds
11713
11714# The commands to extract the exported symbol list from a shared archive.
11715extract_expsyms_cmds=$lt_extract_expsyms_cmds
11716
11717# Symbols that should not be listed in the preloaded symbols.
11718exclude_expsyms=$lt_exclude_expsyms
11719
11720# Symbols that must always be exported.
11721include_expsyms=$lt_include_expsyms
11722
11723# ### END LIBTOOL CONFIG
11724
11725__EOF__
11726
11727
11728  case $host_os in
11729  aix3*)
11730    cat <<\EOF >> "$cfgfile"
11731
11732# AIX sometimes has problems with the GCC collect2 program.  For some
11733# reason, if we set the COLLECT_NAMES environment variable, the problems
11734# vanish in a puff of smoke.
11735if test "X${COLLECT_NAMES+set}" != Xset; then
11736  COLLECT_NAMES=
11737  export COLLECT_NAMES
11738fi
11739EOF
11740    ;;
11741  esac
11742
11743  # We use sed instead of cat because bash on DJGPP gets confused if
11744  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11745  # text mode, it properly converts lines to CR/LF.  This bash problem
11746  # is reportedly fixed, but why not run on old versions too?
11747  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11748
11749  mv -f "$cfgfile" "$ofile" || \
11750    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11751  chmod +x "$ofile"
11752
11753else
11754  # If there is no Makefile yet, we rely on a make rule to execute
11755  # `config.status --recheck' to rerun these tests and create the
11756  # libtool script then.
11757  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11758  if test -f "$ltmain_in"; then
11759    test -f Makefile && make "$ltmain"
11760  fi
11761fi
11762
11763
11764ac_ext=c
11765ac_cpp='$CPP $CPPFLAGS'
11766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768ac_compiler_gnu=$ac_cv_c_compiler_gnu
11769
11770CC="$lt_save_CC"
11771
11772
11773# Check whether --with-tags or --without-tags was given.
11774if test "${with_tags+set}" = set; then
11775  withval="$with_tags"
11776  tagnames="$withval"
11777fi;
11778
11779if test -f "$ltmain" && test -n "$tagnames"; then
11780  if test ! -f "${ofile}"; then
11781    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11782echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11783  fi
11784
11785  if test -z "$LTCC"; then
11786    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11787    if test -z "$LTCC"; then
11788      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11789echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11790    else
11791      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11792echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11793    fi
11794  fi
11795  if test -z "$LTCFLAGS"; then
11796    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11797  fi
11798
11799  # Extract list of available tagged configurations in $ofile.
11800  # Note that this assumes the entire list is on one line.
11801  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11802
11803  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11804  for tagname in $tagnames; do
11805    IFS="$lt_save_ifs"
11806    # Check whether tagname contains only valid characters
11807    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11808    "") ;;
11809    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11810echo "$as_me: error: invalid tag name: $tagname" >&2;}
11811   { (exit 1); exit 1; }; }
11812	;;
11813    esac
11814
11815    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11816    then
11817      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11818echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11819   { (exit 1); exit 1; }; }
11820    fi
11821
11822    # Update the list of available tags.
11823    if test -n "$tagname"; then
11824      echo appending configuration tag \"$tagname\" to $ofile
11825
11826      case $tagname in
11827      CXX)
11828	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11829	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11830	    (test "X$CXX" != "Xg++"))) ; then
11831	  ac_ext=cc
11832ac_cpp='$CXXCPP $CPPFLAGS'
11833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11836
11837
11838
11839
11840archive_cmds_need_lc_CXX=no
11841allow_undefined_flag_CXX=
11842always_export_symbols_CXX=no
11843archive_expsym_cmds_CXX=
11844export_dynamic_flag_spec_CXX=
11845hardcode_direct_CXX=no
11846hardcode_libdir_flag_spec_CXX=
11847hardcode_libdir_flag_spec_ld_CXX=
11848hardcode_libdir_separator_CXX=
11849hardcode_minus_L_CXX=no
11850hardcode_shlibpath_var_CXX=unsupported
11851hardcode_automatic_CXX=no
11852module_cmds_CXX=
11853module_expsym_cmds_CXX=
11854link_all_deplibs_CXX=unknown
11855old_archive_cmds_CXX=$old_archive_cmds
11856no_undefined_flag_CXX=
11857whole_archive_flag_spec_CXX=
11858enable_shared_with_static_runtimes_CXX=no
11859
11860# Dependencies to place before and after the object being linked:
11861predep_objects_CXX=
11862postdep_objects_CXX=
11863predeps_CXX=
11864postdeps_CXX=
11865compiler_lib_search_path_CXX=
11866
11867# Source file extension for C++ test sources.
11868ac_ext=cpp
11869
11870# Object file extension for compiled C++ test sources.
11871objext=o
11872objext_CXX=$objext
11873
11874# Code to be used in simple compile tests
11875lt_simple_compile_test_code="int some_variable = 0;\n"
11876
11877# Code to be used in simple link tests
11878lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11879
11880# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11881
11882# If no C compiler was specified, use CC.
11883LTCC=${LTCC-"$CC"}
11884
11885# If no C compiler flags were specified, use CFLAGS.
11886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11887
11888# Allow CC to be a program name with arguments.
11889compiler=$CC
11890
11891
11892# save warnings/boilerplate of simple test code
11893ac_outfile=conftest.$ac_objext
11894printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11896_lt_compiler_boilerplate=`cat conftest.err`
11897$rm conftest*
11898
11899ac_outfile=conftest.$ac_objext
11900printf "$lt_simple_link_test_code" >conftest.$ac_ext
11901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11902_lt_linker_boilerplate=`cat conftest.err`
11903$rm conftest*
11904
11905
11906# Allow CC to be a program name with arguments.
11907lt_save_CC=$CC
11908lt_save_LD=$LD
11909lt_save_GCC=$GCC
11910GCC=$GXX
11911lt_save_with_gnu_ld=$with_gnu_ld
11912lt_save_path_LD=$lt_cv_path_LD
11913if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11914  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11915else
11916  $as_unset lt_cv_prog_gnu_ld
11917fi
11918if test -n "${lt_cv_path_LDCXX+set}"; then
11919  lt_cv_path_LD=$lt_cv_path_LDCXX
11920else
11921  $as_unset lt_cv_path_LD
11922fi
11923test -z "${LDCXX+set}" || LD=$LDCXX
11924CC=${CXX-"c++"}
11925compiler=$CC
11926compiler_CXX=$CC
11927for cc_temp in $compiler""; do
11928  case $cc_temp in
11929    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11930    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11931    \-*) ;;
11932    *) break;;
11933  esac
11934done
11935cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11936
11937
11938# We don't want -fno-exception wen compiling C++ code, so set the
11939# no_builtin_flag separately
11940if test "$GXX" = yes; then
11941  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11942else
11943  lt_prog_compiler_no_builtin_flag_CXX=
11944fi
11945
11946if test "$GXX" = yes; then
11947  # Set up default GNU C++ configuration
11948
11949
11950# Check whether --with-gnu-ld or --without-gnu-ld was given.
11951if test "${with_gnu_ld+set}" = set; then
11952  withval="$with_gnu_ld"
11953  test "$withval" = no || with_gnu_ld=yes
11954else
11955  with_gnu_ld=no
11956fi;
11957ac_prog=ld
11958if test "$GCC" = yes; then
11959  # Check if gcc -print-prog-name=ld gives a path.
11960  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11961echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11962  case $host in
11963  *-*-mingw*)
11964    # gcc leaves a trailing carriage return which upsets mingw
11965    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11966  *)
11967    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11968  esac
11969  case $ac_prog in
11970    # Accept absolute paths.
11971    [\\/]* | ?:[\\/]*)
11972      re_direlt='/[^/][^/]*/\.\./'
11973      # Canonicalize the pathname of ld
11974      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11975      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11976	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11977      done
11978      test -z "$LD" && LD="$ac_prog"
11979      ;;
11980  "")
11981    # If it fails, then pretend we aren't using GCC.
11982    ac_prog=ld
11983    ;;
11984  *)
11985    # If it is relative, then search for the first ld in PATH.
11986    with_gnu_ld=unknown
11987    ;;
11988  esac
11989elif test "$with_gnu_ld" = yes; then
11990  echo "$as_me:$LINENO: checking for GNU ld" >&5
11991echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11992else
11993  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11994echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11995fi
11996if test "${lt_cv_path_LD+set}" = set; then
11997  echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999  if test -z "$LD"; then
12000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12001  for ac_dir in $PATH; do
12002    IFS="$lt_save_ifs"
12003    test -z "$ac_dir" && ac_dir=.
12004    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12005      lt_cv_path_LD="$ac_dir/$ac_prog"
12006      # Check to see if the program is GNU ld.  I'd rather use --version,
12007      # but apparently some variants of GNU ld only accept -v.
12008      # Break only if it was the GNU/non-GNU ld that we prefer.
12009      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12010      *GNU* | *'with BFD'*)
12011	test "$with_gnu_ld" != no && break
12012	;;
12013      *)
12014	test "$with_gnu_ld" != yes && break
12015	;;
12016      esac
12017    fi
12018  done
12019  IFS="$lt_save_ifs"
12020else
12021  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12022fi
12023fi
12024
12025LD="$lt_cv_path_LD"
12026if test -n "$LD"; then
12027  echo "$as_me:$LINENO: result: $LD" >&5
12028echo "${ECHO_T}$LD" >&6
12029else
12030  echo "$as_me:$LINENO: result: no" >&5
12031echo "${ECHO_T}no" >&6
12032fi
12033test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12034echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12035   { (exit 1); exit 1; }; }
12036echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12037echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12038if test "${lt_cv_prog_gnu_ld+set}" = set; then
12039  echo $ECHO_N "(cached) $ECHO_C" >&6
12040else
12041  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12042case `$LD -v 2>&1 </dev/null` in
12043*GNU* | *'with BFD'*)
12044  lt_cv_prog_gnu_ld=yes
12045  ;;
12046*)
12047  lt_cv_prog_gnu_ld=no
12048  ;;
12049esac
12050fi
12051echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12052echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12053with_gnu_ld=$lt_cv_prog_gnu_ld
12054
12055
12056
12057  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12058  # archiving commands below assume that GNU ld is being used.
12059  if test "$with_gnu_ld" = yes; then
12060    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061    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'
12062
12063    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12064    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12065
12066    # If archive_cmds runs LD, not CC, wlarc should be empty
12067    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12068    #     investigate it a little bit more. (MM)
12069    wlarc='${wl}'
12070
12071    # ancient GNU ld didn't support --whole-archive et. al.
12072    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12073	grep 'no-whole-archive' > /dev/null; then
12074      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12075    else
12076      whole_archive_flag_spec_CXX=
12077    fi
12078  else
12079    with_gnu_ld=no
12080    wlarc=
12081
12082    # A generic and very simple default shared library creation
12083    # command for GNU C++ for the case where it uses the native
12084    # linker, instead of GNU ld.  If possible, this setting should
12085    # overridden to take advantage of the native linker features on
12086    # the platform it is being used on.
12087    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12088  fi
12089
12090  # Commands to make compiler produce verbose output that lists
12091  # what "hidden" libraries, object files and flags are used when
12092  # linking a shared library.
12093  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12094
12095else
12096  GXX=no
12097  with_gnu_ld=no
12098  wlarc=
12099fi
12100
12101# PORTME: fill in a description of your system's C++ link characteristics
12102echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12103echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12104ld_shlibs_CXX=yes
12105case $host_os in
12106  aix3*)
12107    # FIXME: insert proper C++ library support
12108    ld_shlibs_CXX=no
12109    ;;
12110  aix4* | aix5*)
12111    if test "$host_cpu" = ia64; then
12112      # On IA64, the linker does run time linking by default, so we don't
12113      # have to do anything special.
12114      aix_use_runtimelinking=no
12115      exp_sym_flag='-Bexport'
12116      no_entry_flag=""
12117    else
12118      aix_use_runtimelinking=no
12119
12120      # Test if we are trying to use run time linking or normal
12121      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12122      # need to do runtime linking.
12123      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12124	for ld_flag in $LDFLAGS; do
12125	  case $ld_flag in
12126	  *-brtl*)
12127	    aix_use_runtimelinking=yes
12128	    break
12129	    ;;
12130	  esac
12131	done
12132	;;
12133      esac
12134
12135      exp_sym_flag='-bexport'
12136      no_entry_flag='-bnoentry'
12137    fi
12138
12139    # When large executables or shared objects are built, AIX ld can
12140    # have problems creating the table of contents.  If linking a library
12141    # or program results in "error TOC overflow" add -mminimal-toc to
12142    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12143    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12144
12145    archive_cmds_CXX=''
12146    hardcode_direct_CXX=yes
12147    hardcode_libdir_separator_CXX=':'
12148    link_all_deplibs_CXX=yes
12149
12150    if test "$GXX" = yes; then
12151      case $host_os in aix4.[012]|aix4.[012].*)
12152      # We only want to do this on AIX 4.2 and lower, the check
12153      # below for broken collect2 doesn't work under 4.3+
12154	collect2name=`${CC} -print-prog-name=collect2`
12155	if test -f "$collect2name" && \
12156	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12157	then
12158	  # We have reworked collect2
12159	  hardcode_direct_CXX=yes
12160	else
12161	  # We have old collect2
12162	  hardcode_direct_CXX=unsupported
12163	  # It fails to find uninstalled libraries when the uninstalled
12164	  # path is not listed in the libpath.  Setting hardcode_minus_L
12165	  # to unsupported forces relinking
12166	  hardcode_minus_L_CXX=yes
12167	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12168	  hardcode_libdir_separator_CXX=
12169	fi
12170	;;
12171      esac
12172      shared_flag='-shared'
12173      if test "$aix_use_runtimelinking" = yes; then
12174	shared_flag="$shared_flag "'${wl}-G'
12175      fi
12176    else
12177      # not using gcc
12178      if test "$host_cpu" = ia64; then
12179	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12180	# chokes on -Wl,-G. The following line is correct:
12181	shared_flag='-G'
12182      else
12183	if test "$aix_use_runtimelinking" = yes; then
12184	  shared_flag='${wl}-G'
12185	else
12186	  shared_flag='${wl}-bM:SRE'
12187	fi
12188      fi
12189    fi
12190
12191    # It seems that -bexpall does not export symbols beginning with
12192    # underscore (_), so it is better to generate a list of symbols to export.
12193    always_export_symbols_CXX=yes
12194    if test "$aix_use_runtimelinking" = yes; then
12195      # Warning - without using the other runtime loading flags (-brtl),
12196      # -berok will link without error, but may produce a broken library.
12197      allow_undefined_flag_CXX='-berok'
12198      # Determine the default libpath from the value encoded in an empty executable.
12199      cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h.  */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h.  */
12205
12206int
12207main ()
12208{
12209
12210  ;
12211  return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext conftest$ac_exeext
12215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216  (eval $ac_link) 2>conftest.er1
12217  ac_status=$?
12218  grep -v '^ *+' conftest.er1 >conftest.err
12219  rm -f conftest.er1
12220  cat conftest.err >&5
12221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222  (exit $ac_status); } &&
12223	 { ac_try='test -z "$ac_cxx_werror_flag"
12224			 || test ! -s conftest.err'
12225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226  (eval $ac_try) 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; } &&
12230	 { ac_try='test -s conftest$ac_exeext'
12231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232  (eval $ac_try) 2>&5
12233  ac_status=$?
12234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235  (exit $ac_status); }; }; then
12236
12237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12238}'`
12239# Check for a 64-bit object if we didn't find anything.
12240if 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; }
12241}'`; fi
12242else
12243  echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246fi
12247rm -f conftest.err conftest.$ac_objext \
12248      conftest$ac_exeext conftest.$ac_ext
12249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12250
12251      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12252
12253      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"
12254     else
12255      if test "$host_cpu" = ia64; then
12256	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12257	allow_undefined_flag_CXX="-z nodefs"
12258	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"
12259      else
12260	# Determine the default libpath from the value encoded in an empty executable.
12261	cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h.  */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h.  */
12267
12268int
12269main ()
12270{
12271
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext
12277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278  (eval $ac_link) 2>conftest.er1
12279  ac_status=$?
12280  grep -v '^ *+' conftest.er1 >conftest.err
12281  rm -f conftest.er1
12282  cat conftest.err >&5
12283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284  (exit $ac_status); } &&
12285	 { ac_try='test -z "$ac_cxx_werror_flag"
12286			 || test ! -s conftest.err'
12287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288  (eval $ac_try) 2>&5
12289  ac_status=$?
12290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291  (exit $ac_status); }; } &&
12292	 { ac_try='test -s conftest$ac_exeext'
12293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294  (eval $ac_try) 2>&5
12295  ac_status=$?
12296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297  (exit $ac_status); }; }; then
12298
12299aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12300}'`
12301# Check for a 64-bit object if we didn't find anything.
12302if 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; }
12303}'`; fi
12304else
12305  echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308fi
12309rm -f conftest.err conftest.$ac_objext \
12310      conftest$ac_exeext conftest.$ac_ext
12311if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12312
12313	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12314	# Warning - without using the other run time loading flags,
12315	# -berok will link without error, but may produce a broken library.
12316	no_undefined_flag_CXX=' ${wl}-bernotok'
12317	allow_undefined_flag_CXX=' ${wl}-berok'
12318	# Exported symbols can be pulled into shared objects from archives
12319	whole_archive_flag_spec_CXX='$convenience'
12320	archive_cmds_need_lc_CXX=yes
12321	# This is similar to how AIX traditionally builds its shared libraries.
12322	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'
12323      fi
12324    fi
12325    ;;
12326
12327  beos*)
12328    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12329      allow_undefined_flag_CXX=unsupported
12330      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12331      # support --undefined.  This deserves some investigation.  FIXME
12332      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333    else
12334      ld_shlibs_CXX=no
12335    fi
12336    ;;
12337
12338  chorus*)
12339    case $cc_basename in
12340      *)
12341	# FIXME: insert proper C++ library support
12342	ld_shlibs_CXX=no
12343	;;
12344    esac
12345    ;;
12346
12347  cygwin* | mingw* | pw32*)
12348    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12349    # as there is no search path for DLLs.
12350    hardcode_libdir_flag_spec_CXX='-L$libdir'
12351    allow_undefined_flag_CXX=unsupported
12352    always_export_symbols_CXX=no
12353    enable_shared_with_static_runtimes_CXX=yes
12354
12355    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12356      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'
12357      # If the export-symbols file already is a .def file (1st line
12358      # is EXPORTS), use it as is; otherwise, prepend...
12359      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12360	cp $export_symbols $output_objdir/$soname.def;
12361      else
12362	echo EXPORTS > $output_objdir/$soname.def;
12363	cat $export_symbols >> $output_objdir/$soname.def;
12364      fi~
12365      $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'
12366    else
12367      ld_shlibs_CXX=no
12368    fi
12369  ;;
12370      darwin* | rhapsody*)
12371        case $host_os in
12372        rhapsody* | darwin1.[012])
12373         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12374         ;;
12375       *) # Darwin 1.3 on
12376         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12377           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12378         else
12379           case ${MACOSX_DEPLOYMENT_TARGET} in
12380             10.[012])
12381               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12382               ;;
12383             10.*)
12384               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12385               ;;
12386           esac
12387         fi
12388         ;;
12389        esac
12390      archive_cmds_need_lc_CXX=no
12391      hardcode_direct_CXX=no
12392      hardcode_automatic_CXX=yes
12393      hardcode_shlibpath_var_CXX=unsupported
12394      whole_archive_flag_spec_CXX=''
12395      link_all_deplibs_CXX=yes
12396
12397    if test "$GXX" = yes ; then
12398      lt_int_apple_cc_single_mod=no
12399      output_verbose_link_cmd='echo'
12400      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12401       lt_int_apple_cc_single_mod=yes
12402      fi
12403      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12404       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12405      else
12406          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'
12407        fi
12408        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12409        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12410          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12411            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}'
12412          else
12413            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}'
12414          fi
12415            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}'
12416      else
12417      case $cc_basename in
12418        xlc*)
12419         output_verbose_link_cmd='echo'
12420          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'
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          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}'
12424          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}'
12425          ;;
12426       *)
12427         ld_shlibs_CXX=no
12428          ;;
12429      esac
12430      fi
12431        ;;
12432
12433  dgux*)
12434    case $cc_basename in
12435      ec++*)
12436	# FIXME: insert proper C++ library support
12437	ld_shlibs_CXX=no
12438	;;
12439      ghcx*)
12440	# Green Hills C++ Compiler
12441	# FIXME: insert proper C++ library support
12442	ld_shlibs_CXX=no
12443	;;
12444      *)
12445	# FIXME: insert proper C++ library support
12446	ld_shlibs_CXX=no
12447	;;
12448    esac
12449    ;;
12450  freebsd[12]*)
12451    # C++ shared libraries reported to be fairly broken before switch to ELF
12452    ld_shlibs_CXX=no
12453    ;;
12454  freebsd-elf*)
12455    archive_cmds_need_lc_CXX=no
12456    ;;
12457  freebsd* | kfreebsd*-gnu | dragonfly*)
12458    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12459    # conventions
12460    ld_shlibs_CXX=yes
12461    ;;
12462  gnu*)
12463    ;;
12464  hpux9*)
12465    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12466    hardcode_libdir_separator_CXX=:
12467    export_dynamic_flag_spec_CXX='${wl}-E'
12468    hardcode_direct_CXX=yes
12469    hardcode_minus_L_CXX=yes # Not in the search PATH,
12470				# but as the default
12471				# location of the library.
12472
12473    case $cc_basename in
12474    CC*)
12475      # FIXME: insert proper C++ library support
12476      ld_shlibs_CXX=no
12477      ;;
12478    aCC*)
12479      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'
12480      # Commands to make compiler produce verbose output that lists
12481      # what "hidden" libraries, object files and flags are used when
12482      # linking a shared library.
12483      #
12484      # There doesn't appear to be a way to prevent this compiler from
12485      # explicitly linking system object files so we need to strip them
12486      # from the output so that they don't get included in the library
12487      # dependencies.
12488      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'
12489      ;;
12490    *)
12491      if test "$GXX" = yes; then
12492        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'
12493      else
12494        # FIXME: insert proper C++ library support
12495        ld_shlibs_CXX=no
12496      fi
12497      ;;
12498    esac
12499    ;;
12500  hpux10*|hpux11*)
12501    if test $with_gnu_ld = no; then
12502      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12503      hardcode_libdir_separator_CXX=:
12504
12505      case $host_cpu in
12506      hppa*64*|ia64*)
12507	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12508        ;;
12509      *)
12510	export_dynamic_flag_spec_CXX='${wl}-E'
12511        ;;
12512      esac
12513    fi
12514    case $host_cpu in
12515    hppa*64*|ia64*)
12516      hardcode_direct_CXX=no
12517      hardcode_shlibpath_var_CXX=no
12518      ;;
12519    *)
12520      hardcode_direct_CXX=yes
12521      hardcode_minus_L_CXX=yes # Not in the search PATH,
12522					      # but as the default
12523					      # location of the library.
12524      ;;
12525    esac
12526
12527    case $cc_basename in
12528      CC*)
12529	# FIXME: insert proper C++ library support
12530	ld_shlibs_CXX=no
12531	;;
12532      aCC*)
12533	case $host_cpu in
12534	hppa*64*)
12535	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536	  ;;
12537	ia64*)
12538	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12539	  ;;
12540	*)
12541	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542	  ;;
12543	esac
12544	# Commands to make compiler produce verbose output that lists
12545	# what "hidden" libraries, object files and flags are used when
12546	# linking a shared library.
12547	#
12548	# There doesn't appear to be a way to prevent this compiler from
12549	# explicitly linking system object files so we need to strip them
12550	# from the output so that they don't get included in the library
12551	# dependencies.
12552	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'
12553	;;
12554      *)
12555	if test "$GXX" = yes; then
12556	  if test $with_gnu_ld = no; then
12557	    case $host_cpu in
12558	    hppa*64*)
12559	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560	      ;;
12561	    ia64*)
12562	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12563	      ;;
12564	    *)
12565	      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'
12566	      ;;
12567	    esac
12568	  fi
12569	else
12570	  # FIXME: insert proper C++ library support
12571	  ld_shlibs_CXX=no
12572	fi
12573	;;
12574    esac
12575    ;;
12576  interix3*)
12577    hardcode_direct_CXX=no
12578    hardcode_shlibpath_var_CXX=no
12579    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12580    export_dynamic_flag_spec_CXX='${wl}-E'
12581    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12582    # Instead, shared libraries are loaded at an image base (0x10000000 by
12583    # default) and relocated if they conflict, which is a slow very memory
12584    # consuming and fragmenting process.  To avoid this, we pick a random,
12585    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12586    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12587    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'
12588    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'
12589    ;;
12590  irix5* | irix6*)
12591    case $cc_basename in
12592      CC*)
12593	# SGI C++
12594	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'
12595
12596	# Archives containing C++ object files must be created using
12597	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12598	# necessary to make sure instantiated templates are included
12599	# in the archive.
12600	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12601	;;
12602      *)
12603	if test "$GXX" = yes; then
12604	  if test "$with_gnu_ld" = no; then
12605	    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'
12606	  else
12607	    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'
12608	  fi
12609	fi
12610	link_all_deplibs_CXX=yes
12611	;;
12612    esac
12613    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12614    hardcode_libdir_separator_CXX=:
12615    ;;
12616  linux*)
12617    case $cc_basename in
12618      KCC*)
12619	# Kuck and Associates, Inc. (KAI) C++ Compiler
12620
12621	# KCC will only create a shared library if the output file
12622	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12623	# to its proper name (with version) after linking.
12624	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'
12625	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'
12626	# Commands to make compiler produce verbose output that lists
12627	# what "hidden" libraries, object files and flags are used when
12628	# linking a shared library.
12629	#
12630	# There doesn't appear to be a way to prevent this compiler from
12631	# explicitly linking system object files so we need to strip them
12632	# from the output so that they don't get included in the library
12633	# dependencies.
12634	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'
12635
12636	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12637	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12638
12639	# Archives containing C++ object files must be created using
12640	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12641	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12642	;;
12643      icpc*)
12644	# Intel C++
12645	with_gnu_ld=yes
12646	# version 8.0 and above of icpc choke on multiply defined symbols
12647	# if we add $predep_objects and $postdep_objects, however 7.1 and
12648	# earlier do not add the objects themselves.
12649	case `$CC -V 2>&1` in
12650	*"Version 7."*)
12651  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12652  	  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'
12653	  ;;
12654	*)  # Version 8.0 or newer
12655	  tmp_idyn=
12656	  case $host_cpu in
12657	    ia64*) tmp_idyn=' -i_dynamic';;
12658	  esac
12659  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12660	  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'
12661	  ;;
12662	esac
12663	archive_cmds_need_lc_CXX=no
12664	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12665	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12666	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12667	;;
12668      pgCC*)
12669        # Portland Group C++ compiler
12670	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12671  	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'
12672
12673	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12674	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12675	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'
12676        ;;
12677      cxx*)
12678	# Compaq C++
12679	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12680	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'
12681
12682	runpath_var=LD_RUN_PATH
12683	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12684	hardcode_libdir_separator_CXX=:
12685
12686	# Commands to make compiler produce verbose output that lists
12687	# what "hidden" libraries, object files and flags are used when
12688	# linking a shared library.
12689	#
12690	# There doesn't appear to be a way to prevent this compiler from
12691	# explicitly linking system object files so we need to strip them
12692	# from the output so that they don't get included in the library
12693	# dependencies.
12694	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'
12695	;;
12696    esac
12697    ;;
12698  lynxos*)
12699    # FIXME: insert proper C++ library support
12700    ld_shlibs_CXX=no
12701    ;;
12702  m88k*)
12703    # FIXME: insert proper C++ library support
12704    ld_shlibs_CXX=no
12705    ;;
12706  mvs*)
12707    case $cc_basename in
12708      cxx*)
12709	# FIXME: insert proper C++ library support
12710	ld_shlibs_CXX=no
12711	;;
12712      *)
12713	# FIXME: insert proper C++ library support
12714	ld_shlibs_CXX=no
12715	;;
12716    esac
12717    ;;
12718  netbsd*)
12719    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12720      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12721      wlarc=
12722      hardcode_libdir_flag_spec_CXX='-R$libdir'
12723      hardcode_direct_CXX=yes
12724      hardcode_shlibpath_var_CXX=no
12725    fi
12726    # Workaround some broken pre-1.5 toolchains
12727    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12728    ;;
12729  openbsd2*)
12730    # C++ shared libraries are fairly broken
12731    ld_shlibs_CXX=no
12732    ;;
12733  openbsd*)
12734    hardcode_direct_CXX=yes
12735    hardcode_shlibpath_var_CXX=no
12736    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12737    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12738    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12739      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12740      export_dynamic_flag_spec_CXX='${wl}-E'
12741      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12742    fi
12743    output_verbose_link_cmd='echo'
12744    ;;
12745  osf3*)
12746    case $cc_basename in
12747      KCC*)
12748	# Kuck and Associates, Inc. (KAI) C++ Compiler
12749
12750	# KCC will only create a shared library if the output file
12751	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12752	# to its proper name (with version) after linking.
12753	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'
12754
12755	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12756	hardcode_libdir_separator_CXX=:
12757
12758	# Archives containing C++ object files must be created using
12759	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12760	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12761
12762	;;
12763      RCC*)
12764	# Rational C++ 2.4.1
12765	# FIXME: insert proper C++ library support
12766	ld_shlibs_CXX=no
12767	;;
12768      cxx*)
12769	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12770	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'
12771
12772	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12773	hardcode_libdir_separator_CXX=:
12774
12775	# Commands to make compiler produce verbose output that lists
12776	# what "hidden" libraries, object files and flags are used when
12777	# linking a shared library.
12778	#
12779	# There doesn't appear to be a way to prevent this compiler from
12780	# explicitly linking system object files so we need to strip them
12781	# from the output so that they don't get included in the library
12782	# dependencies.
12783	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'
12784	;;
12785      *)
12786	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12787	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12788	  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'
12789
12790	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12791	  hardcode_libdir_separator_CXX=:
12792
12793	  # Commands to make compiler produce verbose output that lists
12794	  # what "hidden" libraries, object files and flags are used when
12795	  # linking a shared library.
12796	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12797
12798	else
12799	  # FIXME: insert proper C++ library support
12800	  ld_shlibs_CXX=no
12801	fi
12802	;;
12803    esac
12804    ;;
12805  osf4* | osf5*)
12806    case $cc_basename in
12807      KCC*)
12808	# Kuck and Associates, Inc. (KAI) C++ Compiler
12809
12810	# KCC will only create a shared library if the output file
12811	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12812	# to its proper name (with version) after linking.
12813	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'
12814
12815	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12816	hardcode_libdir_separator_CXX=:
12817
12818	# Archives containing C++ object files must be created using
12819	# the KAI C++ compiler.
12820	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12821	;;
12822      RCC*)
12823	# Rational C++ 2.4.1
12824	# FIXME: insert proper C++ library support
12825	ld_shlibs_CXX=no
12826	;;
12827      cxx*)
12828	allow_undefined_flag_CXX=' -expect_unresolved \*'
12829	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'
12830	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12831	  echo "-hidden">> $lib.exp~
12832	  $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~
12833	  $rm $lib.exp'
12834
12835	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12836	hardcode_libdir_separator_CXX=:
12837
12838	# Commands to make compiler produce verbose output that lists
12839	# what "hidden" libraries, object files and flags are used when
12840	# linking a shared library.
12841	#
12842	# There doesn't appear to be a way to prevent this compiler from
12843	# explicitly linking system object files so we need to strip them
12844	# from the output so that they don't get included in the library
12845	# dependencies.
12846	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'
12847	;;
12848      *)
12849	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12850	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12851	 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'
12852
12853	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12854	  hardcode_libdir_separator_CXX=:
12855
12856	  # Commands to make compiler produce verbose output that lists
12857	  # what "hidden" libraries, object files and flags are used when
12858	  # linking a shared library.
12859	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12860
12861	else
12862	  # FIXME: insert proper C++ library support
12863	  ld_shlibs_CXX=no
12864	fi
12865	;;
12866    esac
12867    ;;
12868  psos*)
12869    # FIXME: insert proper C++ library support
12870    ld_shlibs_CXX=no
12871    ;;
12872  sunos4*)
12873    case $cc_basename in
12874      CC*)
12875	# Sun C++ 4.x
12876	# FIXME: insert proper C++ library support
12877	ld_shlibs_CXX=no
12878	;;
12879      lcc*)
12880	# Lucid
12881	# FIXME: insert proper C++ library support
12882	ld_shlibs_CXX=no
12883	;;
12884      *)
12885	# FIXME: insert proper C++ library support
12886	ld_shlibs_CXX=no
12887	;;
12888    esac
12889    ;;
12890  solaris*)
12891    case $cc_basename in
12892      CC*)
12893	# Sun C++ 4.2, 5.x and Centerline C++
12894        archive_cmds_need_lc_CXX=yes
12895	no_undefined_flag_CXX=' -zdefs'
12896	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12898	$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'
12899
12900	hardcode_libdir_flag_spec_CXX='-R$libdir'
12901	hardcode_shlibpath_var_CXX=no
12902	case $host_os in
12903	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12904	  *)
12905	    # The C++ compiler is used as linker so we must use $wl
12906	    # flag to pass the commands to the underlying system
12907	    # linker. We must also pass each convience library through
12908	    # to the system linker between allextract/defaultextract.
12909	    # The C++ compiler will combine linker options so we
12910	    # cannot just pass the convience library names through
12911	    # without $wl.
12912	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12913	    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'
12914	    ;;
12915	esac
12916	link_all_deplibs_CXX=yes
12917
12918	output_verbose_link_cmd='echo'
12919
12920	# Archives containing C++ object files must be created using
12921	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12922	# necessary to make sure instantiated templates are included
12923	# in the archive.
12924	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12925	;;
12926      gcx*)
12927	# Green Hills C++ Compiler
12928	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12929
12930	# The C++ compiler must be used to create the archive.
12931	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12932	;;
12933      *)
12934	# GNU C++ compiler with Solaris linker
12935	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12936	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12937	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12938	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12939	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12940		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12941
12942	    # Commands to make compiler produce verbose output that lists
12943	    # what "hidden" libraries, object files and flags are used when
12944	    # linking a shared library.
12945	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12946	  else
12947	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12948	    # platform.
12949	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12950	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12951		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12952
12953	    # Commands to make compiler produce verbose output that lists
12954	    # what "hidden" libraries, object files and flags are used when
12955	    # linking a shared library.
12956	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12957	  fi
12958
12959	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12960	fi
12961	;;
12962    esac
12963    ;;
12964  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12965    no_undefined_flag_CXX='${wl}-z,text'
12966    archive_cmds_need_lc_CXX=no
12967    hardcode_shlibpath_var_CXX=no
12968    runpath_var='LD_RUN_PATH'
12969
12970    case $cc_basename in
12971      CC*)
12972	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12973	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974	;;
12975      *)
12976	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12977	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12978	;;
12979    esac
12980    ;;
12981  sysv5* | sco3.2v5* | sco5v6*)
12982    # Note: We can NOT use -z defs as we might desire, because we do not
12983    # link with -lc, and that would cause any symbols used from libc to
12984    # always be unresolved, which means just about no library would
12985    # ever link correctly.  If we're not using GNU ld we use -z text
12986    # though, which does catch some bad symbols but isn't as heavy-handed
12987    # as -z defs.
12988    # For security reasons, it is highly recommended that you always
12989    # use absolute paths for naming shared libraries, and exclude the
12990    # DT_RUNPATH tag from executables and libraries.  But doing so
12991    # requires that you compile everything twice, which is a pain.
12992    # So that behaviour is only enabled if SCOABSPATH is set to a
12993    # non-empty value in the environment.  Most likely only useful for
12994    # creating official distributions of packages.
12995    # This is a hack until libtool officially supports absolute path
12996    # names for shared libraries.
12997    no_undefined_flag_CXX='${wl}-z,text'
12998    allow_undefined_flag_CXX='${wl}-z,nodefs'
12999    archive_cmds_need_lc_CXX=no
13000    hardcode_shlibpath_var_CXX=no
13001    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13002    hardcode_libdir_separator_CXX=':'
13003    link_all_deplibs_CXX=yes
13004    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13005    runpath_var='LD_RUN_PATH'
13006
13007    case $cc_basename in
13008      CC*)
13009	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13010	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13011	;;
13012      *)
13013	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13014	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13015	;;
13016    esac
13017    ;;
13018  tandem*)
13019    case $cc_basename in
13020      NCC*)
13021	# NonStop-UX NCC 3.20
13022	# FIXME: insert proper C++ library support
13023	ld_shlibs_CXX=no
13024	;;
13025      *)
13026	# FIXME: insert proper C++ library support
13027	ld_shlibs_CXX=no
13028	;;
13029    esac
13030    ;;
13031  vxworks*)
13032    # FIXME: insert proper C++ library support
13033    ld_shlibs_CXX=no
13034    ;;
13035  *)
13036    # FIXME: insert proper C++ library support
13037    ld_shlibs_CXX=no
13038    ;;
13039esac
13040echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13041echo "${ECHO_T}$ld_shlibs_CXX" >&6
13042test "$ld_shlibs_CXX" = no && can_build_shared=no
13043
13044GCC_CXX="$GXX"
13045LD_CXX="$LD"
13046
13047## CAVEAT EMPTOR:
13048## There is no encapsulation within the following macros, do not change
13049## the running order or otherwise move them around unless you know exactly
13050## what you are doing...
13051
13052cat > conftest.$ac_ext <<EOF
13053class Foo
13054{
13055public:
13056  Foo (void) { a = 0; }
13057private:
13058  int a;
13059};
13060EOF
13061
13062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063  (eval $ac_compile) 2>&5
13064  ac_status=$?
13065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066  (exit $ac_status); }; then
13067  # Parse the compiler output and extract the necessary
13068  # objects, libraries and library flags.
13069
13070  # Sentinel used to keep track of whether or not we are before
13071  # the conftest object file.
13072  pre_test_object_deps_done=no
13073
13074  # The `*' in the case matches for architectures that use `case' in
13075  # $output_verbose_cmd can trigger glob expansion during the loop
13076  # eval without this substitution.
13077  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13078
13079  for p in `eval $output_verbose_link_cmd`; do
13080    case $p in
13081
13082    -L* | -R* | -l*)
13083       # Some compilers place space between "-{L,R}" and the path.
13084       # Remove the space.
13085       if test $p = "-L" \
13086	  || test $p = "-R"; then
13087	 prev=$p
13088	 continue
13089       else
13090	 prev=
13091       fi
13092
13093       if test "$pre_test_object_deps_done" = no; then
13094	 case $p in
13095	 -L* | -R*)
13096	   # Internal compiler library paths should come after those
13097	   # provided the user.  The postdeps already come after the
13098	   # user supplied libs so there is no need to process them.
13099	   if test -z "$compiler_lib_search_path_CXX"; then
13100	     compiler_lib_search_path_CXX="${prev}${p}"
13101	   else
13102	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13103	   fi
13104	   ;;
13105	 # The "-l" case would never come before the object being
13106	 # linked, so don't bother handling this case.
13107	 esac
13108       else
13109	 if test -z "$postdeps_CXX"; then
13110	   postdeps_CXX="${prev}${p}"
13111	 else
13112	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13113	 fi
13114       fi
13115       ;;
13116
13117    *.$objext)
13118       # This assumes that the test object file only shows up
13119       # once in the compiler output.
13120       if test "$p" = "conftest.$objext"; then
13121	 pre_test_object_deps_done=yes
13122	 continue
13123       fi
13124
13125       if test "$pre_test_object_deps_done" = no; then
13126	 if test -z "$predep_objects_CXX"; then
13127	   predep_objects_CXX="$p"
13128	 else
13129	   predep_objects_CXX="$predep_objects_CXX $p"
13130	 fi
13131       else
13132	 if test -z "$postdep_objects_CXX"; then
13133	   postdep_objects_CXX="$p"
13134	 else
13135	   postdep_objects_CXX="$postdep_objects_CXX $p"
13136	 fi
13137       fi
13138       ;;
13139
13140    *) ;; # Ignore the rest.
13141
13142    esac
13143  done
13144
13145  # Clean up.
13146  rm -f a.out a.exe
13147else
13148  echo "libtool.m4: error: problem compiling CXX test program"
13149fi
13150
13151$rm -f confest.$objext
13152
13153# PORTME: override above test on systems where it is broken
13154case $host_os in
13155interix3*)
13156  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13157  # hack all around it, let's just trust "g++" to DTRT.
13158  predep_objects_CXX=
13159  postdep_objects_CXX=
13160  postdeps_CXX=
13161  ;;
13162
13163solaris*)
13164  case $cc_basename in
13165  CC*)
13166    # Adding this requires a known-good setup of shared libraries for
13167    # Sun compiler versions before 5.6, else PIC objects from an old
13168    # archive will be linked into the output, leading to subtle bugs.
13169    postdeps_CXX='-lCstd -lCrun'
13170    ;;
13171  esac
13172  ;;
13173esac
13174
13175
13176case " $postdeps_CXX " in
13177*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13178esac
13179
13180lt_prog_compiler_wl_CXX=
13181lt_prog_compiler_pic_CXX=
13182lt_prog_compiler_static_CXX=
13183
13184echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13185echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13186
13187  # C++ specific cases for pic, static, wl, etc.
13188  if test "$GXX" = yes; then
13189    lt_prog_compiler_wl_CXX='-Wl,'
13190    lt_prog_compiler_static_CXX='-static'
13191
13192    case $host_os in
13193    aix*)
13194      # All AIX code is PIC.
13195      if test "$host_cpu" = ia64; then
13196	# AIX 5 now supports IA64 processor
13197	lt_prog_compiler_static_CXX='-Bstatic'
13198      fi
13199      ;;
13200    amigaos*)
13201      # FIXME: we need at least 68020 code to build shared libraries, but
13202      # adding the `-m68020' flag to GCC prevents building anything better,
13203      # like `-m68040'.
13204      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13205      ;;
13206    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13207      # PIC is the default for these OSes.
13208      ;;
13209    mingw* | os2* | pw32*)
13210      # This hack is so that the source file can tell whether it is being
13211      # built for inclusion in a dll (and should export symbols for example).
13212      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13213      ;;
13214    darwin* | rhapsody*)
13215      # PIC is the default on this platform
13216      # Common symbols not allowed in MH_DYLIB files
13217      lt_prog_compiler_pic_CXX='-fno-common'
13218      ;;
13219    *djgpp*)
13220      # DJGPP does not support shared libraries at all
13221      lt_prog_compiler_pic_CXX=
13222      ;;
13223    interix3*)
13224      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13225      # Instead, we relocate shared libraries at runtime.
13226      ;;
13227    sysv4*MP*)
13228      if test -d /usr/nec; then
13229	lt_prog_compiler_pic_CXX=-Kconform_pic
13230      fi
13231      ;;
13232    hpux*)
13233      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13234      # not for PA HP-UX.
13235      case $host_cpu in
13236      hppa*64*|ia64*)
13237	;;
13238      *)
13239	lt_prog_compiler_pic_CXX='-fPIC'
13240	;;
13241      esac
13242      ;;
13243    *)
13244      lt_prog_compiler_pic_CXX='-fPIC'
13245      ;;
13246    esac
13247  else
13248    case $host_os in
13249      aix4* | aix5*)
13250	# All AIX code is PIC.
13251	if test "$host_cpu" = ia64; then
13252	  # AIX 5 now supports IA64 processor
13253	  lt_prog_compiler_static_CXX='-Bstatic'
13254	else
13255	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13256	fi
13257	;;
13258      chorus*)
13259	case $cc_basename in
13260	cxch68*)
13261	  # Green Hills C++ Compiler
13262	  # _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"
13263	  ;;
13264	esac
13265	;;
13266       darwin*)
13267         # PIC is the default on this platform
13268         # Common symbols not allowed in MH_DYLIB files
13269         case $cc_basename in
13270           xlc*)
13271           lt_prog_compiler_pic_CXX='-qnocommon'
13272           lt_prog_compiler_wl_CXX='-Wl,'
13273           ;;
13274         esac
13275       ;;
13276      dgux*)
13277	case $cc_basename in
13278	  ec++*)
13279	    lt_prog_compiler_pic_CXX='-KPIC'
13280	    ;;
13281	  ghcx*)
13282	    # Green Hills C++ Compiler
13283	    lt_prog_compiler_pic_CXX='-pic'
13284	    ;;
13285	  *)
13286	    ;;
13287	esac
13288	;;
13289      freebsd* | kfreebsd*-gnu | dragonfly*)
13290	# FreeBSD uses GNU C++
13291	;;
13292      hpux9* | hpux10* | hpux11*)
13293	case $cc_basename in
13294	  CC*)
13295	    lt_prog_compiler_wl_CXX='-Wl,'
13296	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13297	    if test "$host_cpu" != ia64; then
13298	      lt_prog_compiler_pic_CXX='+Z'
13299	    fi
13300	    ;;
13301	  aCC*)
13302	    lt_prog_compiler_wl_CXX='-Wl,'
13303	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13304	    case $host_cpu in
13305	    hppa*64*|ia64*)
13306	      # +Z the default
13307	      ;;
13308	    *)
13309	      lt_prog_compiler_pic_CXX='+Z'
13310	      ;;
13311	    esac
13312	    ;;
13313	  *)
13314	    ;;
13315	esac
13316	;;
13317      interix*)
13318	# This is c89, which is MS Visual C++ (no shared libs)
13319	# Anyone wants to do a port?
13320	;;
13321      irix5* | irix6* | nonstopux*)
13322	case $cc_basename in
13323	  CC*)
13324	    lt_prog_compiler_wl_CXX='-Wl,'
13325	    lt_prog_compiler_static_CXX='-non_shared'
13326	    # CC pic flag -KPIC is the default.
13327	    ;;
13328	  *)
13329	    ;;
13330	esac
13331	;;
13332      linux*)
13333	case $cc_basename in
13334	  KCC*)
13335	    # KAI C++ Compiler
13336	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13337	    lt_prog_compiler_pic_CXX='-fPIC'
13338	    ;;
13339	  icpc* | ecpc*)
13340	    # Intel C++
13341	    lt_prog_compiler_wl_CXX='-Wl,'
13342	    lt_prog_compiler_pic_CXX='-KPIC'
13343	    lt_prog_compiler_static_CXX='-static'
13344	    ;;
13345	  pgCC*)
13346	    # Portland Group C++ compiler.
13347	    lt_prog_compiler_wl_CXX='-Wl,'
13348	    lt_prog_compiler_pic_CXX='-fpic'
13349	    lt_prog_compiler_static_CXX='-Bstatic'
13350	    ;;
13351	  cxx*)
13352	    # Compaq C++
13353	    # Make sure the PIC flag is empty.  It appears that all Alpha
13354	    # Linux and Compaq Tru64 Unix objects are PIC.
13355	    lt_prog_compiler_pic_CXX=
13356	    lt_prog_compiler_static_CXX='-non_shared'
13357	    ;;
13358	  *)
13359	    ;;
13360	esac
13361	;;
13362      lynxos*)
13363	;;
13364      m88k*)
13365	;;
13366      mvs*)
13367	case $cc_basename in
13368	  cxx*)
13369	    lt_prog_compiler_pic_CXX='-W c,exportall'
13370	    ;;
13371	  *)
13372	    ;;
13373	esac
13374	;;
13375      netbsd*)
13376	;;
13377      osf3* | osf4* | osf5*)
13378	case $cc_basename in
13379	  KCC*)
13380	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13381	    ;;
13382	  RCC*)
13383	    # Rational C++ 2.4.1
13384	    lt_prog_compiler_pic_CXX='-pic'
13385	    ;;
13386	  cxx*)
13387	    # Digital/Compaq C++
13388	    lt_prog_compiler_wl_CXX='-Wl,'
13389	    # Make sure the PIC flag is empty.  It appears that all Alpha
13390	    # Linux and Compaq Tru64 Unix objects are PIC.
13391	    lt_prog_compiler_pic_CXX=
13392	    lt_prog_compiler_static_CXX='-non_shared'
13393	    ;;
13394	  *)
13395	    ;;
13396	esac
13397	;;
13398      psos*)
13399	;;
13400      solaris*)
13401	case $cc_basename in
13402	  CC*)
13403	    # Sun C++ 4.2, 5.x and Centerline C++
13404	    lt_prog_compiler_pic_CXX='-KPIC'
13405	    lt_prog_compiler_static_CXX='-Bstatic'
13406	    lt_prog_compiler_wl_CXX='-Qoption ld '
13407	    ;;
13408	  gcx*)
13409	    # Green Hills C++ Compiler
13410	    lt_prog_compiler_pic_CXX='-PIC'
13411	    ;;
13412	  *)
13413	    ;;
13414	esac
13415	;;
13416      sunos4*)
13417	case $cc_basename in
13418	  CC*)
13419	    # Sun C++ 4.x
13420	    lt_prog_compiler_pic_CXX='-pic'
13421	    lt_prog_compiler_static_CXX='-Bstatic'
13422	    ;;
13423	  lcc*)
13424	    # Lucid
13425	    lt_prog_compiler_pic_CXX='-pic'
13426	    ;;
13427	  *)
13428	    ;;
13429	esac
13430	;;
13431      tandem*)
13432	case $cc_basename in
13433	  NCC*)
13434	    # NonStop-UX NCC 3.20
13435	    lt_prog_compiler_pic_CXX='-KPIC'
13436	    ;;
13437	  *)
13438	    ;;
13439	esac
13440	;;
13441      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13442	case $cc_basename in
13443	  CC*)
13444	    lt_prog_compiler_wl_CXX='-Wl,'
13445	    lt_prog_compiler_pic_CXX='-KPIC'
13446	    lt_prog_compiler_static_CXX='-Bstatic'
13447	    ;;
13448	esac
13449	;;
13450      vxworks*)
13451	;;
13452      *)
13453	lt_prog_compiler_can_build_shared_CXX=no
13454	;;
13455    esac
13456  fi
13457
13458echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13459echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13460
13461#
13462# Check to make sure the PIC flag actually works.
13463#
13464if test -n "$lt_prog_compiler_pic_CXX"; then
13465
13466echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13467echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13468if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13469  echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471  lt_prog_compiler_pic_works_CXX=no
13472  ac_outfile=conftest.$ac_objext
13473   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13474   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13475   # Insert the option either (1) after the last *FLAGS variable, or
13476   # (2) before a word containing "conftest.", or (3) at the end.
13477   # Note that $ac_compile itself does not contain backslashes and begins
13478   # with a dollar sign (not a hyphen), so the echo should work correctly.
13479   # The option is referenced via a variable to avoid confusing sed.
13480   lt_compile=`echo "$ac_compile" | $SED \
13481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13483   -e 's:$: $lt_compiler_flag:'`
13484   (eval echo "\"\$as_me:13484: $lt_compile\"" >&5)
13485   (eval "$lt_compile" 2>conftest.err)
13486   ac_status=$?
13487   cat conftest.err >&5
13488   echo "$as_me:13488: \$? = $ac_status" >&5
13489   if (exit $ac_status) && test -s "$ac_outfile"; then
13490     # The compiler can only warn and ignore the option if not recognized
13491     # So say no if there are warnings other than the usual output.
13492     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13493     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13494     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13495       lt_prog_compiler_pic_works_CXX=yes
13496     fi
13497   fi
13498   $rm conftest*
13499
13500fi
13501echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13502echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13503
13504if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13505    case $lt_prog_compiler_pic_CXX in
13506     "" | " "*) ;;
13507     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13508     esac
13509else
13510    lt_prog_compiler_pic_CXX=
13511     lt_prog_compiler_can_build_shared_CXX=no
13512fi
13513
13514fi
13515case $host_os in
13516  # For platforms which do not support PIC, -DPIC is meaningless:
13517  *djgpp*)
13518    lt_prog_compiler_pic_CXX=
13519    ;;
13520  *)
13521    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13522    ;;
13523esac
13524
13525#
13526# Check to make sure the static flag actually works.
13527#
13528wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13529echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13530echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13531if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13532  echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534  lt_prog_compiler_static_works_CXX=no
13535   save_LDFLAGS="$LDFLAGS"
13536   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13537   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13538   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13539     # The linker can only warn and ignore the option if not recognized
13540     # So say no if there are warnings
13541     if test -s conftest.err; then
13542       # Append any errors to the config.log.
13543       cat conftest.err 1>&5
13544       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13545       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13546       if diff conftest.exp conftest.er2 >/dev/null; then
13547         lt_prog_compiler_static_works_CXX=yes
13548       fi
13549     else
13550       lt_prog_compiler_static_works_CXX=yes
13551     fi
13552   fi
13553   $rm conftest*
13554   LDFLAGS="$save_LDFLAGS"
13555
13556fi
13557echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13558echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13559
13560if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13561    :
13562else
13563    lt_prog_compiler_static_CXX=
13564fi
13565
13566
13567echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13568echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13569if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13570  echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572  lt_cv_prog_compiler_c_o_CXX=no
13573   $rm -r conftest 2>/dev/null
13574   mkdir conftest
13575   cd conftest
13576   mkdir out
13577   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13578
13579   lt_compiler_flag="-o out/conftest2.$ac_objext"
13580   # Insert the option either (1) after the last *FLAGS variable, or
13581   # (2) before a word containing "conftest.", or (3) at the end.
13582   # Note that $ac_compile itself does not contain backslashes and begins
13583   # with a dollar sign (not a hyphen), so the echo should work correctly.
13584   lt_compile=`echo "$ac_compile" | $SED \
13585   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13587   -e 's:$: $lt_compiler_flag:'`
13588   (eval echo "\"\$as_me:13588: $lt_compile\"" >&5)
13589   (eval "$lt_compile" 2>out/conftest.err)
13590   ac_status=$?
13591   cat out/conftest.err >&5
13592   echo "$as_me:13592: \$? = $ac_status" >&5
13593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13594   then
13595     # The compiler can only warn and ignore the option if not recognized
13596     # So say no if there are warnings
13597     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13598     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13599     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13600       lt_cv_prog_compiler_c_o_CXX=yes
13601     fi
13602   fi
13603   chmod u+w . 2>&5
13604   $rm conftest*
13605   # SGI C++ compiler will create directory out/ii_files/ for
13606   # template instantiation
13607   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13608   $rm out/* && rmdir out
13609   cd ..
13610   rmdir conftest
13611   $rm conftest*
13612
13613fi
13614echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13615echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13616
13617
13618hard_links="nottested"
13619if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13620  # do not overwrite the value of need_locks provided by the user
13621  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13622echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13623  hard_links=yes
13624  $rm conftest*
13625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13626  touch conftest.a
13627  ln conftest.a conftest.b 2>&5 || hard_links=no
13628  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13629  echo "$as_me:$LINENO: result: $hard_links" >&5
13630echo "${ECHO_T}$hard_links" >&6
13631  if test "$hard_links" = no; then
13632    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13633echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13634    need_locks=warn
13635  fi
13636else
13637  need_locks=no
13638fi
13639
13640echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13641echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13642
13643  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13644  case $host_os in
13645  aix4* | aix5*)
13646    # If we're using GNU nm, then we don't want the "-C" option.
13647    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13648    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13649      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'
13650    else
13651      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'
13652    fi
13653    ;;
13654  pw32*)
13655    export_symbols_cmds_CXX="$ltdll_cmds"
13656  ;;
13657  cygwin* | mingw*)
13658    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'
13659  ;;
13660  *)
13661    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13662  ;;
13663  esac
13664
13665echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13666echo "${ECHO_T}$ld_shlibs_CXX" >&6
13667test "$ld_shlibs_CXX" = no && can_build_shared=no
13668
13669#
13670# Do we need to explicitly link libc?
13671#
13672case "x$archive_cmds_need_lc_CXX" in
13673x|xyes)
13674  # Assume -lc should be added
13675  archive_cmds_need_lc_CXX=yes
13676
13677  if test "$enable_shared" = yes && test "$GCC" = yes; then
13678    case $archive_cmds_CXX in
13679    *'~'*)
13680      # FIXME: we may have to deal with multi-command sequences.
13681      ;;
13682    '$CC '*)
13683      # Test whether the compiler implicitly links with -lc since on some
13684      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13685      # to ld, don't add -lc before -lgcc.
13686      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13687echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13688      $rm conftest*
13689      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13690
13691      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692  (eval $ac_compile) 2>&5
13693  ac_status=$?
13694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695  (exit $ac_status); } 2>conftest.err; then
13696        soname=conftest
13697        lib=conftest
13698        libobjs=conftest.$ac_objext
13699        deplibs=
13700        wl=$lt_prog_compiler_wl_CXX
13701	pic_flag=$lt_prog_compiler_pic_CXX
13702        compiler_flags=-v
13703        linker_flags=-v
13704        verstring=
13705        output_objdir=.
13706        libname=conftest
13707        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13708        allow_undefined_flag_CXX=
13709        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13710  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13711  ac_status=$?
13712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713  (exit $ac_status); }
13714        then
13715	  archive_cmds_need_lc_CXX=no
13716        else
13717	  archive_cmds_need_lc_CXX=yes
13718        fi
13719        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13720      else
13721        cat conftest.err 1>&5
13722      fi
13723      $rm conftest*
13724      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13725echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13726      ;;
13727    esac
13728  fi
13729  ;;
13730esac
13731
13732echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13733echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13734library_names_spec=
13735libname_spec='lib$name'
13736soname_spec=
13737shrext_cmds=".so"
13738postinstall_cmds=
13739postuninstall_cmds=
13740finish_cmds=
13741finish_eval=
13742shlibpath_var=
13743shlibpath_overrides_runpath=unknown
13744version_type=none
13745dynamic_linker="$host_os ld.so"
13746sys_lib_dlsearch_path_spec="/lib /usr/lib"
13747if test "$GCC" = yes; then
13748  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13749  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13750    # if the path contains ";" then we assume it to be the separator
13751    # otherwise default to the standard path separator (i.e. ":") - it is
13752    # assumed that no part of a normal pathname contains ";" but that should
13753    # okay in the real world where ";" in dirpaths is itself problematic.
13754    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13755  else
13756    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13757  fi
13758else
13759  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13760fi
13761need_lib_prefix=unknown
13762hardcode_into_libs=no
13763
13764# when you set need_version to no, make sure it does not cause -set_version
13765# flags to be left without arguments
13766need_version=unknown
13767
13768case $host_os in
13769aix3*)
13770  version_type=linux
13771  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13772  shlibpath_var=LIBPATH
13773
13774  # AIX 3 has no versioning support, so we append a major version to the name.
13775  soname_spec='${libname}${release}${shared_ext}$major'
13776  ;;
13777
13778aix4* | aix5*)
13779  version_type=linux
13780  need_lib_prefix=no
13781  need_version=no
13782  hardcode_into_libs=yes
13783  if test "$host_cpu" = ia64; then
13784    # AIX 5 supports IA64
13785    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13786    shlibpath_var=LD_LIBRARY_PATH
13787  else
13788    # With GCC up to 2.95.x, collect2 would create an import file
13789    # for dependence libraries.  The import file would start with
13790    # the line `#! .'.  This would cause the generated library to
13791    # depend on `.', always an invalid library.  This was fixed in
13792    # development snapshots of GCC prior to 3.0.
13793    case $host_os in
13794      aix4 | aix4.[01] | aix4.[01].*)
13795      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13796	   echo ' yes '
13797	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13798	:
13799      else
13800	can_build_shared=no
13801      fi
13802      ;;
13803    esac
13804    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13805    # soname into executable. Probably we can add versioning support to
13806    # collect2, so additional links can be useful in future.
13807    if test "$aix_use_runtimelinking" = yes; then
13808      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13809      # instead of lib<name>.a to let people know that these are not
13810      # typical AIX shared libraries.
13811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812    else
13813      # We preserve .a as extension for shared libraries through AIX4.2
13814      # and later when we are not doing run time linking.
13815      library_names_spec='${libname}${release}.a $libname.a'
13816      soname_spec='${libname}${release}${shared_ext}$major'
13817    fi
13818    shlibpath_var=LIBPATH
13819  fi
13820  ;;
13821
13822amigaos*)
13823  library_names_spec='$libname.ixlibrary $libname.a'
13824  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13825  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'
13826  ;;
13827
13828beos*)
13829  library_names_spec='${libname}${shared_ext}'
13830  dynamic_linker="$host_os ld.so"
13831  shlibpath_var=LIBRARY_PATH
13832  ;;
13833
13834bsdi[45]*)
13835  version_type=linux
13836  need_version=no
13837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838  soname_spec='${libname}${release}${shared_ext}$major'
13839  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13840  shlibpath_var=LD_LIBRARY_PATH
13841  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13842  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13843  # the default ld.so.conf also contains /usr/contrib/lib and
13844  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13845  # libtool to hard-code these into programs
13846  ;;
13847
13848cygwin* | mingw* | pw32*)
13849  version_type=windows
13850  shrext_cmds=".dll"
13851  need_version=no
13852  need_lib_prefix=no
13853
13854  case $GCC,$host_os in
13855  yes,cygwin* | yes,mingw* | yes,pw32*)
13856    library_names_spec='$libname.dll.a'
13857    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13858    postinstall_cmds='base_file=`basename \${file}`~
13859      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13860      dldir=$destdir/`dirname \$dlpath`~
13861      test -d \$dldir || mkdir -p \$dldir~
13862      $install_prog $dir/$dlname \$dldir/$dlname~
13863      chmod a+x \$dldir/$dlname'
13864    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13865      dlpath=$dir/\$dldll~
13866       $rm \$dlpath'
13867    shlibpath_overrides_runpath=yes
13868
13869    case $host_os in
13870    cygwin*)
13871      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13872      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13873      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13874      ;;
13875    mingw*)
13876      # MinGW DLLs use traditional 'lib' prefix
13877      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13878      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13879      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13880        # It is most probably a Windows format PATH printed by
13881        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13882        # path with ; separators, and with drive letters. We can handle the
13883        # drive letters (cygwin fileutils understands them), so leave them,
13884        # especially as we might pass files found there to a mingw objdump,
13885        # which wouldn't understand a cygwinified path. Ahh.
13886        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13887      else
13888        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13889      fi
13890      ;;
13891    pw32*)
13892      # pw32 DLLs use 'pw' prefix rather than 'lib'
13893      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13894      ;;
13895    esac
13896    ;;
13897
13898  *)
13899    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13900    ;;
13901  esac
13902  dynamic_linker='Win32 ld.exe'
13903  # FIXME: first we should search . and the directory the executable is in
13904  shlibpath_var=PATH
13905  ;;
13906
13907darwin* | rhapsody*)
13908  dynamic_linker="$host_os dyld"
13909  version_type=darwin
13910  need_lib_prefix=no
13911  need_version=no
13912  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13913  soname_spec='${libname}${release}${major}$shared_ext'
13914  shlibpath_overrides_runpath=yes
13915  shlibpath_var=DYLD_LIBRARY_PATH
13916  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13917  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13918  if test "$GCC" = yes; then
13919    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"`
13920  else
13921    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13922  fi
13923  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13924  ;;
13925
13926dgux*)
13927  version_type=linux
13928  need_lib_prefix=no
13929  need_version=no
13930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13931  soname_spec='${libname}${release}${shared_ext}$major'
13932  shlibpath_var=LD_LIBRARY_PATH
13933  ;;
13934
13935freebsd1*)
13936  dynamic_linker=no
13937  ;;
13938
13939kfreebsd*-gnu)
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  shlibpath_overrides_runpath=no
13947  hardcode_into_libs=yes
13948  dynamic_linker='GNU ld.so'
13949  ;;
13950
13951freebsd* | dragonfly*)
13952  # DragonFly does not have aout.  When/if they implement a new
13953  # versioning mechanism, adjust this.
13954  if test -x /usr/bin/objformat; then
13955    objformat=`/usr/bin/objformat`
13956  else
13957    case $host_os in
13958    freebsd[123]*) objformat=aout ;;
13959    *) objformat=elf ;;
13960    esac
13961  fi
13962  version_type=freebsd-$objformat
13963  case $version_type in
13964    freebsd-elf*)
13965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13966      need_version=no
13967      need_lib_prefix=no
13968      ;;
13969    freebsd-*)
13970      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13971      need_version=yes
13972      ;;
13973  esac
13974  shlibpath_var=LD_LIBRARY_PATH
13975  case $host_os in
13976  freebsd2*)
13977    shlibpath_overrides_runpath=yes
13978    ;;
13979  freebsd3.[01]* | freebsdelf3.[01]*)
13980    shlibpath_overrides_runpath=yes
13981    hardcode_into_libs=yes
13982    ;;
13983  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13984  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13985    shlibpath_overrides_runpath=no
13986    hardcode_into_libs=yes
13987    ;;
13988  freebsd*) # from 4.6 on
13989    shlibpath_overrides_runpath=yes
13990    hardcode_into_libs=yes
13991    ;;
13992  esac
13993  ;;
13994
13995gnu*)
13996  version_type=linux
13997  need_lib_prefix=no
13998  need_version=no
13999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14000  soname_spec='${libname}${release}${shared_ext}$major'
14001  shlibpath_var=LD_LIBRARY_PATH
14002  hardcode_into_libs=yes
14003  ;;
14004
14005hpux9* | hpux10* | hpux11*)
14006  # Give a soname corresponding to the major version so that dld.sl refuses to
14007  # link against other versions.
14008  version_type=sunos
14009  need_lib_prefix=no
14010  need_version=no
14011  case $host_cpu in
14012  ia64*)
14013    shrext_cmds='.so'
14014    hardcode_into_libs=yes
14015    dynamic_linker="$host_os dld.so"
14016    shlibpath_var=LD_LIBRARY_PATH
14017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019    soname_spec='${libname}${release}${shared_ext}$major'
14020    if test "X$HPUX_IA64_MODE" = X32; then
14021      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14022    else
14023      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14024    fi
14025    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14026    ;;
14027   hppa*64*)
14028     shrext_cmds='.sl'
14029     hardcode_into_libs=yes
14030     dynamic_linker="$host_os dld.sl"
14031     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034     soname_spec='${libname}${release}${shared_ext}$major'
14035     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14037     ;;
14038   *)
14039    shrext_cmds='.sl'
14040    dynamic_linker="$host_os dld.sl"
14041    shlibpath_var=SHLIB_PATH
14042    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14043    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044    soname_spec='${libname}${release}${shared_ext}$major'
14045    ;;
14046  esac
14047  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14048  postinstall_cmds='chmod 555 $lib'
14049  ;;
14050
14051interix3*)
14052  version_type=linux
14053  need_lib_prefix=no
14054  need_version=no
14055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14056  soname_spec='${libname}${release}${shared_ext}$major'
14057  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14058  shlibpath_var=LD_LIBRARY_PATH
14059  shlibpath_overrides_runpath=no
14060  hardcode_into_libs=yes
14061  ;;
14062
14063irix5* | irix6* | nonstopux*)
14064  case $host_os in
14065    nonstopux*) version_type=nonstopux ;;
14066    *)
14067	if test "$lt_cv_prog_gnu_ld" = yes; then
14068		version_type=linux
14069	else
14070		version_type=irix
14071	fi ;;
14072  esac
14073  need_lib_prefix=no
14074  need_version=no
14075  soname_spec='${libname}${release}${shared_ext}$major'
14076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14077  case $host_os in
14078  irix5* | nonstopux*)
14079    libsuff= shlibsuff=
14080    ;;
14081  *)
14082    case $LD in # libtool.m4 will add one of these switches to LD
14083    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14084      libsuff= shlibsuff= libmagic=32-bit;;
14085    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14086      libsuff=32 shlibsuff=N32 libmagic=N32;;
14087    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14088      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14089    *) libsuff= shlibsuff= libmagic=never-match;;
14090    esac
14091    ;;
14092  esac
14093  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14094  shlibpath_overrides_runpath=no
14095  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14096  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14097  hardcode_into_libs=yes
14098  ;;
14099
14100# No shared lib support for Linux oldld, aout, or coff.
14101linux*oldld* | linux*aout* | linux*coff*)
14102  dynamic_linker=no
14103  ;;
14104
14105# This must be Linux ELF.
14106linux*)
14107  version_type=linux
14108  need_lib_prefix=no
14109  need_version=no
14110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111  soname_spec='${libname}${release}${shared_ext}$major'
14112  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14113  shlibpath_var=LD_LIBRARY_PATH
14114  shlibpath_overrides_runpath=no
14115  # This implies no fast_install, which is unacceptable.
14116  # Some rework will be needed to allow for fast_install
14117  # before this can be enabled.
14118  hardcode_into_libs=yes
14119
14120  # Append ld.so.conf contents to the search path
14121  if test -f /etc/ld.so.conf; then
14122    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' ' '`
14123    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14124  fi
14125
14126  # We used to test for /lib/ld.so.1 and disable shared libraries on
14127  # powerpc, because MkLinux only supported shared libraries with the
14128  # GNU dynamic linker.  Since this was broken with cross compilers,
14129  # most powerpc-linux boxes support dynamic linking these days and
14130  # people can always --disable-shared, the test was removed, and we
14131  # assume the GNU/Linux dynamic linker is in use.
14132  dynamic_linker='GNU/Linux ld.so'
14133  ;;
14134
14135knetbsd*-gnu)
14136  version_type=linux
14137  need_lib_prefix=no
14138  need_version=no
14139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14140  soname_spec='${libname}${release}${shared_ext}$major'
14141  shlibpath_var=LD_LIBRARY_PATH
14142  shlibpath_overrides_runpath=no
14143  hardcode_into_libs=yes
14144  dynamic_linker='GNU ld.so'
14145  ;;
14146
14147netbsd*)
14148  version_type=sunos
14149  need_lib_prefix=no
14150  need_version=no
14151  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14152    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14154    dynamic_linker='NetBSD (a.out) ld.so'
14155  else
14156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14157    soname_spec='${libname}${release}${shared_ext}$major'
14158    dynamic_linker='NetBSD ld.elf_so'
14159  fi
14160  shlibpath_var=LD_LIBRARY_PATH
14161  shlibpath_overrides_runpath=yes
14162  hardcode_into_libs=yes
14163  ;;
14164
14165newsos6)
14166  version_type=linux
14167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168  shlibpath_var=LD_LIBRARY_PATH
14169  shlibpath_overrides_runpath=yes
14170  ;;
14171
14172nto-qnx*)
14173  version_type=linux
14174  need_lib_prefix=no
14175  need_version=no
14176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177  soname_spec='${libname}${release}${shared_ext}$major'
14178  shlibpath_var=LD_LIBRARY_PATH
14179  shlibpath_overrides_runpath=yes
14180  ;;
14181
14182openbsd*)
14183  version_type=sunos
14184  sys_lib_dlsearch_path_spec="/usr/lib"
14185  need_lib_prefix=no
14186  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14187  case $host_os in
14188    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14189    *)                         need_version=no  ;;
14190  esac
14191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14193  shlibpath_var=LD_LIBRARY_PATH
14194  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14195    case $host_os in
14196      openbsd2.[89] | openbsd2.[89].*)
14197	shlibpath_overrides_runpath=no
14198	;;
14199      *)
14200	shlibpath_overrides_runpath=yes
14201	;;
14202      esac
14203  else
14204    shlibpath_overrides_runpath=yes
14205  fi
14206  ;;
14207
14208os2*)
14209  libname_spec='$name'
14210  shrext_cmds=".dll"
14211  need_lib_prefix=no
14212  library_names_spec='$libname${shared_ext} $libname.a'
14213  dynamic_linker='OS/2 ld.exe'
14214  shlibpath_var=LIBPATH
14215  ;;
14216
14217osf3* | osf4* | osf5*)
14218  version_type=osf
14219  need_lib_prefix=no
14220  need_version=no
14221  soname_spec='${libname}${release}${shared_ext}$major'
14222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223  shlibpath_var=LD_LIBRARY_PATH
14224  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14225  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14226  ;;
14227
14228solaris*)
14229  version_type=linux
14230  need_lib_prefix=no
14231  need_version=no
14232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233  soname_spec='${libname}${release}${shared_ext}$major'
14234  shlibpath_var=LD_LIBRARY_PATH
14235  shlibpath_overrides_runpath=yes
14236  hardcode_into_libs=yes
14237  # ldd complains unless libraries are executable
14238  postinstall_cmds='chmod +x $lib'
14239  ;;
14240
14241sunos4*)
14242  version_type=sunos
14243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14245  shlibpath_var=LD_LIBRARY_PATH
14246  shlibpath_overrides_runpath=yes
14247  if test "$with_gnu_ld" = yes; then
14248    need_lib_prefix=no
14249  fi
14250  need_version=yes
14251  ;;
14252
14253sysv4 | sysv4.3*)
14254  version_type=linux
14255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256  soname_spec='${libname}${release}${shared_ext}$major'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  case $host_vendor in
14259    sni)
14260      shlibpath_overrides_runpath=no
14261      need_lib_prefix=no
14262      export_dynamic_flag_spec='${wl}-Blargedynsym'
14263      runpath_var=LD_RUN_PATH
14264      ;;
14265    siemens)
14266      need_lib_prefix=no
14267      ;;
14268    motorola)
14269      need_lib_prefix=no
14270      need_version=no
14271      shlibpath_overrides_runpath=no
14272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14273      ;;
14274  esac
14275  ;;
14276
14277sysv4*MP*)
14278  if test -d /usr/nec ;then
14279    version_type=linux
14280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14281    soname_spec='$libname${shared_ext}.$major'
14282    shlibpath_var=LD_LIBRARY_PATH
14283  fi
14284  ;;
14285
14286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14287  version_type=freebsd-elf
14288  need_lib_prefix=no
14289  need_version=no
14290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14291  soname_spec='${libname}${release}${shared_ext}$major'
14292  shlibpath_var=LD_LIBRARY_PATH
14293  hardcode_into_libs=yes
14294  if test "$with_gnu_ld" = yes; then
14295    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14296    shlibpath_overrides_runpath=no
14297  else
14298    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14299    shlibpath_overrides_runpath=yes
14300    case $host_os in
14301      sco3.2v5*)
14302        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14303	;;
14304    esac
14305  fi
14306  sys_lib_dlsearch_path_spec='/usr/lib'
14307  ;;
14308
14309uts4*)
14310  version_type=linux
14311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312  soname_spec='${libname}${release}${shared_ext}$major'
14313  shlibpath_var=LD_LIBRARY_PATH
14314  ;;
14315
14316*)
14317  dynamic_linker=no
14318  ;;
14319esac
14320echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14321echo "${ECHO_T}$dynamic_linker" >&6
14322test "$dynamic_linker" = no && can_build_shared=no
14323
14324variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14325if test "$GCC" = yes; then
14326  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14327fi
14328
14329echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14330echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14331hardcode_action_CXX=
14332if test -n "$hardcode_libdir_flag_spec_CXX" || \
14333   test -n "$runpath_var_CXX" || \
14334   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14335
14336  # We can hardcode non-existant directories.
14337  if test "$hardcode_direct_CXX" != no &&
14338     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14339     # have to relink, otherwise we might link with an installed library
14340     # when we should be linking with a yet-to-be-installed one
14341     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14342     test "$hardcode_minus_L_CXX" != no; then
14343    # Linking always hardcodes the temporary library directory.
14344    hardcode_action_CXX=relink
14345  else
14346    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14347    hardcode_action_CXX=immediate
14348  fi
14349else
14350  # We cannot hardcode anything, or else we can only hardcode existing
14351  # directories.
14352  hardcode_action_CXX=unsupported
14353fi
14354echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14355echo "${ECHO_T}$hardcode_action_CXX" >&6
14356
14357if test "$hardcode_action_CXX" = relink; then
14358  # Fast installation is not supported
14359  enable_fast_install=no
14360elif test "$shlibpath_overrides_runpath" = yes ||
14361     test "$enable_shared" = no; then
14362  # Fast installation is not necessary
14363  enable_fast_install=needless
14364fi
14365
14366
14367# The else clause should only fire when bootstrapping the
14368# libtool distribution, otherwise you forgot to ship ltmain.sh
14369# with your package, and you will get complaints that there are
14370# no rules to generate ltmain.sh.
14371if test -f "$ltmain"; then
14372  # See if we are running on zsh, and set the options which allow our commands through
14373  # without removal of \ escapes.
14374  if test -n "${ZSH_VERSION+set}" ; then
14375    setopt NO_GLOB_SUBST
14376  fi
14377  # Now quote all the things that may contain metacharacters while being
14378  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14379  # variables and quote the copies for generation of the libtool script.
14380  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14381    SED SHELL STRIP \
14382    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14383    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14384    deplibs_check_method reload_flag reload_cmds need_locks \
14385    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14386    lt_cv_sys_global_symbol_to_c_name_address \
14387    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14388    old_postinstall_cmds old_postuninstall_cmds \
14389    compiler_CXX \
14390    CC_CXX \
14391    LD_CXX \
14392    lt_prog_compiler_wl_CXX \
14393    lt_prog_compiler_pic_CXX \
14394    lt_prog_compiler_static_CXX \
14395    lt_prog_compiler_no_builtin_flag_CXX \
14396    export_dynamic_flag_spec_CXX \
14397    thread_safe_flag_spec_CXX \
14398    whole_archive_flag_spec_CXX \
14399    enable_shared_with_static_runtimes_CXX \
14400    old_archive_cmds_CXX \
14401    old_archive_from_new_cmds_CXX \
14402    predep_objects_CXX \
14403    postdep_objects_CXX \
14404    predeps_CXX \
14405    postdeps_CXX \
14406    compiler_lib_search_path_CXX \
14407    archive_cmds_CXX \
14408    archive_expsym_cmds_CXX \
14409    postinstall_cmds_CXX \
14410    postuninstall_cmds_CXX \
14411    old_archive_from_expsyms_cmds_CXX \
14412    allow_undefined_flag_CXX \
14413    no_undefined_flag_CXX \
14414    export_symbols_cmds_CXX \
14415    hardcode_libdir_flag_spec_CXX \
14416    hardcode_libdir_flag_spec_ld_CXX \
14417    hardcode_libdir_separator_CXX \
14418    hardcode_automatic_CXX \
14419    module_cmds_CXX \
14420    module_expsym_cmds_CXX \
14421    lt_cv_prog_compiler_c_o_CXX \
14422    exclude_expsyms_CXX \
14423    include_expsyms_CXX; do
14424
14425    case $var in
14426    old_archive_cmds_CXX | \
14427    old_archive_from_new_cmds_CXX | \
14428    archive_cmds_CXX | \
14429    archive_expsym_cmds_CXX | \
14430    module_cmds_CXX | \
14431    module_expsym_cmds_CXX | \
14432    old_archive_from_expsyms_cmds_CXX | \
14433    export_symbols_cmds_CXX | \
14434    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14435    postinstall_cmds | postuninstall_cmds | \
14436    old_postinstall_cmds | old_postuninstall_cmds | \
14437    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14438      # Double-quote double-evaled strings.
14439      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14440      ;;
14441    *)
14442      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14443      ;;
14444    esac
14445  done
14446
14447  case $lt_echo in
14448  *'\$0 --fallback-echo"')
14449    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14450    ;;
14451  esac
14452
14453cfgfile="$ofile"
14454
14455  cat <<__EOF__ >> "$cfgfile"
14456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14457
14458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14459
14460# Shell to use when invoking shell scripts.
14461SHELL=$lt_SHELL
14462
14463# Whether or not to build shared libraries.
14464build_libtool_libs=$enable_shared
14465
14466# Whether or not to build static libraries.
14467build_old_libs=$enable_static
14468
14469# Whether or not to add -lc for building shared libraries.
14470build_libtool_need_lc=$archive_cmds_need_lc_CXX
14471
14472# Whether or not to disallow shared libs when runtime libs are static
14473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14474
14475# Whether or not to optimize for fast installation.
14476fast_install=$enable_fast_install
14477
14478# The host system.
14479host_alias=$host_alias
14480host=$host
14481host_os=$host_os
14482
14483# The build system.
14484build_alias=$build_alias
14485build=$build
14486build_os=$build_os
14487
14488# An echo program that does not interpret backslashes.
14489echo=$lt_echo
14490
14491# The archiver.
14492AR=$lt_AR
14493AR_FLAGS=$lt_AR_FLAGS
14494
14495# A C compiler.
14496LTCC=$lt_LTCC
14497
14498# LTCC compiler flags.
14499LTCFLAGS=$lt_LTCFLAGS
14500
14501# A language-specific compiler.
14502CC=$lt_compiler_CXX
14503
14504# Is the compiler the GNU C compiler?
14505with_gcc=$GCC_CXX
14506
14507# An ERE matcher.
14508EGREP=$lt_EGREP
14509
14510# The linker used to build libraries.
14511LD=$lt_LD_CXX
14512
14513# Whether we need hard or soft links.
14514LN_S=$lt_LN_S
14515
14516# A BSD-compatible nm program.
14517NM=$lt_NM
14518
14519# A symbol stripping program
14520STRIP=$lt_STRIP
14521
14522# Used to examine libraries when file_magic_cmd begins "file"
14523MAGIC_CMD=$MAGIC_CMD
14524
14525# Used on cygwin: DLL creation program.
14526DLLTOOL="$DLLTOOL"
14527
14528# Used on cygwin: object dumper.
14529OBJDUMP="$OBJDUMP"
14530
14531# Used on cygwin: assembler.
14532AS="$AS"
14533
14534# The name of the directory that contains temporary libtool files.
14535objdir=$objdir
14536
14537# How to create reloadable object files.
14538reload_flag=$lt_reload_flag
14539reload_cmds=$lt_reload_cmds
14540
14541# How to pass a linker flag through the compiler.
14542wl=$lt_lt_prog_compiler_wl_CXX
14543
14544# Object file suffix (normally "o").
14545objext="$ac_objext"
14546
14547# Old archive suffix (normally "a").
14548libext="$libext"
14549
14550# Shared library suffix (normally ".so").
14551shrext_cmds='$shrext_cmds'
14552
14553# Executable file suffix (normally "").
14554exeext="$exeext"
14555
14556# Additional compiler flags for building library objects.
14557pic_flag=$lt_lt_prog_compiler_pic_CXX
14558pic_mode=$pic_mode
14559
14560# What is the maximum length of a command?
14561max_cmd_len=$lt_cv_sys_max_cmd_len
14562
14563# Does compiler simultaneously support -c and -o options?
14564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14565
14566# Must we lock files when doing compilation?
14567need_locks=$lt_need_locks
14568
14569# Do we need the lib prefix for modules?
14570need_lib_prefix=$need_lib_prefix
14571
14572# Do we need a version for libraries?
14573need_version=$need_version
14574
14575# Whether dlopen is supported.
14576dlopen_support=$enable_dlopen
14577
14578# Whether dlopen of programs is supported.
14579dlopen_self=$enable_dlopen_self
14580
14581# Whether dlopen of statically linked programs is supported.
14582dlopen_self_static=$enable_dlopen_self_static
14583
14584# Compiler flag to prevent dynamic linking.
14585link_static_flag=$lt_lt_prog_compiler_static_CXX
14586
14587# Compiler flag to turn off builtin functions.
14588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14589
14590# Compiler flag to allow reflexive dlopens.
14591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14592
14593# Compiler flag to generate shared objects directly from archives.
14594whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14595
14596# Compiler flag to generate thread-safe objects.
14597thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14598
14599# Library versioning type.
14600version_type=$version_type
14601
14602# Format of library name prefix.
14603libname_spec=$lt_libname_spec
14604
14605# List of archive names.  First name is the real one, the rest are links.
14606# The last name is the one that the linker finds with -lNAME.
14607library_names_spec=$lt_library_names_spec
14608
14609# The coded name of the library, if different from the real name.
14610soname_spec=$lt_soname_spec
14611
14612# Commands used to build and install an old-style archive.
14613RANLIB=$lt_RANLIB
14614old_archive_cmds=$lt_old_archive_cmds_CXX
14615old_postinstall_cmds=$lt_old_postinstall_cmds
14616old_postuninstall_cmds=$lt_old_postuninstall_cmds
14617
14618# Create an old-style archive from a shared archive.
14619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14620
14621# Create a temporary old-style archive to link instead of a shared archive.
14622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14623
14624# Commands used to build and install a shared archive.
14625archive_cmds=$lt_archive_cmds_CXX
14626archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14627postinstall_cmds=$lt_postinstall_cmds
14628postuninstall_cmds=$lt_postuninstall_cmds
14629
14630# Commands used to build a loadable module (assumed same as above if empty)
14631module_cmds=$lt_module_cmds_CXX
14632module_expsym_cmds=$lt_module_expsym_cmds_CXX
14633
14634# Commands to strip libraries.
14635old_striplib=$lt_old_striplib
14636striplib=$lt_striplib
14637
14638# Dependencies to place before the objects being linked to create a
14639# shared library.
14640predep_objects=$lt_predep_objects_CXX
14641
14642# Dependencies to place after the objects being linked to create a
14643# shared library.
14644postdep_objects=$lt_postdep_objects_CXX
14645
14646# Dependencies to place before the objects being linked to create a
14647# shared library.
14648predeps=$lt_predeps_CXX
14649
14650# Dependencies to place after the objects being linked to create a
14651# shared library.
14652postdeps=$lt_postdeps_CXX
14653
14654# The library search path used internally by the compiler when linking
14655# a shared library.
14656compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14657
14658# Method to check whether dependent libraries are shared objects.
14659deplibs_check_method=$lt_deplibs_check_method
14660
14661# Command to use when deplibs_check_method == file_magic.
14662file_magic_cmd=$lt_file_magic_cmd
14663
14664# Flag that allows shared libraries with undefined symbols to be built.
14665allow_undefined_flag=$lt_allow_undefined_flag_CXX
14666
14667# Flag that forces no undefined symbols.
14668no_undefined_flag=$lt_no_undefined_flag_CXX
14669
14670# Commands used to finish a libtool library installation in a directory.
14671finish_cmds=$lt_finish_cmds
14672
14673# Same as above, but a single script fragment to be evaled but not shown.
14674finish_eval=$lt_finish_eval
14675
14676# Take the output of nm and produce a listing of raw symbols and C names.
14677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14678
14679# Transform the output of nm in a proper C declaration
14680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14681
14682# Transform the output of nm in a C name address pair
14683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14684
14685# This is the shared library runtime path variable.
14686runpath_var=$runpath_var
14687
14688# This is the shared library path variable.
14689shlibpath_var=$shlibpath_var
14690
14691# Is shlibpath searched before the hard-coded library search path?
14692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14693
14694# How to hardcode a shared library path into an executable.
14695hardcode_action=$hardcode_action_CXX
14696
14697# Whether we should hardcode library paths into libraries.
14698hardcode_into_libs=$hardcode_into_libs
14699
14700# Flag to hardcode \$libdir into a binary during linking.
14701# This must work even if \$libdir does not exist.
14702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14703
14704# If ld is used when linking, flag to hardcode \$libdir into
14705# a binary during linking. This must work even if \$libdir does
14706# not exist.
14707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14708
14709# Whether we need a single -rpath flag with a separated argument.
14710hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14711
14712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14713# resulting binary.
14714hardcode_direct=$hardcode_direct_CXX
14715
14716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14717# resulting binary.
14718hardcode_minus_L=$hardcode_minus_L_CXX
14719
14720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14721# the resulting binary.
14722hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14723
14724# Set to yes if building a shared library automatically hardcodes DIR into the library
14725# and all subsequent libraries and executables linked against it.
14726hardcode_automatic=$hardcode_automatic_CXX
14727
14728# Variables whose values should be saved in libtool wrapper scripts and
14729# restored at relink time.
14730variables_saved_for_relink="$variables_saved_for_relink"
14731
14732# Whether libtool must link a program against all its dependency libraries.
14733link_all_deplibs=$link_all_deplibs_CXX
14734
14735# Compile-time system search path for libraries
14736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14737
14738# Run-time system search path for libraries
14739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14740
14741# Fix the shell variable \$srcfile for the compiler.
14742fix_srcfile_path="$fix_srcfile_path_CXX"
14743
14744# Set to yes if exported symbols are required.
14745always_export_symbols=$always_export_symbols_CXX
14746
14747# The commands to list exported symbols.
14748export_symbols_cmds=$lt_export_symbols_cmds_CXX
14749
14750# The commands to extract the exported symbol list from a shared archive.
14751extract_expsyms_cmds=$lt_extract_expsyms_cmds
14752
14753# Symbols that should not be listed in the preloaded symbols.
14754exclude_expsyms=$lt_exclude_expsyms_CXX
14755
14756# Symbols that must always be exported.
14757include_expsyms=$lt_include_expsyms_CXX
14758
14759# ### END LIBTOOL TAG CONFIG: $tagname
14760
14761__EOF__
14762
14763
14764else
14765  # If there is no Makefile yet, we rely on a make rule to execute
14766  # `config.status --recheck' to rerun these tests and create the
14767  # libtool script then.
14768  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14769  if test -f "$ltmain_in"; then
14770    test -f Makefile && make "$ltmain"
14771  fi
14772fi
14773
14774
14775ac_ext=c
14776ac_cpp='$CPP $CPPFLAGS'
14777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14779ac_compiler_gnu=$ac_cv_c_compiler_gnu
14780
14781CC=$lt_save_CC
14782LDCXX=$LD
14783LD=$lt_save_LD
14784GCC=$lt_save_GCC
14785with_gnu_ldcxx=$with_gnu_ld
14786with_gnu_ld=$lt_save_with_gnu_ld
14787lt_cv_path_LDCXX=$lt_cv_path_LD
14788lt_cv_path_LD=$lt_save_path_LD
14789lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14790lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14791
14792	else
14793	  tagname=""
14794	fi
14795	;;
14796
14797      F77)
14798	if test -n "$F77" && test "X$F77" != "Xno"; then
14799
14800ac_ext=f
14801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14804
14805
14806archive_cmds_need_lc_F77=no
14807allow_undefined_flag_F77=
14808always_export_symbols_F77=no
14809archive_expsym_cmds_F77=
14810export_dynamic_flag_spec_F77=
14811hardcode_direct_F77=no
14812hardcode_libdir_flag_spec_F77=
14813hardcode_libdir_flag_spec_ld_F77=
14814hardcode_libdir_separator_F77=
14815hardcode_minus_L_F77=no
14816hardcode_automatic_F77=no
14817module_cmds_F77=
14818module_expsym_cmds_F77=
14819link_all_deplibs_F77=unknown
14820old_archive_cmds_F77=$old_archive_cmds
14821no_undefined_flag_F77=
14822whole_archive_flag_spec_F77=
14823enable_shared_with_static_runtimes_F77=no
14824
14825# Source file extension for f77 test sources.
14826ac_ext=f
14827
14828# Object file extension for compiled f77 test sources.
14829objext=o
14830objext_F77=$objext
14831
14832# Code to be used in simple compile tests
14833lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14834
14835# Code to be used in simple link tests
14836lt_simple_link_test_code="      program t\n      end\n"
14837
14838# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14839
14840# If no C compiler was specified, use CC.
14841LTCC=${LTCC-"$CC"}
14842
14843# If no C compiler flags were specified, use CFLAGS.
14844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14845
14846# Allow CC to be a program name with arguments.
14847compiler=$CC
14848
14849
14850# save warnings/boilerplate of simple test code
14851ac_outfile=conftest.$ac_objext
14852printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14854_lt_compiler_boilerplate=`cat conftest.err`
14855$rm conftest*
14856
14857ac_outfile=conftest.$ac_objext
14858printf "$lt_simple_link_test_code" >conftest.$ac_ext
14859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14860_lt_linker_boilerplate=`cat conftest.err`
14861$rm conftest*
14862
14863
14864# Allow CC to be a program name with arguments.
14865lt_save_CC="$CC"
14866CC=${F77-"f77"}
14867compiler=$CC
14868compiler_F77=$CC
14869for cc_temp in $compiler""; do
14870  case $cc_temp in
14871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14873    \-*) ;;
14874    *) break;;
14875  esac
14876done
14877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14878
14879
14880echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14881echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14882echo "$as_me:$LINENO: result: $can_build_shared" >&5
14883echo "${ECHO_T}$can_build_shared" >&6
14884
14885echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14886echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14887test "$can_build_shared" = "no" && enable_shared=no
14888
14889# On AIX, shared libraries and static libraries use the same namespace, and
14890# are all built from PIC.
14891case $host_os in
14892aix3*)
14893  test "$enable_shared" = yes && enable_static=no
14894  if test -n "$RANLIB"; then
14895    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14896    postinstall_cmds='$RANLIB $lib'
14897  fi
14898  ;;
14899aix4* | aix5*)
14900  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14901    test "$enable_shared" = yes && enable_static=no
14902  fi
14903  ;;
14904esac
14905echo "$as_me:$LINENO: result: $enable_shared" >&5
14906echo "${ECHO_T}$enable_shared" >&6
14907
14908echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14909echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14910# Make sure either enable_shared or enable_static is yes.
14911test "$enable_shared" = yes || enable_static=yes
14912echo "$as_me:$LINENO: result: $enable_static" >&5
14913echo "${ECHO_T}$enable_static" >&6
14914
14915GCC_F77="$G77"
14916LD_F77="$LD"
14917
14918lt_prog_compiler_wl_F77=
14919lt_prog_compiler_pic_F77=
14920lt_prog_compiler_static_F77=
14921
14922echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14923echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14924
14925  if test "$GCC" = yes; then
14926    lt_prog_compiler_wl_F77='-Wl,'
14927    lt_prog_compiler_static_F77='-static'
14928
14929    case $host_os in
14930      aix*)
14931      # All AIX code is PIC.
14932      if test "$host_cpu" = ia64; then
14933	# AIX 5 now supports IA64 processor
14934	lt_prog_compiler_static_F77='-Bstatic'
14935      fi
14936      ;;
14937
14938    amigaos*)
14939      # FIXME: we need at least 68020 code to build shared libraries, but
14940      # adding the `-m68020' flag to GCC prevents building anything better,
14941      # like `-m68040'.
14942      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14943      ;;
14944
14945    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14946      # PIC is the default for these OSes.
14947      ;;
14948
14949    mingw* | pw32* | os2*)
14950      # This hack is so that the source file can tell whether it is being
14951      # built for inclusion in a dll (and should export symbols for example).
14952      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14953      ;;
14954
14955    darwin* | rhapsody*)
14956      # PIC is the default on this platform
14957      # Common symbols not allowed in MH_DYLIB files
14958      lt_prog_compiler_pic_F77='-fno-common'
14959      ;;
14960
14961    interix3*)
14962      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14963      # Instead, we relocate shared libraries at runtime.
14964      ;;
14965
14966    msdosdjgpp*)
14967      # Just because we use GCC doesn't mean we suddenly get shared libraries
14968      # on systems that don't support them.
14969      lt_prog_compiler_can_build_shared_F77=no
14970      enable_shared=no
14971      ;;
14972
14973    sysv4*MP*)
14974      if test -d /usr/nec; then
14975	lt_prog_compiler_pic_F77=-Kconform_pic
14976      fi
14977      ;;
14978
14979    hpux*)
14980      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14981      # not for PA HP-UX.
14982      case $host_cpu in
14983      hppa*64*|ia64*)
14984	# +Z the default
14985	;;
14986      *)
14987	lt_prog_compiler_pic_F77='-fPIC'
14988	;;
14989      esac
14990      ;;
14991
14992    *)
14993      lt_prog_compiler_pic_F77='-fPIC'
14994      ;;
14995    esac
14996  else
14997    # PORTME Check for flag to pass linker flags through the system compiler.
14998    case $host_os in
14999    aix*)
15000      lt_prog_compiler_wl_F77='-Wl,'
15001      if test "$host_cpu" = ia64; then
15002	# AIX 5 now supports IA64 processor
15003	lt_prog_compiler_static_F77='-Bstatic'
15004      else
15005	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15006      fi
15007      ;;
15008      darwin*)
15009        # PIC is the default on this platform
15010        # Common symbols not allowed in MH_DYLIB files
15011       case $cc_basename in
15012         xlc*)
15013         lt_prog_compiler_pic_F77='-qnocommon'
15014         lt_prog_compiler_wl_F77='-Wl,'
15015         ;;
15016       esac
15017       ;;
15018
15019    mingw* | pw32* | os2*)
15020      # This hack is so that the source file can tell whether it is being
15021      # built for inclusion in a dll (and should export symbols for example).
15022      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15023      ;;
15024
15025    hpux9* | hpux10* | hpux11*)
15026      lt_prog_compiler_wl_F77='-Wl,'
15027      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15028      # not for PA HP-UX.
15029      case $host_cpu in
15030      hppa*64*|ia64*)
15031	# +Z the default
15032	;;
15033      *)
15034	lt_prog_compiler_pic_F77='+Z'
15035	;;
15036      esac
15037      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15038      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15039      ;;
15040
15041    irix5* | irix6* | nonstopux*)
15042      lt_prog_compiler_wl_F77='-Wl,'
15043      # PIC (with -KPIC) is the default.
15044      lt_prog_compiler_static_F77='-non_shared'
15045      ;;
15046
15047    newsos6)
15048      lt_prog_compiler_pic_F77='-KPIC'
15049      lt_prog_compiler_static_F77='-Bstatic'
15050      ;;
15051
15052    linux*)
15053      case $cc_basename in
15054      icc* | ecc*)
15055	lt_prog_compiler_wl_F77='-Wl,'
15056	lt_prog_compiler_pic_F77='-KPIC'
15057	lt_prog_compiler_static_F77='-static'
15058        ;;
15059      pgcc* | pgf77* | pgf90* | pgf95*)
15060        # Portland Group compilers (*not* the Pentium gcc compiler,
15061	# which looks to be a dead project)
15062	lt_prog_compiler_wl_F77='-Wl,'
15063	lt_prog_compiler_pic_F77='-fpic'
15064	lt_prog_compiler_static_F77='-Bstatic'
15065        ;;
15066      ccc*)
15067        lt_prog_compiler_wl_F77='-Wl,'
15068        # All Alpha code is PIC.
15069        lt_prog_compiler_static_F77='-non_shared'
15070        ;;
15071      esac
15072      ;;
15073
15074    osf3* | osf4* | osf5*)
15075      lt_prog_compiler_wl_F77='-Wl,'
15076      # All OSF/1 code is PIC.
15077      lt_prog_compiler_static_F77='-non_shared'
15078      ;;
15079
15080    solaris*)
15081      lt_prog_compiler_pic_F77='-KPIC'
15082      lt_prog_compiler_static_F77='-Bstatic'
15083      case $cc_basename in
15084      f77* | f90* | f95*)
15085	lt_prog_compiler_wl_F77='-Qoption ld ';;
15086      *)
15087	lt_prog_compiler_wl_F77='-Wl,';;
15088      esac
15089      ;;
15090
15091    sunos4*)
15092      lt_prog_compiler_wl_F77='-Qoption ld '
15093      lt_prog_compiler_pic_F77='-PIC'
15094      lt_prog_compiler_static_F77='-Bstatic'
15095      ;;
15096
15097    sysv4 | sysv4.2uw2* | sysv4.3*)
15098      lt_prog_compiler_wl_F77='-Wl,'
15099      lt_prog_compiler_pic_F77='-KPIC'
15100      lt_prog_compiler_static_F77='-Bstatic'
15101      ;;
15102
15103    sysv4*MP*)
15104      if test -d /usr/nec ;then
15105	lt_prog_compiler_pic_F77='-Kconform_pic'
15106	lt_prog_compiler_static_F77='-Bstatic'
15107      fi
15108      ;;
15109
15110    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15111      lt_prog_compiler_wl_F77='-Wl,'
15112      lt_prog_compiler_pic_F77='-KPIC'
15113      lt_prog_compiler_static_F77='-Bstatic'
15114      ;;
15115
15116    unicos*)
15117      lt_prog_compiler_wl_F77='-Wl,'
15118      lt_prog_compiler_can_build_shared_F77=no
15119      ;;
15120
15121    uts4*)
15122      lt_prog_compiler_pic_F77='-pic'
15123      lt_prog_compiler_static_F77='-Bstatic'
15124      ;;
15125
15126    *)
15127      lt_prog_compiler_can_build_shared_F77=no
15128      ;;
15129    esac
15130  fi
15131
15132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15133echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15134
15135#
15136# Check to make sure the PIC flag actually works.
15137#
15138if test -n "$lt_prog_compiler_pic_F77"; then
15139
15140echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15141echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15142if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15143  echo $ECHO_N "(cached) $ECHO_C" >&6
15144else
15145  lt_prog_compiler_pic_works_F77=no
15146  ac_outfile=conftest.$ac_objext
15147   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15148   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15149   # Insert the option either (1) after the last *FLAGS variable, or
15150   # (2) before a word containing "conftest.", or (3) at the end.
15151   # Note that $ac_compile itself does not contain backslashes and begins
15152   # with a dollar sign (not a hyphen), so the echo should work correctly.
15153   # The option is referenced via a variable to avoid confusing sed.
15154   lt_compile=`echo "$ac_compile" | $SED \
15155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15157   -e 's:$: $lt_compiler_flag:'`
15158   (eval echo "\"\$as_me:15158: $lt_compile\"" >&5)
15159   (eval "$lt_compile" 2>conftest.err)
15160   ac_status=$?
15161   cat conftest.err >&5
15162   echo "$as_me:15162: \$? = $ac_status" >&5
15163   if (exit $ac_status) && test -s "$ac_outfile"; then
15164     # The compiler can only warn and ignore the option if not recognized
15165     # So say no if there are warnings other than the usual output.
15166     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15167     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15168     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15169       lt_prog_compiler_pic_works_F77=yes
15170     fi
15171   fi
15172   $rm conftest*
15173
15174fi
15175echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15176echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15177
15178if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15179    case $lt_prog_compiler_pic_F77 in
15180     "" | " "*) ;;
15181     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15182     esac
15183else
15184    lt_prog_compiler_pic_F77=
15185     lt_prog_compiler_can_build_shared_F77=no
15186fi
15187
15188fi
15189case $host_os in
15190  # For platforms which do not support PIC, -DPIC is meaningless:
15191  *djgpp*)
15192    lt_prog_compiler_pic_F77=
15193    ;;
15194  *)
15195    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15196    ;;
15197esac
15198
15199#
15200# Check to make sure the static flag actually works.
15201#
15202wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15203echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15204echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15205if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15206  echo $ECHO_N "(cached) $ECHO_C" >&6
15207else
15208  lt_prog_compiler_static_works_F77=no
15209   save_LDFLAGS="$LDFLAGS"
15210   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15211   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15212   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15213     # The linker can only warn and ignore the option if not recognized
15214     # So say no if there are warnings
15215     if test -s conftest.err; then
15216       # Append any errors to the config.log.
15217       cat conftest.err 1>&5
15218       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15219       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15220       if diff conftest.exp conftest.er2 >/dev/null; then
15221         lt_prog_compiler_static_works_F77=yes
15222       fi
15223     else
15224       lt_prog_compiler_static_works_F77=yes
15225     fi
15226   fi
15227   $rm conftest*
15228   LDFLAGS="$save_LDFLAGS"
15229
15230fi
15231echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15232echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15233
15234if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15235    :
15236else
15237    lt_prog_compiler_static_F77=
15238fi
15239
15240
15241echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15242echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15243if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15244  echo $ECHO_N "(cached) $ECHO_C" >&6
15245else
15246  lt_cv_prog_compiler_c_o_F77=no
15247   $rm -r conftest 2>/dev/null
15248   mkdir conftest
15249   cd conftest
15250   mkdir out
15251   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15252
15253   lt_compiler_flag="-o out/conftest2.$ac_objext"
15254   # Insert the option either (1) after the last *FLAGS variable, or
15255   # (2) before a word containing "conftest.", or (3) at the end.
15256   # Note that $ac_compile itself does not contain backslashes and begins
15257   # with a dollar sign (not a hyphen), so the echo should work correctly.
15258   lt_compile=`echo "$ac_compile" | $SED \
15259   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15260   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15261   -e 's:$: $lt_compiler_flag:'`
15262   (eval echo "\"\$as_me:15262: $lt_compile\"" >&5)
15263   (eval "$lt_compile" 2>out/conftest.err)
15264   ac_status=$?
15265   cat out/conftest.err >&5
15266   echo "$as_me:15266: \$? = $ac_status" >&5
15267   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15268   then
15269     # The compiler can only warn and ignore the option if not recognized
15270     # So say no if there are warnings
15271     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15272     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15273     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15274       lt_cv_prog_compiler_c_o_F77=yes
15275     fi
15276   fi
15277   chmod u+w . 2>&5
15278   $rm conftest*
15279   # SGI C++ compiler will create directory out/ii_files/ for
15280   # template instantiation
15281   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15282   $rm out/* && rmdir out
15283   cd ..
15284   rmdir conftest
15285   $rm conftest*
15286
15287fi
15288echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15289echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15290
15291
15292hard_links="nottested"
15293if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15294  # do not overwrite the value of need_locks provided by the user
15295  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15296echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15297  hard_links=yes
15298  $rm conftest*
15299  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15300  touch conftest.a
15301  ln conftest.a conftest.b 2>&5 || hard_links=no
15302  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15303  echo "$as_me:$LINENO: result: $hard_links" >&5
15304echo "${ECHO_T}$hard_links" >&6
15305  if test "$hard_links" = no; then
15306    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15307echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15308    need_locks=warn
15309  fi
15310else
15311  need_locks=no
15312fi
15313
15314echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15316
15317  runpath_var=
15318  allow_undefined_flag_F77=
15319  enable_shared_with_static_runtimes_F77=no
15320  archive_cmds_F77=
15321  archive_expsym_cmds_F77=
15322  old_archive_From_new_cmds_F77=
15323  old_archive_from_expsyms_cmds_F77=
15324  export_dynamic_flag_spec_F77=
15325  whole_archive_flag_spec_F77=
15326  thread_safe_flag_spec_F77=
15327  hardcode_libdir_flag_spec_F77=
15328  hardcode_libdir_flag_spec_ld_F77=
15329  hardcode_libdir_separator_F77=
15330  hardcode_direct_F77=no
15331  hardcode_minus_L_F77=no
15332  hardcode_shlibpath_var_F77=unsupported
15333  link_all_deplibs_F77=unknown
15334  hardcode_automatic_F77=no
15335  module_cmds_F77=
15336  module_expsym_cmds_F77=
15337  always_export_symbols_F77=no
15338  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15339  # include_expsyms should be a list of space-separated symbols to be *always*
15340  # included in the symbol list
15341  include_expsyms_F77=
15342  # exclude_expsyms can be an extended regexp of symbols to exclude
15343  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15344  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15345  # as well as any symbol that contains `d'.
15346  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15347  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15348  # platforms (ab)use it in PIC code, but their linkers get confused if
15349  # the symbol is explicitly referenced.  Since portable code cannot
15350  # rely on this symbol name, it's probably fine to never include it in
15351  # preloaded symbol tables.
15352  extract_expsyms_cmds=
15353  # Just being paranoid about ensuring that cc_basename is set.
15354  for cc_temp in $compiler""; do
15355  case $cc_temp in
15356    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15357    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15358    \-*) ;;
15359    *) break;;
15360  esac
15361done
15362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15363
15364  case $host_os in
15365  cygwin* | mingw* | pw32*)
15366    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15367    # When not using gcc, we currently assume that we are using
15368    # Microsoft Visual C++.
15369    if test "$GCC" != yes; then
15370      with_gnu_ld=no
15371    fi
15372    ;;
15373  interix*)
15374    # we just hope/assume this is gcc and not c89 (= MSVC++)
15375    with_gnu_ld=yes
15376    ;;
15377  openbsd*)
15378    with_gnu_ld=no
15379    ;;
15380  esac
15381
15382  ld_shlibs_F77=yes
15383  if test "$with_gnu_ld" = yes; then
15384    # If archive_cmds runs LD, not CC, wlarc should be empty
15385    wlarc='${wl}'
15386
15387    # Set some defaults for GNU ld with shared library support. These
15388    # are reset later if shared libraries are not supported. Putting them
15389    # here allows them to be overridden if necessary.
15390    runpath_var=LD_RUN_PATH
15391    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15392    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15393    # ancient GNU ld didn't support --whole-archive et. al.
15394    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15395	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15396      else
15397  	whole_archive_flag_spec_F77=
15398    fi
15399    supports_anon_versioning=no
15400    case `$LD -v 2>/dev/null` in
15401      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15402      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15403      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15404      *\ 2.11.*) ;; # other 2.11 versions
15405      *) supports_anon_versioning=yes ;;
15406    esac
15407
15408    # See if GNU ld supports shared libraries.
15409    case $host_os in
15410    aix3* | aix4* | aix5*)
15411      # On AIX/PPC, the GNU linker is very broken
15412      if test "$host_cpu" != ia64; then
15413	ld_shlibs_F77=no
15414	cat <<EOF 1>&2
15415
15416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15417*** to be unable to reliably create shared libraries on AIX.
15418*** Therefore, libtool is disabling shared libraries support.  If you
15419*** really care for shared libraries, you may want to modify your PATH
15420*** so that a non-GNU linker is found, and then restart.
15421
15422EOF
15423      fi
15424      ;;
15425
15426    amigaos*)
15427      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)'
15428      hardcode_libdir_flag_spec_F77='-L$libdir'
15429      hardcode_minus_L_F77=yes
15430
15431      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15432      # that the semantics of dynamic libraries on AmigaOS, at least up
15433      # to version 4, is to share data among multiple programs linked
15434      # with the same dynamic library.  Since this doesn't match the
15435      # behavior of shared libraries on other platforms, we can't use
15436      # them.
15437      ld_shlibs_F77=no
15438      ;;
15439
15440    beos*)
15441      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15442	allow_undefined_flag_F77=unsupported
15443	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444	# support --undefined.  This deserves some investigation.  FIXME
15445	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446      else
15447	ld_shlibs_F77=no
15448      fi
15449      ;;
15450
15451    cygwin* | mingw* | pw32*)
15452      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15453      # as there is no search path for DLLs.
15454      hardcode_libdir_flag_spec_F77='-L$libdir'
15455      allow_undefined_flag_F77=unsupported
15456      always_export_symbols_F77=no
15457      enable_shared_with_static_runtimes_F77=yes
15458      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15459
15460      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15461        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15462	# If the export-symbols file already is a .def file (1st line
15463	# is EXPORTS), use it as is; otherwise, prepend...
15464	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465	  cp $export_symbols $output_objdir/$soname.def;
15466	else
15467	  echo EXPORTS > $output_objdir/$soname.def;
15468	  cat $export_symbols >> $output_objdir/$soname.def;
15469	fi~
15470	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15471      else
15472	ld_shlibs_F77=no
15473      fi
15474      ;;
15475
15476    interix3*)
15477      hardcode_direct_F77=no
15478      hardcode_shlibpath_var_F77=no
15479      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15480      export_dynamic_flag_spec_F77='${wl}-E'
15481      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15482      # Instead, shared libraries are loaded at an image base (0x10000000 by
15483      # default) and relocated if they conflict, which is a slow very memory
15484      # consuming and fragmenting process.  To avoid this, we pick a random,
15485      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15486      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15487      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'
15488      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'
15489      ;;
15490
15491    linux*)
15492      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15493	tmp_addflag=
15494	case $cc_basename,$host_cpu in
15495	pgcc*)				# Portland Group C compiler
15496	  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'
15497	  tmp_addflag=' $pic_flag'
15498	  ;;
15499	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15500	  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'
15501	  tmp_addflag=' $pic_flag -Mnomain' ;;
15502	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15503	  tmp_addflag=' -i_dynamic' ;;
15504	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15505	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15506	ifc* | ifort*)			# Intel Fortran compiler
15507	  tmp_addflag=' -nofor_main' ;;
15508	esac
15509	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510
15511	if test $supports_anon_versioning = yes; then
15512	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15513  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15514  $echo "local: *; };" >> $output_objdir/$libname.ver~
15515	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15516	fi
15517      else
15518	ld_shlibs_F77=no
15519      fi
15520      ;;
15521
15522    netbsd*)
15523      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15524	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15525	wlarc=
15526      else
15527	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529      fi
15530      ;;
15531
15532    solaris*)
15533      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15534	ld_shlibs_F77=no
15535	cat <<EOF 1>&2
15536
15537*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15538*** create shared libraries on Solaris systems.  Therefore, libtool
15539*** is disabling shared libraries support.  We urge you to upgrade GNU
15540*** binutils to release 2.9.1 or newer.  Another option is to modify
15541*** your PATH or compiler configuration so that the native linker is
15542*** used, and then restart.
15543
15544EOF
15545      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15546	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548      else
15549	ld_shlibs_F77=no
15550      fi
15551      ;;
15552
15553    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15554      case `$LD -v 2>&1` in
15555        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15556	ld_shlibs_F77=no
15557	cat <<_LT_EOF 1>&2
15558
15559*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15560*** reliably create shared libraries on SCO systems.  Therefore, libtool
15561*** is disabling shared libraries support.  We urge you to upgrade GNU
15562*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15563*** your PATH or compiler configuration so that the native linker is
15564*** used, and then restart.
15565
15566_LT_EOF
15567	;;
15568	*)
15569	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15570	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15571	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15572	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15573	  else
15574	    ld_shlibs_F77=no
15575	  fi
15576	;;
15577      esac
15578      ;;
15579
15580    sunos4*)
15581      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582      wlarc=
15583      hardcode_direct_F77=yes
15584      hardcode_shlibpath_var_F77=no
15585      ;;
15586
15587    *)
15588      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15591      else
15592	ld_shlibs_F77=no
15593      fi
15594      ;;
15595    esac
15596
15597    if test "$ld_shlibs_F77" = no; then
15598      runpath_var=
15599      hardcode_libdir_flag_spec_F77=
15600      export_dynamic_flag_spec_F77=
15601      whole_archive_flag_spec_F77=
15602    fi
15603  else
15604    # PORTME fill in a description of your system's linker (not GNU ld)
15605    case $host_os in
15606    aix3*)
15607      allow_undefined_flag_F77=unsupported
15608      always_export_symbols_F77=yes
15609      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'
15610      # Note: this linker hardcodes the directories in LIBPATH if there
15611      # are no directories specified by -L.
15612      hardcode_minus_L_F77=yes
15613      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15614	# Neither direct hardcoding nor static linking is supported with a
15615	# broken collect2.
15616	hardcode_direct_F77=unsupported
15617      fi
15618      ;;
15619
15620    aix4* | aix5*)
15621      if test "$host_cpu" = ia64; then
15622	# On IA64, the linker does run time linking by default, so we don't
15623	# have to do anything special.
15624	aix_use_runtimelinking=no
15625	exp_sym_flag='-Bexport'
15626	no_entry_flag=""
15627      else
15628	# If we're using GNU nm, then we don't want the "-C" option.
15629	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15630	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15631	  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'
15632	else
15633	  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'
15634	fi
15635	aix_use_runtimelinking=no
15636
15637	# Test if we are trying to use run time linking or normal
15638	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15639	# need to do runtime linking.
15640	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15641	  for ld_flag in $LDFLAGS; do
15642  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15643  	    aix_use_runtimelinking=yes
15644  	    break
15645  	  fi
15646	  done
15647	  ;;
15648	esac
15649
15650	exp_sym_flag='-bexport'
15651	no_entry_flag='-bnoentry'
15652      fi
15653
15654      # When large executables or shared objects are built, AIX ld can
15655      # have problems creating the table of contents.  If linking a library
15656      # or program results in "error TOC overflow" add -mminimal-toc to
15657      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15658      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15659
15660      archive_cmds_F77=''
15661      hardcode_direct_F77=yes
15662      hardcode_libdir_separator_F77=':'
15663      link_all_deplibs_F77=yes
15664
15665      if test "$GCC" = yes; then
15666	case $host_os in aix4.[012]|aix4.[012].*)
15667	# We only want to do this on AIX 4.2 and lower, the check
15668	# below for broken collect2 doesn't work under 4.3+
15669	  collect2name=`${CC} -print-prog-name=collect2`
15670	  if test -f "$collect2name" && \
15671  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15672	  then
15673  	  # We have reworked collect2
15674  	  hardcode_direct_F77=yes
15675	  else
15676  	  # We have old collect2
15677  	  hardcode_direct_F77=unsupported
15678  	  # It fails to find uninstalled libraries when the uninstalled
15679  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15680  	  # to unsupported forces relinking
15681  	  hardcode_minus_L_F77=yes
15682  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15683  	  hardcode_libdir_separator_F77=
15684	  fi
15685	  ;;
15686	esac
15687	shared_flag='-shared'
15688	if test "$aix_use_runtimelinking" = yes; then
15689	  shared_flag="$shared_flag "'${wl}-G'
15690	fi
15691      else
15692	# not using gcc
15693	if test "$host_cpu" = ia64; then
15694  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15695  	# chokes on -Wl,-G. The following line is correct:
15696	  shared_flag='-G'
15697	else
15698	  if test "$aix_use_runtimelinking" = yes; then
15699	    shared_flag='${wl}-G'
15700	  else
15701	    shared_flag='${wl}-bM:SRE'
15702	  fi
15703	fi
15704      fi
15705
15706      # It seems that -bexpall does not export symbols beginning with
15707      # underscore (_), so it is better to generate a list of symbols to export.
15708      always_export_symbols_F77=yes
15709      if test "$aix_use_runtimelinking" = yes; then
15710	# Warning - without using the other runtime loading flags (-brtl),
15711	# -berok will link without error, but may produce a broken library.
15712	allow_undefined_flag_F77='-berok'
15713       # Determine the default libpath from the value encoded in an empty executable.
15714       cat >conftest.$ac_ext <<_ACEOF
15715      program main
15716
15717      end
15718_ACEOF
15719rm -f conftest.$ac_objext conftest$ac_exeext
15720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721  (eval $ac_link) 2>conftest.er1
15722  ac_status=$?
15723  grep -v '^ *+' conftest.er1 >conftest.err
15724  rm -f conftest.er1
15725  cat conftest.err >&5
15726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727  (exit $ac_status); } &&
15728	 { ac_try='test -z "$ac_f77_werror_flag"
15729			 || test ! -s conftest.err'
15730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731  (eval $ac_try) 2>&5
15732  ac_status=$?
15733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734  (exit $ac_status); }; } &&
15735	 { ac_try='test -s conftest$ac_exeext'
15736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737  (eval $ac_try) 2>&5
15738  ac_status=$?
15739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740  (exit $ac_status); }; }; then
15741
15742aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15743}'`
15744# Check for a 64-bit object if we didn't find anything.
15745if 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; }
15746}'`; fi
15747else
15748  echo "$as_me: failed program was:" >&5
15749sed 's/^/| /' conftest.$ac_ext >&5
15750
15751fi
15752rm -f conftest.err conftest.$ac_objext \
15753      conftest$ac_exeext conftest.$ac_ext
15754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15755
15756       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15757	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"
15758       else
15759	if test "$host_cpu" = ia64; then
15760	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15761	  allow_undefined_flag_F77="-z nodefs"
15762	  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"
15763	else
15764	 # Determine the default libpath from the value encoded in an empty executable.
15765	 cat >conftest.$ac_ext <<_ACEOF
15766      program main
15767
15768      end
15769_ACEOF
15770rm -f conftest.$ac_objext conftest$ac_exeext
15771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772  (eval $ac_link) 2>conftest.er1
15773  ac_status=$?
15774  grep -v '^ *+' conftest.er1 >conftest.err
15775  rm -f conftest.er1
15776  cat conftest.err >&5
15777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778  (exit $ac_status); } &&
15779	 { ac_try='test -z "$ac_f77_werror_flag"
15780			 || test ! -s conftest.err'
15781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782  (eval $ac_try) 2>&5
15783  ac_status=$?
15784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785  (exit $ac_status); }; } &&
15786	 { ac_try='test -s conftest$ac_exeext'
15787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788  (eval $ac_try) 2>&5
15789  ac_status=$?
15790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); }; }; then
15792
15793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15794}'`
15795# Check for a 64-bit object if we didn't find anything.
15796if 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; }
15797}'`; fi
15798else
15799  echo "$as_me: failed program was:" >&5
15800sed 's/^/| /' conftest.$ac_ext >&5
15801
15802fi
15803rm -f conftest.err conftest.$ac_objext \
15804      conftest$ac_exeext conftest.$ac_ext
15805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15806
15807	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15808	  # Warning - without using the other run time loading flags,
15809	  # -berok will link without error, but may produce a broken library.
15810	  no_undefined_flag_F77=' ${wl}-bernotok'
15811	  allow_undefined_flag_F77=' ${wl}-berok'
15812	  # Exported symbols can be pulled into shared objects from archives
15813	  whole_archive_flag_spec_F77='$convenience'
15814	  archive_cmds_need_lc_F77=yes
15815	  # This is similar to how AIX traditionally builds its shared libraries.
15816	  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'
15817	fi
15818      fi
15819      ;;
15820
15821    amigaos*)
15822      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)'
15823      hardcode_libdir_flag_spec_F77='-L$libdir'
15824      hardcode_minus_L_F77=yes
15825      # see comment about different semantics on the GNU ld section
15826      ld_shlibs_F77=no
15827      ;;
15828
15829    bsdi[45]*)
15830      export_dynamic_flag_spec_F77=-rdynamic
15831      ;;
15832
15833    cygwin* | mingw* | pw32*)
15834      # When not using gcc, we currently assume that we are using
15835      # Microsoft Visual C++.
15836      # hardcode_libdir_flag_spec is actually meaningless, as there is
15837      # no search path for DLLs.
15838      hardcode_libdir_flag_spec_F77=' '
15839      allow_undefined_flag_F77=unsupported
15840      # Tell ltmain to make .lib files, not .a files.
15841      libext=lib
15842      # Tell ltmain to make .dll files, not .so files.
15843      shrext_cmds=".dll"
15844      # FIXME: Setting linknames here is a bad hack.
15845      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15846      # The linker will automatically build a .lib file if we build a DLL.
15847      old_archive_From_new_cmds_F77='true'
15848      # FIXME: Should let the user specify the lib program.
15849      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15850      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15851      enable_shared_with_static_runtimes_F77=yes
15852      ;;
15853
15854    darwin* | rhapsody*)
15855      case $host_os in
15856        rhapsody* | darwin1.[012])
15857         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15858         ;;
15859       *) # Darwin 1.3 on
15860         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15861           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15862         else
15863           case ${MACOSX_DEPLOYMENT_TARGET} in
15864             10.[012])
15865               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15866               ;;
15867             10.*)
15868               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15869               ;;
15870           esac
15871         fi
15872         ;;
15873      esac
15874      archive_cmds_need_lc_F77=no
15875      hardcode_direct_F77=no
15876      hardcode_automatic_F77=yes
15877      hardcode_shlibpath_var_F77=unsupported
15878      whole_archive_flag_spec_F77=''
15879      link_all_deplibs_F77=yes
15880    if test "$GCC" = yes ; then
15881    	output_verbose_link_cmd='echo'
15882        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15883      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15884      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15885      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}'
15886      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}'
15887    else
15888      case $cc_basename in
15889        xlc*)
15890         output_verbose_link_cmd='echo'
15891         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15892         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15893          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15894         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}'
15895          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}'
15896          ;;
15897       *)
15898         ld_shlibs_F77=no
15899          ;;
15900      esac
15901    fi
15902      ;;
15903
15904    dgux*)
15905      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906      hardcode_libdir_flag_spec_F77='-L$libdir'
15907      hardcode_shlibpath_var_F77=no
15908      ;;
15909
15910    freebsd1*)
15911      ld_shlibs_F77=no
15912      ;;
15913
15914    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15915    # support.  Future versions do this automatically, but an explicit c++rt0.o
15916    # does not break anything, and helps significantly (at the cost of a little
15917    # extra space).
15918    freebsd2.2*)
15919      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15920      hardcode_libdir_flag_spec_F77='-R$libdir'
15921      hardcode_direct_F77=yes
15922      hardcode_shlibpath_var_F77=no
15923      ;;
15924
15925    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15926    freebsd2*)
15927      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15928      hardcode_direct_F77=yes
15929      hardcode_minus_L_F77=yes
15930      hardcode_shlibpath_var_F77=no
15931      ;;
15932
15933    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15934    freebsd* | kfreebsd*-gnu | dragonfly*)
15935      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15936      hardcode_libdir_flag_spec_F77='-R$libdir'
15937      hardcode_direct_F77=yes
15938      hardcode_shlibpath_var_F77=no
15939      ;;
15940
15941    hpux9*)
15942      if test "$GCC" = yes; then
15943	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'
15944      else
15945	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'
15946      fi
15947      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15948      hardcode_libdir_separator_F77=:
15949      hardcode_direct_F77=yes
15950
15951      # hardcode_minus_L: Not really in the search PATH,
15952      # but as the default location of the library.
15953      hardcode_minus_L_F77=yes
15954      export_dynamic_flag_spec_F77='${wl}-E'
15955      ;;
15956
15957    hpux10*)
15958      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15959	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15960      else
15961	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15962      fi
15963      if test "$with_gnu_ld" = no; then
15964	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15965	hardcode_libdir_separator_F77=:
15966
15967	hardcode_direct_F77=yes
15968	export_dynamic_flag_spec_F77='${wl}-E'
15969
15970	# hardcode_minus_L: Not really in the search PATH,
15971	# but as the default location of the library.
15972	hardcode_minus_L_F77=yes
15973      fi
15974      ;;
15975
15976    hpux11*)
15977      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15978	case $host_cpu in
15979	hppa*64*)
15980	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15981	  ;;
15982	ia64*)
15983	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15984	  ;;
15985	*)
15986	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15987	  ;;
15988	esac
15989      else
15990	case $host_cpu in
15991	hppa*64*)
15992	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15993	  ;;
15994	ia64*)
15995	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15996	  ;;
15997	*)
15998	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15999	  ;;
16000	esac
16001      fi
16002      if test "$with_gnu_ld" = no; then
16003	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16004	hardcode_libdir_separator_F77=:
16005
16006	case $host_cpu in
16007	hppa*64*|ia64*)
16008	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16009	  hardcode_direct_F77=no
16010	  hardcode_shlibpath_var_F77=no
16011	  ;;
16012	*)
16013	  hardcode_direct_F77=yes
16014	  export_dynamic_flag_spec_F77='${wl}-E'
16015
16016	  # hardcode_minus_L: Not really in the search PATH,
16017	  # but as the default location of the library.
16018	  hardcode_minus_L_F77=yes
16019	  ;;
16020	esac
16021      fi
16022      ;;
16023
16024    irix5* | irix6* | nonstopux*)
16025      if test "$GCC" = yes; then
16026	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'
16027      else
16028	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'
16029	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16030      fi
16031      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16032      hardcode_libdir_separator_F77=:
16033      link_all_deplibs_F77=yes
16034      ;;
16035
16036    netbsd*)
16037      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16038	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16039      else
16040	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16041      fi
16042      hardcode_libdir_flag_spec_F77='-R$libdir'
16043      hardcode_direct_F77=yes
16044      hardcode_shlibpath_var_F77=no
16045      ;;
16046
16047    newsos6)
16048      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049      hardcode_direct_F77=yes
16050      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16051      hardcode_libdir_separator_F77=:
16052      hardcode_shlibpath_var_F77=no
16053      ;;
16054
16055    openbsd*)
16056      hardcode_direct_F77=yes
16057      hardcode_shlibpath_var_F77=no
16058      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16059	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16060	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16061	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16062	export_dynamic_flag_spec_F77='${wl}-E'
16063      else
16064       case $host_os in
16065	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16066	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16067	   hardcode_libdir_flag_spec_F77='-R$libdir'
16068	   ;;
16069	 *)
16070	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16071	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16072	   ;;
16073       esac
16074      fi
16075      ;;
16076
16077    os2*)
16078      hardcode_libdir_flag_spec_F77='-L$libdir'
16079      hardcode_minus_L_F77=yes
16080      allow_undefined_flag_F77=unsupported
16081      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'
16082      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16083      ;;
16084
16085    osf3*)
16086      if test "$GCC" = yes; then
16087	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16088	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'
16089      else
16090	allow_undefined_flag_F77=' -expect_unresolved \*'
16091	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'
16092      fi
16093      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16094      hardcode_libdir_separator_F77=:
16095      ;;
16096
16097    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16098      if test "$GCC" = yes; then
16099	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16100	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'
16101	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16102      else
16103	allow_undefined_flag_F77=' -expect_unresolved \*'
16104	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'
16105	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~
16106	$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'
16107
16108	# Both c and cxx compiler support -rpath directly
16109	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16110      fi
16111      hardcode_libdir_separator_F77=:
16112      ;;
16113
16114    solaris*)
16115      no_undefined_flag_F77=' -z text'
16116      if test "$GCC" = yes; then
16117	wlarc='${wl}'
16118	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16121      else
16122	wlarc=''
16123	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16125  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16126      fi
16127      hardcode_libdir_flag_spec_F77='-R$libdir'
16128      hardcode_shlibpath_var_F77=no
16129      case $host_os in
16130      solaris2.[0-5] | solaris2.[0-5].*) ;;
16131      *)
16132 	# The compiler driver will combine linker options so we
16133 	# cannot just pass the convience library names through
16134 	# without $wl, iff we do not link with $LD.
16135 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16136 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16137 	case $wlarc in
16138 	'')
16139 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16140 	*)
16141 	  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' ;;
16142 	esac ;;
16143      esac
16144      link_all_deplibs_F77=yes
16145      ;;
16146
16147    sunos4*)
16148      if test "x$host_vendor" = xsequent; then
16149	# Use $CC to link under sequent, because it throws in some extra .o
16150	# files that make .init and .fini sections work.
16151	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16152      else
16153	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16154      fi
16155      hardcode_libdir_flag_spec_F77='-L$libdir'
16156      hardcode_direct_F77=yes
16157      hardcode_minus_L_F77=yes
16158      hardcode_shlibpath_var_F77=no
16159      ;;
16160
16161    sysv4)
16162      case $host_vendor in
16163	sni)
16164	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165	  hardcode_direct_F77=yes # is this really true???
16166	;;
16167	siemens)
16168	  ## LD is ld it makes a PLAMLIB
16169	  ## CC just makes a GrossModule.
16170	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16171	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16172	  hardcode_direct_F77=no
16173        ;;
16174	motorola)
16175	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16177	;;
16178      esac
16179      runpath_var='LD_RUN_PATH'
16180      hardcode_shlibpath_var_F77=no
16181      ;;
16182
16183    sysv4.3*)
16184      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16185      hardcode_shlibpath_var_F77=no
16186      export_dynamic_flag_spec_F77='-Bexport'
16187      ;;
16188
16189    sysv4*MP*)
16190      if test -d /usr/nec; then
16191	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192	hardcode_shlibpath_var_F77=no
16193	runpath_var=LD_RUN_PATH
16194	hardcode_runpath_var=yes
16195	ld_shlibs_F77=yes
16196      fi
16197      ;;
16198
16199    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16200      no_undefined_flag_F77='${wl}-z,text'
16201      archive_cmds_need_lc_F77=no
16202      hardcode_shlibpath_var_F77=no
16203      runpath_var='LD_RUN_PATH'
16204
16205      if test "$GCC" = yes; then
16206	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16207	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16208      else
16209	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16211      fi
16212      ;;
16213
16214    sysv5* | sco3.2v5* | sco5v6*)
16215      # Note: We can NOT use -z defs as we might desire, because we do not
16216      # link with -lc, and that would cause any symbols used from libc to
16217      # always be unresolved, which means just about no library would
16218      # ever link correctly.  If we're not using GNU ld we use -z text
16219      # though, which does catch some bad symbols but isn't as heavy-handed
16220      # as -z defs.
16221      no_undefined_flag_F77='${wl}-z,text'
16222      allow_undefined_flag_F77='${wl}-z,nodefs'
16223      archive_cmds_need_lc_F77=no
16224      hardcode_shlibpath_var_F77=no
16225      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16226      hardcode_libdir_separator_F77=':'
16227      link_all_deplibs_F77=yes
16228      export_dynamic_flag_spec_F77='${wl}-Bexport'
16229      runpath_var='LD_RUN_PATH'
16230
16231      if test "$GCC" = yes; then
16232	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16234      else
16235	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16237      fi
16238      ;;
16239
16240    uts4*)
16241      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242      hardcode_libdir_flag_spec_F77='-L$libdir'
16243      hardcode_shlibpath_var_F77=no
16244      ;;
16245
16246    *)
16247      ld_shlibs_F77=no
16248      ;;
16249    esac
16250  fi
16251
16252echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16253echo "${ECHO_T}$ld_shlibs_F77" >&6
16254test "$ld_shlibs_F77" = no && can_build_shared=no
16255
16256#
16257# Do we need to explicitly link libc?
16258#
16259case "x$archive_cmds_need_lc_F77" in
16260x|xyes)
16261  # Assume -lc should be added
16262  archive_cmds_need_lc_F77=yes
16263
16264  if test "$enable_shared" = yes && test "$GCC" = yes; then
16265    case $archive_cmds_F77 in
16266    *'~'*)
16267      # FIXME: we may have to deal with multi-command sequences.
16268      ;;
16269    '$CC '*)
16270      # Test whether the compiler implicitly links with -lc since on some
16271      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16272      # to ld, don't add -lc before -lgcc.
16273      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16274echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16275      $rm conftest*
16276      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16277
16278      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279  (eval $ac_compile) 2>&5
16280  ac_status=$?
16281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282  (exit $ac_status); } 2>conftest.err; then
16283        soname=conftest
16284        lib=conftest
16285        libobjs=conftest.$ac_objext
16286        deplibs=
16287        wl=$lt_prog_compiler_wl_F77
16288	pic_flag=$lt_prog_compiler_pic_F77
16289        compiler_flags=-v
16290        linker_flags=-v
16291        verstring=
16292        output_objdir=.
16293        libname=conftest
16294        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16295        allow_undefined_flag_F77=
16296        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16297  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16298  ac_status=$?
16299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300  (exit $ac_status); }
16301        then
16302	  archive_cmds_need_lc_F77=no
16303        else
16304	  archive_cmds_need_lc_F77=yes
16305        fi
16306        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16307      else
16308        cat conftest.err 1>&5
16309      fi
16310      $rm conftest*
16311      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16312echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16313      ;;
16314    esac
16315  fi
16316  ;;
16317esac
16318
16319echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16320echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16321library_names_spec=
16322libname_spec='lib$name'
16323soname_spec=
16324shrext_cmds=".so"
16325postinstall_cmds=
16326postuninstall_cmds=
16327finish_cmds=
16328finish_eval=
16329shlibpath_var=
16330shlibpath_overrides_runpath=unknown
16331version_type=none
16332dynamic_linker="$host_os ld.so"
16333sys_lib_dlsearch_path_spec="/lib /usr/lib"
16334if test "$GCC" = yes; then
16335  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16336  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16337    # if the path contains ";" then we assume it to be the separator
16338    # otherwise default to the standard path separator (i.e. ":") - it is
16339    # assumed that no part of a normal pathname contains ";" but that should
16340    # okay in the real world where ";" in dirpaths is itself problematic.
16341    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16342  else
16343    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16344  fi
16345else
16346  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16347fi
16348need_lib_prefix=unknown
16349hardcode_into_libs=no
16350
16351# when you set need_version to no, make sure it does not cause -set_version
16352# flags to be left without arguments
16353need_version=unknown
16354
16355case $host_os in
16356aix3*)
16357  version_type=linux
16358  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16359  shlibpath_var=LIBPATH
16360
16361  # AIX 3 has no versioning support, so we append a major version to the name.
16362  soname_spec='${libname}${release}${shared_ext}$major'
16363  ;;
16364
16365aix4* | aix5*)
16366  version_type=linux
16367  need_lib_prefix=no
16368  need_version=no
16369  hardcode_into_libs=yes
16370  if test "$host_cpu" = ia64; then
16371    # AIX 5 supports IA64
16372    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16373    shlibpath_var=LD_LIBRARY_PATH
16374  else
16375    # With GCC up to 2.95.x, collect2 would create an import file
16376    # for dependence libraries.  The import file would start with
16377    # the line `#! .'.  This would cause the generated library to
16378    # depend on `.', always an invalid library.  This was fixed in
16379    # development snapshots of GCC prior to 3.0.
16380    case $host_os in
16381      aix4 | aix4.[01] | aix4.[01].*)
16382      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16383	   echo ' yes '
16384	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16385	:
16386      else
16387	can_build_shared=no
16388      fi
16389      ;;
16390    esac
16391    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16392    # soname into executable. Probably we can add versioning support to
16393    # collect2, so additional links can be useful in future.
16394    if test "$aix_use_runtimelinking" = yes; then
16395      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16396      # instead of lib<name>.a to let people know that these are not
16397      # typical AIX shared libraries.
16398      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399    else
16400      # We preserve .a as extension for shared libraries through AIX4.2
16401      # and later when we are not doing run time linking.
16402      library_names_spec='${libname}${release}.a $libname.a'
16403      soname_spec='${libname}${release}${shared_ext}$major'
16404    fi
16405    shlibpath_var=LIBPATH
16406  fi
16407  ;;
16408
16409amigaos*)
16410  library_names_spec='$libname.ixlibrary $libname.a'
16411  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16412  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'
16413  ;;
16414
16415beos*)
16416  library_names_spec='${libname}${shared_ext}'
16417  dynamic_linker="$host_os ld.so"
16418  shlibpath_var=LIBRARY_PATH
16419  ;;
16420
16421bsdi[45]*)
16422  version_type=linux
16423  need_version=no
16424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425  soname_spec='${libname}${release}${shared_ext}$major'
16426  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16427  shlibpath_var=LD_LIBRARY_PATH
16428  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16429  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16430  # the default ld.so.conf also contains /usr/contrib/lib and
16431  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16432  # libtool to hard-code these into programs
16433  ;;
16434
16435cygwin* | mingw* | pw32*)
16436  version_type=windows
16437  shrext_cmds=".dll"
16438  need_version=no
16439  need_lib_prefix=no
16440
16441  case $GCC,$host_os in
16442  yes,cygwin* | yes,mingw* | yes,pw32*)
16443    library_names_spec='$libname.dll.a'
16444    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16445    postinstall_cmds='base_file=`basename \${file}`~
16446      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16447      dldir=$destdir/`dirname \$dlpath`~
16448      test -d \$dldir || mkdir -p \$dldir~
16449      $install_prog $dir/$dlname \$dldir/$dlname~
16450      chmod a+x \$dldir/$dlname'
16451    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16452      dlpath=$dir/\$dldll~
16453       $rm \$dlpath'
16454    shlibpath_overrides_runpath=yes
16455
16456    case $host_os in
16457    cygwin*)
16458      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16459      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16461      ;;
16462    mingw*)
16463      # MinGW DLLs use traditional 'lib' prefix
16464      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16465      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16466      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16467        # It is most probably a Windows format PATH printed by
16468        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16469        # path with ; separators, and with drive letters. We can handle the
16470        # drive letters (cygwin fileutils understands them), so leave them,
16471        # especially as we might pass files found there to a mingw objdump,
16472        # which wouldn't understand a cygwinified path. Ahh.
16473        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16474      else
16475        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16476      fi
16477      ;;
16478    pw32*)
16479      # pw32 DLLs use 'pw' prefix rather than 'lib'
16480      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16481      ;;
16482    esac
16483    ;;
16484
16485  *)
16486    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16487    ;;
16488  esac
16489  dynamic_linker='Win32 ld.exe'
16490  # FIXME: first we should search . and the directory the executable is in
16491  shlibpath_var=PATH
16492  ;;
16493
16494darwin* | rhapsody*)
16495  dynamic_linker="$host_os dyld"
16496  version_type=darwin
16497  need_lib_prefix=no
16498  need_version=no
16499  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16500  soname_spec='${libname}${release}${major}$shared_ext'
16501  shlibpath_overrides_runpath=yes
16502  shlibpath_var=DYLD_LIBRARY_PATH
16503  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16504  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16505  if test "$GCC" = yes; then
16506    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"`
16507  else
16508    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16509  fi
16510  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16511  ;;
16512
16513dgux*)
16514  version_type=linux
16515  need_lib_prefix=no
16516  need_version=no
16517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16518  soname_spec='${libname}${release}${shared_ext}$major'
16519  shlibpath_var=LD_LIBRARY_PATH
16520  ;;
16521
16522freebsd1*)
16523  dynamic_linker=no
16524  ;;
16525
16526kfreebsd*-gnu)
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  shlibpath_overrides_runpath=no
16534  hardcode_into_libs=yes
16535  dynamic_linker='GNU ld.so'
16536  ;;
16537
16538freebsd* | dragonfly*)
16539  # DragonFly does not have aout.  When/if they implement a new
16540  # versioning mechanism, adjust this.
16541  if test -x /usr/bin/objformat; then
16542    objformat=`/usr/bin/objformat`
16543  else
16544    case $host_os in
16545    freebsd[123]*) objformat=aout ;;
16546    *) objformat=elf ;;
16547    esac
16548  fi
16549  version_type=freebsd-$objformat
16550  case $version_type in
16551    freebsd-elf*)
16552      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16553      need_version=no
16554      need_lib_prefix=no
16555      ;;
16556    freebsd-*)
16557      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16558      need_version=yes
16559      ;;
16560  esac
16561  shlibpath_var=LD_LIBRARY_PATH
16562  case $host_os in
16563  freebsd2*)
16564    shlibpath_overrides_runpath=yes
16565    ;;
16566  freebsd3.[01]* | freebsdelf3.[01]*)
16567    shlibpath_overrides_runpath=yes
16568    hardcode_into_libs=yes
16569    ;;
16570  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16571  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16572    shlibpath_overrides_runpath=no
16573    hardcode_into_libs=yes
16574    ;;
16575  freebsd*) # from 4.6 on
16576    shlibpath_overrides_runpath=yes
16577    hardcode_into_libs=yes
16578    ;;
16579  esac
16580  ;;
16581
16582gnu*)
16583  version_type=linux
16584  need_lib_prefix=no
16585  need_version=no
16586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16587  soname_spec='${libname}${release}${shared_ext}$major'
16588  shlibpath_var=LD_LIBRARY_PATH
16589  hardcode_into_libs=yes
16590  ;;
16591
16592hpux9* | hpux10* | hpux11*)
16593  # Give a soname corresponding to the major version so that dld.sl refuses to
16594  # link against other versions.
16595  version_type=sunos
16596  need_lib_prefix=no
16597  need_version=no
16598  case $host_cpu in
16599  ia64*)
16600    shrext_cmds='.so'
16601    hardcode_into_libs=yes
16602    dynamic_linker="$host_os dld.so"
16603    shlibpath_var=LD_LIBRARY_PATH
16604    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606    soname_spec='${libname}${release}${shared_ext}$major'
16607    if test "X$HPUX_IA64_MODE" = X32; then
16608      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16609    else
16610      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16611    fi
16612    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613    ;;
16614   hppa*64*)
16615     shrext_cmds='.sl'
16616     hardcode_into_libs=yes
16617     dynamic_linker="$host_os dld.sl"
16618     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621     soname_spec='${libname}${release}${shared_ext}$major'
16622     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624     ;;
16625   *)
16626    shrext_cmds='.sl'
16627    dynamic_linker="$host_os dld.sl"
16628    shlibpath_var=SHLIB_PATH
16629    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631    soname_spec='${libname}${release}${shared_ext}$major'
16632    ;;
16633  esac
16634  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16635  postinstall_cmds='chmod 555 $lib'
16636  ;;
16637
16638interix3*)
16639  version_type=linux
16640  need_lib_prefix=no
16641  need_version=no
16642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16643  soname_spec='${libname}${release}${shared_ext}$major'
16644  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16645  shlibpath_var=LD_LIBRARY_PATH
16646  shlibpath_overrides_runpath=no
16647  hardcode_into_libs=yes
16648  ;;
16649
16650irix5* | irix6* | nonstopux*)
16651  case $host_os in
16652    nonstopux*) version_type=nonstopux ;;
16653    *)
16654	if test "$lt_cv_prog_gnu_ld" = yes; then
16655		version_type=linux
16656	else
16657		version_type=irix
16658	fi ;;
16659  esac
16660  need_lib_prefix=no
16661  need_version=no
16662  soname_spec='${libname}${release}${shared_ext}$major'
16663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16664  case $host_os in
16665  irix5* | nonstopux*)
16666    libsuff= shlibsuff=
16667    ;;
16668  *)
16669    case $LD in # libtool.m4 will add one of these switches to LD
16670    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16671      libsuff= shlibsuff= libmagic=32-bit;;
16672    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16673      libsuff=32 shlibsuff=N32 libmagic=N32;;
16674    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16675      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16676    *) libsuff= shlibsuff= libmagic=never-match;;
16677    esac
16678    ;;
16679  esac
16680  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16681  shlibpath_overrides_runpath=no
16682  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16683  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16684  hardcode_into_libs=yes
16685  ;;
16686
16687# No shared lib support for Linux oldld, aout, or coff.
16688linux*oldld* | linux*aout* | linux*coff*)
16689  dynamic_linker=no
16690  ;;
16691
16692# This must be Linux ELF.
16693linux*)
16694  version_type=linux
16695  need_lib_prefix=no
16696  need_version=no
16697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698  soname_spec='${libname}${release}${shared_ext}$major'
16699  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16700  shlibpath_var=LD_LIBRARY_PATH
16701  shlibpath_overrides_runpath=no
16702  # This implies no fast_install, which is unacceptable.
16703  # Some rework will be needed to allow for fast_install
16704  # before this can be enabled.
16705  hardcode_into_libs=yes
16706
16707  # Append ld.so.conf contents to the search path
16708  if test -f /etc/ld.so.conf; then
16709    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' ' '`
16710    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16711  fi
16712
16713  # We used to test for /lib/ld.so.1 and disable shared libraries on
16714  # powerpc, because MkLinux only supported shared libraries with the
16715  # GNU dynamic linker.  Since this was broken with cross compilers,
16716  # most powerpc-linux boxes support dynamic linking these days and
16717  # people can always --disable-shared, the test was removed, and we
16718  # assume the GNU/Linux dynamic linker is in use.
16719  dynamic_linker='GNU/Linux ld.so'
16720  ;;
16721
16722knetbsd*-gnu)
16723  version_type=linux
16724  need_lib_prefix=no
16725  need_version=no
16726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16727  soname_spec='${libname}${release}${shared_ext}$major'
16728  shlibpath_var=LD_LIBRARY_PATH
16729  shlibpath_overrides_runpath=no
16730  hardcode_into_libs=yes
16731  dynamic_linker='GNU ld.so'
16732  ;;
16733
16734netbsd*)
16735  version_type=sunos
16736  need_lib_prefix=no
16737  need_version=no
16738  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16739    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16740    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16741    dynamic_linker='NetBSD (a.out) ld.so'
16742  else
16743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744    soname_spec='${libname}${release}${shared_ext}$major'
16745    dynamic_linker='NetBSD ld.elf_so'
16746  fi
16747  shlibpath_var=LD_LIBRARY_PATH
16748  shlibpath_overrides_runpath=yes
16749  hardcode_into_libs=yes
16750  ;;
16751
16752newsos6)
16753  version_type=linux
16754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16755  shlibpath_var=LD_LIBRARY_PATH
16756  shlibpath_overrides_runpath=yes
16757  ;;
16758
16759nto-qnx*)
16760  version_type=linux
16761  need_lib_prefix=no
16762  need_version=no
16763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764  soname_spec='${libname}${release}${shared_ext}$major'
16765  shlibpath_var=LD_LIBRARY_PATH
16766  shlibpath_overrides_runpath=yes
16767  ;;
16768
16769openbsd*)
16770  version_type=sunos
16771  sys_lib_dlsearch_path_spec="/usr/lib"
16772  need_lib_prefix=no
16773  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16774  case $host_os in
16775    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16776    *)                         need_version=no  ;;
16777  esac
16778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780  shlibpath_var=LD_LIBRARY_PATH
16781  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16782    case $host_os in
16783      openbsd2.[89] | openbsd2.[89].*)
16784	shlibpath_overrides_runpath=no
16785	;;
16786      *)
16787	shlibpath_overrides_runpath=yes
16788	;;
16789      esac
16790  else
16791    shlibpath_overrides_runpath=yes
16792  fi
16793  ;;
16794
16795os2*)
16796  libname_spec='$name'
16797  shrext_cmds=".dll"
16798  need_lib_prefix=no
16799  library_names_spec='$libname${shared_ext} $libname.a'
16800  dynamic_linker='OS/2 ld.exe'
16801  shlibpath_var=LIBPATH
16802  ;;
16803
16804osf3* | osf4* | osf5*)
16805  version_type=osf
16806  need_lib_prefix=no
16807  need_version=no
16808  soname_spec='${libname}${release}${shared_ext}$major'
16809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810  shlibpath_var=LD_LIBRARY_PATH
16811  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16812  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16813  ;;
16814
16815solaris*)
16816  version_type=linux
16817  need_lib_prefix=no
16818  need_version=no
16819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820  soname_spec='${libname}${release}${shared_ext}$major'
16821  shlibpath_var=LD_LIBRARY_PATH
16822  shlibpath_overrides_runpath=yes
16823  hardcode_into_libs=yes
16824  # ldd complains unless libraries are executable
16825  postinstall_cmds='chmod +x $lib'
16826  ;;
16827
16828sunos4*)
16829  version_type=sunos
16830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16831  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16832  shlibpath_var=LD_LIBRARY_PATH
16833  shlibpath_overrides_runpath=yes
16834  if test "$with_gnu_ld" = yes; then
16835    need_lib_prefix=no
16836  fi
16837  need_version=yes
16838  ;;
16839
16840sysv4 | sysv4.3*)
16841  version_type=linux
16842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843  soname_spec='${libname}${release}${shared_ext}$major'
16844  shlibpath_var=LD_LIBRARY_PATH
16845  case $host_vendor in
16846    sni)
16847      shlibpath_overrides_runpath=no
16848      need_lib_prefix=no
16849      export_dynamic_flag_spec='${wl}-Blargedynsym'
16850      runpath_var=LD_RUN_PATH
16851      ;;
16852    siemens)
16853      need_lib_prefix=no
16854      ;;
16855    motorola)
16856      need_lib_prefix=no
16857      need_version=no
16858      shlibpath_overrides_runpath=no
16859      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16860      ;;
16861  esac
16862  ;;
16863
16864sysv4*MP*)
16865  if test -d /usr/nec ;then
16866    version_type=linux
16867    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16868    soname_spec='$libname${shared_ext}.$major'
16869    shlibpath_var=LD_LIBRARY_PATH
16870  fi
16871  ;;
16872
16873sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16874  version_type=freebsd-elf
16875  need_lib_prefix=no
16876  need_version=no
16877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16878  soname_spec='${libname}${release}${shared_ext}$major'
16879  shlibpath_var=LD_LIBRARY_PATH
16880  hardcode_into_libs=yes
16881  if test "$with_gnu_ld" = yes; then
16882    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16883    shlibpath_overrides_runpath=no
16884  else
16885    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16886    shlibpath_overrides_runpath=yes
16887    case $host_os in
16888      sco3.2v5*)
16889        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16890	;;
16891    esac
16892  fi
16893  sys_lib_dlsearch_path_spec='/usr/lib'
16894  ;;
16895
16896uts4*)
16897  version_type=linux
16898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899  soname_spec='${libname}${release}${shared_ext}$major'
16900  shlibpath_var=LD_LIBRARY_PATH
16901  ;;
16902
16903*)
16904  dynamic_linker=no
16905  ;;
16906esac
16907echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16908echo "${ECHO_T}$dynamic_linker" >&6
16909test "$dynamic_linker" = no && can_build_shared=no
16910
16911variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16912if test "$GCC" = yes; then
16913  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16914fi
16915
16916echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16917echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16918hardcode_action_F77=
16919if test -n "$hardcode_libdir_flag_spec_F77" || \
16920   test -n "$runpath_var_F77" || \
16921   test "X$hardcode_automatic_F77" = "Xyes" ; then
16922
16923  # We can hardcode non-existant directories.
16924  if test "$hardcode_direct_F77" != no &&
16925     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16926     # have to relink, otherwise we might link with an installed library
16927     # when we should be linking with a yet-to-be-installed one
16928     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16929     test "$hardcode_minus_L_F77" != no; then
16930    # Linking always hardcodes the temporary library directory.
16931    hardcode_action_F77=relink
16932  else
16933    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16934    hardcode_action_F77=immediate
16935  fi
16936else
16937  # We cannot hardcode anything, or else we can only hardcode existing
16938  # directories.
16939  hardcode_action_F77=unsupported
16940fi
16941echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16942echo "${ECHO_T}$hardcode_action_F77" >&6
16943
16944if test "$hardcode_action_F77" = relink; then
16945  # Fast installation is not supported
16946  enable_fast_install=no
16947elif test "$shlibpath_overrides_runpath" = yes ||
16948     test "$enable_shared" = no; then
16949  # Fast installation is not necessary
16950  enable_fast_install=needless
16951fi
16952
16953
16954# The else clause should only fire when bootstrapping the
16955# libtool distribution, otherwise you forgot to ship ltmain.sh
16956# with your package, and you will get complaints that there are
16957# no rules to generate ltmain.sh.
16958if test -f "$ltmain"; then
16959  # See if we are running on zsh, and set the options which allow our commands through
16960  # without removal of \ escapes.
16961  if test -n "${ZSH_VERSION+set}" ; then
16962    setopt NO_GLOB_SUBST
16963  fi
16964  # Now quote all the things that may contain metacharacters while being
16965  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16966  # variables and quote the copies for generation of the libtool script.
16967  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16968    SED SHELL STRIP \
16969    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16970    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16971    deplibs_check_method reload_flag reload_cmds need_locks \
16972    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16973    lt_cv_sys_global_symbol_to_c_name_address \
16974    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16975    old_postinstall_cmds old_postuninstall_cmds \
16976    compiler_F77 \
16977    CC_F77 \
16978    LD_F77 \
16979    lt_prog_compiler_wl_F77 \
16980    lt_prog_compiler_pic_F77 \
16981    lt_prog_compiler_static_F77 \
16982    lt_prog_compiler_no_builtin_flag_F77 \
16983    export_dynamic_flag_spec_F77 \
16984    thread_safe_flag_spec_F77 \
16985    whole_archive_flag_spec_F77 \
16986    enable_shared_with_static_runtimes_F77 \
16987    old_archive_cmds_F77 \
16988    old_archive_from_new_cmds_F77 \
16989    predep_objects_F77 \
16990    postdep_objects_F77 \
16991    predeps_F77 \
16992    postdeps_F77 \
16993    compiler_lib_search_path_F77 \
16994    archive_cmds_F77 \
16995    archive_expsym_cmds_F77 \
16996    postinstall_cmds_F77 \
16997    postuninstall_cmds_F77 \
16998    old_archive_from_expsyms_cmds_F77 \
16999    allow_undefined_flag_F77 \
17000    no_undefined_flag_F77 \
17001    export_symbols_cmds_F77 \
17002    hardcode_libdir_flag_spec_F77 \
17003    hardcode_libdir_flag_spec_ld_F77 \
17004    hardcode_libdir_separator_F77 \
17005    hardcode_automatic_F77 \
17006    module_cmds_F77 \
17007    module_expsym_cmds_F77 \
17008    lt_cv_prog_compiler_c_o_F77 \
17009    exclude_expsyms_F77 \
17010    include_expsyms_F77; do
17011
17012    case $var in
17013    old_archive_cmds_F77 | \
17014    old_archive_from_new_cmds_F77 | \
17015    archive_cmds_F77 | \
17016    archive_expsym_cmds_F77 | \
17017    module_cmds_F77 | \
17018    module_expsym_cmds_F77 | \
17019    old_archive_from_expsyms_cmds_F77 | \
17020    export_symbols_cmds_F77 | \
17021    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17022    postinstall_cmds | postuninstall_cmds | \
17023    old_postinstall_cmds | old_postuninstall_cmds | \
17024    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17025      # Double-quote double-evaled strings.
17026      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17027      ;;
17028    *)
17029      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17030      ;;
17031    esac
17032  done
17033
17034  case $lt_echo in
17035  *'\$0 --fallback-echo"')
17036    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17037    ;;
17038  esac
17039
17040cfgfile="$ofile"
17041
17042  cat <<__EOF__ >> "$cfgfile"
17043# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17044
17045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17046
17047# Shell to use when invoking shell scripts.
17048SHELL=$lt_SHELL
17049
17050# Whether or not to build shared libraries.
17051build_libtool_libs=$enable_shared
17052
17053# Whether or not to build static libraries.
17054build_old_libs=$enable_static
17055
17056# Whether or not to add -lc for building shared libraries.
17057build_libtool_need_lc=$archive_cmds_need_lc_F77
17058
17059# Whether or not to disallow shared libs when runtime libs are static
17060allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17061
17062# Whether or not to optimize for fast installation.
17063fast_install=$enable_fast_install
17064
17065# The host system.
17066host_alias=$host_alias
17067host=$host
17068host_os=$host_os
17069
17070# The build system.
17071build_alias=$build_alias
17072build=$build
17073build_os=$build_os
17074
17075# An echo program that does not interpret backslashes.
17076echo=$lt_echo
17077
17078# The archiver.
17079AR=$lt_AR
17080AR_FLAGS=$lt_AR_FLAGS
17081
17082# A C compiler.
17083LTCC=$lt_LTCC
17084
17085# LTCC compiler flags.
17086LTCFLAGS=$lt_LTCFLAGS
17087
17088# A language-specific compiler.
17089CC=$lt_compiler_F77
17090
17091# Is the compiler the GNU C compiler?
17092with_gcc=$GCC_F77
17093
17094# An ERE matcher.
17095EGREP=$lt_EGREP
17096
17097# The linker used to build libraries.
17098LD=$lt_LD_F77
17099
17100# Whether we need hard or soft links.
17101LN_S=$lt_LN_S
17102
17103# A BSD-compatible nm program.
17104NM=$lt_NM
17105
17106# A symbol stripping program
17107STRIP=$lt_STRIP
17108
17109# Used to examine libraries when file_magic_cmd begins "file"
17110MAGIC_CMD=$MAGIC_CMD
17111
17112# Used on cygwin: DLL creation program.
17113DLLTOOL="$DLLTOOL"
17114
17115# Used on cygwin: object dumper.
17116OBJDUMP="$OBJDUMP"
17117
17118# Used on cygwin: assembler.
17119AS="$AS"
17120
17121# The name of the directory that contains temporary libtool files.
17122objdir=$objdir
17123
17124# How to create reloadable object files.
17125reload_flag=$lt_reload_flag
17126reload_cmds=$lt_reload_cmds
17127
17128# How to pass a linker flag through the compiler.
17129wl=$lt_lt_prog_compiler_wl_F77
17130
17131# Object file suffix (normally "o").
17132objext="$ac_objext"
17133
17134# Old archive suffix (normally "a").
17135libext="$libext"
17136
17137# Shared library suffix (normally ".so").
17138shrext_cmds='$shrext_cmds'
17139
17140# Executable file suffix (normally "").
17141exeext="$exeext"
17142
17143# Additional compiler flags for building library objects.
17144pic_flag=$lt_lt_prog_compiler_pic_F77
17145pic_mode=$pic_mode
17146
17147# What is the maximum length of a command?
17148max_cmd_len=$lt_cv_sys_max_cmd_len
17149
17150# Does compiler simultaneously support -c and -o options?
17151compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17152
17153# Must we lock files when doing compilation?
17154need_locks=$lt_need_locks
17155
17156# Do we need the lib prefix for modules?
17157need_lib_prefix=$need_lib_prefix
17158
17159# Do we need a version for libraries?
17160need_version=$need_version
17161
17162# Whether dlopen is supported.
17163dlopen_support=$enable_dlopen
17164
17165# Whether dlopen of programs is supported.
17166dlopen_self=$enable_dlopen_self
17167
17168# Whether dlopen of statically linked programs is supported.
17169dlopen_self_static=$enable_dlopen_self_static
17170
17171# Compiler flag to prevent dynamic linking.
17172link_static_flag=$lt_lt_prog_compiler_static_F77
17173
17174# Compiler flag to turn off builtin functions.
17175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17176
17177# Compiler flag to allow reflexive dlopens.
17178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17179
17180# Compiler flag to generate shared objects directly from archives.
17181whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17182
17183# Compiler flag to generate thread-safe objects.
17184thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17185
17186# Library versioning type.
17187version_type=$version_type
17188
17189# Format of library name prefix.
17190libname_spec=$lt_libname_spec
17191
17192# List of archive names.  First name is the real one, the rest are links.
17193# The last name is the one that the linker finds with -lNAME.
17194library_names_spec=$lt_library_names_spec
17195
17196# The coded name of the library, if different from the real name.
17197soname_spec=$lt_soname_spec
17198
17199# Commands used to build and install an old-style archive.
17200RANLIB=$lt_RANLIB
17201old_archive_cmds=$lt_old_archive_cmds_F77
17202old_postinstall_cmds=$lt_old_postinstall_cmds
17203old_postuninstall_cmds=$lt_old_postuninstall_cmds
17204
17205# Create an old-style archive from a shared archive.
17206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17207
17208# Create a temporary old-style archive to link instead of a shared archive.
17209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17210
17211# Commands used to build and install a shared archive.
17212archive_cmds=$lt_archive_cmds_F77
17213archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17214postinstall_cmds=$lt_postinstall_cmds
17215postuninstall_cmds=$lt_postuninstall_cmds
17216
17217# Commands used to build a loadable module (assumed same as above if empty)
17218module_cmds=$lt_module_cmds_F77
17219module_expsym_cmds=$lt_module_expsym_cmds_F77
17220
17221# Commands to strip libraries.
17222old_striplib=$lt_old_striplib
17223striplib=$lt_striplib
17224
17225# Dependencies to place before the objects being linked to create a
17226# shared library.
17227predep_objects=$lt_predep_objects_F77
17228
17229# Dependencies to place after the objects being linked to create a
17230# shared library.
17231postdep_objects=$lt_postdep_objects_F77
17232
17233# Dependencies to place before the objects being linked to create a
17234# shared library.
17235predeps=$lt_predeps_F77
17236
17237# Dependencies to place after the objects being linked to create a
17238# shared library.
17239postdeps=$lt_postdeps_F77
17240
17241# The library search path used internally by the compiler when linking
17242# a shared library.
17243compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17244
17245# Method to check whether dependent libraries are shared objects.
17246deplibs_check_method=$lt_deplibs_check_method
17247
17248# Command to use when deplibs_check_method == file_magic.
17249file_magic_cmd=$lt_file_magic_cmd
17250
17251# Flag that allows shared libraries with undefined symbols to be built.
17252allow_undefined_flag=$lt_allow_undefined_flag_F77
17253
17254# Flag that forces no undefined symbols.
17255no_undefined_flag=$lt_no_undefined_flag_F77
17256
17257# Commands used to finish a libtool library installation in a directory.
17258finish_cmds=$lt_finish_cmds
17259
17260# Same as above, but a single script fragment to be evaled but not shown.
17261finish_eval=$lt_finish_eval
17262
17263# Take the output of nm and produce a listing of raw symbols and C names.
17264global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17265
17266# Transform the output of nm in a proper C declaration
17267global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17268
17269# Transform the output of nm in a C name address pair
17270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17271
17272# This is the shared library runtime path variable.
17273runpath_var=$runpath_var
17274
17275# This is the shared library path variable.
17276shlibpath_var=$shlibpath_var
17277
17278# Is shlibpath searched before the hard-coded library search path?
17279shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17280
17281# How to hardcode a shared library path into an executable.
17282hardcode_action=$hardcode_action_F77
17283
17284# Whether we should hardcode library paths into libraries.
17285hardcode_into_libs=$hardcode_into_libs
17286
17287# Flag to hardcode \$libdir into a binary during linking.
17288# This must work even if \$libdir does not exist.
17289hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17290
17291# If ld is used when linking, flag to hardcode \$libdir into
17292# a binary during linking. This must work even if \$libdir does
17293# not exist.
17294hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17295
17296# Whether we need a single -rpath flag with a separated argument.
17297hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17298
17299# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17300# resulting binary.
17301hardcode_direct=$hardcode_direct_F77
17302
17303# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17304# resulting binary.
17305hardcode_minus_L=$hardcode_minus_L_F77
17306
17307# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17308# the resulting binary.
17309hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17310
17311# Set to yes if building a shared library automatically hardcodes DIR into the library
17312# and all subsequent libraries and executables linked against it.
17313hardcode_automatic=$hardcode_automatic_F77
17314
17315# Variables whose values should be saved in libtool wrapper scripts and
17316# restored at relink time.
17317variables_saved_for_relink="$variables_saved_for_relink"
17318
17319# Whether libtool must link a program against all its dependency libraries.
17320link_all_deplibs=$link_all_deplibs_F77
17321
17322# Compile-time system search path for libraries
17323sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17324
17325# Run-time system search path for libraries
17326sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17327
17328# Fix the shell variable \$srcfile for the compiler.
17329fix_srcfile_path="$fix_srcfile_path_F77"
17330
17331# Set to yes if exported symbols are required.
17332always_export_symbols=$always_export_symbols_F77
17333
17334# The commands to list exported symbols.
17335export_symbols_cmds=$lt_export_symbols_cmds_F77
17336
17337# The commands to extract the exported symbol list from a shared archive.
17338extract_expsyms_cmds=$lt_extract_expsyms_cmds
17339
17340# Symbols that should not be listed in the preloaded symbols.
17341exclude_expsyms=$lt_exclude_expsyms_F77
17342
17343# Symbols that must always be exported.
17344include_expsyms=$lt_include_expsyms_F77
17345
17346# ### END LIBTOOL TAG CONFIG: $tagname
17347
17348__EOF__
17349
17350
17351else
17352  # If there is no Makefile yet, we rely on a make rule to execute
17353  # `config.status --recheck' to rerun these tests and create the
17354  # libtool script then.
17355  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17356  if test -f "$ltmain_in"; then
17357    test -f Makefile && make "$ltmain"
17358  fi
17359fi
17360
17361
17362ac_ext=c
17363ac_cpp='$CPP $CPPFLAGS'
17364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366ac_compiler_gnu=$ac_cv_c_compiler_gnu
17367
17368CC="$lt_save_CC"
17369
17370	else
17371	  tagname=""
17372	fi
17373	;;
17374
17375      GCJ)
17376	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17377
17378
17379
17380# Source file extension for Java test sources.
17381ac_ext=java
17382
17383# Object file extension for compiled Java test sources.
17384objext=o
17385objext_GCJ=$objext
17386
17387# Code to be used in simple compile tests
17388lt_simple_compile_test_code="class foo {}\n"
17389
17390# Code to be used in simple link tests
17391lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17392
17393# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17394
17395# If no C compiler was specified, use CC.
17396LTCC=${LTCC-"$CC"}
17397
17398# If no C compiler flags were specified, use CFLAGS.
17399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17400
17401# Allow CC to be a program name with arguments.
17402compiler=$CC
17403
17404
17405# save warnings/boilerplate of simple test code
17406ac_outfile=conftest.$ac_objext
17407printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17408eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17409_lt_compiler_boilerplate=`cat conftest.err`
17410$rm conftest*
17411
17412ac_outfile=conftest.$ac_objext
17413printf "$lt_simple_link_test_code" >conftest.$ac_ext
17414eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17415_lt_linker_boilerplate=`cat conftest.err`
17416$rm conftest*
17417
17418
17419# Allow CC to be a program name with arguments.
17420lt_save_CC="$CC"
17421CC=${GCJ-"gcj"}
17422compiler=$CC
17423compiler_GCJ=$CC
17424for cc_temp in $compiler""; do
17425  case $cc_temp in
17426    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17427    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17428    \-*) ;;
17429    *) break;;
17430  esac
17431done
17432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17433
17434
17435# GCJ did not exist at the time GCC didn't implicitly link libc in.
17436archive_cmds_need_lc_GCJ=no
17437
17438old_archive_cmds_GCJ=$old_archive_cmds
17439
17440## CAVEAT EMPTOR:
17441## There is no encapsulation within the following macros, do not change
17442## the running order or otherwise move them around unless you know exactly
17443## what you are doing...
17444
17445lt_prog_compiler_no_builtin_flag_GCJ=
17446
17447if test "$GCC" = yes; then
17448  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17449
17450
17451echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17452echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17454  echo $ECHO_N "(cached) $ECHO_C" >&6
17455else
17456  lt_cv_prog_compiler_rtti_exceptions=no
17457  ac_outfile=conftest.$ac_objext
17458   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17459   lt_compiler_flag="-fno-rtti -fno-exceptions"
17460   # Insert the option either (1) after the last *FLAGS variable, or
17461   # (2) before a word containing "conftest.", or (3) at the end.
17462   # Note that $ac_compile itself does not contain backslashes and begins
17463   # with a dollar sign (not a hyphen), so the echo should work correctly.
17464   # The option is referenced via a variable to avoid confusing sed.
17465   lt_compile=`echo "$ac_compile" | $SED \
17466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17468   -e 's:$: $lt_compiler_flag:'`
17469   (eval echo "\"\$as_me:17469: $lt_compile\"" >&5)
17470   (eval "$lt_compile" 2>conftest.err)
17471   ac_status=$?
17472   cat conftest.err >&5
17473   echo "$as_me:17473: \$? = $ac_status" >&5
17474   if (exit $ac_status) && test -s "$ac_outfile"; then
17475     # The compiler can only warn and ignore the option if not recognized
17476     # So say no if there are warnings other than the usual output.
17477     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17478     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17479     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17480       lt_cv_prog_compiler_rtti_exceptions=yes
17481     fi
17482   fi
17483   $rm conftest*
17484
17485fi
17486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17487echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17488
17489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17490    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17491else
17492    :
17493fi
17494
17495fi
17496
17497lt_prog_compiler_wl_GCJ=
17498lt_prog_compiler_pic_GCJ=
17499lt_prog_compiler_static_GCJ=
17500
17501echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17502echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17503
17504  if test "$GCC" = yes; then
17505    lt_prog_compiler_wl_GCJ='-Wl,'
17506    lt_prog_compiler_static_GCJ='-static'
17507
17508    case $host_os in
17509      aix*)
17510      # All AIX code is PIC.
17511      if test "$host_cpu" = ia64; then
17512	# AIX 5 now supports IA64 processor
17513	lt_prog_compiler_static_GCJ='-Bstatic'
17514      fi
17515      ;;
17516
17517    amigaos*)
17518      # FIXME: we need at least 68020 code to build shared libraries, but
17519      # adding the `-m68020' flag to GCC prevents building anything better,
17520      # like `-m68040'.
17521      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17522      ;;
17523
17524    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17525      # PIC is the default for these OSes.
17526      ;;
17527
17528    mingw* | pw32* | os2*)
17529      # This hack is so that the source file can tell whether it is being
17530      # built for inclusion in a dll (and should export symbols for example).
17531      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17532      ;;
17533
17534    darwin* | rhapsody*)
17535      # PIC is the default on this platform
17536      # Common symbols not allowed in MH_DYLIB files
17537      lt_prog_compiler_pic_GCJ='-fno-common'
17538      ;;
17539
17540    interix3*)
17541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17542      # Instead, we relocate shared libraries at runtime.
17543      ;;
17544
17545    msdosdjgpp*)
17546      # Just because we use GCC doesn't mean we suddenly get shared libraries
17547      # on systems that don't support them.
17548      lt_prog_compiler_can_build_shared_GCJ=no
17549      enable_shared=no
17550      ;;
17551
17552    sysv4*MP*)
17553      if test -d /usr/nec; then
17554	lt_prog_compiler_pic_GCJ=-Kconform_pic
17555      fi
17556      ;;
17557
17558    hpux*)
17559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17560      # not for PA HP-UX.
17561      case $host_cpu in
17562      hppa*64*|ia64*)
17563	# +Z the default
17564	;;
17565      *)
17566	lt_prog_compiler_pic_GCJ='-fPIC'
17567	;;
17568      esac
17569      ;;
17570
17571    *)
17572      lt_prog_compiler_pic_GCJ='-fPIC'
17573      ;;
17574    esac
17575  else
17576    # PORTME Check for flag to pass linker flags through the system compiler.
17577    case $host_os in
17578    aix*)
17579      lt_prog_compiler_wl_GCJ='-Wl,'
17580      if test "$host_cpu" = ia64; then
17581	# AIX 5 now supports IA64 processor
17582	lt_prog_compiler_static_GCJ='-Bstatic'
17583      else
17584	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17585      fi
17586      ;;
17587      darwin*)
17588        # PIC is the default on this platform
17589        # Common symbols not allowed in MH_DYLIB files
17590       case $cc_basename in
17591         xlc*)
17592         lt_prog_compiler_pic_GCJ='-qnocommon'
17593         lt_prog_compiler_wl_GCJ='-Wl,'
17594         ;;
17595       esac
17596       ;;
17597
17598    mingw* | pw32* | os2*)
17599      # This hack is so that the source file can tell whether it is being
17600      # built for inclusion in a dll (and should export symbols for example).
17601      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17602      ;;
17603
17604    hpux9* | hpux10* | hpux11*)
17605      lt_prog_compiler_wl_GCJ='-Wl,'
17606      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17607      # not for PA HP-UX.
17608      case $host_cpu in
17609      hppa*64*|ia64*)
17610	# +Z the default
17611	;;
17612      *)
17613	lt_prog_compiler_pic_GCJ='+Z'
17614	;;
17615      esac
17616      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17617      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17618      ;;
17619
17620    irix5* | irix6* | nonstopux*)
17621      lt_prog_compiler_wl_GCJ='-Wl,'
17622      # PIC (with -KPIC) is the default.
17623      lt_prog_compiler_static_GCJ='-non_shared'
17624      ;;
17625
17626    newsos6)
17627      lt_prog_compiler_pic_GCJ='-KPIC'
17628      lt_prog_compiler_static_GCJ='-Bstatic'
17629      ;;
17630
17631    linux*)
17632      case $cc_basename in
17633      icc* | ecc*)
17634	lt_prog_compiler_wl_GCJ='-Wl,'
17635	lt_prog_compiler_pic_GCJ='-KPIC'
17636	lt_prog_compiler_static_GCJ='-static'
17637        ;;
17638      pgcc* | pgf77* | pgf90* | pgf95*)
17639        # Portland Group compilers (*not* the Pentium gcc compiler,
17640	# which looks to be a dead project)
17641	lt_prog_compiler_wl_GCJ='-Wl,'
17642	lt_prog_compiler_pic_GCJ='-fpic'
17643	lt_prog_compiler_static_GCJ='-Bstatic'
17644        ;;
17645      ccc*)
17646        lt_prog_compiler_wl_GCJ='-Wl,'
17647        # All Alpha code is PIC.
17648        lt_prog_compiler_static_GCJ='-non_shared'
17649        ;;
17650      esac
17651      ;;
17652
17653    osf3* | osf4* | osf5*)
17654      lt_prog_compiler_wl_GCJ='-Wl,'
17655      # All OSF/1 code is PIC.
17656      lt_prog_compiler_static_GCJ='-non_shared'
17657      ;;
17658
17659    solaris*)
17660      lt_prog_compiler_pic_GCJ='-KPIC'
17661      lt_prog_compiler_static_GCJ='-Bstatic'
17662      case $cc_basename in
17663      f77* | f90* | f95*)
17664	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17665      *)
17666	lt_prog_compiler_wl_GCJ='-Wl,';;
17667      esac
17668      ;;
17669
17670    sunos4*)
17671      lt_prog_compiler_wl_GCJ='-Qoption ld '
17672      lt_prog_compiler_pic_GCJ='-PIC'
17673      lt_prog_compiler_static_GCJ='-Bstatic'
17674      ;;
17675
17676    sysv4 | sysv4.2uw2* | sysv4.3*)
17677      lt_prog_compiler_wl_GCJ='-Wl,'
17678      lt_prog_compiler_pic_GCJ='-KPIC'
17679      lt_prog_compiler_static_GCJ='-Bstatic'
17680      ;;
17681
17682    sysv4*MP*)
17683      if test -d /usr/nec ;then
17684	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17685	lt_prog_compiler_static_GCJ='-Bstatic'
17686      fi
17687      ;;
17688
17689    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17690      lt_prog_compiler_wl_GCJ='-Wl,'
17691      lt_prog_compiler_pic_GCJ='-KPIC'
17692      lt_prog_compiler_static_GCJ='-Bstatic'
17693      ;;
17694
17695    unicos*)
17696      lt_prog_compiler_wl_GCJ='-Wl,'
17697      lt_prog_compiler_can_build_shared_GCJ=no
17698      ;;
17699
17700    uts4*)
17701      lt_prog_compiler_pic_GCJ='-pic'
17702      lt_prog_compiler_static_GCJ='-Bstatic'
17703      ;;
17704
17705    *)
17706      lt_prog_compiler_can_build_shared_GCJ=no
17707      ;;
17708    esac
17709  fi
17710
17711echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17712echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17713
17714#
17715# Check to make sure the PIC flag actually works.
17716#
17717if test -n "$lt_prog_compiler_pic_GCJ"; then
17718
17719echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17721if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17722  echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724  lt_prog_compiler_pic_works_GCJ=no
17725  ac_outfile=conftest.$ac_objext
17726   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17727   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17728   # Insert the option either (1) after the last *FLAGS variable, or
17729   # (2) before a word containing "conftest.", or (3) at the end.
17730   # Note that $ac_compile itself does not contain backslashes and begins
17731   # with a dollar sign (not a hyphen), so the echo should work correctly.
17732   # The option is referenced via a variable to avoid confusing sed.
17733   lt_compile=`echo "$ac_compile" | $SED \
17734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17736   -e 's:$: $lt_compiler_flag:'`
17737   (eval echo "\"\$as_me:17737: $lt_compile\"" >&5)
17738   (eval "$lt_compile" 2>conftest.err)
17739   ac_status=$?
17740   cat conftest.err >&5
17741   echo "$as_me:17741: \$? = $ac_status" >&5
17742   if (exit $ac_status) && test -s "$ac_outfile"; then
17743     # The compiler can only warn and ignore the option if not recognized
17744     # So say no if there are warnings other than the usual output.
17745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17748       lt_prog_compiler_pic_works_GCJ=yes
17749     fi
17750   fi
17751   $rm conftest*
17752
17753fi
17754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17755echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17756
17757if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17758    case $lt_prog_compiler_pic_GCJ in
17759     "" | " "*) ;;
17760     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17761     esac
17762else
17763    lt_prog_compiler_pic_GCJ=
17764     lt_prog_compiler_can_build_shared_GCJ=no
17765fi
17766
17767fi
17768case $host_os in
17769  # For platforms which do not support PIC, -DPIC is meaningless:
17770  *djgpp*)
17771    lt_prog_compiler_pic_GCJ=
17772    ;;
17773  *)
17774    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17775    ;;
17776esac
17777
17778#
17779# Check to make sure the static flag actually works.
17780#
17781wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17782echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17784if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17785  echo $ECHO_N "(cached) $ECHO_C" >&6
17786else
17787  lt_prog_compiler_static_works_GCJ=no
17788   save_LDFLAGS="$LDFLAGS"
17789   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17790   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17792     # The linker can only warn and ignore the option if not recognized
17793     # So say no if there are warnings
17794     if test -s conftest.err; then
17795       # Append any errors to the config.log.
17796       cat conftest.err 1>&5
17797       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17799       if diff conftest.exp conftest.er2 >/dev/null; then
17800         lt_prog_compiler_static_works_GCJ=yes
17801       fi
17802     else
17803       lt_prog_compiler_static_works_GCJ=yes
17804     fi
17805   fi
17806   $rm conftest*
17807   LDFLAGS="$save_LDFLAGS"
17808
17809fi
17810echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17811echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17812
17813if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17814    :
17815else
17816    lt_prog_compiler_static_GCJ=
17817fi
17818
17819
17820echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17822if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17823  echo $ECHO_N "(cached) $ECHO_C" >&6
17824else
17825  lt_cv_prog_compiler_c_o_GCJ=no
17826   $rm -r conftest 2>/dev/null
17827   mkdir conftest
17828   cd conftest
17829   mkdir out
17830   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17831
17832   lt_compiler_flag="-o out/conftest2.$ac_objext"
17833   # Insert the option either (1) after the last *FLAGS variable, or
17834   # (2) before a word containing "conftest.", or (3) at the end.
17835   # Note that $ac_compile itself does not contain backslashes and begins
17836   # with a dollar sign (not a hyphen), so the echo should work correctly.
17837   lt_compile=`echo "$ac_compile" | $SED \
17838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17840   -e 's:$: $lt_compiler_flag:'`
17841   (eval echo "\"\$as_me:17841: $lt_compile\"" >&5)
17842   (eval "$lt_compile" 2>out/conftest.err)
17843   ac_status=$?
17844   cat out/conftest.err >&5
17845   echo "$as_me:17845: \$? = $ac_status" >&5
17846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17847   then
17848     # The compiler can only warn and ignore the option if not recognized
17849     # So say no if there are warnings
17850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17853       lt_cv_prog_compiler_c_o_GCJ=yes
17854     fi
17855   fi
17856   chmod u+w . 2>&5
17857   $rm conftest*
17858   # SGI C++ compiler will create directory out/ii_files/ for
17859   # template instantiation
17860   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17861   $rm out/* && rmdir out
17862   cd ..
17863   rmdir conftest
17864   $rm conftest*
17865
17866fi
17867echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17868echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17869
17870
17871hard_links="nottested"
17872if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17873  # do not overwrite the value of need_locks provided by the user
17874  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17876  hard_links=yes
17877  $rm conftest*
17878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17879  touch conftest.a
17880  ln conftest.a conftest.b 2>&5 || hard_links=no
17881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17882  echo "$as_me:$LINENO: result: $hard_links" >&5
17883echo "${ECHO_T}$hard_links" >&6
17884  if test "$hard_links" = no; then
17885    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17887    need_locks=warn
17888  fi
17889else
17890  need_locks=no
17891fi
17892
17893echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17895
17896  runpath_var=
17897  allow_undefined_flag_GCJ=
17898  enable_shared_with_static_runtimes_GCJ=no
17899  archive_cmds_GCJ=
17900  archive_expsym_cmds_GCJ=
17901  old_archive_From_new_cmds_GCJ=
17902  old_archive_from_expsyms_cmds_GCJ=
17903  export_dynamic_flag_spec_GCJ=
17904  whole_archive_flag_spec_GCJ=
17905  thread_safe_flag_spec_GCJ=
17906  hardcode_libdir_flag_spec_GCJ=
17907  hardcode_libdir_flag_spec_ld_GCJ=
17908  hardcode_libdir_separator_GCJ=
17909  hardcode_direct_GCJ=no
17910  hardcode_minus_L_GCJ=no
17911  hardcode_shlibpath_var_GCJ=unsupported
17912  link_all_deplibs_GCJ=unknown
17913  hardcode_automatic_GCJ=no
17914  module_cmds_GCJ=
17915  module_expsym_cmds_GCJ=
17916  always_export_symbols_GCJ=no
17917  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17918  # include_expsyms should be a list of space-separated symbols to be *always*
17919  # included in the symbol list
17920  include_expsyms_GCJ=
17921  # exclude_expsyms can be an extended regexp of symbols to exclude
17922  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17923  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17924  # as well as any symbol that contains `d'.
17925  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17926  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17927  # platforms (ab)use it in PIC code, but their linkers get confused if
17928  # the symbol is explicitly referenced.  Since portable code cannot
17929  # rely on this symbol name, it's probably fine to never include it in
17930  # preloaded symbol tables.
17931  extract_expsyms_cmds=
17932  # Just being paranoid about ensuring that cc_basename is set.
17933  for cc_temp in $compiler""; do
17934  case $cc_temp in
17935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17937    \-*) ;;
17938    *) break;;
17939  esac
17940done
17941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17942
17943  case $host_os in
17944  cygwin* | mingw* | pw32*)
17945    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17946    # When not using gcc, we currently assume that we are using
17947    # Microsoft Visual C++.
17948    if test "$GCC" != yes; then
17949      with_gnu_ld=no
17950    fi
17951    ;;
17952  interix*)
17953    # we just hope/assume this is gcc and not c89 (= MSVC++)
17954    with_gnu_ld=yes
17955    ;;
17956  openbsd*)
17957    with_gnu_ld=no
17958    ;;
17959  esac
17960
17961  ld_shlibs_GCJ=yes
17962  if test "$with_gnu_ld" = yes; then
17963    # If archive_cmds runs LD, not CC, wlarc should be empty
17964    wlarc='${wl}'
17965
17966    # Set some defaults for GNU ld with shared library support. These
17967    # are reset later if shared libraries are not supported. Putting them
17968    # here allows them to be overridden if necessary.
17969    runpath_var=LD_RUN_PATH
17970    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17971    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17972    # ancient GNU ld didn't support --whole-archive et. al.
17973    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17974	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17975      else
17976  	whole_archive_flag_spec_GCJ=
17977    fi
17978    supports_anon_versioning=no
17979    case `$LD -v 2>/dev/null` in
17980      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17981      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17982      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17983      *\ 2.11.*) ;; # other 2.11 versions
17984      *) supports_anon_versioning=yes ;;
17985    esac
17986
17987    # See if GNU ld supports shared libraries.
17988    case $host_os in
17989    aix3* | aix4* | aix5*)
17990      # On AIX/PPC, the GNU linker is very broken
17991      if test "$host_cpu" != ia64; then
17992	ld_shlibs_GCJ=no
17993	cat <<EOF 1>&2
17994
17995*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17996*** to be unable to reliably create shared libraries on AIX.
17997*** Therefore, libtool is disabling shared libraries support.  If you
17998*** really care for shared libraries, you may want to modify your PATH
17999*** so that a non-GNU linker is found, and then restart.
18000
18001EOF
18002      fi
18003      ;;
18004
18005    amigaos*)
18006      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)'
18007      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18008      hardcode_minus_L_GCJ=yes
18009
18010      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18011      # that the semantics of dynamic libraries on AmigaOS, at least up
18012      # to version 4, is to share data among multiple programs linked
18013      # with the same dynamic library.  Since this doesn't match the
18014      # behavior of shared libraries on other platforms, we can't use
18015      # them.
18016      ld_shlibs_GCJ=no
18017      ;;
18018
18019    beos*)
18020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18021	allow_undefined_flag_GCJ=unsupported
18022	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18023	# support --undefined.  This deserves some investigation.  FIXME
18024	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18025      else
18026	ld_shlibs_GCJ=no
18027      fi
18028      ;;
18029
18030    cygwin* | mingw* | pw32*)
18031      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18032      # as there is no search path for DLLs.
18033      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18034      allow_undefined_flag_GCJ=unsupported
18035      always_export_symbols_GCJ=no
18036      enable_shared_with_static_runtimes_GCJ=yes
18037      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18038
18039      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18040        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18041	# If the export-symbols file already is a .def file (1st line
18042	# is EXPORTS), use it as is; otherwise, prepend...
18043	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18044	  cp $export_symbols $output_objdir/$soname.def;
18045	else
18046	  echo EXPORTS > $output_objdir/$soname.def;
18047	  cat $export_symbols >> $output_objdir/$soname.def;
18048	fi~
18049	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18050      else
18051	ld_shlibs_GCJ=no
18052      fi
18053      ;;
18054
18055    interix3*)
18056      hardcode_direct_GCJ=no
18057      hardcode_shlibpath_var_GCJ=no
18058      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18059      export_dynamic_flag_spec_GCJ='${wl}-E'
18060      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18061      # Instead, shared libraries are loaded at an image base (0x10000000 by
18062      # default) and relocated if they conflict, which is a slow very memory
18063      # consuming and fragmenting process.  To avoid this, we pick a random,
18064      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18065      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18066      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'
18067      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'
18068      ;;
18069
18070    linux*)
18071      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18072	tmp_addflag=
18073	case $cc_basename,$host_cpu in
18074	pgcc*)				# Portland Group C compiler
18075	  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'
18076	  tmp_addflag=' $pic_flag'
18077	  ;;
18078	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18079	  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'
18080	  tmp_addflag=' $pic_flag -Mnomain' ;;
18081	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18082	  tmp_addflag=' -i_dynamic' ;;
18083	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18084	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18085	ifc* | ifort*)			# Intel Fortran compiler
18086	  tmp_addflag=' -nofor_main' ;;
18087	esac
18088	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18089
18090	if test $supports_anon_versioning = yes; then
18091	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18092  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18093  $echo "local: *; };" >> $output_objdir/$libname.ver~
18094	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18095	fi
18096      else
18097	ld_shlibs_GCJ=no
18098      fi
18099      ;;
18100
18101    netbsd*)
18102      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18103	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18104	wlarc=
18105      else
18106	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18107	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18108      fi
18109      ;;
18110
18111    solaris*)
18112      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18113	ld_shlibs_GCJ=no
18114	cat <<EOF 1>&2
18115
18116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18117*** create shared libraries on Solaris systems.  Therefore, libtool
18118*** is disabling shared libraries support.  We urge you to upgrade GNU
18119*** binutils to release 2.9.1 or newer.  Another option is to modify
18120*** your PATH or compiler configuration so that the native linker is
18121*** used, and then restart.
18122
18123EOF
18124      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18125	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18126	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18127      else
18128	ld_shlibs_GCJ=no
18129      fi
18130      ;;
18131
18132    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18133      case `$LD -v 2>&1` in
18134        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18135	ld_shlibs_GCJ=no
18136	cat <<_LT_EOF 1>&2
18137
18138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18139*** reliably create shared libraries on SCO systems.  Therefore, libtool
18140*** is disabling shared libraries support.  We urge you to upgrade GNU
18141*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18142*** your PATH or compiler configuration so that the native linker is
18143*** used, and then restart.
18144
18145_LT_EOF
18146	;;
18147	*)
18148	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18149	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18150	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18151	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18152	  else
18153	    ld_shlibs_GCJ=no
18154	  fi
18155	;;
18156      esac
18157      ;;
18158
18159    sunos4*)
18160      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18161      wlarc=
18162      hardcode_direct_GCJ=yes
18163      hardcode_shlibpath_var_GCJ=no
18164      ;;
18165
18166    *)
18167      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18168	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18169	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18170      else
18171	ld_shlibs_GCJ=no
18172      fi
18173      ;;
18174    esac
18175
18176    if test "$ld_shlibs_GCJ" = no; then
18177      runpath_var=
18178      hardcode_libdir_flag_spec_GCJ=
18179      export_dynamic_flag_spec_GCJ=
18180      whole_archive_flag_spec_GCJ=
18181    fi
18182  else
18183    # PORTME fill in a description of your system's linker (not GNU ld)
18184    case $host_os in
18185    aix3*)
18186      allow_undefined_flag_GCJ=unsupported
18187      always_export_symbols_GCJ=yes
18188      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'
18189      # Note: this linker hardcodes the directories in LIBPATH if there
18190      # are no directories specified by -L.
18191      hardcode_minus_L_GCJ=yes
18192      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18193	# Neither direct hardcoding nor static linking is supported with a
18194	# broken collect2.
18195	hardcode_direct_GCJ=unsupported
18196      fi
18197      ;;
18198
18199    aix4* | aix5*)
18200      if test "$host_cpu" = ia64; then
18201	# On IA64, the linker does run time linking by default, so we don't
18202	# have to do anything special.
18203	aix_use_runtimelinking=no
18204	exp_sym_flag='-Bexport'
18205	no_entry_flag=""
18206      else
18207	# If we're using GNU nm, then we don't want the "-C" option.
18208	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18209	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18210	  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'
18211	else
18212	  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'
18213	fi
18214	aix_use_runtimelinking=no
18215
18216	# Test if we are trying to use run time linking or normal
18217	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18218	# need to do runtime linking.
18219	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18220	  for ld_flag in $LDFLAGS; do
18221  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18222  	    aix_use_runtimelinking=yes
18223  	    break
18224  	  fi
18225	  done
18226	  ;;
18227	esac
18228
18229	exp_sym_flag='-bexport'
18230	no_entry_flag='-bnoentry'
18231      fi
18232
18233      # When large executables or shared objects are built, AIX ld can
18234      # have problems creating the table of contents.  If linking a library
18235      # or program results in "error TOC overflow" add -mminimal-toc to
18236      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18237      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18238
18239      archive_cmds_GCJ=''
18240      hardcode_direct_GCJ=yes
18241      hardcode_libdir_separator_GCJ=':'
18242      link_all_deplibs_GCJ=yes
18243
18244      if test "$GCC" = yes; then
18245	case $host_os in aix4.[012]|aix4.[012].*)
18246	# We only want to do this on AIX 4.2 and lower, the check
18247	# below for broken collect2 doesn't work under 4.3+
18248	  collect2name=`${CC} -print-prog-name=collect2`
18249	  if test -f "$collect2name" && \
18250  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18251	  then
18252  	  # We have reworked collect2
18253  	  hardcode_direct_GCJ=yes
18254	  else
18255  	  # We have old collect2
18256  	  hardcode_direct_GCJ=unsupported
18257  	  # It fails to find uninstalled libraries when the uninstalled
18258  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18259  	  # to unsupported forces relinking
18260  	  hardcode_minus_L_GCJ=yes
18261  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18262  	  hardcode_libdir_separator_GCJ=
18263	  fi
18264	  ;;
18265	esac
18266	shared_flag='-shared'
18267	if test "$aix_use_runtimelinking" = yes; then
18268	  shared_flag="$shared_flag "'${wl}-G'
18269	fi
18270      else
18271	# not using gcc
18272	if test "$host_cpu" = ia64; then
18273  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18274  	# chokes on -Wl,-G. The following line is correct:
18275	  shared_flag='-G'
18276	else
18277	  if test "$aix_use_runtimelinking" = yes; then
18278	    shared_flag='${wl}-G'
18279	  else
18280	    shared_flag='${wl}-bM:SRE'
18281	  fi
18282	fi
18283      fi
18284
18285      # It seems that -bexpall does not export symbols beginning with
18286      # underscore (_), so it is better to generate a list of symbols to export.
18287      always_export_symbols_GCJ=yes
18288      if test "$aix_use_runtimelinking" = yes; then
18289	# Warning - without using the other runtime loading flags (-brtl),
18290	# -berok will link without error, but may produce a broken library.
18291	allow_undefined_flag_GCJ='-berok'
18292       # Determine the default libpath from the value encoded in an empty executable.
18293       cat >conftest.$ac_ext <<_ACEOF
18294/* confdefs.h.  */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h.  */
18299
18300int
18301main ()
18302{
18303
18304  ;
18305  return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext conftest$ac_exeext
18309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310  (eval $ac_link) 2>conftest.er1
18311  ac_status=$?
18312  grep -v '^ *+' conftest.er1 >conftest.err
18313  rm -f conftest.er1
18314  cat conftest.err >&5
18315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316  (exit $ac_status); } &&
18317	 { ac_try='test -z "$ac_c_werror_flag"
18318			 || test ! -s conftest.err'
18319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320  (eval $ac_try) 2>&5
18321  ac_status=$?
18322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323  (exit $ac_status); }; } &&
18324	 { ac_try='test -s conftest$ac_exeext'
18325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326  (eval $ac_try) 2>&5
18327  ac_status=$?
18328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329  (exit $ac_status); }; }; then
18330
18331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18332}'`
18333# Check for a 64-bit object if we didn't find anything.
18334if 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; }
18335}'`; fi
18336else
18337  echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340fi
18341rm -f conftest.err conftest.$ac_objext \
18342      conftest$ac_exeext conftest.$ac_ext
18343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18344
18345       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18346	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"
18347       else
18348	if test "$host_cpu" = ia64; then
18349	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18350	  allow_undefined_flag_GCJ="-z nodefs"
18351	  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"
18352	else
18353	 # Determine the default libpath from the value encoded in an empty executable.
18354	 cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h.  */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h.  */
18360
18361int
18362main ()
18363{
18364
18365  ;
18366  return 0;
18367}
18368_ACEOF
18369rm -f conftest.$ac_objext conftest$ac_exeext
18370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18371  (eval $ac_link) 2>conftest.er1
18372  ac_status=$?
18373  grep -v '^ *+' conftest.er1 >conftest.err
18374  rm -f conftest.er1
18375  cat conftest.err >&5
18376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377  (exit $ac_status); } &&
18378	 { ac_try='test -z "$ac_c_werror_flag"
18379			 || test ! -s conftest.err'
18380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381  (eval $ac_try) 2>&5
18382  ac_status=$?
18383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384  (exit $ac_status); }; } &&
18385	 { ac_try='test -s conftest$ac_exeext'
18386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387  (eval $ac_try) 2>&5
18388  ac_status=$?
18389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390  (exit $ac_status); }; }; then
18391
18392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18393}'`
18394# Check for a 64-bit object if we didn't find anything.
18395if 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; }
18396}'`; fi
18397else
18398  echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401fi
18402rm -f conftest.err conftest.$ac_objext \
18403      conftest$ac_exeext conftest.$ac_ext
18404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18405
18406	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18407	  # Warning - without using the other run time loading flags,
18408	  # -berok will link without error, but may produce a broken library.
18409	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18410	  allow_undefined_flag_GCJ=' ${wl}-berok'
18411	  # Exported symbols can be pulled into shared objects from archives
18412	  whole_archive_flag_spec_GCJ='$convenience'
18413	  archive_cmds_need_lc_GCJ=yes
18414	  # This is similar to how AIX traditionally builds its shared libraries.
18415	  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'
18416	fi
18417      fi
18418      ;;
18419
18420    amigaos*)
18421      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)'
18422      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18423      hardcode_minus_L_GCJ=yes
18424      # see comment about different semantics on the GNU ld section
18425      ld_shlibs_GCJ=no
18426      ;;
18427
18428    bsdi[45]*)
18429      export_dynamic_flag_spec_GCJ=-rdynamic
18430      ;;
18431
18432    cygwin* | mingw* | pw32*)
18433      # When not using gcc, we currently assume that we are using
18434      # Microsoft Visual C++.
18435      # hardcode_libdir_flag_spec is actually meaningless, as there is
18436      # no search path for DLLs.
18437      hardcode_libdir_flag_spec_GCJ=' '
18438      allow_undefined_flag_GCJ=unsupported
18439      # Tell ltmain to make .lib files, not .a files.
18440      libext=lib
18441      # Tell ltmain to make .dll files, not .so files.
18442      shrext_cmds=".dll"
18443      # FIXME: Setting linknames here is a bad hack.
18444      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18445      # The linker will automatically build a .lib file if we build a DLL.
18446      old_archive_From_new_cmds_GCJ='true'
18447      # FIXME: Should let the user specify the lib program.
18448      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18449      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18450      enable_shared_with_static_runtimes_GCJ=yes
18451      ;;
18452
18453    darwin* | rhapsody*)
18454      case $host_os in
18455        rhapsody* | darwin1.[012])
18456         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18457         ;;
18458       *) # Darwin 1.3 on
18459         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18460           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18461         else
18462           case ${MACOSX_DEPLOYMENT_TARGET} in
18463             10.[012])
18464               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18465               ;;
18466             10.*)
18467               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18468               ;;
18469           esac
18470         fi
18471         ;;
18472      esac
18473      archive_cmds_need_lc_GCJ=no
18474      hardcode_direct_GCJ=no
18475      hardcode_automatic_GCJ=yes
18476      hardcode_shlibpath_var_GCJ=unsupported
18477      whole_archive_flag_spec_GCJ=''
18478      link_all_deplibs_GCJ=yes
18479    if test "$GCC" = yes ; then
18480    	output_verbose_link_cmd='echo'
18481        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18482      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18483      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18484      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}'
18485      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}'
18486    else
18487      case $cc_basename in
18488        xlc*)
18489         output_verbose_link_cmd='echo'
18490         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18491         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18492          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18493         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}'
18494          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}'
18495          ;;
18496       *)
18497         ld_shlibs_GCJ=no
18498          ;;
18499      esac
18500    fi
18501      ;;
18502
18503    dgux*)
18504      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18505      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506      hardcode_shlibpath_var_GCJ=no
18507      ;;
18508
18509    freebsd1*)
18510      ld_shlibs_GCJ=no
18511      ;;
18512
18513    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18514    # support.  Future versions do this automatically, but an explicit c++rt0.o
18515    # does not break anything, and helps significantly (at the cost of a little
18516    # extra space).
18517    freebsd2.2*)
18518      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18519      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18520      hardcode_direct_GCJ=yes
18521      hardcode_shlibpath_var_GCJ=no
18522      ;;
18523
18524    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18525    freebsd2*)
18526      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18527      hardcode_direct_GCJ=yes
18528      hardcode_minus_L_GCJ=yes
18529      hardcode_shlibpath_var_GCJ=no
18530      ;;
18531
18532    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18533    freebsd* | kfreebsd*-gnu | dragonfly*)
18534      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18535      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18536      hardcode_direct_GCJ=yes
18537      hardcode_shlibpath_var_GCJ=no
18538      ;;
18539
18540    hpux9*)
18541      if test "$GCC" = yes; then
18542	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'
18543      else
18544	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'
18545      fi
18546      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18547      hardcode_libdir_separator_GCJ=:
18548      hardcode_direct_GCJ=yes
18549
18550      # hardcode_minus_L: Not really in the search PATH,
18551      # but as the default location of the library.
18552      hardcode_minus_L_GCJ=yes
18553      export_dynamic_flag_spec_GCJ='${wl}-E'
18554      ;;
18555
18556    hpux10*)
18557      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18558	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18559      else
18560	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18561      fi
18562      if test "$with_gnu_ld" = no; then
18563	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18564	hardcode_libdir_separator_GCJ=:
18565
18566	hardcode_direct_GCJ=yes
18567	export_dynamic_flag_spec_GCJ='${wl}-E'
18568
18569	# hardcode_minus_L: Not really in the search PATH,
18570	# but as the default location of the library.
18571	hardcode_minus_L_GCJ=yes
18572      fi
18573      ;;
18574
18575    hpux11*)
18576      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18577	case $host_cpu in
18578	hppa*64*)
18579	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18580	  ;;
18581	ia64*)
18582	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18583	  ;;
18584	*)
18585	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18586	  ;;
18587	esac
18588      else
18589	case $host_cpu in
18590	hppa*64*)
18591	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18592	  ;;
18593	ia64*)
18594	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18595	  ;;
18596	*)
18597	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18598	  ;;
18599	esac
18600      fi
18601      if test "$with_gnu_ld" = no; then
18602	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18603	hardcode_libdir_separator_GCJ=:
18604
18605	case $host_cpu in
18606	hppa*64*|ia64*)
18607	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18608	  hardcode_direct_GCJ=no
18609	  hardcode_shlibpath_var_GCJ=no
18610	  ;;
18611	*)
18612	  hardcode_direct_GCJ=yes
18613	  export_dynamic_flag_spec_GCJ='${wl}-E'
18614
18615	  # hardcode_minus_L: Not really in the search PATH,
18616	  # but as the default location of the library.
18617	  hardcode_minus_L_GCJ=yes
18618	  ;;
18619	esac
18620      fi
18621      ;;
18622
18623    irix5* | irix6* | nonstopux*)
18624      if test "$GCC" = yes; then
18625	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'
18626      else
18627	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'
18628	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18629      fi
18630      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18631      hardcode_libdir_separator_GCJ=:
18632      link_all_deplibs_GCJ=yes
18633      ;;
18634
18635    netbsd*)
18636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18637	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18638      else
18639	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18640      fi
18641      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18642      hardcode_direct_GCJ=yes
18643      hardcode_shlibpath_var_GCJ=no
18644      ;;
18645
18646    newsos6)
18647      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18648      hardcode_direct_GCJ=yes
18649      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18650      hardcode_libdir_separator_GCJ=:
18651      hardcode_shlibpath_var_GCJ=no
18652      ;;
18653
18654    openbsd*)
18655      hardcode_direct_GCJ=yes
18656      hardcode_shlibpath_var_GCJ=no
18657      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18658	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18659	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18660	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18661	export_dynamic_flag_spec_GCJ='${wl}-E'
18662      else
18663       case $host_os in
18664	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18665	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18666	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18667	   ;;
18668	 *)
18669	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18670	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18671	   ;;
18672       esac
18673      fi
18674      ;;
18675
18676    os2*)
18677      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18678      hardcode_minus_L_GCJ=yes
18679      allow_undefined_flag_GCJ=unsupported
18680      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'
18681      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18682      ;;
18683
18684    osf3*)
18685      if test "$GCC" = yes; then
18686	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18687	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'
18688      else
18689	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18690	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'
18691      fi
18692      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18693      hardcode_libdir_separator_GCJ=:
18694      ;;
18695
18696    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18697      if test "$GCC" = yes; then
18698	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18699	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'
18700	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18701      else
18702	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18703	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'
18704	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~
18705	$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'
18706
18707	# Both c and cxx compiler support -rpath directly
18708	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18709      fi
18710      hardcode_libdir_separator_GCJ=:
18711      ;;
18712
18713    solaris*)
18714      no_undefined_flag_GCJ=' -z text'
18715      if test "$GCC" = yes; then
18716	wlarc='${wl}'
18717	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18718	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18719	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18720      else
18721	wlarc=''
18722	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18723	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18724  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18725      fi
18726      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18727      hardcode_shlibpath_var_GCJ=no
18728      case $host_os in
18729      solaris2.[0-5] | solaris2.[0-5].*) ;;
18730      *)
18731 	# The compiler driver will combine linker options so we
18732 	# cannot just pass the convience library names through
18733 	# without $wl, iff we do not link with $LD.
18734 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18735 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18736 	case $wlarc in
18737 	'')
18738 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18739 	*)
18740 	  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' ;;
18741 	esac ;;
18742      esac
18743      link_all_deplibs_GCJ=yes
18744      ;;
18745
18746    sunos4*)
18747      if test "x$host_vendor" = xsequent; then
18748	# Use $CC to link under sequent, because it throws in some extra .o
18749	# files that make .init and .fini sections work.
18750	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18751      else
18752	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18753      fi
18754      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18755      hardcode_direct_GCJ=yes
18756      hardcode_minus_L_GCJ=yes
18757      hardcode_shlibpath_var_GCJ=no
18758      ;;
18759
18760    sysv4)
18761      case $host_vendor in
18762	sni)
18763	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18764	  hardcode_direct_GCJ=yes # is this really true???
18765	;;
18766	siemens)
18767	  ## LD is ld it makes a PLAMLIB
18768	  ## CC just makes a GrossModule.
18769	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18770	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18771	  hardcode_direct_GCJ=no
18772        ;;
18773	motorola)
18774	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18775	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18776	;;
18777      esac
18778      runpath_var='LD_RUN_PATH'
18779      hardcode_shlibpath_var_GCJ=no
18780      ;;
18781
18782    sysv4.3*)
18783      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18784      hardcode_shlibpath_var_GCJ=no
18785      export_dynamic_flag_spec_GCJ='-Bexport'
18786      ;;
18787
18788    sysv4*MP*)
18789      if test -d /usr/nec; then
18790	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791	hardcode_shlibpath_var_GCJ=no
18792	runpath_var=LD_RUN_PATH
18793	hardcode_runpath_var=yes
18794	ld_shlibs_GCJ=yes
18795      fi
18796      ;;
18797
18798    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18799      no_undefined_flag_GCJ='${wl}-z,text'
18800      archive_cmds_need_lc_GCJ=no
18801      hardcode_shlibpath_var_GCJ=no
18802      runpath_var='LD_RUN_PATH'
18803
18804      if test "$GCC" = yes; then
18805	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18806	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18807      else
18808	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18809	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18810      fi
18811      ;;
18812
18813    sysv5* | sco3.2v5* | sco5v6*)
18814      # Note: We can NOT use -z defs as we might desire, because we do not
18815      # link with -lc, and that would cause any symbols used from libc to
18816      # always be unresolved, which means just about no library would
18817      # ever link correctly.  If we're not using GNU ld we use -z text
18818      # though, which does catch some bad symbols but isn't as heavy-handed
18819      # as -z defs.
18820      no_undefined_flag_GCJ='${wl}-z,text'
18821      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18822      archive_cmds_need_lc_GCJ=no
18823      hardcode_shlibpath_var_GCJ=no
18824      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18825      hardcode_libdir_separator_GCJ=':'
18826      link_all_deplibs_GCJ=yes
18827      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18828      runpath_var='LD_RUN_PATH'
18829
18830      if test "$GCC" = yes; then
18831	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18832	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18833      else
18834	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18835	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18836      fi
18837      ;;
18838
18839    uts4*)
18840      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18842      hardcode_shlibpath_var_GCJ=no
18843      ;;
18844
18845    *)
18846      ld_shlibs_GCJ=no
18847      ;;
18848    esac
18849  fi
18850
18851echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18852echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18853test "$ld_shlibs_GCJ" = no && can_build_shared=no
18854
18855#
18856# Do we need to explicitly link libc?
18857#
18858case "x$archive_cmds_need_lc_GCJ" in
18859x|xyes)
18860  # Assume -lc should be added
18861  archive_cmds_need_lc_GCJ=yes
18862
18863  if test "$enable_shared" = yes && test "$GCC" = yes; then
18864    case $archive_cmds_GCJ in
18865    *'~'*)
18866      # FIXME: we may have to deal with multi-command sequences.
18867      ;;
18868    '$CC '*)
18869      # Test whether the compiler implicitly links with -lc since on some
18870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18871      # to ld, don't add -lc before -lgcc.
18872      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18873echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18874      $rm conftest*
18875      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18876
18877      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878  (eval $ac_compile) 2>&5
18879  ac_status=$?
18880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881  (exit $ac_status); } 2>conftest.err; then
18882        soname=conftest
18883        lib=conftest
18884        libobjs=conftest.$ac_objext
18885        deplibs=
18886        wl=$lt_prog_compiler_wl_GCJ
18887	pic_flag=$lt_prog_compiler_pic_GCJ
18888        compiler_flags=-v
18889        linker_flags=-v
18890        verstring=
18891        output_objdir=.
18892        libname=conftest
18893        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18894        allow_undefined_flag_GCJ=
18895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18896  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18897  ac_status=$?
18898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899  (exit $ac_status); }
18900        then
18901	  archive_cmds_need_lc_GCJ=no
18902        else
18903	  archive_cmds_need_lc_GCJ=yes
18904        fi
18905        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18906      else
18907        cat conftest.err 1>&5
18908      fi
18909      $rm conftest*
18910      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18911echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18912      ;;
18913    esac
18914  fi
18915  ;;
18916esac
18917
18918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18920library_names_spec=
18921libname_spec='lib$name'
18922soname_spec=
18923shrext_cmds=".so"
18924postinstall_cmds=
18925postuninstall_cmds=
18926finish_cmds=
18927finish_eval=
18928shlibpath_var=
18929shlibpath_overrides_runpath=unknown
18930version_type=none
18931dynamic_linker="$host_os ld.so"
18932sys_lib_dlsearch_path_spec="/lib /usr/lib"
18933if test "$GCC" = yes; then
18934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18936    # if the path contains ";" then we assume it to be the separator
18937    # otherwise default to the standard path separator (i.e. ":") - it is
18938    # assumed that no part of a normal pathname contains ";" but that should
18939    # okay in the real world where ";" in dirpaths is itself problematic.
18940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18941  else
18942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18943  fi
18944else
18945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18946fi
18947need_lib_prefix=unknown
18948hardcode_into_libs=no
18949
18950# when you set need_version to no, make sure it does not cause -set_version
18951# flags to be left without arguments
18952need_version=unknown
18953
18954case $host_os in
18955aix3*)
18956  version_type=linux
18957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18958  shlibpath_var=LIBPATH
18959
18960  # AIX 3 has no versioning support, so we append a major version to the name.
18961  soname_spec='${libname}${release}${shared_ext}$major'
18962  ;;
18963
18964aix4* | aix5*)
18965  version_type=linux
18966  need_lib_prefix=no
18967  need_version=no
18968  hardcode_into_libs=yes
18969  if test "$host_cpu" = ia64; then
18970    # AIX 5 supports IA64
18971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18972    shlibpath_var=LD_LIBRARY_PATH
18973  else
18974    # With GCC up to 2.95.x, collect2 would create an import file
18975    # for dependence libraries.  The import file would start with
18976    # the line `#! .'.  This would cause the generated library to
18977    # depend on `.', always an invalid library.  This was fixed in
18978    # development snapshots of GCC prior to 3.0.
18979    case $host_os in
18980      aix4 | aix4.[01] | aix4.[01].*)
18981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18982	   echo ' yes '
18983	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18984	:
18985      else
18986	can_build_shared=no
18987      fi
18988      ;;
18989    esac
18990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18991    # soname into executable. Probably we can add versioning support to
18992    # collect2, so additional links can be useful in future.
18993    if test "$aix_use_runtimelinking" = yes; then
18994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18995      # instead of lib<name>.a to let people know that these are not
18996      # typical AIX shared libraries.
18997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18998    else
18999      # We preserve .a as extension for shared libraries through AIX4.2
19000      # and later when we are not doing run time linking.
19001      library_names_spec='${libname}${release}.a $libname.a'
19002      soname_spec='${libname}${release}${shared_ext}$major'
19003    fi
19004    shlibpath_var=LIBPATH
19005  fi
19006  ;;
19007
19008amigaos*)
19009  library_names_spec='$libname.ixlibrary $libname.a'
19010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19011  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'
19012  ;;
19013
19014beos*)
19015  library_names_spec='${libname}${shared_ext}'
19016  dynamic_linker="$host_os ld.so"
19017  shlibpath_var=LIBRARY_PATH
19018  ;;
19019
19020bsdi[45]*)
19021  version_type=linux
19022  need_version=no
19023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024  soname_spec='${libname}${release}${shared_ext}$major'
19025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19026  shlibpath_var=LD_LIBRARY_PATH
19027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19029  # the default ld.so.conf also contains /usr/contrib/lib and
19030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19031  # libtool to hard-code these into programs
19032  ;;
19033
19034cygwin* | mingw* | pw32*)
19035  version_type=windows
19036  shrext_cmds=".dll"
19037  need_version=no
19038  need_lib_prefix=no
19039
19040  case $GCC,$host_os in
19041  yes,cygwin* | yes,mingw* | yes,pw32*)
19042    library_names_spec='$libname.dll.a'
19043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19044    postinstall_cmds='base_file=`basename \${file}`~
19045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19046      dldir=$destdir/`dirname \$dlpath`~
19047      test -d \$dldir || mkdir -p \$dldir~
19048      $install_prog $dir/$dlname \$dldir/$dlname~
19049      chmod a+x \$dldir/$dlname'
19050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19051      dlpath=$dir/\$dldll~
19052       $rm \$dlpath'
19053    shlibpath_overrides_runpath=yes
19054
19055    case $host_os in
19056    cygwin*)
19057      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19058      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19059      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19060      ;;
19061    mingw*)
19062      # MinGW DLLs use traditional 'lib' prefix
19063      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19064      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19065      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19066        # It is most probably a Windows format PATH printed by
19067        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19068        # path with ; separators, and with drive letters. We can handle the
19069        # drive letters (cygwin fileutils understands them), so leave them,
19070        # especially as we might pass files found there to a mingw objdump,
19071        # which wouldn't understand a cygwinified path. Ahh.
19072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19073      else
19074        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19075      fi
19076      ;;
19077    pw32*)
19078      # pw32 DLLs use 'pw' prefix rather than 'lib'
19079      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19080      ;;
19081    esac
19082    ;;
19083
19084  *)
19085    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19086    ;;
19087  esac
19088  dynamic_linker='Win32 ld.exe'
19089  # FIXME: first we should search . and the directory the executable is in
19090  shlibpath_var=PATH
19091  ;;
19092
19093darwin* | rhapsody*)
19094  dynamic_linker="$host_os dyld"
19095  version_type=darwin
19096  need_lib_prefix=no
19097  need_version=no
19098  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19099  soname_spec='${libname}${release}${major}$shared_ext'
19100  shlibpath_overrides_runpath=yes
19101  shlibpath_var=DYLD_LIBRARY_PATH
19102  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19103  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19104  if test "$GCC" = yes; then
19105    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"`
19106  else
19107    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19108  fi
19109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19110  ;;
19111
19112dgux*)
19113  version_type=linux
19114  need_lib_prefix=no
19115  need_version=no
19116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19117  soname_spec='${libname}${release}${shared_ext}$major'
19118  shlibpath_var=LD_LIBRARY_PATH
19119  ;;
19120
19121freebsd1*)
19122  dynamic_linker=no
19123  ;;
19124
19125kfreebsd*-gnu)
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  shlibpath_overrides_runpath=no
19133  hardcode_into_libs=yes
19134  dynamic_linker='GNU ld.so'
19135  ;;
19136
19137freebsd* | dragonfly*)
19138  # DragonFly does not have aout.  When/if they implement a new
19139  # versioning mechanism, adjust this.
19140  if test -x /usr/bin/objformat; then
19141    objformat=`/usr/bin/objformat`
19142  else
19143    case $host_os in
19144    freebsd[123]*) objformat=aout ;;
19145    *) objformat=elf ;;
19146    esac
19147  fi
19148  version_type=freebsd-$objformat
19149  case $version_type in
19150    freebsd-elf*)
19151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19152      need_version=no
19153      need_lib_prefix=no
19154      ;;
19155    freebsd-*)
19156      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19157      need_version=yes
19158      ;;
19159  esac
19160  shlibpath_var=LD_LIBRARY_PATH
19161  case $host_os in
19162  freebsd2*)
19163    shlibpath_overrides_runpath=yes
19164    ;;
19165  freebsd3.[01]* | freebsdelf3.[01]*)
19166    shlibpath_overrides_runpath=yes
19167    hardcode_into_libs=yes
19168    ;;
19169  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19170  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19171    shlibpath_overrides_runpath=no
19172    hardcode_into_libs=yes
19173    ;;
19174  freebsd*) # from 4.6 on
19175    shlibpath_overrides_runpath=yes
19176    hardcode_into_libs=yes
19177    ;;
19178  esac
19179  ;;
19180
19181gnu*)
19182  version_type=linux
19183  need_lib_prefix=no
19184  need_version=no
19185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19186  soname_spec='${libname}${release}${shared_ext}$major'
19187  shlibpath_var=LD_LIBRARY_PATH
19188  hardcode_into_libs=yes
19189  ;;
19190
19191hpux9* | hpux10* | hpux11*)
19192  # Give a soname corresponding to the major version so that dld.sl refuses to
19193  # link against other versions.
19194  version_type=sunos
19195  need_lib_prefix=no
19196  need_version=no
19197  case $host_cpu in
19198  ia64*)
19199    shrext_cmds='.so'
19200    hardcode_into_libs=yes
19201    dynamic_linker="$host_os dld.so"
19202    shlibpath_var=LD_LIBRARY_PATH
19203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205    soname_spec='${libname}${release}${shared_ext}$major'
19206    if test "X$HPUX_IA64_MODE" = X32; then
19207      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19208    else
19209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19210    fi
19211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19212    ;;
19213   hppa*64*)
19214     shrext_cmds='.sl'
19215     hardcode_into_libs=yes
19216     dynamic_linker="$host_os dld.sl"
19217     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19220     soname_spec='${libname}${release}${shared_ext}$major'
19221     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223     ;;
19224   *)
19225    shrext_cmds='.sl'
19226    dynamic_linker="$host_os dld.sl"
19227    shlibpath_var=SHLIB_PATH
19228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230    soname_spec='${libname}${release}${shared_ext}$major'
19231    ;;
19232  esac
19233  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19234  postinstall_cmds='chmod 555 $lib'
19235  ;;
19236
19237interix3*)
19238  version_type=linux
19239  need_lib_prefix=no
19240  need_version=no
19241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19242  soname_spec='${libname}${release}${shared_ext}$major'
19243  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19244  shlibpath_var=LD_LIBRARY_PATH
19245  shlibpath_overrides_runpath=no
19246  hardcode_into_libs=yes
19247  ;;
19248
19249irix5* | irix6* | nonstopux*)
19250  case $host_os in
19251    nonstopux*) version_type=nonstopux ;;
19252    *)
19253	if test "$lt_cv_prog_gnu_ld" = yes; then
19254		version_type=linux
19255	else
19256		version_type=irix
19257	fi ;;
19258  esac
19259  need_lib_prefix=no
19260  need_version=no
19261  soname_spec='${libname}${release}${shared_ext}$major'
19262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19263  case $host_os in
19264  irix5* | nonstopux*)
19265    libsuff= shlibsuff=
19266    ;;
19267  *)
19268    case $LD in # libtool.m4 will add one of these switches to LD
19269    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19270      libsuff= shlibsuff= libmagic=32-bit;;
19271    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19272      libsuff=32 shlibsuff=N32 libmagic=N32;;
19273    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19274      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19275    *) libsuff= shlibsuff= libmagic=never-match;;
19276    esac
19277    ;;
19278  esac
19279  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19280  shlibpath_overrides_runpath=no
19281  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19282  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19283  hardcode_into_libs=yes
19284  ;;
19285
19286# No shared lib support for Linux oldld, aout, or coff.
19287linux*oldld* | linux*aout* | linux*coff*)
19288  dynamic_linker=no
19289  ;;
19290
19291# This must be Linux ELF.
19292linux*)
19293  version_type=linux
19294  need_lib_prefix=no
19295  need_version=no
19296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297  soname_spec='${libname}${release}${shared_ext}$major'
19298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19299  shlibpath_var=LD_LIBRARY_PATH
19300  shlibpath_overrides_runpath=no
19301  # This implies no fast_install, which is unacceptable.
19302  # Some rework will be needed to allow for fast_install
19303  # before this can be enabled.
19304  hardcode_into_libs=yes
19305
19306  # Append ld.so.conf contents to the search path
19307  if test -f /etc/ld.so.conf; then
19308    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' ' '`
19309    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19310  fi
19311
19312  # We used to test for /lib/ld.so.1 and disable shared libraries on
19313  # powerpc, because MkLinux only supported shared libraries with the
19314  # GNU dynamic linker.  Since this was broken with cross compilers,
19315  # most powerpc-linux boxes support dynamic linking these days and
19316  # people can always --disable-shared, the test was removed, and we
19317  # assume the GNU/Linux dynamic linker is in use.
19318  dynamic_linker='GNU/Linux ld.so'
19319  ;;
19320
19321knetbsd*-gnu)
19322  version_type=linux
19323  need_lib_prefix=no
19324  need_version=no
19325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19326  soname_spec='${libname}${release}${shared_ext}$major'
19327  shlibpath_var=LD_LIBRARY_PATH
19328  shlibpath_overrides_runpath=no
19329  hardcode_into_libs=yes
19330  dynamic_linker='GNU ld.so'
19331  ;;
19332
19333netbsd*)
19334  version_type=sunos
19335  need_lib_prefix=no
19336  need_version=no
19337  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19339    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19340    dynamic_linker='NetBSD (a.out) ld.so'
19341  else
19342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19343    soname_spec='${libname}${release}${shared_ext}$major'
19344    dynamic_linker='NetBSD ld.elf_so'
19345  fi
19346  shlibpath_var=LD_LIBRARY_PATH
19347  shlibpath_overrides_runpath=yes
19348  hardcode_into_libs=yes
19349  ;;
19350
19351newsos6)
19352  version_type=linux
19353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354  shlibpath_var=LD_LIBRARY_PATH
19355  shlibpath_overrides_runpath=yes
19356  ;;
19357
19358nto-qnx*)
19359  version_type=linux
19360  need_lib_prefix=no
19361  need_version=no
19362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363  soname_spec='${libname}${release}${shared_ext}$major'
19364  shlibpath_var=LD_LIBRARY_PATH
19365  shlibpath_overrides_runpath=yes
19366  ;;
19367
19368openbsd*)
19369  version_type=sunos
19370  sys_lib_dlsearch_path_spec="/usr/lib"
19371  need_lib_prefix=no
19372  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19373  case $host_os in
19374    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19375    *)                         need_version=no  ;;
19376  esac
19377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19379  shlibpath_var=LD_LIBRARY_PATH
19380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19381    case $host_os in
19382      openbsd2.[89] | openbsd2.[89].*)
19383	shlibpath_overrides_runpath=no
19384	;;
19385      *)
19386	shlibpath_overrides_runpath=yes
19387	;;
19388      esac
19389  else
19390    shlibpath_overrides_runpath=yes
19391  fi
19392  ;;
19393
19394os2*)
19395  libname_spec='$name'
19396  shrext_cmds=".dll"
19397  need_lib_prefix=no
19398  library_names_spec='$libname${shared_ext} $libname.a'
19399  dynamic_linker='OS/2 ld.exe'
19400  shlibpath_var=LIBPATH
19401  ;;
19402
19403osf3* | osf4* | osf5*)
19404  version_type=osf
19405  need_lib_prefix=no
19406  need_version=no
19407  soname_spec='${libname}${release}${shared_ext}$major'
19408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19409  shlibpath_var=LD_LIBRARY_PATH
19410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19412  ;;
19413
19414solaris*)
19415  version_type=linux
19416  need_lib_prefix=no
19417  need_version=no
19418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19419  soname_spec='${libname}${release}${shared_ext}$major'
19420  shlibpath_var=LD_LIBRARY_PATH
19421  shlibpath_overrides_runpath=yes
19422  hardcode_into_libs=yes
19423  # ldd complains unless libraries are executable
19424  postinstall_cmds='chmod +x $lib'
19425  ;;
19426
19427sunos4*)
19428  version_type=sunos
19429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19430  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19431  shlibpath_var=LD_LIBRARY_PATH
19432  shlibpath_overrides_runpath=yes
19433  if test "$with_gnu_ld" = yes; then
19434    need_lib_prefix=no
19435  fi
19436  need_version=yes
19437  ;;
19438
19439sysv4 | sysv4.3*)
19440  version_type=linux
19441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442  soname_spec='${libname}${release}${shared_ext}$major'
19443  shlibpath_var=LD_LIBRARY_PATH
19444  case $host_vendor in
19445    sni)
19446      shlibpath_overrides_runpath=no
19447      need_lib_prefix=no
19448      export_dynamic_flag_spec='${wl}-Blargedynsym'
19449      runpath_var=LD_RUN_PATH
19450      ;;
19451    siemens)
19452      need_lib_prefix=no
19453      ;;
19454    motorola)
19455      need_lib_prefix=no
19456      need_version=no
19457      shlibpath_overrides_runpath=no
19458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19459      ;;
19460  esac
19461  ;;
19462
19463sysv4*MP*)
19464  if test -d /usr/nec ;then
19465    version_type=linux
19466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19467    soname_spec='$libname${shared_ext}.$major'
19468    shlibpath_var=LD_LIBRARY_PATH
19469  fi
19470  ;;
19471
19472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19473  version_type=freebsd-elf
19474  need_lib_prefix=no
19475  need_version=no
19476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19477  soname_spec='${libname}${release}${shared_ext}$major'
19478  shlibpath_var=LD_LIBRARY_PATH
19479  hardcode_into_libs=yes
19480  if test "$with_gnu_ld" = yes; then
19481    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19482    shlibpath_overrides_runpath=no
19483  else
19484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19485    shlibpath_overrides_runpath=yes
19486    case $host_os in
19487      sco3.2v5*)
19488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19489	;;
19490    esac
19491  fi
19492  sys_lib_dlsearch_path_spec='/usr/lib'
19493  ;;
19494
19495uts4*)
19496  version_type=linux
19497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19498  soname_spec='${libname}${release}${shared_ext}$major'
19499  shlibpath_var=LD_LIBRARY_PATH
19500  ;;
19501
19502*)
19503  dynamic_linker=no
19504  ;;
19505esac
19506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19507echo "${ECHO_T}$dynamic_linker" >&6
19508test "$dynamic_linker" = no && can_build_shared=no
19509
19510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19511if test "$GCC" = yes; then
19512  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19513fi
19514
19515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19517hardcode_action_GCJ=
19518if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19519   test -n "$runpath_var_GCJ" || \
19520   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19521
19522  # We can hardcode non-existant directories.
19523  if test "$hardcode_direct_GCJ" != no &&
19524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19525     # have to relink, otherwise we might link with an installed library
19526     # when we should be linking with a yet-to-be-installed one
19527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19528     test "$hardcode_minus_L_GCJ" != no; then
19529    # Linking always hardcodes the temporary library directory.
19530    hardcode_action_GCJ=relink
19531  else
19532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19533    hardcode_action_GCJ=immediate
19534  fi
19535else
19536  # We cannot hardcode anything, or else we can only hardcode existing
19537  # directories.
19538  hardcode_action_GCJ=unsupported
19539fi
19540echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19541echo "${ECHO_T}$hardcode_action_GCJ" >&6
19542
19543if test "$hardcode_action_GCJ" = relink; then
19544  # Fast installation is not supported
19545  enable_fast_install=no
19546elif test "$shlibpath_overrides_runpath" = yes ||
19547     test "$enable_shared" = no; then
19548  # Fast installation is not necessary
19549  enable_fast_install=needless
19550fi
19551
19552
19553# The else clause should only fire when bootstrapping the
19554# libtool distribution, otherwise you forgot to ship ltmain.sh
19555# with your package, and you will get complaints that there are
19556# no rules to generate ltmain.sh.
19557if test -f "$ltmain"; then
19558  # See if we are running on zsh, and set the options which allow our commands through
19559  # without removal of \ escapes.
19560  if test -n "${ZSH_VERSION+set}" ; then
19561    setopt NO_GLOB_SUBST
19562  fi
19563  # Now quote all the things that may contain metacharacters while being
19564  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19565  # variables and quote the copies for generation of the libtool script.
19566  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19567    SED SHELL STRIP \
19568    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19569    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19570    deplibs_check_method reload_flag reload_cmds need_locks \
19571    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19572    lt_cv_sys_global_symbol_to_c_name_address \
19573    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19574    old_postinstall_cmds old_postuninstall_cmds \
19575    compiler_GCJ \
19576    CC_GCJ \
19577    LD_GCJ \
19578    lt_prog_compiler_wl_GCJ \
19579    lt_prog_compiler_pic_GCJ \
19580    lt_prog_compiler_static_GCJ \
19581    lt_prog_compiler_no_builtin_flag_GCJ \
19582    export_dynamic_flag_spec_GCJ \
19583    thread_safe_flag_spec_GCJ \
19584    whole_archive_flag_spec_GCJ \
19585    enable_shared_with_static_runtimes_GCJ \
19586    old_archive_cmds_GCJ \
19587    old_archive_from_new_cmds_GCJ \
19588    predep_objects_GCJ \
19589    postdep_objects_GCJ \
19590    predeps_GCJ \
19591    postdeps_GCJ \
19592    compiler_lib_search_path_GCJ \
19593    archive_cmds_GCJ \
19594    archive_expsym_cmds_GCJ \
19595    postinstall_cmds_GCJ \
19596    postuninstall_cmds_GCJ \
19597    old_archive_from_expsyms_cmds_GCJ \
19598    allow_undefined_flag_GCJ \
19599    no_undefined_flag_GCJ \
19600    export_symbols_cmds_GCJ \
19601    hardcode_libdir_flag_spec_GCJ \
19602    hardcode_libdir_flag_spec_ld_GCJ \
19603    hardcode_libdir_separator_GCJ \
19604    hardcode_automatic_GCJ \
19605    module_cmds_GCJ \
19606    module_expsym_cmds_GCJ \
19607    lt_cv_prog_compiler_c_o_GCJ \
19608    exclude_expsyms_GCJ \
19609    include_expsyms_GCJ; do
19610
19611    case $var in
19612    old_archive_cmds_GCJ | \
19613    old_archive_from_new_cmds_GCJ | \
19614    archive_cmds_GCJ | \
19615    archive_expsym_cmds_GCJ | \
19616    module_cmds_GCJ | \
19617    module_expsym_cmds_GCJ | \
19618    old_archive_from_expsyms_cmds_GCJ | \
19619    export_symbols_cmds_GCJ | \
19620    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19621    postinstall_cmds | postuninstall_cmds | \
19622    old_postinstall_cmds | old_postuninstall_cmds | \
19623    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19624      # Double-quote double-evaled strings.
19625      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19626      ;;
19627    *)
19628      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19629      ;;
19630    esac
19631  done
19632
19633  case $lt_echo in
19634  *'\$0 --fallback-echo"')
19635    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19636    ;;
19637  esac
19638
19639cfgfile="$ofile"
19640
19641  cat <<__EOF__ >> "$cfgfile"
19642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19643
19644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19645
19646# Shell to use when invoking shell scripts.
19647SHELL=$lt_SHELL
19648
19649# Whether or not to build shared libraries.
19650build_libtool_libs=$enable_shared
19651
19652# Whether or not to build static libraries.
19653build_old_libs=$enable_static
19654
19655# Whether or not to add -lc for building shared libraries.
19656build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19657
19658# Whether or not to disallow shared libs when runtime libs are static
19659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19660
19661# Whether or not to optimize for fast installation.
19662fast_install=$enable_fast_install
19663
19664# The host system.
19665host_alias=$host_alias
19666host=$host
19667host_os=$host_os
19668
19669# The build system.
19670build_alias=$build_alias
19671build=$build
19672build_os=$build_os
19673
19674# An echo program that does not interpret backslashes.
19675echo=$lt_echo
19676
19677# The archiver.
19678AR=$lt_AR
19679AR_FLAGS=$lt_AR_FLAGS
19680
19681# A C compiler.
19682LTCC=$lt_LTCC
19683
19684# LTCC compiler flags.
19685LTCFLAGS=$lt_LTCFLAGS
19686
19687# A language-specific compiler.
19688CC=$lt_compiler_GCJ
19689
19690# Is the compiler the GNU C compiler?
19691with_gcc=$GCC_GCJ
19692
19693# An ERE matcher.
19694EGREP=$lt_EGREP
19695
19696# The linker used to build libraries.
19697LD=$lt_LD_GCJ
19698
19699# Whether we need hard or soft links.
19700LN_S=$lt_LN_S
19701
19702# A BSD-compatible nm program.
19703NM=$lt_NM
19704
19705# A symbol stripping program
19706STRIP=$lt_STRIP
19707
19708# Used to examine libraries when file_magic_cmd begins "file"
19709MAGIC_CMD=$MAGIC_CMD
19710
19711# Used on cygwin: DLL creation program.
19712DLLTOOL="$DLLTOOL"
19713
19714# Used on cygwin: object dumper.
19715OBJDUMP="$OBJDUMP"
19716
19717# Used on cygwin: assembler.
19718AS="$AS"
19719
19720# The name of the directory that contains temporary libtool files.
19721objdir=$objdir
19722
19723# How to create reloadable object files.
19724reload_flag=$lt_reload_flag
19725reload_cmds=$lt_reload_cmds
19726
19727# How to pass a linker flag through the compiler.
19728wl=$lt_lt_prog_compiler_wl_GCJ
19729
19730# Object file suffix (normally "o").
19731objext="$ac_objext"
19732
19733# Old archive suffix (normally "a").
19734libext="$libext"
19735
19736# Shared library suffix (normally ".so").
19737shrext_cmds='$shrext_cmds'
19738
19739# Executable file suffix (normally "").
19740exeext="$exeext"
19741
19742# Additional compiler flags for building library objects.
19743pic_flag=$lt_lt_prog_compiler_pic_GCJ
19744pic_mode=$pic_mode
19745
19746# What is the maximum length of a command?
19747max_cmd_len=$lt_cv_sys_max_cmd_len
19748
19749# Does compiler simultaneously support -c and -o options?
19750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19751
19752# Must we lock files when doing compilation?
19753need_locks=$lt_need_locks
19754
19755# Do we need the lib prefix for modules?
19756need_lib_prefix=$need_lib_prefix
19757
19758# Do we need a version for libraries?
19759need_version=$need_version
19760
19761# Whether dlopen is supported.
19762dlopen_support=$enable_dlopen
19763
19764# Whether dlopen of programs is supported.
19765dlopen_self=$enable_dlopen_self
19766
19767# Whether dlopen of statically linked programs is supported.
19768dlopen_self_static=$enable_dlopen_self_static
19769
19770# Compiler flag to prevent dynamic linking.
19771link_static_flag=$lt_lt_prog_compiler_static_GCJ
19772
19773# Compiler flag to turn off builtin functions.
19774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19775
19776# Compiler flag to allow reflexive dlopens.
19777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19778
19779# Compiler flag to generate shared objects directly from archives.
19780whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19781
19782# Compiler flag to generate thread-safe objects.
19783thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19784
19785# Library versioning type.
19786version_type=$version_type
19787
19788# Format of library name prefix.
19789libname_spec=$lt_libname_spec
19790
19791# List of archive names.  First name is the real one, the rest are links.
19792# The last name is the one that the linker finds with -lNAME.
19793library_names_spec=$lt_library_names_spec
19794
19795# The coded name of the library, if different from the real name.
19796soname_spec=$lt_soname_spec
19797
19798# Commands used to build and install an old-style archive.
19799RANLIB=$lt_RANLIB
19800old_archive_cmds=$lt_old_archive_cmds_GCJ
19801old_postinstall_cmds=$lt_old_postinstall_cmds
19802old_postuninstall_cmds=$lt_old_postuninstall_cmds
19803
19804# Create an old-style archive from a shared archive.
19805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19806
19807# Create a temporary old-style archive to link instead of a shared archive.
19808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19809
19810# Commands used to build and install a shared archive.
19811archive_cmds=$lt_archive_cmds_GCJ
19812archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19813postinstall_cmds=$lt_postinstall_cmds
19814postuninstall_cmds=$lt_postuninstall_cmds
19815
19816# Commands used to build a loadable module (assumed same as above if empty)
19817module_cmds=$lt_module_cmds_GCJ
19818module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19819
19820# Commands to strip libraries.
19821old_striplib=$lt_old_striplib
19822striplib=$lt_striplib
19823
19824# Dependencies to place before the objects being linked to create a
19825# shared library.
19826predep_objects=$lt_predep_objects_GCJ
19827
19828# Dependencies to place after the objects being linked to create a
19829# shared library.
19830postdep_objects=$lt_postdep_objects_GCJ
19831
19832# Dependencies to place before the objects being linked to create a
19833# shared library.
19834predeps=$lt_predeps_GCJ
19835
19836# Dependencies to place after the objects being linked to create a
19837# shared library.
19838postdeps=$lt_postdeps_GCJ
19839
19840# The library search path used internally by the compiler when linking
19841# a shared library.
19842compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19843
19844# Method to check whether dependent libraries are shared objects.
19845deplibs_check_method=$lt_deplibs_check_method
19846
19847# Command to use when deplibs_check_method == file_magic.
19848file_magic_cmd=$lt_file_magic_cmd
19849
19850# Flag that allows shared libraries with undefined symbols to be built.
19851allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19852
19853# Flag that forces no undefined symbols.
19854no_undefined_flag=$lt_no_undefined_flag_GCJ
19855
19856# Commands used to finish a libtool library installation in a directory.
19857finish_cmds=$lt_finish_cmds
19858
19859# Same as above, but a single script fragment to be evaled but not shown.
19860finish_eval=$lt_finish_eval
19861
19862# Take the output of nm and produce a listing of raw symbols and C names.
19863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19864
19865# Transform the output of nm in a proper C declaration
19866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19867
19868# Transform the output of nm in a C name address pair
19869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19870
19871# This is the shared library runtime path variable.
19872runpath_var=$runpath_var
19873
19874# This is the shared library path variable.
19875shlibpath_var=$shlibpath_var
19876
19877# Is shlibpath searched before the hard-coded library search path?
19878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19879
19880# How to hardcode a shared library path into an executable.
19881hardcode_action=$hardcode_action_GCJ
19882
19883# Whether we should hardcode library paths into libraries.
19884hardcode_into_libs=$hardcode_into_libs
19885
19886# Flag to hardcode \$libdir into a binary during linking.
19887# This must work even if \$libdir does not exist.
19888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19889
19890# If ld is used when linking, flag to hardcode \$libdir into
19891# a binary during linking. This must work even if \$libdir does
19892# not exist.
19893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19894
19895# Whether we need a single -rpath flag with a separated argument.
19896hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19897
19898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19899# resulting binary.
19900hardcode_direct=$hardcode_direct_GCJ
19901
19902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19903# resulting binary.
19904hardcode_minus_L=$hardcode_minus_L_GCJ
19905
19906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19907# the resulting binary.
19908hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19909
19910# Set to yes if building a shared library automatically hardcodes DIR into the library
19911# and all subsequent libraries and executables linked against it.
19912hardcode_automatic=$hardcode_automatic_GCJ
19913
19914# Variables whose values should be saved in libtool wrapper scripts and
19915# restored at relink time.
19916variables_saved_for_relink="$variables_saved_for_relink"
19917
19918# Whether libtool must link a program against all its dependency libraries.
19919link_all_deplibs=$link_all_deplibs_GCJ
19920
19921# Compile-time system search path for libraries
19922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19923
19924# Run-time system search path for libraries
19925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19926
19927# Fix the shell variable \$srcfile for the compiler.
19928fix_srcfile_path="$fix_srcfile_path_GCJ"
19929
19930# Set to yes if exported symbols are required.
19931always_export_symbols=$always_export_symbols_GCJ
19932
19933# The commands to list exported symbols.
19934export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19935
19936# The commands to extract the exported symbol list from a shared archive.
19937extract_expsyms_cmds=$lt_extract_expsyms_cmds
19938
19939# Symbols that should not be listed in the preloaded symbols.
19940exclude_expsyms=$lt_exclude_expsyms_GCJ
19941
19942# Symbols that must always be exported.
19943include_expsyms=$lt_include_expsyms_GCJ
19944
19945# ### END LIBTOOL TAG CONFIG: $tagname
19946
19947__EOF__
19948
19949
19950else
19951  # If there is no Makefile yet, we rely on a make rule to execute
19952  # `config.status --recheck' to rerun these tests and create the
19953  # libtool script then.
19954  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19955  if test -f "$ltmain_in"; then
19956    test -f Makefile && make "$ltmain"
19957  fi
19958fi
19959
19960
19961ac_ext=c
19962ac_cpp='$CPP $CPPFLAGS'
19963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19965ac_compiler_gnu=$ac_cv_c_compiler_gnu
19966
19967CC="$lt_save_CC"
19968
19969	else
19970	  tagname=""
19971	fi
19972	;;
19973
19974      RC)
19975
19976
19977
19978# Source file extension for RC test sources.
19979ac_ext=rc
19980
19981# Object file extension for compiled RC test sources.
19982objext=o
19983objext_RC=$objext
19984
19985# Code to be used in simple compile tests
19986lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19987
19988# Code to be used in simple link tests
19989lt_simple_link_test_code="$lt_simple_compile_test_code"
19990
19991# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19992
19993# If no C compiler was specified, use CC.
19994LTCC=${LTCC-"$CC"}
19995
19996# If no C compiler flags were specified, use CFLAGS.
19997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19998
19999# Allow CC to be a program name with arguments.
20000compiler=$CC
20001
20002
20003# save warnings/boilerplate of simple test code
20004ac_outfile=conftest.$ac_objext
20005printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20007_lt_compiler_boilerplate=`cat conftest.err`
20008$rm conftest*
20009
20010ac_outfile=conftest.$ac_objext
20011printf "$lt_simple_link_test_code" >conftest.$ac_ext
20012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20013_lt_linker_boilerplate=`cat conftest.err`
20014$rm conftest*
20015
20016
20017# Allow CC to be a program name with arguments.
20018lt_save_CC="$CC"
20019CC=${RC-"windres"}
20020compiler=$CC
20021compiler_RC=$CC
20022for cc_temp in $compiler""; do
20023  case $cc_temp in
20024    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20025    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20026    \-*) ;;
20027    *) break;;
20028  esac
20029done
20030cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20031
20032lt_cv_prog_compiler_c_o_RC=yes
20033
20034# The else clause should only fire when bootstrapping the
20035# libtool distribution, otherwise you forgot to ship ltmain.sh
20036# with your package, and you will get complaints that there are
20037# no rules to generate ltmain.sh.
20038if test -f "$ltmain"; then
20039  # See if we are running on zsh, and set the options which allow our commands through
20040  # without removal of \ escapes.
20041  if test -n "${ZSH_VERSION+set}" ; then
20042    setopt NO_GLOB_SUBST
20043  fi
20044  # Now quote all the things that may contain metacharacters while being
20045  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20046  # variables and quote the copies for generation of the libtool script.
20047  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20048    SED SHELL STRIP \
20049    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20050    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20051    deplibs_check_method reload_flag reload_cmds need_locks \
20052    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20053    lt_cv_sys_global_symbol_to_c_name_address \
20054    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20055    old_postinstall_cmds old_postuninstall_cmds \
20056    compiler_RC \
20057    CC_RC \
20058    LD_RC \
20059    lt_prog_compiler_wl_RC \
20060    lt_prog_compiler_pic_RC \
20061    lt_prog_compiler_static_RC \
20062    lt_prog_compiler_no_builtin_flag_RC \
20063    export_dynamic_flag_spec_RC \
20064    thread_safe_flag_spec_RC \
20065    whole_archive_flag_spec_RC \
20066    enable_shared_with_static_runtimes_RC \
20067    old_archive_cmds_RC \
20068    old_archive_from_new_cmds_RC \
20069    predep_objects_RC \
20070    postdep_objects_RC \
20071    predeps_RC \
20072    postdeps_RC \
20073    compiler_lib_search_path_RC \
20074    archive_cmds_RC \
20075    archive_expsym_cmds_RC \
20076    postinstall_cmds_RC \
20077    postuninstall_cmds_RC \
20078    old_archive_from_expsyms_cmds_RC \
20079    allow_undefined_flag_RC \
20080    no_undefined_flag_RC \
20081    export_symbols_cmds_RC \
20082    hardcode_libdir_flag_spec_RC \
20083    hardcode_libdir_flag_spec_ld_RC \
20084    hardcode_libdir_separator_RC \
20085    hardcode_automatic_RC \
20086    module_cmds_RC \
20087    module_expsym_cmds_RC \
20088    lt_cv_prog_compiler_c_o_RC \
20089    exclude_expsyms_RC \
20090    include_expsyms_RC; do
20091
20092    case $var in
20093    old_archive_cmds_RC | \
20094    old_archive_from_new_cmds_RC | \
20095    archive_cmds_RC | \
20096    archive_expsym_cmds_RC | \
20097    module_cmds_RC | \
20098    module_expsym_cmds_RC | \
20099    old_archive_from_expsyms_cmds_RC | \
20100    export_symbols_cmds_RC | \
20101    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20102    postinstall_cmds | postuninstall_cmds | \
20103    old_postinstall_cmds | old_postuninstall_cmds | \
20104    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20105      # Double-quote double-evaled strings.
20106      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20107      ;;
20108    *)
20109      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20110      ;;
20111    esac
20112  done
20113
20114  case $lt_echo in
20115  *'\$0 --fallback-echo"')
20116    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20117    ;;
20118  esac
20119
20120cfgfile="$ofile"
20121
20122  cat <<__EOF__ >> "$cfgfile"
20123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20124
20125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20126
20127# Shell to use when invoking shell scripts.
20128SHELL=$lt_SHELL
20129
20130# Whether or not to build shared libraries.
20131build_libtool_libs=$enable_shared
20132
20133# Whether or not to build static libraries.
20134build_old_libs=$enable_static
20135
20136# Whether or not to add -lc for building shared libraries.
20137build_libtool_need_lc=$archive_cmds_need_lc_RC
20138
20139# Whether or not to disallow shared libs when runtime libs are static
20140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20141
20142# Whether or not to optimize for fast installation.
20143fast_install=$enable_fast_install
20144
20145# The host system.
20146host_alias=$host_alias
20147host=$host
20148host_os=$host_os
20149
20150# The build system.
20151build_alias=$build_alias
20152build=$build
20153build_os=$build_os
20154
20155# An echo program that does not interpret backslashes.
20156echo=$lt_echo
20157
20158# The archiver.
20159AR=$lt_AR
20160AR_FLAGS=$lt_AR_FLAGS
20161
20162# A C compiler.
20163LTCC=$lt_LTCC
20164
20165# LTCC compiler flags.
20166LTCFLAGS=$lt_LTCFLAGS
20167
20168# A language-specific compiler.
20169CC=$lt_compiler_RC
20170
20171# Is the compiler the GNU C compiler?
20172with_gcc=$GCC_RC
20173
20174# An ERE matcher.
20175EGREP=$lt_EGREP
20176
20177# The linker used to build libraries.
20178LD=$lt_LD_RC
20179
20180# Whether we need hard or soft links.
20181LN_S=$lt_LN_S
20182
20183# A BSD-compatible nm program.
20184NM=$lt_NM
20185
20186# A symbol stripping program
20187STRIP=$lt_STRIP
20188
20189# Used to examine libraries when file_magic_cmd begins "file"
20190MAGIC_CMD=$MAGIC_CMD
20191
20192# Used on cygwin: DLL creation program.
20193DLLTOOL="$DLLTOOL"
20194
20195# Used on cygwin: object dumper.
20196OBJDUMP="$OBJDUMP"
20197
20198# Used on cygwin: assembler.
20199AS="$AS"
20200
20201# The name of the directory that contains temporary libtool files.
20202objdir=$objdir
20203
20204# How to create reloadable object files.
20205reload_flag=$lt_reload_flag
20206reload_cmds=$lt_reload_cmds
20207
20208# How to pass a linker flag through the compiler.
20209wl=$lt_lt_prog_compiler_wl_RC
20210
20211# Object file suffix (normally "o").
20212objext="$ac_objext"
20213
20214# Old archive suffix (normally "a").
20215libext="$libext"
20216
20217# Shared library suffix (normally ".so").
20218shrext_cmds='$shrext_cmds'
20219
20220# Executable file suffix (normally "").
20221exeext="$exeext"
20222
20223# Additional compiler flags for building library objects.
20224pic_flag=$lt_lt_prog_compiler_pic_RC
20225pic_mode=$pic_mode
20226
20227# What is the maximum length of a command?
20228max_cmd_len=$lt_cv_sys_max_cmd_len
20229
20230# Does compiler simultaneously support -c and -o options?
20231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20232
20233# Must we lock files when doing compilation?
20234need_locks=$lt_need_locks
20235
20236# Do we need the lib prefix for modules?
20237need_lib_prefix=$need_lib_prefix
20238
20239# Do we need a version for libraries?
20240need_version=$need_version
20241
20242# Whether dlopen is supported.
20243dlopen_support=$enable_dlopen
20244
20245# Whether dlopen of programs is supported.
20246dlopen_self=$enable_dlopen_self
20247
20248# Whether dlopen of statically linked programs is supported.
20249dlopen_self_static=$enable_dlopen_self_static
20250
20251# Compiler flag to prevent dynamic linking.
20252link_static_flag=$lt_lt_prog_compiler_static_RC
20253
20254# Compiler flag to turn off builtin functions.
20255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20256
20257# Compiler flag to allow reflexive dlopens.
20258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20259
20260# Compiler flag to generate shared objects directly from archives.
20261whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20262
20263# Compiler flag to generate thread-safe objects.
20264thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20265
20266# Library versioning type.
20267version_type=$version_type
20268
20269# Format of library name prefix.
20270libname_spec=$lt_libname_spec
20271
20272# List of archive names.  First name is the real one, the rest are links.
20273# The last name is the one that the linker finds with -lNAME.
20274library_names_spec=$lt_library_names_spec
20275
20276# The coded name of the library, if different from the real name.
20277soname_spec=$lt_soname_spec
20278
20279# Commands used to build and install an old-style archive.
20280RANLIB=$lt_RANLIB
20281old_archive_cmds=$lt_old_archive_cmds_RC
20282old_postinstall_cmds=$lt_old_postinstall_cmds
20283old_postuninstall_cmds=$lt_old_postuninstall_cmds
20284
20285# Create an old-style archive from a shared archive.
20286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20287
20288# Create a temporary old-style archive to link instead of a shared archive.
20289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20290
20291# Commands used to build and install a shared archive.
20292archive_cmds=$lt_archive_cmds_RC
20293archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20294postinstall_cmds=$lt_postinstall_cmds
20295postuninstall_cmds=$lt_postuninstall_cmds
20296
20297# Commands used to build a loadable module (assumed same as above if empty)
20298module_cmds=$lt_module_cmds_RC
20299module_expsym_cmds=$lt_module_expsym_cmds_RC
20300
20301# Commands to strip libraries.
20302old_striplib=$lt_old_striplib
20303striplib=$lt_striplib
20304
20305# Dependencies to place before the objects being linked to create a
20306# shared library.
20307predep_objects=$lt_predep_objects_RC
20308
20309# Dependencies to place after the objects being linked to create a
20310# shared library.
20311postdep_objects=$lt_postdep_objects_RC
20312
20313# Dependencies to place before the objects being linked to create a
20314# shared library.
20315predeps=$lt_predeps_RC
20316
20317# Dependencies to place after the objects being linked to create a
20318# shared library.
20319postdeps=$lt_postdeps_RC
20320
20321# The library search path used internally by the compiler when linking
20322# a shared library.
20323compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20324
20325# Method to check whether dependent libraries are shared objects.
20326deplibs_check_method=$lt_deplibs_check_method
20327
20328# Command to use when deplibs_check_method == file_magic.
20329file_magic_cmd=$lt_file_magic_cmd
20330
20331# Flag that allows shared libraries with undefined symbols to be built.
20332allow_undefined_flag=$lt_allow_undefined_flag_RC
20333
20334# Flag that forces no undefined symbols.
20335no_undefined_flag=$lt_no_undefined_flag_RC
20336
20337# Commands used to finish a libtool library installation in a directory.
20338finish_cmds=$lt_finish_cmds
20339
20340# Same as above, but a single script fragment to be evaled but not shown.
20341finish_eval=$lt_finish_eval
20342
20343# Take the output of nm and produce a listing of raw symbols and C names.
20344global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20345
20346# Transform the output of nm in a proper C declaration
20347global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20348
20349# Transform the output of nm in a C name address pair
20350global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20351
20352# This is the shared library runtime path variable.
20353runpath_var=$runpath_var
20354
20355# This is the shared library path variable.
20356shlibpath_var=$shlibpath_var
20357
20358# Is shlibpath searched before the hard-coded library search path?
20359shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20360
20361# How to hardcode a shared library path into an executable.
20362hardcode_action=$hardcode_action_RC
20363
20364# Whether we should hardcode library paths into libraries.
20365hardcode_into_libs=$hardcode_into_libs
20366
20367# Flag to hardcode \$libdir into a binary during linking.
20368# This must work even if \$libdir does not exist.
20369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20370
20371# If ld is used when linking, flag to hardcode \$libdir into
20372# a binary during linking. This must work even if \$libdir does
20373# not exist.
20374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20375
20376# Whether we need a single -rpath flag with a separated argument.
20377hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20378
20379# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20380# resulting binary.
20381hardcode_direct=$hardcode_direct_RC
20382
20383# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20384# resulting binary.
20385hardcode_minus_L=$hardcode_minus_L_RC
20386
20387# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20388# the resulting binary.
20389hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20390
20391# Set to yes if building a shared library automatically hardcodes DIR into the library
20392# and all subsequent libraries and executables linked against it.
20393hardcode_automatic=$hardcode_automatic_RC
20394
20395# Variables whose values should be saved in libtool wrapper scripts and
20396# restored at relink time.
20397variables_saved_for_relink="$variables_saved_for_relink"
20398
20399# Whether libtool must link a program against all its dependency libraries.
20400link_all_deplibs=$link_all_deplibs_RC
20401
20402# Compile-time system search path for libraries
20403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20404
20405# Run-time system search path for libraries
20406sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20407
20408# Fix the shell variable \$srcfile for the compiler.
20409fix_srcfile_path="$fix_srcfile_path_RC"
20410
20411# Set to yes if exported symbols are required.
20412always_export_symbols=$always_export_symbols_RC
20413
20414# The commands to list exported symbols.
20415export_symbols_cmds=$lt_export_symbols_cmds_RC
20416
20417# The commands to extract the exported symbol list from a shared archive.
20418extract_expsyms_cmds=$lt_extract_expsyms_cmds
20419
20420# Symbols that should not be listed in the preloaded symbols.
20421exclude_expsyms=$lt_exclude_expsyms_RC
20422
20423# Symbols that must always be exported.
20424include_expsyms=$lt_include_expsyms_RC
20425
20426# ### END LIBTOOL TAG CONFIG: $tagname
20427
20428__EOF__
20429
20430
20431else
20432  # If there is no Makefile yet, we rely on a make rule to execute
20433  # `config.status --recheck' to rerun these tests and create the
20434  # libtool script then.
20435  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20436  if test -f "$ltmain_in"; then
20437    test -f Makefile && make "$ltmain"
20438  fi
20439fi
20440
20441
20442ac_ext=c
20443ac_cpp='$CPP $CPPFLAGS'
20444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448CC="$lt_save_CC"
20449
20450	;;
20451
20452      *)
20453	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20454echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20455   { (exit 1); exit 1; }; }
20456	;;
20457      esac
20458
20459      # Append the new tag name to the list of available tags.
20460      if test -n "$tagname" ; then
20461      available_tags="$available_tags $tagname"
20462    fi
20463    fi
20464  done
20465  IFS="$lt_save_ifs"
20466
20467  # Now substitute the updated list of available tags.
20468  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20469    mv "${ofile}T" "$ofile"
20470    chmod +x "$ofile"
20471  else
20472    rm -f "${ofile}T"
20473    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20474echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20475   { (exit 1); exit 1; }; }
20476  fi
20477fi
20478
20479
20480
20481# This can be used to rebuild libtool when needed
20482LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20483
20484# Always use our own libtool.
20485LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20486
20487# Prevent multiple expansion
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20500 # AC_REQUIRE([AC_COIN_DLFCN_H])
20501
20502# NEW: If libtool exists in the directory higher up, we use that one
20503#      instead of creating a new one
20504
20505# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20506# out in front of this macro body. You'll notice that LIBTOOL is already
20507# defined here.  We'll have to count on this macro not being called if libtool
20508# already exists, or at least move the libtool fixes outside the conditional.
20509# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20510# This test is therefore removed.  -- lh, 061214 --
20511# if test "x$LIBTOOL" = x; then
20512
20513# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20524
20525
20526
20527  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20528echo "$as_me: Build is \"$build\"." >&6;}
20529  mydos2unix='| dos2unix'
20530  case $build in
20531    *-mingw*)
20532      CYGPATH_W=echo
20533      ;;
20534  esac
20535
20536  case $build in
20537    # Here we need to check if -m32 is specified.  If so, we need to correct
20538    # sys_lib_search_path_spec
20539    *-cygwin* | *-mingw*)
20540       case "$CXX" in
20541    clang* )
20542      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20543      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20544echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20545      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20546	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20547	  -e 's|libext="lib"|libext="a"|' \
20548      libtool > conftest.bla
20549      ;;
20550    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20551      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20552echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20553      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20554	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20555	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20556	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20557	  -e 's%lib /OUT:%lib -OUT:%' \
20558	  -e "s%cygpath -w%$CYGPATH_W%" \
20559	  -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%' \
20560	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20561	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20562	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20563	  -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"%' \
20564      libtool > conftest.bla
20565      ;;
20566    *)
20567      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20568echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20569      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20570	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20571	  -e 's|libext="lib"|libext="a"|' \
20572      libtool > conftest.bla
20573      ;;
20574  esac
20575  mv conftest.bla libtool
20576  chmod 755 libtool
20577
20578      ;;
20579    *x86_64-*)
20580      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20581        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20582echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20583        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20584        mv conftest.bla libtool
20585        chmod 755 libtool
20586      fi
20587      ;;
20588
20589    *-solaris*)
20590       if test "$GCC" = yes && \
20591     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20592    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20593    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20594      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20595echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20596      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20597      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20598      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20599	# AC_MSG_NOTICE(Compensating for broken gcc)
20600	for lib in $fixlibtmp ; do
20601	  if test -d "${lib}${hdwisa}" ; then
20602	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20603	  fi
20604	done
20605	syslibpath64="${syslibpath64} ${fixlibtmp}"
20606      else
20607	syslibpath64="$fixlibtmp"
20608      fi
20609      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20610      mv conftest.bla libtool
20611      chmod 755 libtool
20612    fi
20613    # AC_MSG_NOTICE(Result is )
20614    # $EGREP 'sys_lib_search_path_spec=' libtool
20615  fi
20616      ;;
20617    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20618    *-darwin*)
20619      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20620echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20621      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"/' \
20622        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20623      libtool > conftest.bla
20624
20625      mv conftest.bla libtool
20626      chmod 755 libtool
20627      ;;
20628  esac
20629# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20630# the macro. -- lh, 061214 --
20631# fi
20632
20633# AC_MSG_NOTICE([End libtool initialisation.])
20634
20635# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20636  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20637  # of the shared objects
20638  RPATH_FLAGS=
20639
20640if test $enable_shared = yes; then
20641  case $build in
20642    *-linux-*)
20643      if test "$GXX" = "yes"; then
20644        RPATH_FLAGS=
20645        for dir in $abs_lib_dir; do
20646          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20647        done
20648      fi ;;
20649    *-darwin*)
20650        RPATH_FLAGS=nothing ;;
20651    *-ibm-*)
20652      case "$CXX" in
20653      xlC* | */xlC* | mpxlC* | */mpxlC*)
20654        RPATH_FLAGS=nothing ;;
20655      esac ;;
20656    *-hp-*)
20657        RPATH_FLAGS=nothing ;;
20658    *-mingw32)
20659        RPATH_FLAGS=nothing ;;
20660    *-*-solaris*)
20661        RPATH_FLAGS=
20662        for dir in $abs_lib_dir; do
20663          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20664        done
20665  esac
20666
20667  if test "$RPATH_FLAGS" = ""; then
20668    { 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
20669echo "$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;}
20670  fi
20671  if test "$RPATH_FLAGS" = "nothing"; then
20672    RPATH_FLAGS=
20673  fi
20674fi
20675
20676
20677
20678
20679else
20680
20681  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20682echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20683  # get all missing information from the config.log file
20684
20685  # output variables and defines
20686  as_save_IFS=$IFS
20687  IFS='
20688'
20689  for oneline in `cat $coin_config_dir/config.status`; do
20690    case "$oneline" in
20691         # First some automake conditionals
20692      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20693      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20694      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20695      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20696        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20697#        echo "$command"
20698        eval "$command"
20699        ;;
20700      s,@DEFS@* )
20701        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20702#        echo "$command"
20703        eval "$command"
20704        ;;
20705    esac
20706  done
20707  IFS=$as_save_IFS
20708
20709  # And some defines (assuming here that the packages base dir
20710  # doesn't have a config.h file
20711  for word in $defsline; do
20712#    echo word $word
20713    case $word in
20714      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20715        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20716#        echo dd $i
20717        echo $i >>confdefs.h
20718        ;;
20719    esac
20720  done
20721fi
20722
20723# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20724
20725# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20726if test "${enable_dependency_linking+set}" = set; then
20727  enableval="$enable_dependency_linking"
20728  dependency_linking="$enableval"
20729else
20730  dependency_linking=auto
20731fi;
20732
20733if test "$dependency_linking" = auto; then
20734  # On Cygwin and AIX, building DLLs doesn't work
20735  dependency_linking=no
20736  if test x"$coin_disable_shared" = xno; then
20737    case $build in
20738      *-cygwin* | *-mingw*)
20739        case "$CC" in
20740          clang* )
20741            dependency_linking=yes
20742            ;;
20743          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20744            dependency_linking=no
20745            ;;
20746          *gcc*)
20747            dependency_linking=yes
20748            ;;
20749          *)
20750            dependency_linking=yes
20751            ;;
20752        esac
20753        ;;
20754      *)
20755        dependency_linking=yes
20756        ;;
20757    esac
20758  fi
20759fi
20760
20761if test "$dependency_linking" = yes ;
20762then
20763  LT_LDFLAGS="-no-undefined"
20764else
20765  LT_LDFLAGS=
20766fi
20767
20768
20769
20770if test "$dependency_linking" = yes; then
20771  DEPENDENCY_LINKING_TRUE=
20772  DEPENDENCY_LINKING_FALSE='#'
20773else
20774  DEPENDENCY_LINKING_TRUE='#'
20775  DEPENDENCY_LINKING_FALSE=
20776fi
20777
20778
20779# Check if we want to set the library version
20780echo "$as_me:$LINENO: checking if library version is set" >&5
20781echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20782if test x"$coin_libversion" != x; then
20783  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20784  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20785echo "${ECHO_T}$coin_libversion" >&6
20786else
20787  echo "$as_me:$LINENO: result: no" >&5
20788echo "${ECHO_T}no" >&6
20789fi
20790
20791
20792
20793#END
20794}
20795# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
20796
20797
20798#############################################################################
20799#                  Check which subprojects are there                        #
20800#############################################################################
20801
20802
20803echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5
20804echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6
20805
20806coin_has_coinutils=notGiven
20807coin_reason=
20808
20809# check if user wants to skip project in any case
20810
20811if test x"$COIN_SKIP_PROJECTS" != x; then
20812  for dir in $COIN_SKIP_PROJECTS; do
20813    if test $dir = "CoinUtils"; then
20814      coin_has_coinutils="no"
20815      coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS"
20816    fi
20817
20818  done
20819fi
20820
20821if test "$coin_has_coinutils" != no; then
20822
20823# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20824if test "${with_coinutils+set}" = set; then
20825  withval="$with_coinutils"
20826  if test "$withval" = no ; then
20827       coin_has_coinutils="no"
20828       coin_reason="--without-coinutils has been specified"
20829     fi
20830
20831fi;
20832fi
20833
20834if test "$coin_has_coinutils" != no; then
20835
20836# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20837if test "${with_coinutils_lib+set}" = set; then
20838  withval="$with_coinutils_lib"
20839  if test "$withval" = no ; then
20840       coin_has_coinutils="no"
20841       coin_reason="--without-coinutils-lib has been specified"
20842     else
20843       coin_has_coinutils="no"
20844       coin_reason="--with-coinutils-lib has been specified"
20845     fi
20846fi;
20847fi
20848
20849if test "$coin_has_coinutils" != no; then
20850
20851# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20852if test "${with_coinutils_incdir+set}" = set; then
20853  withval="$with_coinutils_incdir"
20854  if test "$withval" = no ; then
20855       coin_has_coinutils="no"
20856       coin_reason="--without-coinutils-incdir has been specified"
20857     else
20858       coin_has_coinutils="no"
20859       coin_reason="--with-coinutils-incdir has been specified"
20860     fi
20861fi;
20862fi
20863
20864if test "$coin_has_coinutils" != no; then
20865
20866# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20867if test "${with_coinutils_datadir+set}" = set; then
20868  withval="$with_coinutils_datadir"
20869  if test "$withval" = no ; then
20870       coin_has_coinutils="no"
20871       coin_reason="--without-coinutils-datadir has been specified"
20872     else
20873       coin_has_coinutils="no"
20874       coin_reason="--with-coinutils-datadir has been specified"
20875     fi
20876fi;
20877fi
20878
20879
20880
20881
20882
20883# check if project is available in present directory
20884if test "$coin_has_coinutils" = notGiven; then
20885  coin_has_coinutils=no
20886  if test -d $srcdir/CoinUtils; then
20887    coin_reason="source in CoinUtils"
20888    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
20889    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
20890    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
20891     coin_has_coinutils="yes"
20892
20893  fi
20894fi
20895
20896if test -z "$coin_reason" ; then
20897  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
20898echo "${ECHO_T}$coin_has_coinutils" >&6
20899else
20900  echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5
20901echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6
20902fi
20903
20904if test "$coin_has_coinutils" = yes ; then
20905  if test -r $srcdir/CoinUtils/configure; then
20906    coin_subdirs="$coin_subdirs CoinUtils"
20907
20908
20909subdirs="$subdirs CoinUtils"
20910
20911  fi
20912fi
20913
20914
20915echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5
20916echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6
20917
20918coin_has_osi=notGiven
20919coin_reason=
20920
20921# check if user wants to skip project in any case
20922
20923if test x"$COIN_SKIP_PROJECTS" != x; then
20924  for dir in $COIN_SKIP_PROJECTS; do
20925    if test $dir = "Osi"; then
20926      coin_has_osi="no"
20927      coin_reason="Osi has been specified in COIN_SKIP_PROJECTS"
20928    fi
20929
20930  done
20931fi
20932
20933if test "$coin_has_osi" != no; then
20934
20935# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
20936if test "${with_osi+set}" = set; then
20937  withval="$with_osi"
20938  if test "$withval" = no ; then
20939       coin_has_osi="no"
20940       coin_reason="--without-osi has been specified"
20941     fi
20942
20943fi;
20944fi
20945
20946if test "$coin_has_osi" != no; then
20947
20948# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
20949if test "${with_osi_lib+set}" = set; then
20950  withval="$with_osi_lib"
20951  if test "$withval" = no ; then
20952       coin_has_osi="no"
20953       coin_reason="--without-osi-lib has been specified"
20954     else
20955       coin_has_osi="no"
20956       coin_reason="--with-osi-lib has been specified"
20957     fi
20958fi;
20959fi
20960
20961if test "$coin_has_osi" != no; then
20962
20963# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
20964if test "${with_osi_incdir+set}" = set; then
20965  withval="$with_osi_incdir"
20966  if test "$withval" = no ; then
20967       coin_has_osi="no"
20968       coin_reason="--without-osi-incdir has been specified"
20969     else
20970       coin_has_osi="no"
20971       coin_reason="--with-osi-incdir has been specified"
20972     fi
20973fi;
20974fi
20975
20976if test "$coin_has_osi" != no; then
20977
20978# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
20979if test "${with_osi_datadir+set}" = set; then
20980  withval="$with_osi_datadir"
20981  if test "$withval" = no ; then
20982       coin_has_osi="no"
20983       coin_reason="--without-osi-datadir has been specified"
20984     else
20985       coin_has_osi="no"
20986       coin_reason="--with-osi-datadir has been specified"
20987     fi
20988fi;
20989fi
20990
20991
20992
20993
20994
20995# check if project is available in present directory
20996if test "$coin_has_osi" = notGiven; then
20997  coin_has_osi=no
20998  if test -d $srcdir/Osi; then
20999    coin_reason="source in Osi"
21000    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21001    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21002    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21003     coin_has_osi="yes"
21004
21005  fi
21006fi
21007
21008if test -z "$coin_reason" ; then
21009  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21010echo "${ECHO_T}$coin_has_osi" >&6
21011else
21012  echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5
21013echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6
21014fi
21015
21016if test "$coin_has_osi" = yes ; then
21017  if test -r $srcdir/Osi/configure; then
21018    coin_subdirs="$coin_subdirs Osi"
21019
21020
21021subdirs="$subdirs Osi"
21022
21023  fi
21024fi
21025
21026
21027echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5
21028echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6
21029
21030coin_has_clp=notGiven
21031coin_reason=
21032
21033# check if user wants to skip project in any case
21034
21035if test x"$COIN_SKIP_PROJECTS" != x; then
21036  for dir in $COIN_SKIP_PROJECTS; do
21037    if test $dir = "Clp"; then
21038      coin_has_clp="no"
21039      coin_reason="Clp has been specified in COIN_SKIP_PROJECTS"
21040    fi
21041
21042  done
21043fi
21044
21045if test "$coin_has_clp" != no; then
21046
21047# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21048if test "${with_clp+set}" = set; then
21049  withval="$with_clp"
21050  if test "$withval" = no ; then
21051       coin_has_clp="no"
21052       coin_reason="--without-clp has been specified"
21053     fi
21054
21055fi;
21056fi
21057
21058if test "$coin_has_clp" != no; then
21059
21060# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21061if test "${with_clp_lib+set}" = set; then
21062  withval="$with_clp_lib"
21063  if test "$withval" = no ; then
21064       coin_has_clp="no"
21065       coin_reason="--without-clp-lib has been specified"
21066     else
21067       coin_has_clp="no"
21068       coin_reason="--with-clp-lib has been specified"
21069     fi
21070fi;
21071fi
21072
21073if test "$coin_has_clp" != no; then
21074
21075# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21076if test "${with_clp_incdir+set}" = set; then
21077  withval="$with_clp_incdir"
21078  if test "$withval" = no ; then
21079       coin_has_clp="no"
21080       coin_reason="--without-clp-incdir has been specified"
21081     else
21082       coin_has_clp="no"
21083       coin_reason="--with-clp-incdir has been specified"
21084     fi
21085fi;
21086fi
21087
21088if test "$coin_has_clp" != no; then
21089
21090# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21091if test "${with_clp_datadir+set}" = set; then
21092  withval="$with_clp_datadir"
21093  if test "$withval" = no ; then
21094       coin_has_clp="no"
21095       coin_reason="--without-clp-datadir has been specified"
21096     else
21097       coin_has_clp="no"
21098       coin_reason="--with-clp-datadir has been specified"
21099     fi
21100fi;
21101fi
21102
21103
21104
21105
21106
21107# check if project is available in present directory
21108if test "$coin_has_clp" = notGiven; then
21109  coin_has_clp=no
21110  if test -d $srcdir/Clp; then
21111    coin_reason="source in Clp"
21112    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21113    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21114    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21115     coin_has_clp="yes"
21116
21117  fi
21118fi
21119
21120if test -z "$coin_reason" ; then
21121  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
21122echo "${ECHO_T}$coin_has_clp" >&6
21123else
21124  echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5
21125echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6
21126fi
21127
21128if test "$coin_has_clp" = yes ; then
21129  if test -r $srcdir/Clp/configure; then
21130    coin_subdirs="$coin_subdirs Clp"
21131
21132
21133subdirs="$subdirs Clp"
21134
21135  fi
21136fi
21137
21138
21139echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5
21140echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6
21141
21142coin_has_cgl=notGiven
21143coin_reason=
21144
21145# check if user wants to skip project in any case
21146
21147if test x"$COIN_SKIP_PROJECTS" != x; then
21148  for dir in $COIN_SKIP_PROJECTS; do
21149    if test $dir = "Cgl"; then
21150      coin_has_cgl="no"
21151      coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS"
21152    fi
21153
21154  done
21155fi
21156
21157if test "$coin_has_cgl" != no; then
21158
21159# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given.
21160if test "${with_cgl+set}" = set; then
21161  withval="$with_cgl"
21162  if test "$withval" = no ; then
21163       coin_has_cgl="no"
21164       coin_reason="--without-cgl has been specified"
21165     fi
21166
21167fi;
21168fi
21169
21170if test "$coin_has_cgl" != no; then
21171
21172# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given.
21173if test "${with_cgl_lib+set}" = set; then
21174  withval="$with_cgl_lib"
21175  if test "$withval" = no ; then
21176       coin_has_cgl="no"
21177       coin_reason="--without-cgl-lib has been specified"
21178     else
21179       coin_has_cgl="no"
21180       coin_reason="--with-cgl-lib has been specified"
21181     fi
21182fi;
21183fi
21184
21185if test "$coin_has_cgl" != no; then
21186
21187# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given.
21188if test "${with_cgl_incdir+set}" = set; then
21189  withval="$with_cgl_incdir"
21190  if test "$withval" = no ; then
21191       coin_has_cgl="no"
21192       coin_reason="--without-cgl-incdir has been specified"
21193     else
21194       coin_has_cgl="no"
21195       coin_reason="--with-cgl-incdir has been specified"
21196     fi
21197fi;
21198fi
21199
21200if test "$coin_has_cgl" != no; then
21201
21202# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given.
21203if test "${with_cgl_datadir+set}" = set; then
21204  withval="$with_cgl_datadir"
21205  if test "$withval" = no ; then
21206       coin_has_cgl="no"
21207       coin_reason="--without-cgl-datadir has been specified"
21208     else
21209       coin_has_cgl="no"
21210       coin_reason="--with-cgl-datadir has been specified"
21211     fi
21212fi;
21213fi
21214
21215
21216
21217
21218
21219# check if project is available in present directory
21220if test "$coin_has_cgl" = notGiven; then
21221  coin_has_cgl=no
21222  if test -d $srcdir/Cgl; then
21223    coin_reason="source in Cgl"
21224    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21225    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21226    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21227     coin_has_cgl="yes"
21228
21229  fi
21230fi
21231
21232if test -z "$coin_reason" ; then
21233  echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
21234echo "${ECHO_T}$coin_has_cgl" >&6
21235else
21236  echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5
21237echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6
21238fi
21239
21240if test "$coin_has_cgl" = yes ; then
21241  if test -r $srcdir/Cgl/configure; then
21242    coin_subdirs="$coin_subdirs Cgl"
21243
21244
21245subdirs="$subdirs Cgl"
21246
21247  fi
21248fi
21249
21250
21251echo "$as_me:$LINENO: checking whether source of project Cbc is available and should be compiled" >&5
21252echo $ECHO_N "checking whether source of project Cbc is available and should be compiled... $ECHO_C" >&6
21253
21254coin_has_cbc=notGiven
21255coin_reason=
21256
21257# check if user wants to skip project in any case
21258
21259if test x"$COIN_SKIP_PROJECTS" != x; then
21260  for dir in $COIN_SKIP_PROJECTS; do
21261    if test $dir = "Cbc"; then
21262      coin_has_cbc="no"
21263      coin_reason="Cbc has been specified in COIN_SKIP_PROJECTS"
21264    fi
21265
21266  done
21267fi
21268
21269if test "$coin_has_cbc" != no; then
21270
21271# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
21272if test "${with_cbc+set}" = set; then
21273  withval="$with_cbc"
21274  if test "$withval" = no ; then
21275       coin_has_cbc="no"
21276       coin_reason="--without-cbc has been specified"
21277     fi
21278
21279fi;
21280fi
21281
21282if test "$coin_has_cbc" != no; then
21283
21284# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
21285if test "${with_cbc_lib+set}" = set; then
21286  withval="$with_cbc_lib"
21287  if test "$withval" = no ; then
21288       coin_has_cbc="no"
21289       coin_reason="--without-cbc-lib has been specified"
21290     else
21291       coin_has_cbc="no"
21292       coin_reason="--with-cbc-lib has been specified"
21293     fi
21294fi;
21295fi
21296
21297if test "$coin_has_cbc" != no; then
21298
21299# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
21300if test "${with_cbc_incdir+set}" = set; then
21301  withval="$with_cbc_incdir"
21302  if test "$withval" = no ; then
21303       coin_has_cbc="no"
21304       coin_reason="--without-cbc-incdir has been specified"
21305     else
21306       coin_has_cbc="no"
21307       coin_reason="--with-cbc-incdir has been specified"
21308     fi
21309fi;
21310fi
21311
21312if test "$coin_has_cbc" != no; then
21313
21314# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
21315if test "${with_cbc_datadir+set}" = set; then
21316  withval="$with_cbc_datadir"
21317  if test "$withval" = no ; then
21318       coin_has_cbc="no"
21319       coin_reason="--without-cbc-datadir has been specified"
21320     else
21321       coin_has_cbc="no"
21322       coin_reason="--with-cbc-datadir has been specified"
21323     fi
21324fi;
21325fi
21326
21327
21328
21329
21330
21331# check if project is available in present directory
21332if test "$coin_has_cbc" = notGiven; then
21333  coin_has_cbc=no
21334  if test -d $srcdir/Cbc; then
21335    coin_reason="source in Cbc"
21336    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21337    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21338    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21339     coin_has_cbc="yes"
21340
21341  fi
21342fi
21343
21344if test -z "$coin_reason" ; then
21345  echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
21346echo "${ECHO_T}$coin_has_cbc" >&6
21347else
21348  echo "$as_me:$LINENO: result: $coin_has_cbc, $coin_reason" >&5
21349echo "${ECHO_T}$coin_has_cbc, $coin_reason" >&6
21350fi
21351
21352if test "$coin_has_cbc" = yes ; then
21353  if test -r $srcdir/Cbc/configure; then
21354    coin_subdirs="$coin_subdirs Cbc"
21355
21356
21357subdirs="$subdirs Cbc"
21358
21359  fi
21360fi
21361
21362
21363echo "$as_me:$LINENO: checking whether source of project FlopCpp is available and should be compiled" >&5
21364echo $ECHO_N "checking whether source of project FlopCpp is available and should be compiled... $ECHO_C" >&6
21365
21366coin_has_flopcpp=notGiven
21367coin_reason=
21368
21369# check if user wants to skip project in any case
21370
21371if test x"$COIN_SKIP_PROJECTS" != x; then
21372  for dir in $COIN_SKIP_PROJECTS; do
21373    if test $dir = "FlopCpp"; then
21374      coin_has_flopcpp="no"
21375      coin_reason="FlopCpp has been specified in COIN_SKIP_PROJECTS"
21376    fi
21377
21378  done
21379fi
21380
21381if test "$coin_has_flopcpp" != no; then
21382
21383# Check whether --with-m4_tolower(FlopCpp) or --without-m4_tolower(FlopCpp) was given.
21384if test "${with_flopcpp+set}" = set; then
21385  withval="$with_flopcpp"
21386  if test "$withval" = no ; then
21387       coin_has_flopcpp="no"
21388       coin_reason="--without-flopcpp has been specified"
21389     fi
21390
21391fi;
21392fi
21393
21394if test "$coin_has_flopcpp" != no; then
21395
21396# Check whether --with-m4_tolower(FlopCpp)-lib or --without-m4_tolower(FlopCpp)-lib was given.
21397if test "${with_flopcpp_lib+set}" = set; then
21398  withval="$with_flopcpp_lib"
21399  if test "$withval" = no ; then
21400       coin_has_flopcpp="no"
21401       coin_reason="--without-flopcpp-lib has been specified"
21402     else
21403       coin_has_flopcpp="no"
21404       coin_reason="--with-flopcpp-lib has been specified"
21405     fi
21406fi;
21407fi
21408
21409if test "$coin_has_flopcpp" != no; then
21410
21411# Check whether --with-m4_tolower(FlopCpp)-incdir or --without-m4_tolower(FlopCpp)-incdir was given.
21412if test "${with_flopcpp_incdir+set}" = set; then
21413  withval="$with_flopcpp_incdir"
21414  if test "$withval" = no ; then
21415       coin_has_flopcpp="no"
21416       coin_reason="--without-flopcpp-incdir has been specified"
21417     else
21418       coin_has_flopcpp="no"
21419       coin_reason="--with-flopcpp-incdir has been specified"
21420     fi
21421fi;
21422fi
21423
21424if test "$coin_has_flopcpp" != no; then
21425
21426# Check whether --with-m4_tolower(FlopCpp)-datadir or --without-m4_tolower(FlopCpp)-datadir was given.
21427if test "${with_flopcpp_datadir+set}" = set; then
21428  withval="$with_flopcpp_datadir"
21429  if test "$withval" = no ; then
21430       coin_has_flopcpp="no"
21431       coin_reason="--without-flopcpp-datadir has been specified"
21432     else
21433       coin_has_flopcpp="no"
21434       coin_reason="--with-flopcpp-datadir has been specified"
21435     fi
21436fi;
21437fi
21438
21439
21440
21441
21442
21443# check if project is available in present directory
21444if test "$coin_has_flopcpp" = notGiven; then
21445  coin_has_flopcpp=no
21446  if test -d $srcdir/FlopCpp; then
21447    coin_reason="source in FlopCpp"
21448    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
21449    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
21450    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
21451     coin_has_flopcpp="yes"
21452
21453  fi
21454fi
21455
21456if test -z "$coin_reason" ; then
21457  echo "$as_me:$LINENO: result: $coin_has_flopcpp" >&5
21458echo "${ECHO_T}$coin_has_flopcpp" >&6
21459else
21460  echo "$as_me:$LINENO: result: $coin_has_flopcpp, $coin_reason" >&5
21461echo "${ECHO_T}$coin_has_flopcpp, $coin_reason" >&6
21462fi
21463
21464if test "$coin_has_flopcpp" = yes ; then
21465  if test -r $srcdir/FlopCpp/configure; then
21466    coin_subdirs="$coin_subdirs FlopCpp"
21467
21468
21469subdirs="$subdirs FlopCpp"
21470
21471  fi
21472fi
21473
21474
21475##############################################################################
21476#                   Finishing up by writing all the output                   #
21477##############################################################################
21478
21479# Here list all the files that configure should create (except for the
21480# configuration header file)
21481          ac_config_files="$ac_config_files Makefile"
21482
21483
21484# Finally, we let configure write all the output...
21485
21486
21487
21488
21489echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
21490echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
21491coin_link_input_cmd="$LN_S"
21492case "$CC" in
21493  clang* ) ;;
21494  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21495    coin_link_input_cmd=cp ;;
21496esac
21497echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
21498echo "${ECHO_T}$coin_link_input_cmd" >&6
21499
21500
21501
21502if test x$coin_skip_ac_output != xyes; then
21503
21504  # library extension
21505
21506  case "$CC" in
21507    clang* )
21508         LIBEXT=a ;;
21509    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21510         LIBEXT=lib ;;
21511      *) LIBEXT=a ;;
21512  esac
21513
21514  # Define VPATH_DISTCLEANFILES to be everything that needs to be
21515  # cleaned for distclean in a vpath configuration
21516
21517  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
21518
21519  # Take out subdirectories if their configuration concluded that they
21520  # don't need to be compiled
21521  if test x"$coin_ac_skip_subdirs" != x; then
21522    new_subdirs=
21523    for i in $subdirs; do
21524      skipme=no
21525      for j in $coin_ac_skip_subdirs; do
21526        if test $i = $j; then
21527          skipme=yes;
21528        fi
21529      done
21530      if test $skipme = no; then
21531        new_subdirs="$new_subdirs $i"
21532      fi
21533    done
21534    subdirs="$new_subdirs"
21535  fi
21536
21537  # need to come before AC_OUTPUT
21538  if test x$coin_projectdir != xyes; then
21539    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
21540    echo $coin_subdirs > coin_subdirs.txt
21541  else
21542    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
21543    ABSBUILDDIR="`pwd`"
21544
21545  fi
21546
21547  cat >confcache <<\_ACEOF
21548# This file is a shell script that caches the results of configure
21549# tests run on this system so they can be shared between configure
21550# scripts and configure runs, see configure's option --config-cache.
21551# It is not useful on other systems.  If it contains results you don't
21552# want to keep, you may remove or edit it.
21553#
21554# config.status only pays attention to the cache file if you give it
21555# the --recheck option to rerun configure.
21556#
21557# `ac_cv_env_foo' variables (set or unset) will be overridden when
21558# loading this file, other *unset* `ac_cv_foo' will be assigned the
21559# following values.
21560
21561_ACEOF
21562
21563# The following way of writing the cache mishandles newlines in values,
21564# but we know of no workaround that is simple, portable, and efficient.
21565# So, don't put newlines in cache variables' values.
21566# Ultrix sh set writes to stderr and can't be redirected directly,
21567# and sets the high bit in the cache file unless we assign to the vars.
21568{
21569  (set) 2>&1 |
21570    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21571    *ac_space=\ *)
21572      # `set' does not quote correctly, so add quotes (double-quote
21573      # substitution turns \\\\ into \\, and sed turns \\ into \).
21574      sed -n \
21575	"s/'/'\\\\''/g;
21576	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21577      ;;
21578    *)
21579      # `set' quotes correctly as required by POSIX, so do not add quotes.
21580      sed -n \
21581	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21582      ;;
21583    esac;
21584} |
21585  sed '
21586     t clear
21587     : clear
21588     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21589     t end
21590     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21591     : end' >>confcache
21592if diff $cache_file confcache >/dev/null 2>&1; then :; else
21593  if test -w $cache_file; then
21594    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21595    cat confcache >$cache_file
21596  else
21597    echo "not updating unwritable cache $cache_file"
21598  fi
21599fi
21600rm -f confcache
21601
21602test "x$prefix" = xNONE && prefix=$ac_default_prefix
21603# Let make expand exec_prefix.
21604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21605
21606# VPATH may cause trouble with some makes, so we remove $(srcdir),
21607# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21608# trailing colons and then remove the whole line if VPATH becomes empty
21609# (actually we leave an empty line to preserve line numbers).
21610if test "x$srcdir" = x.; then
21611  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21612s/:*\$(srcdir):*/:/;
21613s/:*\${srcdir}:*/:/;
21614s/:*@srcdir@:*/:/;
21615s/^\([^=]*=[	 ]*\):*/\1/;
21616s/:*$//;
21617s/^[^=]*=[	 ]*$//;
21618}'
21619fi
21620
21621# Transform confdefs.h into DEFS.
21622# Protect against shell expansion while executing Makefile rules.
21623# Protect against Makefile macro expansion.
21624#
21625# If the first sed substitution is executed (which looks for macros that
21626# take arguments), then we branch to the quote section.  Otherwise,
21627# look for a macro that doesn't take arguments.
21628cat >confdef2opt.sed <<\_ACEOF
21629t clear
21630: clear
21631s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21632t quote
21633s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21634t quote
21635d
21636: quote
21637s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21638s,\[,\\&,g
21639s,\],\\&,g
21640s,\$,$$,g
21641p
21642_ACEOF
21643# We use echo to avoid assuming a particular line-breaking character.
21644# The extra dot is to prevent the shell from consuming trailing
21645# line-breaks from the sub-command output.  A line-break within
21646# single-quotes doesn't work because, if this script is created in a
21647# platform that uses two characters for line-breaks (e.g., DOS), tr
21648# would break.
21649ac_LF_and_DOT=`echo; echo .`
21650DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21651rm -f confdef2opt.sed
21652
21653
21654ac_libobjs=
21655ac_ltlibobjs=
21656for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21657  # 1. Remove the extension, and $U if already installed.
21658  ac_i=`echo "$ac_i" |
21659	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21660  # 2. Add them.
21661  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21662  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21663done
21664LIBOBJS=$ac_libobjs
21665
21666LTLIBOBJS=$ac_ltlibobjs
21667
21668
21669if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
21670  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
21671Usually this means the macro was only invoked conditionally." >&5
21672echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
21673Usually this means the macro was only invoked conditionally." >&2;}
21674   { (exit 1); exit 1; }; }
21675fi
21676if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
21677  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21678Usually this means the macro was only invoked conditionally." >&5
21679echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
21680Usually this means the macro was only invoked conditionally." >&2;}
21681   { (exit 1); exit 1; }; }
21682fi
21683if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21684  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21685Usually this means the macro was only invoked conditionally." >&5
21686echo "$as_me: error: conditional \"AMDEP\" was never defined.
21687Usually this means the macro was only invoked conditionally." >&2;}
21688   { (exit 1); exit 1; }; }
21689fi
21690if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21691  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21692Usually this means the macro was only invoked conditionally." >&5
21693echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21694Usually this means the macro was only invoked conditionally." >&2;}
21695   { (exit 1); exit 1; }; }
21696fi
21697if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21698  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21699Usually this means the macro was only invoked conditionally." >&5
21700echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21701Usually this means the macro was only invoked conditionally." >&2;}
21702   { (exit 1); exit 1; }; }
21703fi
21704if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21705  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21706Usually this means the macro was only invoked conditionally." >&5
21707echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21708Usually this means the macro was only invoked conditionally." >&2;}
21709   { (exit 1); exit 1; }; }
21710fi
21711if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
21712  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
21713Usually this means the macro was only invoked conditionally." >&5
21714echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
21715Usually this means the macro was only invoked conditionally." >&2;}
21716   { (exit 1); exit 1; }; }
21717fi
21718if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
21719  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21720Usually this means the macro was only invoked conditionally." >&5
21721echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
21722Usually this means the macro was only invoked conditionally." >&2;}
21723   { (exit 1); exit 1; }; }
21724fi
21725
21726: ${CONFIG_STATUS=./config.status}
21727ac_clean_files_save=$ac_clean_files
21728ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21729{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21730echo "$as_me: creating $CONFIG_STATUS" >&6;}
21731cat >$CONFIG_STATUS <<_ACEOF
21732#! $SHELL
21733# Generated by $as_me.
21734# Run this file to recreate the current configuration.
21735# Compiler output produced by configure, useful for debugging
21736# configure, is in config.log if it exists.
21737
21738debug=false
21739ac_cs_recheck=false
21740ac_cs_silent=false
21741SHELL=\${CONFIG_SHELL-$SHELL}
21742_ACEOF
21743
21744cat >>$CONFIG_STATUS <<\_ACEOF
21745## --------------------- ##
21746## M4sh Initialization.  ##
21747## --------------------- ##
21748
21749# Be Bourne compatible
21750if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21751  emulate sh
21752  NULLCMD=:
21753  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21754  # is contrary to our usage.  Disable this feature.
21755  alias -g '${1+"$@"}'='"$@"'
21756elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21757  set -o posix
21758fi
21759DUALCASE=1; export DUALCASE # for MKS sh
21760
21761# Support unset when possible.
21762if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21763  as_unset=unset
21764else
21765  as_unset=false
21766fi
21767
21768
21769# Work around bugs in pre-3.0 UWIN ksh.
21770$as_unset ENV MAIL MAILPATH
21771PS1='$ '
21772PS2='> '
21773PS4='+ '
21774
21775# NLS nuisances.
21776for as_var in \
21777  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21778  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21779  LC_TELEPHONE LC_TIME
21780do
21781  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21782    eval $as_var=C; export $as_var
21783  else
21784    $as_unset $as_var
21785  fi
21786done
21787
21788# Required to use basename.
21789if expr a : '\(a\)' >/dev/null 2>&1; then
21790  as_expr=expr
21791else
21792  as_expr=false
21793fi
21794
21795if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21796  as_basename=basename
21797else
21798  as_basename=false
21799fi
21800
21801
21802# Name of the executable.
21803as_me=`$as_basename "$0" ||
21804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21805	 X"$0" : 'X\(//\)$' \| \
21806	 X"$0" : 'X\(/\)$' \| \
21807	 .     : '\(.\)' 2>/dev/null ||
21808echo X/"$0" |
21809    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21810  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21811  	  /^X\/\(\/\).*/{ s//\1/; q; }
21812  	  s/.*/./; q'`
21813
21814
21815# PATH needs CR, and LINENO needs CR and PATH.
21816# Avoid depending upon Character Ranges.
21817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820as_cr_digits='0123456789'
21821as_cr_alnum=$as_cr_Letters$as_cr_digits
21822
21823# The user is always right.
21824if test "${PATH_SEPARATOR+set}" != set; then
21825  echo "#! /bin/sh" >conf$$.sh
21826  echo  "exit 0"   >>conf$$.sh
21827  chmod +x conf$$.sh
21828  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21829    PATH_SEPARATOR=';'
21830  else
21831    PATH_SEPARATOR=:
21832  fi
21833  rm -f conf$$.sh
21834fi
21835
21836
21837  as_lineno_1=$LINENO
21838  as_lineno_2=$LINENO
21839  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21840  test "x$as_lineno_1" != "x$as_lineno_2" &&
21841  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21842  # Find who we are.  Look in the path if we contain no path at all
21843  # relative or not.
21844  case $0 in
21845    *[\\/]* ) as_myself=$0 ;;
21846    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21847for as_dir in $PATH
21848do
21849  IFS=$as_save_IFS
21850  test -z "$as_dir" && as_dir=.
21851  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21852done
21853
21854       ;;
21855  esac
21856  # We did not find ourselves, most probably we were run as `sh COMMAND'
21857  # in which case we are not to be found in the path.
21858  if test "x$as_myself" = x; then
21859    as_myself=$0
21860  fi
21861  if test ! -f "$as_myself"; then
21862    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21863echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21864   { (exit 1); exit 1; }; }
21865  fi
21866  case $CONFIG_SHELL in
21867  '')
21868    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21869for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21870do
21871  IFS=$as_save_IFS
21872  test -z "$as_dir" && as_dir=.
21873  for as_base in sh bash ksh sh5; do
21874	 case $as_dir in
21875	 /*)
21876	   if ("$as_dir/$as_base" -c '
21877  as_lineno_1=$LINENO
21878  as_lineno_2=$LINENO
21879  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21880  test "x$as_lineno_1" != "x$as_lineno_2" &&
21881  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21882	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21883	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21884	     CONFIG_SHELL=$as_dir/$as_base
21885	     export CONFIG_SHELL
21886	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21887	   fi;;
21888	 esac
21889       done
21890done
21891;;
21892  esac
21893
21894  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21895  # uniformly replaced by the line number.  The first 'sed' inserts a
21896  # line-number line before each line; the second 'sed' does the real
21897  # work.  The second script uses 'N' to pair each line-number line
21898  # with the numbered line, and appends trailing '-' during
21899  # substitution so that $LINENO is not a special case at line end.
21900  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21901  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21902  sed '=' <$as_myself |
21903    sed '
21904      N
21905      s,$,-,
21906      : loop
21907      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21908      t loop
21909      s,-$,,
21910      s,^['$as_cr_digits']*\n,,
21911    ' >$as_me.lineno &&
21912  chmod +x $as_me.lineno ||
21913    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21914echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21915   { (exit 1); exit 1; }; }
21916
21917  # Don't try to exec as it changes $[0], causing all sort of problems
21918  # (the dirname of $[0] is not the place where we might find the
21919  # original and so on.  Autoconf is especially sensible to this).
21920  . ./$as_me.lineno
21921  # Exit status is that of the last command.
21922  exit
21923}
21924
21925
21926case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21927  *c*,-n*) ECHO_N= ECHO_C='
21928' ECHO_T='	' ;;
21929  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21930  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21931esac
21932
21933if expr a : '\(a\)' >/dev/null 2>&1; then
21934  as_expr=expr
21935else
21936  as_expr=false
21937fi
21938
21939rm -f conf$$ conf$$.exe conf$$.file
21940echo >conf$$.file
21941if ln -s conf$$.file conf$$ 2>/dev/null; then
21942  # We could just check for DJGPP; but this test a) works b) is more generic
21943  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21944  if test -f conf$$.exe; then
21945    # Don't use ln at all; we don't have any links
21946    as_ln_s='cp -p'
21947  else
21948    as_ln_s='ln -s'
21949  fi
21950elif ln conf$$.file conf$$ 2>/dev/null; then
21951  as_ln_s=ln
21952else
21953  as_ln_s='cp -p'
21954fi
21955rm -f conf$$ conf$$.exe conf$$.file
21956
21957if mkdir -p . 2>/dev/null; then
21958  as_mkdir_p=:
21959else
21960  test -d ./-p && rmdir ./-p
21961  as_mkdir_p=false
21962fi
21963
21964as_executable_p="test -f"
21965
21966# Sed expression to map a string onto a valid CPP name.
21967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21968
21969# Sed expression to map a string onto a valid variable name.
21970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21971
21972
21973# IFS
21974# We need space, tab and new line, in precisely that order.
21975as_nl='
21976'
21977IFS=" 	$as_nl"
21978
21979# CDPATH.
21980$as_unset CDPATH
21981
21982exec 6>&1
21983
21984# Open the log real soon, to keep \$[0] and so on meaningful, and to
21985# report actual input values of CONFIG_FILES etc. instead of their
21986# values after options handling.  Logging --version etc. is OK.
21987exec 5>>config.log
21988{
21989  echo
21990  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21991## Running $as_me. ##
21992_ASBOX
21993} >&5
21994cat >&5 <<_CSEOF
21995
21996This file was extended by FlopCpp $as_me trunk, which was
21997generated by GNU Autoconf 2.59.  Invocation command line was
21998
21999  CONFIG_FILES    = $CONFIG_FILES
22000  CONFIG_HEADERS  = $CONFIG_HEADERS
22001  CONFIG_LINKS    = $CONFIG_LINKS
22002  CONFIG_COMMANDS = $CONFIG_COMMANDS
22003  $ $0 $@
22004
22005_CSEOF
22006echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22007echo >&5
22008_ACEOF
22009
22010# Files that config.status was made for.
22011if test -n "$ac_config_files"; then
22012  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22013fi
22014
22015if test -n "$ac_config_headers"; then
22016  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22017fi
22018
22019if test -n "$ac_config_links"; then
22020  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22021fi
22022
22023if test -n "$ac_config_commands"; then
22024  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22025fi
22026
22027cat >>$CONFIG_STATUS <<\_ACEOF
22028
22029ac_cs_usage="\
22030\`$as_me' instantiates files from templates according to the
22031current configuration.
22032
22033Usage: $0 [OPTIONS] [FILE]...
22034
22035  -h, --help       print this help, then exit
22036  -V, --version    print version number, then exit
22037  -q, --quiet      do not print progress messages
22038  -d, --debug      don't remove temporary files
22039      --recheck    update $as_me by reconfiguring in the same conditions
22040  --file=FILE[:TEMPLATE]
22041		   instantiate the configuration file FILE
22042
22043Configuration files:
22044$config_files
22045
22046Configuration commands:
22047$config_commands
22048
22049Report bugs to <bug-autoconf@gnu.org>."
22050_ACEOF
22051
22052cat >>$CONFIG_STATUS <<_ACEOF
22053ac_cs_version="\\
22054FlopCpp config.status trunk
22055configured by $0, generated by GNU Autoconf 2.59,
22056  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22057
22058Copyright (C) 2003 Free Software Foundation, Inc.
22059This config.status script is free software; the Free Software Foundation
22060gives unlimited permission to copy, distribute and modify it."
22061srcdir=$srcdir
22062INSTALL="$INSTALL"
22063_ACEOF
22064
22065cat >>$CONFIG_STATUS <<\_ACEOF
22066# If no file are specified by the user, then we need to provide default
22067# value.  By we need to know if files were specified by the user.
22068ac_need_defaults=:
22069while test $# != 0
22070do
22071  case $1 in
22072  --*=*)
22073    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22074    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22075    ac_shift=:
22076    ;;
22077  -*)
22078    ac_option=$1
22079    ac_optarg=$2
22080    ac_shift=shift
22081    ;;
22082  *) # This is not an option, so the user has probably given explicit
22083     # arguments.
22084     ac_option=$1
22085     ac_need_defaults=false;;
22086  esac
22087
22088  case $ac_option in
22089  # Handling of the options.
22090_ACEOF
22091cat >>$CONFIG_STATUS <<\_ACEOF
22092  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22093    ac_cs_recheck=: ;;
22094  --version | --vers* | -V )
22095    echo "$ac_cs_version"; exit 0 ;;
22096  --he | --h)
22097    # Conflict between --help and --header
22098    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22099Try \`$0 --help' for more information." >&5
22100echo "$as_me: error: ambiguous option: $1
22101Try \`$0 --help' for more information." >&2;}
22102   { (exit 1); exit 1; }; };;
22103  --help | --hel | -h )
22104    echo "$ac_cs_usage"; exit 0 ;;
22105  --debug | --d* | -d )
22106    debug=: ;;
22107  --file | --fil | --fi | --f )
22108    $ac_shift
22109    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22110    ac_need_defaults=false;;
22111  --header | --heade | --head | --hea )
22112    $ac_shift
22113    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22114    ac_need_defaults=false;;
22115  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22116  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22117    ac_cs_silent=: ;;
22118
22119  # This is an error.
22120  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22121Try \`$0 --help' for more information." >&5
22122echo "$as_me: error: unrecognized option: $1
22123Try \`$0 --help' for more information." >&2;}
22124   { (exit 1); exit 1; }; } ;;
22125
22126  *) ac_config_targets="$ac_config_targets $1" ;;
22127
22128  esac
22129  shift
22130done
22131
22132ac_configure_extra_args=
22133
22134if $ac_cs_silent; then
22135  exec 6>/dev/null
22136  ac_configure_extra_args="$ac_configure_extra_args --silent"
22137fi
22138
22139_ACEOF
22140cat >>$CONFIG_STATUS <<_ACEOF
22141if \$ac_cs_recheck; then
22142  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22143  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22144fi
22145
22146_ACEOF
22147
22148cat >>$CONFIG_STATUS <<_ACEOF
22149#
22150# INIT-COMMANDS section.
22151#
22152
22153AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22154
22155_ACEOF
22156
22157
22158
22159cat >>$CONFIG_STATUS <<\_ACEOF
22160for ac_config_target in $ac_config_targets
22161do
22162  case "$ac_config_target" in
22163  # Handling of arguments.
22164  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22165  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22166  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22167echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22168   { (exit 1); exit 1; }; };;
22169  esac
22170done
22171
22172# If the user did not use the arguments to specify the items to instantiate,
22173# then the envvar interface is used.  Set only those that are not.
22174# We use the long form for the default assignment because of an extremely
22175# bizarre bug on SunOS 4.1.3.
22176if $ac_need_defaults; then
22177  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22178  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22179fi
22180
22181# Have a temporary directory for convenience.  Make it in the build tree
22182# simply because there is no reason to put it here, and in addition,
22183# creating and moving files from /tmp can sometimes cause problems.
22184# Create a temporary directory, and hook for its removal unless debugging.
22185$debug ||
22186{
22187  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22188  trap '{ (exit 1); exit 1; }' 1 2 13 15
22189}
22190
22191# Create a (secure) tmp directory for tmp files.
22192
22193{
22194  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22195  test -n "$tmp" && test -d "$tmp"
22196}  ||
22197{
22198  tmp=./confstat$$-$RANDOM
22199  (umask 077 && mkdir $tmp)
22200} ||
22201{
22202   echo "$me: cannot create a temporary directory in ." >&2
22203   { (exit 1); exit 1; }
22204}
22205
22206_ACEOF
22207
22208cat >>$CONFIG_STATUS <<_ACEOF
22209
22210#
22211# CONFIG_FILES section.
22212#
22213
22214# No need to generate the scripts if there are no CONFIG_FILES.
22215# This happens for instance when ./config.status config.h
22216if test -n "\$CONFIG_FILES"; then
22217  # Protect against being on the right side of a sed subst in config.status.
22218  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22219   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22220s,@SHELL@,$SHELL,;t t
22221s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22222s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22223s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22224s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22225s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22226s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22227s,@exec_prefix@,$exec_prefix,;t t
22228s,@prefix@,$prefix,;t t
22229s,@program_transform_name@,$program_transform_name,;t t
22230s,@bindir@,$bindir,;t t
22231s,@sbindir@,$sbindir,;t t
22232s,@libexecdir@,$libexecdir,;t t
22233s,@datadir@,$datadir,;t t
22234s,@sysconfdir@,$sysconfdir,;t t
22235s,@sharedstatedir@,$sharedstatedir,;t t
22236s,@localstatedir@,$localstatedir,;t t
22237s,@libdir@,$libdir,;t t
22238s,@includedir@,$includedir,;t t
22239s,@oldincludedir@,$oldincludedir,;t t
22240s,@infodir@,$infodir,;t t
22241s,@mandir@,$mandir,;t t
22242s,@build_alias@,$build_alias,;t t
22243s,@host_alias@,$host_alias,;t t
22244s,@target_alias@,$target_alias,;t t
22245s,@DEFS@,$DEFS,;t t
22246s,@ECHO_C@,$ECHO_C,;t t
22247s,@ECHO_N@,$ECHO_N,;t t
22248s,@ECHO_T@,$ECHO_T,;t t
22249s,@LIBS@,$LIBS,;t t
22250s,@build@,$build,;t t
22251s,@build_cpu@,$build_cpu,;t t
22252s,@build_vendor@,$build_vendor,;t t
22253s,@build_os@,$build_os,;t t
22254s,@CDEFS@,$CDEFS,;t t
22255s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
22256s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
22257s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
22258s,@sol_cc_compiler@,$sol_cc_compiler,;t t
22259s,@CC@,$CC,;t t
22260s,@CFLAGS@,$CFLAGS,;t t
22261s,@LDFLAGS@,$LDFLAGS,;t t
22262s,@CPPFLAGS@,$CPPFLAGS,;t t
22263s,@ac_ct_CC@,$ac_ct_CC,;t t
22264s,@EXEEXT@,$EXEEXT,;t t
22265s,@OBJEXT@,$OBJEXT,;t t
22266s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
22267s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
22268s,@MPICC@,$MPICC,;t t
22269s,@CXXDEFS@,$CXXDEFS,;t t
22270s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
22271s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
22272s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
22273s,@CXX@,$CXX,;t t
22274s,@CXXFLAGS@,$CXXFLAGS,;t t
22275s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22276s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
22277s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
22278s,@MPICXX@,$MPICXX,;t t
22279s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
22280s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
22281s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
22282s,@F77@,$F77,;t t
22283s,@ac_ct_F77@,$ac_ct_F77,;t t
22284s,@FFLAGS@,$FFLAGS,;t t
22285s,@MPIF77@,$MPIF77,;t t
22286s,@EGREP@,$EGREP,;t t
22287s,@LN_S@,$LN_S,;t t
22288s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22289s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22290s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22291s,@CYGPATH_W@,$CYGPATH_W,;t t
22292s,@PACKAGE@,$PACKAGE,;t t
22293s,@VERSION@,$VERSION,;t t
22294s,@ACLOCAL@,$ACLOCAL,;t t
22295s,@AUTOCONF@,$AUTOCONF,;t t
22296s,@AUTOMAKE@,$AUTOMAKE,;t t
22297s,@AUTOHEADER@,$AUTOHEADER,;t t
22298s,@MAKEINFO@,$MAKEINFO,;t t
22299s,@install_sh@,$install_sh,;t t
22300s,@STRIP@,$STRIP,;t t
22301s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22302s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22303s,@mkdir_p@,$mkdir_p,;t t
22304s,@AWK@,$AWK,;t t
22305s,@SET_MAKE@,$SET_MAKE,;t t
22306s,@am__leading_dot@,$am__leading_dot,;t t
22307s,@AMTAR@,$AMTAR,;t t
22308s,@am__tar@,$am__tar,;t t
22309s,@am__untar@,$am__untar,;t t
22310s,@DEPDIR@,$DEPDIR,;t t
22311s,@am__include@,$am__include,;t t
22312s,@am__quote@,$am__quote,;t t
22313s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22314s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22315s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22316s,@CCDEPMODE@,$CCDEPMODE,;t t
22317s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22318s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22319s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22320s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22321s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22322s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22323s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22324s,@MAINT@,$MAINT,;t t
22325s,@LIBTOOLM4@,$LIBTOOLM4,;t t
22326s,@have_autoconf@,$have_autoconf,;t t
22327s,@have_automake@,$have_automake,;t t
22328s,@have_svn@,$have_svn,;t t
22329s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
22330s,@AUX_DIR@,$AUX_DIR,;t t
22331s,@abs_source_dir@,$abs_source_dir,;t t
22332s,@abs_lib_dir@,$abs_lib_dir,;t t
22333s,@abs_include_dir@,$abs_include_dir,;t t
22334s,@abs_bin_dir@,$abs_bin_dir,;t t
22335s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
22336s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
22337s,@host@,$host,;t t
22338s,@host_cpu@,$host_cpu,;t t
22339s,@host_vendor@,$host_vendor,;t t
22340s,@host_os@,$host_os,;t t
22341s,@ECHO@,$ECHO,;t t
22342s,@AR@,$AR,;t t
22343s,@ac_ct_AR@,$ac_ct_AR,;t t
22344s,@RANLIB@,$RANLIB,;t t
22345s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22346s,@CPP@,$CPP,;t t
22347s,@CXXCPP@,$CXXCPP,;t t
22348s,@LIBTOOL@,$LIBTOOL,;t t
22349s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
22350s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
22351s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
22352s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
22353s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
22354s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
22355s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t
22356s,@subdirs@,$subdirs,;t t
22357s,@LIBEXT@,$LIBEXT,;t t
22358s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
22359s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
22360s,@LIBOBJS@,$LIBOBJS,;t t
22361s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22362CEOF
22363
22364_ACEOF
22365
22366  cat >>$CONFIG_STATUS <<\_ACEOF
22367  # Split the substitutions into bite-sized pieces for seds with
22368  # small command number limits, like on Digital OSF/1 and HP-UX.
22369  ac_max_sed_lines=48
22370  ac_sed_frag=1 # Number of current file.
22371  ac_beg=1 # First line for current file.
22372  ac_end=$ac_max_sed_lines # Line after last line for current file.
22373  ac_more_lines=:
22374  ac_sed_cmds=
22375  while $ac_more_lines; do
22376    if test $ac_beg -gt 1; then
22377      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22378    else
22379      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22380    fi
22381    if test ! -s $tmp/subs.frag; then
22382      ac_more_lines=false
22383    else
22384      # The purpose of the label and of the branching condition is to
22385      # speed up the sed processing (if there are no `@' at all, there
22386      # is no need to browse any of the substitutions).
22387      # These are the two extra sed commands mentioned above.
22388      (echo ':t
22389  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22390      if test -z "$ac_sed_cmds"; then
22391	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22392      else
22393	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22394      fi
22395      ac_sed_frag=`expr $ac_sed_frag + 1`
22396      ac_beg=$ac_end
22397      ac_end=`expr $ac_end + $ac_max_sed_lines`
22398    fi
22399  done
22400  if test -z "$ac_sed_cmds"; then
22401    ac_sed_cmds=cat
22402  fi
22403fi # test -n "$CONFIG_FILES"
22404
22405_ACEOF
22406cat >>$CONFIG_STATUS <<\_ACEOF
22407for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22408  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22409  case $ac_file in
22410  - | *:- | *:-:* ) # input from stdin
22411	cat >$tmp/stdin
22412	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22413	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22414  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22415	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22416  * )   ac_file_in=$ac_file.in ;;
22417  esac
22418
22419  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22420  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22422	 X"$ac_file" : 'X\(//\)[^/]' \| \
22423	 X"$ac_file" : 'X\(//\)$' \| \
22424	 X"$ac_file" : 'X\(/\)' \| \
22425	 .     : '\(.\)' 2>/dev/null ||
22426echo X"$ac_file" |
22427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22428  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22429  	  /^X\(\/\/\)$/{ s//\1/; q; }
22430  	  /^X\(\/\).*/{ s//\1/; q; }
22431  	  s/.*/./; q'`
22432  { if $as_mkdir_p; then
22433    mkdir -p "$ac_dir"
22434  else
22435    as_dir="$ac_dir"
22436    as_dirs=
22437    while test ! -d "$as_dir"; do
22438      as_dirs="$as_dir $as_dirs"
22439      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22441	 X"$as_dir" : 'X\(//\)[^/]' \| \
22442	 X"$as_dir" : 'X\(//\)$' \| \
22443	 X"$as_dir" : 'X\(/\)' \| \
22444	 .     : '\(.\)' 2>/dev/null ||
22445echo X"$as_dir" |
22446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22447  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22448  	  /^X\(\/\/\)$/{ s//\1/; q; }
22449  	  /^X\(\/\).*/{ s//\1/; q; }
22450  	  s/.*/./; q'`
22451    done
22452    test ! -n "$as_dirs" || mkdir $as_dirs
22453  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22454echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22455   { (exit 1); exit 1; }; }; }
22456
22457  ac_builddir=.
22458
22459if test "$ac_dir" != .; then
22460  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22461  # A "../" for each directory in $ac_dir_suffix.
22462  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22463else
22464  ac_dir_suffix= ac_top_builddir=
22465fi
22466
22467case $srcdir in
22468  .)  # No --srcdir option.  We are building in place.
22469    ac_srcdir=.
22470    if test -z "$ac_top_builddir"; then
22471       ac_top_srcdir=.
22472    else
22473       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22474    fi ;;
22475  [\\/]* | ?:[\\/]* )  # Absolute path.
22476    ac_srcdir=$srcdir$ac_dir_suffix;
22477    ac_top_srcdir=$srcdir ;;
22478  *) # Relative path.
22479    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22480    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22481esac
22482
22483# Do not use `cd foo && pwd` to compute absolute paths, because
22484# the directories may not exist.
22485case `pwd` in
22486.) ac_abs_builddir="$ac_dir";;
22487*)
22488  case "$ac_dir" in
22489  .) ac_abs_builddir=`pwd`;;
22490  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22491  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22492  esac;;
22493esac
22494case $ac_abs_builddir in
22495.) ac_abs_top_builddir=${ac_top_builddir}.;;
22496*)
22497  case ${ac_top_builddir}. in
22498  .) ac_abs_top_builddir=$ac_abs_builddir;;
22499  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22500  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22501  esac;;
22502esac
22503case $ac_abs_builddir in
22504.) ac_abs_srcdir=$ac_srcdir;;
22505*)
22506  case $ac_srcdir in
22507  .) ac_abs_srcdir=$ac_abs_builddir;;
22508  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22509  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22510  esac;;
22511esac
22512case $ac_abs_builddir in
22513.) ac_abs_top_srcdir=$ac_top_srcdir;;
22514*)
22515  case $ac_top_srcdir in
22516  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22517  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22518  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22519  esac;;
22520esac
22521
22522
22523  case $INSTALL in
22524  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22525  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22526  esac
22527
22528  if test x"$ac_file" != x-; then
22529    { echo "$as_me:$LINENO: creating $ac_file" >&5
22530echo "$as_me: creating $ac_file" >&6;}
22531    rm -f "$ac_file"
22532  fi
22533  # Let's still pretend it is `configure' which instantiates (i.e., don't
22534  # use $as_me), people would be surprised to read:
22535  #    /* config.h.  Generated by config.status.  */
22536  if test x"$ac_file" = x-; then
22537    configure_input=
22538  else
22539    configure_input="$ac_file.  "
22540  fi
22541  configure_input=$configure_input"Generated from `echo $ac_file_in |
22542				     sed 's,.*/,,'` by configure."
22543
22544  # First look for the input files in the build tree, otherwise in the
22545  # src tree.
22546  ac_file_inputs=`IFS=:
22547    for f in $ac_file_in; do
22548      case $f in
22549      -) echo $tmp/stdin ;;
22550      [\\/$]*)
22551	 # Absolute (can't be DOS-style, as IFS=:)
22552	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22553echo "$as_me: error: cannot find input file: $f" >&2;}
22554   { (exit 1); exit 1; }; }
22555	 echo "$f";;
22556      *) # Relative
22557	 if test -f "$f"; then
22558	   # Build tree
22559	   echo "$f"
22560	 elif test -f "$srcdir/$f"; then
22561	   # Source tree
22562	   echo "$srcdir/$f"
22563	 else
22564	   # /dev/null tree
22565	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22566echo "$as_me: error: cannot find input file: $f" >&2;}
22567   { (exit 1); exit 1; }; }
22568	 fi;;
22569      esac
22570    done` || { (exit 1); exit 1; }
22571_ACEOF
22572cat >>$CONFIG_STATUS <<_ACEOF
22573  sed "$ac_vpsub
22574$extrasub
22575_ACEOF
22576cat >>$CONFIG_STATUS <<\_ACEOF
22577:t
22578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22579s,@configure_input@,$configure_input,;t t
22580s,@srcdir@,$ac_srcdir,;t t
22581s,@abs_srcdir@,$ac_abs_srcdir,;t t
22582s,@top_srcdir@,$ac_top_srcdir,;t t
22583s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22584s,@builddir@,$ac_builddir,;t t
22585s,@abs_builddir@,$ac_abs_builddir,;t t
22586s,@top_builddir@,$ac_top_builddir,;t t
22587s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22588s,@INSTALL@,$ac_INSTALL,;t t
22589" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22590  rm -f $tmp/stdin
22591  if test x"$ac_file" != x-; then
22592    mv $tmp/out $ac_file
22593  else
22594    cat $tmp/out
22595    rm -f $tmp/out
22596  fi
22597
22598done
22599_ACEOF
22600cat >>$CONFIG_STATUS <<\_ACEOF
22601
22602#
22603# CONFIG_COMMANDS section.
22604#
22605for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22606  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22607  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22608  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22609$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22611	 X"$ac_dest" : 'X\(//\)$' \| \
22612	 X"$ac_dest" : 'X\(/\)' \| \
22613	 .     : '\(.\)' 2>/dev/null ||
22614echo X"$ac_dest" |
22615    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617  	  /^X\(\/\/\)$/{ s//\1/; q; }
22618  	  /^X\(\/\).*/{ s//\1/; q; }
22619  	  s/.*/./; q'`
22620  { if $as_mkdir_p; then
22621    mkdir -p "$ac_dir"
22622  else
22623    as_dir="$ac_dir"
22624    as_dirs=
22625    while test ! -d "$as_dir"; do
22626      as_dirs="$as_dir $as_dirs"
22627      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22628$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22629	 X"$as_dir" : 'X\(//\)[^/]' \| \
22630	 X"$as_dir" : 'X\(//\)$' \| \
22631	 X"$as_dir" : 'X\(/\)' \| \
22632	 .     : '\(.\)' 2>/dev/null ||
22633echo X"$as_dir" |
22634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22635  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22636  	  /^X\(\/\/\)$/{ s//\1/; q; }
22637  	  /^X\(\/\).*/{ s//\1/; q; }
22638  	  s/.*/./; q'`
22639    done
22640    test ! -n "$as_dirs" || mkdir $as_dirs
22641  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22642echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22643   { (exit 1); exit 1; }; }; }
22644
22645  ac_builddir=.
22646
22647if test "$ac_dir" != .; then
22648  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22649  # A "../" for each directory in $ac_dir_suffix.
22650  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22651else
22652  ac_dir_suffix= ac_top_builddir=
22653fi
22654
22655case $srcdir in
22656  .)  # No --srcdir option.  We are building in place.
22657    ac_srcdir=.
22658    if test -z "$ac_top_builddir"; then
22659       ac_top_srcdir=.
22660    else
22661       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22662    fi ;;
22663  [\\/]* | ?:[\\/]* )  # Absolute path.
22664    ac_srcdir=$srcdir$ac_dir_suffix;
22665    ac_top_srcdir=$srcdir ;;
22666  *) # Relative path.
22667    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22668    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22669esac
22670
22671# Do not use `cd foo && pwd` to compute absolute paths, because
22672# the directories may not exist.
22673case `pwd` in
22674.) ac_abs_builddir="$ac_dir";;
22675*)
22676  case "$ac_dir" in
22677  .) ac_abs_builddir=`pwd`;;
22678  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22679  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22680  esac;;
22681esac
22682case $ac_abs_builddir in
22683.) ac_abs_top_builddir=${ac_top_builddir}.;;
22684*)
22685  case ${ac_top_builddir}. in
22686  .) ac_abs_top_builddir=$ac_abs_builddir;;
22687  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22688  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22689  esac;;
22690esac
22691case $ac_abs_builddir in
22692.) ac_abs_srcdir=$ac_srcdir;;
22693*)
22694  case $ac_srcdir in
22695  .) ac_abs_srcdir=$ac_abs_builddir;;
22696  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22697  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22698  esac;;
22699esac
22700case $ac_abs_builddir in
22701.) ac_abs_top_srcdir=$ac_top_srcdir;;
22702*)
22703  case $ac_top_srcdir in
22704  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22705  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22706  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22707  esac;;
22708esac
22709
22710
22711  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22712echo "$as_me: executing $ac_dest commands" >&6;}
22713  case $ac_dest in
22714    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22715  # Strip MF so we end up with the name of the file.
22716  mf=`echo "$mf" | sed -e 's/:.*$//'`
22717  # Check whether this is an Automake generated Makefile or not.
22718  # We used to match only the files named `Makefile.in', but
22719  # some people rename them; so instead we look at the file content.
22720  # Grep'ing the first line is not enough: some people post-process
22721  # each Makefile.in and add a new line on top of each file to say so.
22722  # So let's grep whole file.
22723  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22724    dirpart=`(dirname "$mf") 2>/dev/null ||
22725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22726	 X"$mf" : 'X\(//\)[^/]' \| \
22727	 X"$mf" : 'X\(//\)$' \| \
22728	 X"$mf" : 'X\(/\)' \| \
22729	 .     : '\(.\)' 2>/dev/null ||
22730echo X"$mf" |
22731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22732  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22733  	  /^X\(\/\/\)$/{ s//\1/; q; }
22734  	  /^X\(\/\).*/{ s//\1/; q; }
22735  	  s/.*/./; q'`
22736  else
22737    continue
22738  fi
22739  # Extract the definition of DEPDIR, am__include, and am__quote
22740  # from the Makefile without running `make'.
22741  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22742  test -z "$DEPDIR" && continue
22743  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22744  test -z "am__include" && continue
22745  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22746  # When using ansi2knr, U may be empty or an underscore; expand it
22747  U=`sed -n 's/^U = //p' < "$mf"`
22748  # Find all dependency output files, they are included files with
22749  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22750  # simplest approach to changing $(DEPDIR) to its actual value in the
22751  # expansion.
22752  for file in `sed -n "
22753    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22754       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22755    # Make sure the directory exists.
22756    test -f "$dirpart/$file" && continue
22757    fdir=`(dirname "$file") 2>/dev/null ||
22758$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22759	 X"$file" : 'X\(//\)[^/]' \| \
22760	 X"$file" : 'X\(//\)$' \| \
22761	 X"$file" : 'X\(/\)' \| \
22762	 .     : '\(.\)' 2>/dev/null ||
22763echo X"$file" |
22764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22765  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22766  	  /^X\(\/\/\)$/{ s//\1/; q; }
22767  	  /^X\(\/\).*/{ s//\1/; q; }
22768  	  s/.*/./; q'`
22769    { if $as_mkdir_p; then
22770    mkdir -p $dirpart/$fdir
22771  else
22772    as_dir=$dirpart/$fdir
22773    as_dirs=
22774    while test ! -d "$as_dir"; do
22775      as_dirs="$as_dir $as_dirs"
22776      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22777$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22778	 X"$as_dir" : 'X\(//\)[^/]' \| \
22779	 X"$as_dir" : 'X\(//\)$' \| \
22780	 X"$as_dir" : 'X\(/\)' \| \
22781	 .     : '\(.\)' 2>/dev/null ||
22782echo X"$as_dir" |
22783    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22784  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22785  	  /^X\(\/\/\)$/{ s//\1/; q; }
22786  	  /^X\(\/\).*/{ s//\1/; q; }
22787  	  s/.*/./; q'`
22788    done
22789    test ! -n "$as_dirs" || mkdir $as_dirs
22790  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22791echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22792   { (exit 1); exit 1; }; }; }
22793
22794    # echo "creating $dirpart/$file"
22795    echo '# dummy' > "$dirpart/$file"
22796  done
22797done
22798 ;;
22799  esac
22800done
22801_ACEOF
22802
22803cat >>$CONFIG_STATUS <<\_ACEOF
22804
22805{ (exit 0); exit 0; }
22806_ACEOF
22807chmod +x $CONFIG_STATUS
22808ac_clean_files=$ac_clean_files_save
22809
22810
22811# configure is writing to config.log, and then calls config.status.
22812# config.status does its own redirection, appending to config.log.
22813# Unfortunately, on DOS this fails, as config.log is still kept open
22814# by configure, so config.status won't be able to write to it; its
22815# output is simply discarded.  So we exec the FD to /dev/null,
22816# effectively closing config.log, so it can be properly (re)opened and
22817# appended to by config.status.  When coming back to configure, we
22818# need to make the FD available again.
22819if test "$no_create" != yes; then
22820  ac_cs_success=:
22821  ac_config_status_args=
22822  test "$silent" = yes &&
22823    ac_config_status_args="$ac_config_status_args --quiet"
22824  exec 5>/dev/null
22825  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22826  exec 5>>config.log
22827  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22828  # would make configure fail if this is the last instruction.
22829  $ac_cs_success || { (exit 1); exit 1; }
22830fi
22831
22832#
22833# CONFIG_SUBDIRS section.
22834#
22835if test "$no_recursion" != yes; then
22836
22837  # Remove --cache-file and --srcdir arguments so they do not pile up.
22838  ac_sub_configure_args=
22839  ac_prev=
22840  for ac_arg in $ac_configure_args; do
22841    if test -n "$ac_prev"; then
22842      ac_prev=
22843      continue
22844    fi
22845    case $ac_arg in
22846    -cache-file | --cache-file | --cache-fil | --cache-fi \
22847    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22848      ac_prev=cache_file ;;
22849    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22850    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22851    | --c=*)
22852      ;;
22853    --config-cache | -C)
22854      ;;
22855    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22856      ac_prev=srcdir ;;
22857    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22858      ;;
22859    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22860      ac_prev=prefix ;;
22861    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22862      ;;
22863    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22864    esac
22865  done
22866
22867  # Always prepend --prefix to ensure using the same prefix
22868  # in subdir configurations.
22869  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22870
22871  ac_popdir=`pwd`
22872  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22873
22874    # Do not complain, so a configure script can configure whichever
22875    # parts of a large source tree are present.
22876    test -d $srcdir/$ac_dir || continue
22877
22878    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22879echo "$as_me: configuring in $ac_dir" >&6;}
22880    { if $as_mkdir_p; then
22881    mkdir -p "$ac_dir"
22882  else
22883    as_dir="$ac_dir"
22884    as_dirs=
22885    while test ! -d "$as_dir"; do
22886      as_dirs="$as_dir $as_dirs"
22887      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22889	 X"$as_dir" : 'X\(//\)[^/]' \| \
22890	 X"$as_dir" : 'X\(//\)$' \| \
22891	 X"$as_dir" : 'X\(/\)' \| \
22892	 .     : '\(.\)' 2>/dev/null ||
22893echo X"$as_dir" |
22894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22895  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22896  	  /^X\(\/\/\)$/{ s//\1/; q; }
22897  	  /^X\(\/\).*/{ s//\1/; q; }
22898  	  s/.*/./; q'`
22899    done
22900    test ! -n "$as_dirs" || mkdir $as_dirs
22901  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22902echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22903   { (exit 1); exit 1; }; }; }
22904
22905    ac_builddir=.
22906
22907if test "$ac_dir" != .; then
22908  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22909  # A "../" for each directory in $ac_dir_suffix.
22910  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22911else
22912  ac_dir_suffix= ac_top_builddir=
22913fi
22914
22915case $srcdir in
22916  .)  # No --srcdir option.  We are building in place.
22917    ac_srcdir=.
22918    if test -z "$ac_top_builddir"; then
22919       ac_top_srcdir=.
22920    else
22921       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22922    fi ;;
22923  [\\/]* | ?:[\\/]* )  # Absolute path.
22924    ac_srcdir=$srcdir$ac_dir_suffix;
22925    ac_top_srcdir=$srcdir ;;
22926  *) # Relative path.
22927    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22928    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22929esac
22930
22931# Do not use `cd foo && pwd` to compute absolute paths, because
22932# the directories may not exist.
22933case `pwd` in
22934.) ac_abs_builddir="$ac_dir";;
22935*)
22936  case "$ac_dir" in
22937  .) ac_abs_builddir=`pwd`;;
22938  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22939  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22940  esac;;
22941esac
22942case $ac_abs_builddir in
22943.) ac_abs_top_builddir=${ac_top_builddir}.;;
22944*)
22945  case ${ac_top_builddir}. in
22946  .) ac_abs_top_builddir=$ac_abs_builddir;;
22947  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22948  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22949  esac;;
22950esac
22951case $ac_abs_builddir in
22952.) ac_abs_srcdir=$ac_srcdir;;
22953*)
22954  case $ac_srcdir in
22955  .) ac_abs_srcdir=$ac_abs_builddir;;
22956  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22957  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22958  esac;;
22959esac
22960case $ac_abs_builddir in
22961.) ac_abs_top_srcdir=$ac_top_srcdir;;
22962*)
22963  case $ac_top_srcdir in
22964  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22965  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22966  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22967  esac;;
22968esac
22969
22970
22971    cd $ac_dir
22972
22973    # Check for guested configure; otherwise get Cygnus style configure.
22974    if test -f $ac_srcdir/configure.gnu; then
22975      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22976    elif test -f $ac_srcdir/configure; then
22977      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22978    elif test -f $ac_srcdir/configure.in; then
22979      ac_sub_configure=$ac_configure
22980    else
22981      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22982echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22983      ac_sub_configure=
22984    fi
22985
22986    # The recursion is here.
22987    if test -n "$ac_sub_configure"; then
22988      # Make the cache file name correct relative to the subdirectory.
22989      case $cache_file in
22990      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22991      *) # Relative path.
22992	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22993      esac
22994
22995      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22996echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22997      # The eval makes quoting arguments work.
22998      eval $ac_sub_configure $ac_sub_configure_args \
22999	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23000	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23001echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23002   { (exit 1); exit 1; }; }
23003    fi
23004
23005    cd $ac_popdir
23006  done
23007fi
23008
23009
23010  if test x"$coin_vpath_link_files" = x; then : ; else
23011    lnkcmd="$coin_link_input_cmd"
23012    if test "$lnkcmd" = cp; then
23013      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
23014echo "$as_me: Copying data files for VPATH configuration" >&6;}
23015    else
23016      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
23017echo "$as_me: Creating VPATH links for data files" >&6;}
23018    fi
23019    for file in $coin_vpath_link_files; do
23020      dir=`(dirname "./$file") 2>/dev/null ||
23021$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23022	 X"./$file" : 'X\(//\)[^/]' \| \
23023	 X"./$file" : 'X\(//\)$' \| \
23024	 X"./$file" : 'X\(/\)' \| \
23025	 .     : '\(.\)' 2>/dev/null ||
23026echo X"./$file" |
23027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23028  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23029  	  /^X\(\/\/\)$/{ s//\1/; q; }
23030  	  /^X\(\/\).*/{ s//\1/; q; }
23031  	  s/.*/./; q'`
23032      if test -d $dir; then : ; else
23033        { if $as_mkdir_p; then
23034    mkdir -p $dir
23035  else
23036    as_dir=$dir
23037    as_dirs=
23038    while test ! -d "$as_dir"; do
23039      as_dirs="$as_dir $as_dirs"
23040      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23041$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042	 X"$as_dir" : 'X\(//\)[^/]' \| \
23043	 X"$as_dir" : 'X\(//\)$' \| \
23044	 X"$as_dir" : 'X\(/\)' \| \
23045	 .     : '\(.\)' 2>/dev/null ||
23046echo X"$as_dir" |
23047    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23048  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23049  	  /^X\(\/\/\)$/{ s//\1/; q; }
23050  	  /^X\(\/\).*/{ s//\1/; q; }
23051  	  s/.*/./; q'`
23052    done
23053    test ! -n "$as_dirs" || mkdir $as_dirs
23054  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
23055echo "$as_me: error: cannot create directory $dir" >&2;}
23056   { (exit 1); exit 1; }; }; }
23057
23058      fi
23059      rm -f $file
23060      $lnkcmd $abs_source_dir/$file $file
23061    done
23062  fi
23063
23064  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
23065echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
23066  if test x$coin_projectdir = xyes; then
23067    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
23068echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
23069  else
23070    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
23071echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
23072  fi
23073else
23074  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
23075echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
23076fi
23077
23078
23079