1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for FlopCpp trunk.
4#
5# Report bugs to <flopcpp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package FlopC++ which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='FlopCpp'
431PACKAGE_TARNAME='flopcpp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='FlopCpp trunk'
434PACKAGE_BUGREPORT='flopcpp@list.coin-or.org'
435
436ac_unique_file="src/flopc.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FLOPCPP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED FLOPCPP_CFLAGS FLOPCPP_LIBS FLOPCPP_PCLIBS FLOPCPP_PCREQUIRES FLOPCPP_DEPENDENCIES FLOPCPP_CFLAGS_INSTALLED FLOPCPP_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834	      localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874	 X"$0" : 'X\(//\)[^/]' \| \
875	 X"$0" : 'X\(//\)$' \| \
876	 X"$0" : 'X\(/\)' \| \
877	 .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881  	  /^X\(\/\/\)$/{ s//\1/; q; }
882  	  /^X\(\/\).*/{ s//\1/; q; }
883  	  s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures FlopCpp trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033			  [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035			  [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of FlopCpp trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-flopcpp compile project FlopCpp with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091			  (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-dependency-linking
1098                          disable linking library dependencies into shared
1099                          libraries
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-flopcpp-verbosity
1109                          specify the debug verbosity level for project
1110                          FlopCpp
1111  --with-flopcpp-checklevel
1112                          specify the sanity check level for project FlopCpp
1113  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1114  --with-pic              try to use only PIC/non-PIC objects [default=use
1115                          both]
1116  --with-tags[=TAGS]
1117                          include additional configurations [automatic]
1118  --with-coin-instdir     prefix of installation directory for precompiled
1119                          COIN packages
1120
1121  --with-osi-lib linker flags for using package Osi
1122  --with-osi-incdir directory with header files for using package Osi
1123  --with-osi-datadir directory with data files for using package Osi
1124  --with-cbc-lib linker flags for using package Cbc
1125  --with-cbc-incdir directory with header files for using package Cbc
1126  --with-cbc-datadir directory with data files for using package Cbc
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-dot              use dot (from graphviz) when creating documentation
1131                          with doxygen if available; --without-dot to disable
1132
1133Some influential environment variables:
1134  CDEFS       Additional -D flags to be used when compiling C code.
1135  ADD_CFLAGS  Additional C compiler options
1136  DBG_CFLAGS  Debug C compiler options
1137  OPT_CFLAGS  Optimize C compiler options
1138  CC          C compiler command
1139  CFLAGS      C compiler flags
1140  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1141              nonstandard directory <lib dir>
1142  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1143              headers in a nonstandard directory <include dir>
1144  MPICC       C MPI Compiler
1145  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1146  ADD_CXXFLAGS
1147              Additional C++ compiler options
1148  DBG_CXXFLAGS
1149              Debug C++ compiler options
1150  OPT_CXXFLAGS
1151              Optimize C++ compiler options
1152  CXX         C++ compiler command
1153  CXXFLAGS    C++ compiler flags
1154  MPICXX      C++ MPI Compiler
1155  CPP         C preprocessor
1156  CXXCPP      C++ preprocessor
1157  F77         Fortran 77 compiler command
1158  FFLAGS      Fortran 77 compiler flags
1159  PKG_CONFIG  path to pkg-config utility
1160
1161Use these variables to override the choices made by `configure' or to help
1162it to find libraries and programs with nonstandard names/locations.
1163
1164Report bugs to <flopcpp@list.coin-or.org>.
1165_ACEOF
1166fi
1167
1168if test "$ac_init_help" = "recursive"; then
1169  # If there are subdirs, report their specific --help.
1170  ac_popdir=`pwd`
1171  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1172    test -d $ac_dir || continue
1173    ac_builddir=.
1174
1175if test "$ac_dir" != .; then
1176  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1177  # A "../" for each directory in $ac_dir_suffix.
1178  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1179else
1180  ac_dir_suffix= ac_top_builddir=
1181fi
1182
1183case $srcdir in
1184  .)  # No --srcdir option.  We are building in place.
1185    ac_srcdir=.
1186    if test -z "$ac_top_builddir"; then
1187       ac_top_srcdir=.
1188    else
1189       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1190    fi ;;
1191  [\\/]* | ?:[\\/]* )  # Absolute path.
1192    ac_srcdir=$srcdir$ac_dir_suffix;
1193    ac_top_srcdir=$srcdir ;;
1194  *) # Relative path.
1195    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1196    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1197esac
1198
1199# Do not use `cd foo && pwd` to compute absolute paths, because
1200# the directories may not exist.
1201case `pwd` in
1202.) ac_abs_builddir="$ac_dir";;
1203*)
1204  case "$ac_dir" in
1205  .) ac_abs_builddir=`pwd`;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1207  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_builddir=${ac_top_builddir}.;;
1212*)
1213  case ${ac_top_builddir}. in
1214  .) ac_abs_top_builddir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1216  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_srcdir=$ac_srcdir;;
1221*)
1222  case $ac_srcdir in
1223  .) ac_abs_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1225  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1226  esac;;
1227esac
1228case $ac_abs_builddir in
1229.) ac_abs_top_srcdir=$ac_top_srcdir;;
1230*)
1231  case $ac_top_srcdir in
1232  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1233  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1234  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1235  esac;;
1236esac
1237
1238    cd $ac_dir
1239    # Check for guested configure; otherwise get Cygnus style configure.
1240    if test -f $ac_srcdir/configure.gnu; then
1241      echo
1242      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1243    elif test -f $ac_srcdir/configure; then
1244      echo
1245      $SHELL $ac_srcdir/configure  --help=recursive
1246    elif test -f $ac_srcdir/configure.ac ||
1247	   test -f $ac_srcdir/configure.in; then
1248      echo
1249      $ac_configure --help
1250    else
1251      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1252    fi
1253    cd $ac_popdir
1254  done
1255fi
1256
1257test -n "$ac_init_help" && exit 0
1258if $ac_init_version; then
1259  cat <<\_ACEOF
1260FlopCpp configure trunk
1261generated by GNU Autoconf 2.59
1262
1263Copyright (C) 2003 Free Software Foundation, Inc.
1264This configure script is free software; the Free Software Foundation
1265gives unlimited permission to copy, distribute and modify it.
1266
1267
1268Copyright 2006 International Business Machines and others.
1269All Rights Reserved.
1270This file is part of the open source package FlopC++ which is distributed
1271under the Common Public License.
1272_ACEOF
1273  exit 0
1274fi
1275exec 5>config.log
1276cat >&5 <<_ACEOF
1277This file contains any messages produced by compilers while
1278running configure, to aid debugging if configure makes a mistake.
1279
1280It was created by FlopCpp $as_me trunk, which was
1281generated by GNU Autoconf 2.59.  Invocation command line was
1282
1283  $ $0 $@
1284
1285_ACEOF
1286{
1287cat <<_ASUNAME
1288## --------- ##
1289## Platform. ##
1290## --------- ##
1291
1292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1293uname -m = `(uname -m) 2>/dev/null || echo unknown`
1294uname -r = `(uname -r) 2>/dev/null || echo unknown`
1295uname -s = `(uname -s) 2>/dev/null || echo unknown`
1296uname -v = `(uname -v) 2>/dev/null || echo unknown`
1297
1298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1299/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1300
1301/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1302/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1304hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1305/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1306/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1307/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1308
1309_ASUNAME
1310
1311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312for as_dir in $PATH
1313do
1314  IFS=$as_save_IFS
1315  test -z "$as_dir" && as_dir=.
1316  echo "PATH: $as_dir"
1317done
1318
1319} >&5
1320
1321cat >&5 <<_ACEOF
1322
1323
1324## ----------- ##
1325## Core tests. ##
1326## ----------- ##
1327
1328_ACEOF
1329
1330
1331# Keep a trace of the command line.
1332# Strip out --no-create and --no-recursion so they do not pile up.
1333# Strip out --silent because we don't want to record it for future runs.
1334# Also quote any args containing shell meta-characters.
1335# Make two passes to allow for proper duplicate-argument suppression.
1336ac_configure_args=
1337ac_configure_args0=
1338ac_configure_args1=
1339ac_sep=
1340ac_must_keep_next=false
1341for ac_pass in 1 2
1342do
1343  for ac_arg
1344  do
1345    case $ac_arg in
1346    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1347    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348    | -silent | --silent | --silen | --sile | --sil)
1349      continue ;;
1350    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1351      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1352    esac
1353    case $ac_pass in
1354    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1355    2)
1356      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1357      if test $ac_must_keep_next = true; then
1358	ac_must_keep_next=false # Got value, back to normal.
1359      else
1360	case $ac_arg in
1361	  *=* | --config-cache | -C | -disable-* | --disable-* \
1362	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1363	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1364	  | -with-* | --with-* | -without-* | --without-* | --x)
1365	    case "$ac_configure_args0 " in
1366	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1367	    esac
1368	    ;;
1369	  -* ) ac_must_keep_next=true ;;
1370	esac
1371      fi
1372      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1373      # Get rid of the leading space.
1374      ac_sep=" "
1375      ;;
1376    esac
1377  done
1378done
1379$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1380$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1381
1382# When interrupted or exit'd, cleanup temporary files, and complete
1383# config.log.  We remove comments because anyway the quotes in there
1384# would cause problems or look ugly.
1385# WARNING: Be sure not to use single quotes in there, as some shells,
1386# such as our DU 5.0 friend, will then `close' the trap.
1387trap 'exit_status=$?
1388  # Save into config.log some information that might help in debugging.
1389  {
1390    echo
1391
1392    cat <<\_ASBOX
1393## ---------------- ##
1394## Cache variables. ##
1395## ---------------- ##
1396_ASBOX
1397    echo
1398    # The following way of writing the cache mishandles newlines in values,
1399{
1400  (set) 2>&1 |
1401    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1402    *ac_space=\ *)
1403      sed -n \
1404	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1405	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1406      ;;
1407    *)
1408      sed -n \
1409	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1410      ;;
1411    esac;
1412}
1413    echo
1414
1415    cat <<\_ASBOX
1416## ----------------- ##
1417## Output variables. ##
1418## ----------------- ##
1419_ASBOX
1420    echo
1421    for ac_var in $ac_subst_vars
1422    do
1423      eval ac_val=$`echo $ac_var`
1424      echo "$ac_var='"'"'$ac_val'"'"'"
1425    done | sort
1426    echo
1427
1428    if test -n "$ac_subst_files"; then
1429      cat <<\_ASBOX
1430## ------------- ##
1431## Output files. ##
1432## ------------- ##
1433_ASBOX
1434      echo
1435      for ac_var in $ac_subst_files
1436      do
1437	eval ac_val=$`echo $ac_var`
1438	echo "$ac_var='"'"'$ac_val'"'"'"
1439      done | sort
1440      echo
1441    fi
1442
1443    if test -s confdefs.h; then
1444      cat <<\_ASBOX
1445## ----------- ##
1446## confdefs.h. ##
1447## ----------- ##
1448_ASBOX
1449      echo
1450      sed "/^$/d" confdefs.h | sort
1451      echo
1452    fi
1453    test "$ac_signal" != 0 &&
1454      echo "$as_me: caught signal $ac_signal"
1455    echo "$as_me: exit $exit_status"
1456  } >&5
1457  rm -f core *.core &&
1458  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1459    exit $exit_status
1460     ' 0
1461for ac_signal in 1 2 13 15; do
1462  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1463done
1464ac_signal=0
1465
1466# confdefs.h avoids OS command line length limits that DEFS can exceed.
1467rm -rf conftest* confdefs.h
1468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1469echo >confdefs.h
1470
1471# Predefined preprocessor variables.
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_NAME "$PACKAGE_NAME"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_VERSION "$PACKAGE_VERSION"
1485_ACEOF
1486
1487
1488cat >>confdefs.h <<_ACEOF
1489#define PACKAGE_STRING "$PACKAGE_STRING"
1490_ACEOF
1491
1492
1493cat >>confdefs.h <<_ACEOF
1494#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1495_ACEOF
1496
1497
1498# Let the site file select an alternate cache file if it wants to.
1499# Prefer explicitly selected file to automatically selected ones.
1500if test -z "$CONFIG_SITE"; then
1501  if test "x$prefix" != xNONE; then
1502    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1503  else
1504    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1505  fi
1506fi
1507for ac_site_file in $CONFIG_SITE; do
1508  if test -r "$ac_site_file"; then
1509    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1510echo "$as_me: loading site script $ac_site_file" >&6;}
1511    sed 's/^/| /' "$ac_site_file" >&5
1512    . "$ac_site_file"
1513  fi
1514done
1515
1516if test -r "$cache_file"; then
1517  # Some versions of bash will fail to source /dev/null (special
1518  # files actually), so we avoid doing that.
1519  if test -f "$cache_file"; then
1520    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1521echo "$as_me: loading cache $cache_file" >&6;}
1522    case $cache_file in
1523      [\\/]* | ?:[\\/]* ) . $cache_file;;
1524      *)                      . ./$cache_file;;
1525    esac
1526  fi
1527else
1528  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1529echo "$as_me: creating cache $cache_file" >&6;}
1530  >$cache_file
1531fi
1532
1533# Check that the precious variables saved in the cache have kept the same
1534# value.
1535ac_cache_corrupted=false
1536for ac_var in `(set) 2>&1 |
1537	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1538  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1539  eval ac_new_set=\$ac_env_${ac_var}_set
1540  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1541  eval ac_new_val="\$ac_env_${ac_var}_value"
1542  case $ac_old_set,$ac_new_set in
1543    set,)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,set)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,);;
1552    *)
1553      if test "x$ac_old_val" != "x$ac_new_val"; then
1554	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1555echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1556	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1557echo "$as_me:   former value:  $ac_old_val" >&2;}
1558	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1559echo "$as_me:   current value: $ac_new_val" >&2;}
1560	ac_cache_corrupted=:
1561      fi;;
1562  esac
1563  # Pass precious variables to config.status.
1564  if test "$ac_new_set" = set; then
1565    case $ac_new_val in
1566    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1568    *) ac_arg=$ac_var=$ac_new_val ;;
1569    esac
1570    case " $ac_configure_args " in
1571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1572      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1573    esac
1574  fi
1575done
1576if $ac_cache_corrupted; then
1577  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1578echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1579  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1580echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1581   { (exit 1); exit 1; }; }
1582fi
1583
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619# List one file in the package so that the configure script can test
1620# whether the package is actually there
1621
1622
1623# Where should everything be installed by default?  Here, we want it
1624# to be installed directly in 'bin', 'lib', 'include' subdirectories
1625# of the directory where configure is run.  The default would be
1626# /usr/local.
1627
1628
1629#############################################################################
1630#                         Standard build tool stuff                         #
1631#############################################################################
1632
1633# Get the system type
1634ac_aux_dir=
1635for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1636  if test -f $ac_dir/install-sh; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/install-sh -c"
1639    break
1640  elif test -f $ac_dir/install.sh; then
1641    ac_aux_dir=$ac_dir
1642    ac_install_sh="$ac_aux_dir/install.sh -c"
1643    break
1644  elif test -f $ac_dir/shtool; then
1645    ac_aux_dir=$ac_dir
1646    ac_install_sh="$ac_aux_dir/shtool install -c"
1647    break
1648  fi
1649done
1650if test -z "$ac_aux_dir"; then
1651  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1652echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1653   { (exit 1); exit 1; }; }
1654fi
1655ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1656ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1657ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658
1659# Make sure we can run config.sub.
1660$ac_config_sub sun4 >/dev/null 2>&1 ||
1661  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1662echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1663   { (exit 1); exit 1; }; }
1664
1665echo "$as_me:$LINENO: checking build system type" >&5
1666echo $ECHO_N "checking build system type... $ECHO_C" >&6
1667if test "${ac_cv_build+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  ac_cv_build_alias=$build_alias
1671test -z "$ac_cv_build_alias" &&
1672  ac_cv_build_alias=`$ac_config_guess`
1673test -z "$ac_cv_build_alias" &&
1674  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1675echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1676   { (exit 1); exit 1; }; }
1677ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1678  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1680   { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1684echo "${ECHO_T}$ac_cv_build" >&6
1685build=$ac_cv_build
1686build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691
1692# If this project depends on external projects, the Externals file in
1693# the source root directory contains definition of where to find those
1694# externals.  The following macro ensures that those externals are
1695# retrieved by svn if they are not there yet.
1696
1697# As backup, we make sure we don't loose an FLIBS if it has been set
1698# by the user
1699save_FLIBS="$FLIBS"
1700
1701# A useful makefile conditional that is always false
1702
1703
1704if false; then
1705  ALWAYS_FALSE_TRUE=
1706  ALWAYS_FALSE_FALSE='#'
1707else
1708  ALWAYS_FALSE_TRUE='#'
1709  ALWAYS_FALSE_FALSE=
1710fi
1711
1712
1713# We set the following variable so that we know later in AC_COIN_FINALIZE
1714# that we are in a project main directory
1715coin_projectdir=yes
1716
1717# Set the project's version numbers
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define FLOPCPP_VERSION "$PACKAGE_VERSION"
1722_ACEOF
1723
1724
1725  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1726  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1727  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1728  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1729  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1730  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1731
1732cat >>confdefs.h <<_ACEOF
1733#define FLOPCPP_VERSION_MAJOR $coin_majorver
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define FLOPCPP_VERSION_MINOR $coin_minorver
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define FLOPCPP_VERSION_RELEASE $coin_releasever
1744_ACEOF
1745
1746
1747  # We use the following variable to have a string with the upper case
1748  # version of the project name
1749  COIN_PRJCT=FLOPCPP
1750
1751  # Set the project's SVN revision number. The complicated sed expression
1752  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1753  # as a single number.
1754  # Extract the first word of "svnversion", so it can be a program name with args.
1755set dummy svnversion; ac_word=$2
1756echo "$as_me:$LINENO: checking for $ac_word" >&5
1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_have_svnversion+set}" = set; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  if test -n "$have_svnversion"; then
1762  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1763else
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767  IFS=$as_save_IFS
1768  test -z "$as_dir" && as_dir=.
1769  for ac_exec_ext in '' $ac_executable_extensions; do
1770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771    ac_cv_prog_have_svnversion="yes"
1772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773    break 2
1774  fi
1775done
1776done
1777
1778  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1779fi
1780fi
1781have_svnversion=$ac_cv_prog_have_svnversion
1782if test -n "$have_svnversion"; then
1783  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1784echo "${ECHO_T}$have_svnversion" >&6
1785else
1786  echo "$as_me:$LINENO: result: no" >&5
1787echo "${ECHO_T}no" >&6
1788fi
1789
1790  if test "x$have_svnversion" = xyes; then
1791
1792    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1793    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1794      FLOPCPP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1795
1796cat >>confdefs.h <<_ACEOF
1797#define FLOPCPP_SVN_REV $FLOPCPP_SVN_REV
1798_ACEOF
1799
1800    fi
1801  fi
1802
1803
1804
1805# Capture libtool library version, if given.
1806
1807
1808
1809
1810# Check if user wants to produce debugging code
1811
1812echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1813echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1814
1815# Check whether --enable-debug or --disable-debug was given.
1816if test "${enable_debug+set}" = set; then
1817  enableval="$enable_debug"
1818  case "${enableval}" in
1819   yes) coin_debug_compile=true
1820        if test "${enable_shared+set}" = set; then :; else
1821          enable_shared=no
1822        fi
1823        ;;
1824   no)  coin_debug_compile=false
1825        ;;
1826   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1827echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1828   { (exit 1); exit 1; }; }
1829        ;;
1830esac
1831else
1832  coin_debug_compile=false
1833fi;
1834
1835# Check whether --enable-debug-flopcpp or --disable-debug-flopcpp was given.
1836if test "${enable_debug_flopcpp+set}" = set; then
1837  enableval="$enable_debug_flopcpp"
1838  case "${enableval}" in
1839    yes) coin_debug_compile=true
1840         ;;
1841    no)  coin_debug_compile=false
1842         ;;
1843    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-flopcpp" >&5
1844echo "$as_me: error: bad value ${enableval} for --enable-debug-flopcpp" >&2;}
1845   { (exit 1); exit 1; }; }
1846         ;;
1847 esac
1848else
1849  :
1850fi;
1851
1852 # m4_ifvaln([FlopCpp],
1853
1854if test $coin_debug_compile = true; then
1855  echo "$as_me:$LINENO: result: yes" >&5
1856echo "${ECHO_T}yes" >&6
1857else
1858  echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862
1863# Check whether --with-flopcpp-verbosity or --without-flopcpp-verbosity was given.
1864if test "${with_flopcpp_verbosity+set}" = set; then
1865  withval="$with_flopcpp_verbosity"
1866  if test "$withval" = yes; then
1867                withval=1
1868              fi
1869              coin_flopcpp_verbosity=$withval
1870else
1871  coin_flopcpp_verbosity=0
1872fi;
1873
1874cat >>confdefs.h <<_ACEOF
1875#define COIN_FLOPCPP_VERBOSITY $coin_flopcpp_verbosity
1876_ACEOF
1877
1878
1879
1880# Check whether --with-flopcpp-checklevel or --without-flopcpp-checklevel was given.
1881if test "${with_flopcpp_checklevel+set}" = set; then
1882  withval="$with_flopcpp_checklevel"
1883  if test "$withval" = yes; then
1884                withval=1
1885              fi
1886              coin_flopcpp_checklevel=$withval
1887else
1888  coin_flopcpp_checklevel=0
1889fi;
1890
1891cat >>confdefs.h <<_ACEOF
1892#define COIN_FLOPCPP_CHECKLEVEL $coin_flopcpp_checklevel
1893_ACEOF
1894
1895
1896 # m4_ifvaln([FlopCpp],
1897
1898
1899
1900# Get the name of the C++ compiler and appropriate compiler options
1901
1902
1903  # for backward compatibility
1904  # Check whether --enable-doscompile or --disable-doscompile was given.
1905if test "${enable_doscompile+set}" = set; then
1906  enableval="$enable_doscompile"
1907  enable_doscompile=$enableval
1908else
1909  enable_doscompile=no
1910fi;
1911
1912  # Check whether --enable-msvc or --disable-msvc was given.
1913if test "${enable_msvc+set}" = set; then
1914  enableval="$enable_msvc"
1915  enable_msvc=$enableval
1916else
1917  enable_msvc=no
1918     if test "$enable_doscompile" = msvc ; then
1919       enable_msvc=yes
1920     elif test "$enable_doscompile" != no ; then
1921       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1922echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1923   { (exit 1); exit 1; }; }
1924     fi
1925
1926fi;
1927
1928  if test "$enable_msvc" = MD; then
1929    enable_shared=yes
1930    enable_msvc=yes
1931  fi
1932
1933  if test "$enable_msvc" = yes; then
1934    case $build in
1935      *-cygwin* | *-mingw*) ;;
1936      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1937echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1938   { (exit 1); exit 1; }; } ;;
1939    esac
1940  fi
1941
1942
1943
1944ac_ext=c
1945ac_cpp='$CPP $CPPFLAGS'
1946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951# For consistency, we set the C compiler to the same value of the C++
1952# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1953if test x"$CXX" != x; then
1954  case "$CXX" in
1955    clang* ) ;;
1956    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1957      if test x"$CC" = x; then
1958        CC="$CXX"
1959        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1960echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1961      fi
1962      ;;
1963  esac
1964fi
1965
1966
1967
1968
1969
1970
1971coin_has_cc=yes
1972
1973save_cflags="$CFLAGS"
1974
1975# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1976# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1977# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1978# compiler. In this case, put cc after gcc.
1979
1980case $build in
1981  *-cygwin* | *-mingw*)
1982  	     if test "$enable_msvc" = yes ; then
1983	       comps="icl cl gcc"
1984	     else
1985	       comps="gcc icl cl"
1986	     fi ;;
1987  *-*-solaris*)
1988	     # Extract the first word of "cc", so it can be a program name with args.
1989set dummy cc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$sol_cc_compiler"; then
1996  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1997else
1998  ac_prog_rejected=no
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007       ac_prog_rejected=yes
2008       continue
2009     fi
2010    ac_cv_prog_sol_cc_compiler="cc"
2011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012    break 2
2013  fi
2014done
2015done
2016
2017if test $ac_prog_rejected = yes; then
2018  # We found a bogon in the path, so make sure we never use it.
2019  set dummy $ac_cv_prog_sol_cc_compiler
2020  shift
2021  if test $# != 0; then
2022    # We chose a different compiler from the bogus one.
2023    # However, it has the same basename, so the bogon will be chosen
2024    # first if we set sol_cc_compiler to just the basename; use the full file name.
2025    shift
2026    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2027  fi
2028fi
2029fi
2030fi
2031sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2032if test -n "$sol_cc_compiler"; then
2033  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2034echo "${ECHO_T}$sol_cc_compiler" >&6
2035else
2036  echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6
2038fi
2039
2040	     if test "$sol_cc_compiler" = "cc" ; then
2041	       comps="cc xlc gcc pgcc icc"
2042	     else
2043	       comps="xlc gcc pgcc icc cc"
2044	     fi
2045	     ;;
2046  *-*-darwin*) comps="clang gcc cc" ;;
2047  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2048  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2049  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2050esac
2051
2052# We delete the cached value, since the test might not have been
2053# performed with our choice of compilers earlier
2054$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2055# AC_MSG_NOTICE([C compiler candidates: $comps])
2056ac_ext=c
2057ac_cpp='$CPP $CPPFLAGS'
2058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060ac_compiler_gnu=$ac_cv_c_compiler_gnu
2061if test -n "$ac_tool_prefix"; then
2062  for ac_prog in $comps
2063  do
2064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068if test "${ac_cv_prog_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$CC"; then
2072  ac_cv_prog_CC="$CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088fi
2089fi
2090CC=$ac_cv_prog_CC
2091if test -n "$CC"; then
2092  echo "$as_me:$LINENO: result: $CC" >&5
2093echo "${ECHO_T}$CC" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099    test -n "$CC" && break
2100  done
2101fi
2102if test -z "$CC"; then
2103  ac_ct_CC=$CC
2104  for ac_prog in $comps
2105do
2106  # Extract the first word of "$ac_prog", so it can be a program name with args.
2107set dummy $ac_prog; ac_word=$2
2108echo "$as_me:$LINENO: checking for $ac_word" >&5
2109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111  echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113  if test -n "$ac_ct_CC"; then
2114  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121  for ac_exec_ext in '' $ac_executable_extensions; do
2122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123    ac_cv_prog_ac_ct_CC="$ac_prog"
2124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125    break 2
2126  fi
2127done
2128done
2129
2130fi
2131fi
2132ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133if test -n "$ac_ct_CC"; then
2134  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135echo "${ECHO_T}$ac_ct_CC" >&6
2136else
2137  echo "$as_me:$LINENO: result: no" >&5
2138echo "${ECHO_T}no" >&6
2139fi
2140
2141  test -n "$ac_ct_CC" && break
2142done
2143
2144  CC=$ac_ct_CC
2145fi
2146
2147
2148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&5
2150echo "$as_me: error: no acceptable C compiler found in \$PATH
2151See \`config.log' for more details." >&2;}
2152   { (exit 1); exit 1; }; }
2153
2154# Provide some information about the compiler.
2155echo "$as_me:$LINENO:" \
2156     "checking for C compiler version" >&5
2157ac_compiler=`set X $ac_compile; echo $2`
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2159  (eval $ac_compiler --version </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2164  (eval $ac_compiler -v </dev/null >&5) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }
2168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2169  (eval $ac_compiler -V </dev/null >&5) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }
2173
2174cat >conftest.$ac_ext <<_ACEOF
2175/* confdefs.h.  */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h.  */
2180
2181int
2182main ()
2183{
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189ac_clean_files_save=$ac_clean_files
2190ac_clean_files="$ac_clean_files a.out a.exe b.out"
2191# Try to create an executable without -o first, disregard a.out.
2192# It will help us diagnose broken compilers, and finding out an intuition
2193# of exeext.
2194echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2195echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2196ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2198  (eval $ac_link_default) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; then
2202  # Find the output, starting from the most likely.  This scheme is
2203# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2204# resort.
2205
2206# Be careful to initialize this variable, since it used to be cached.
2207# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2208ac_cv_exeext=
2209# b.out is created by i960 compilers.
2210for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2211do
2212  test -f "$ac_file" || continue
2213  case $ac_file in
2214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2215	;;
2216    conftest.$ac_ext )
2217	# This is the source file.
2218	;;
2219    [ab].out )
2220	# We found the default executable, but exeext='' is most
2221	# certainly right.
2222	break;;
2223    *.* )
2224	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225	# FIXME: I believe we export ac_cv_exeext for Libtool,
2226	# but it would be cool to find out if it's true.  Does anybody
2227	# maintain Libtool? --akim.
2228	export ac_cv_exeext
2229	break;;
2230    * )
2231	break;;
2232  esac
2233done
2234else
2235  echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: C compiler cannot create executables
2241See \`config.log' for more details." >&2;}
2242   { (exit 77); exit 77; }; }
2243fi
2244
2245ac_exeext=$ac_cv_exeext
2246echo "$as_me:$LINENO: result: $ac_file" >&5
2247echo "${ECHO_T}$ac_file" >&6
2248
2249# Check the compiler produces executables we can run.  If not, either
2250# the compiler is broken, or we cross compile.
2251echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2253# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254# If not cross compiling, check that we can run a simple program.
2255if test "$cross_compiling" != yes; then
2256  if { ac_try='./$ac_file'
2257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258  (eval $ac_try) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; }; then
2262    cross_compiling=no
2263  else
2264    if test "$cross_compiling" = maybe; then
2265	cross_compiling=yes
2266    else
2267	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2268If you meant to cross compile, use \`--host'.
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot run C compiled programs.
2271If you meant to cross compile, use \`--host'.
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274    fi
2275  fi
2276fi
2277echo "$as_me:$LINENO: result: yes" >&5
2278echo "${ECHO_T}yes" >&6
2279
2280rm -f a.out a.exe conftest$ac_cv_exeext b.out
2281ac_clean_files=$ac_clean_files_save
2282# Check the compiler produces executables we can run.  If not, either
2283# the compiler is broken, or we cross compile.
2284echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2285echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2286echo "$as_me:$LINENO: result: $cross_compiling" >&5
2287echo "${ECHO_T}$cross_compiling" >&6
2288
2289echo "$as_me:$LINENO: checking for suffix of executables" >&5
2290echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2292  (eval $ac_link) 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; then
2296  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2298# work properly (i.e., refer to `conftest.exe'), while it won't with
2299# `rm'.
2300for ac_file in conftest.exe conftest conftest.*; do
2301  test -f "$ac_file" || continue
2302  case $ac_file in
2303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2304    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305	  export ac_cv_exeext
2306	  break;;
2307    * ) break;;
2308  esac
2309done
2310else
2311  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2312See \`config.log' for more details." >&5
2313echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&2;}
2315   { (exit 1); exit 1; }; }
2316fi
2317
2318rm -f conftest$ac_cv_exeext
2319echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2320echo "${ECHO_T}$ac_cv_exeext" >&6
2321
2322rm -f conftest.$ac_ext
2323EXEEXT=$ac_cv_exeext
2324ac_exeext=$EXEEXT
2325echo "$as_me:$LINENO: checking for suffix of object files" >&5
2326echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2327if test "${ac_cv_objext+set}" = set; then
2328  echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330  cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h.  */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h.  */
2336
2337int
2338main ()
2339{
2340
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345rm -f conftest.o conftest.obj
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347  (eval $ac_compile) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; then
2351  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352  case $ac_file in
2353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355       break;;
2356  esac
2357done
2358else
2359  echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370fi
2371echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372echo "${ECHO_T}$ac_cv_objext" >&6
2373OBJEXT=$ac_cv_objext
2374ac_objext=$OBJEXT
2375echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378  echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380  cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h.  */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h.  */
2386
2387int
2388main ()
2389{
2390#ifndef __GNUC__
2391       choke me
2392#endif
2393
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400  (eval $ac_compile) 2>conftest.er1
2401  ac_status=$?
2402  grep -v '^ *+' conftest.er1 >conftest.err
2403  rm -f conftest.er1
2404  cat conftest.err >&5
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); } &&
2407	 { ac_try='test -z "$ac_c_werror_flag"
2408			 || test ! -s conftest.err'
2409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410  (eval $ac_try) 2>&5
2411  ac_status=$?
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); }; } &&
2414	 { ac_try='test -s conftest.$ac_objext'
2415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416  (eval $ac_try) 2>&5
2417  ac_status=$?
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); }; }; then
2420  ac_compiler_gnu=yes
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425ac_compiler_gnu=no
2426fi
2427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2433GCC=`test $ac_compiler_gnu = yes && echo yes`
2434ac_test_CFLAGS=${CFLAGS+set}
2435ac_save_CFLAGS=$CFLAGS
2436CFLAGS="-g"
2437echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459  (eval $ac_compile) 2>conftest.er1
2460  ac_status=$?
2461  grep -v '^ *+' conftest.er1 >conftest.err
2462  rm -f conftest.er1
2463  cat conftest.err >&5
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); } &&
2466	 { ac_try='test -z "$ac_c_werror_flag"
2467			 || test ! -s conftest.err'
2468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469  (eval $ac_try) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; } &&
2473	 { ac_try='test -s conftest.$ac_objext'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; }; then
2479  ac_cv_prog_cc_g=yes
2480else
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484ac_cv_prog_cc_g=no
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487fi
2488echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490if test "$ac_test_CFLAGS" = set; then
2491  CFLAGS=$ac_save_CFLAGS
2492elif test $ac_cv_prog_cc_g = yes; then
2493  if test "$GCC" = yes; then
2494    CFLAGS="-g -O2"
2495  else
2496    CFLAGS="-g"
2497  fi
2498else
2499  if test "$GCC" = yes; then
2500    CFLAGS="-O2"
2501  else
2502    CFLAGS=
2503  fi
2504fi
2505echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  ac_cv_prog_cc_stdc=no
2511ac_save_CC=$CC
2512cat >conftest.$ac_ext <<_ACEOF
2513/* confdefs.h.  */
2514_ACEOF
2515cat confdefs.h >>conftest.$ac_ext
2516cat >>conftest.$ac_ext <<_ACEOF
2517/* end confdefs.h.  */
2518#include <stdarg.h>
2519#include <stdio.h>
2520#include <sys/types.h>
2521#include <sys/stat.h>
2522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2523struct buf { int x; };
2524FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525static char *e (p, i)
2526     char **p;
2527     int i;
2528{
2529  return p[i];
2530}
2531static char *f (char * (*g) (char **, int), char **p, ...)
2532{
2533  char *s;
2534  va_list v;
2535  va_start (v,p);
2536  s = g (p, va_arg (v,int));
2537  va_end (v);
2538  return s;
2539}
2540
2541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2542   function prototypes and stuff, but not '\xHH' hex character constants.
2543   These don't provoke an error unfortunately, instead are silently treated
2544   as 'x'.  The following induces an error, until -std1 is added to get
2545   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2546   array size at least.  It's necessary to write '\x00'==0 to get something
2547   that's true only with -std1.  */
2548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2549
2550int test (int i, double x);
2551struct s1 {int (*f) (int a);};
2552struct s2 {int (*f) (double a);};
2553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554int argc;
2555char **argv;
2556int
2557main ()
2558{
2559return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564# Don't try gcc -ansi; that turns off useful extensions and
2565# breaks some systems' header files.
2566# AIX			-qlanglvl=ansi
2567# Ultrix and OSF/1	-std1
2568# HP-UX 10.20 and later	-Ae
2569# HP-UX older versions	-Aa -D_HPUX_SOURCE
2570# SVR4			-Xc -D__EXTENSIONS__
2571for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572do
2573  CC="$ac_save_CC $ac_arg"
2574  rm -f conftest.$ac_objext
2575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576  (eval $ac_compile) 2>conftest.er1
2577  ac_status=$?
2578  grep -v '^ *+' conftest.er1 >conftest.err
2579  rm -f conftest.er1
2580  cat conftest.err >&5
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); } &&
2583	 { ac_try='test -z "$ac_c_werror_flag"
2584			 || test ! -s conftest.err'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; } &&
2590	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2596  ac_cv_prog_cc_stdc=$ac_arg
2597break
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602fi
2603rm -f conftest.err conftest.$ac_objext
2604done
2605rm -f conftest.$ac_ext conftest.$ac_objext
2606CC=$ac_save_CC
2607
2608fi
2609
2610case "x$ac_cv_prog_cc_stdc" in
2611  x|xno)
2612    echo "$as_me:$LINENO: result: none needed" >&5
2613echo "${ECHO_T}none needed" >&6 ;;
2614  *)
2615    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2617    CC="$CC $ac_cv_prog_cc_stdc" ;;
2618esac
2619
2620# Some people use a C++ compiler to compile C.  Since we use `exit',
2621# in C++ we need to declare it.  In case someone uses the same compiler
2622# for both compiling C and C++ we need to have the C++ compiler decide
2623# the declaration of exit, since it's the most demanding environment.
2624cat >conftest.$ac_ext <<_ACEOF
2625#ifndef __cplusplus
2626  choke me
2627#endif
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631  (eval $ac_compile) 2>conftest.er1
2632  ac_status=$?
2633  grep -v '^ *+' conftest.er1 >conftest.err
2634  rm -f conftest.er1
2635  cat conftest.err >&5
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); } &&
2638	 { ac_try='test -z "$ac_c_werror_flag"
2639			 || test ! -s conftest.err'
2640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641  (eval $ac_try) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); }; } &&
2645	 { ac_try='test -s conftest.$ac_objext'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; }; then
2651  for ac_declaration in \
2652   '' \
2653   'extern "C" void std::exit (int) throw (); using std::exit;' \
2654   'extern "C" void std::exit (int); using std::exit;' \
2655   'extern "C" void exit (int) throw ();' \
2656   'extern "C" void exit (int);' \
2657   'void exit (int);'
2658do
2659  cat >conftest.$ac_ext <<_ACEOF
2660/* confdefs.h.  */
2661_ACEOF
2662cat confdefs.h >>conftest.$ac_ext
2663cat >>conftest.$ac_ext <<_ACEOF
2664/* end confdefs.h.  */
2665$ac_declaration
2666#include <stdlib.h>
2667int
2668main ()
2669{
2670exit (42);
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677  (eval $ac_compile) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684	 { ac_try='test -z "$ac_c_werror_flag"
2685			 || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691	 { ac_try='test -s conftest.$ac_objext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  :
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702continue
2703fi
2704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705  cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h.  */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h.  */
2711$ac_declaration
2712int
2713main ()
2714{
2715exit (42);
2716  ;
2717  return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722  (eval $ac_compile) 2>conftest.er1
2723  ac_status=$?
2724  grep -v '^ *+' conftest.er1 >conftest.err
2725  rm -f conftest.er1
2726  cat conftest.err >&5
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); } &&
2729	 { ac_try='test -z "$ac_c_werror_flag"
2730			 || test ! -s conftest.err'
2731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732  (eval $ac_try) 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }; } &&
2736	 { ac_try='test -s conftest.$ac_objext'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; }; then
2742  break
2743else
2744  echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747fi
2748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749done
2750rm -f conftest*
2751if test -n "$ac_declaration"; then
2752  echo '#ifdef __cplusplus' >>confdefs.h
2753  echo $ac_declaration      >>confdefs.h
2754  echo '#endif'             >>confdefs.h
2755fi
2756
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761fi
2762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769if test -z "$CC" ; then
2770  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2771echo "$as_me: error: Failed to find a C compiler!" >&2;}
2772   { (exit 1); exit 1; }; }
2773fi
2774# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2775case "$CC" in
2776  clang* ) ;;
2777  cl* | */cl* | CL* | */CL* )
2778    if test "$ac_cv_prog_cc_g" = yes ; then
2779      ac_cv_prog_cc_g=no
2780      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2781echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2782    fi ;;
2783  * )
2784    if test x"$CYGPATH_W" = x ; then
2785      CYGPATH_W=echo
2786    fi
2787    ;;
2788esac
2789CFLAGS="$save_cflags"
2790
2791# add automake conditional so we can recognize cl compiler in makefile
2792coin_cc_is_cl=false
2793case "$CC" in
2794  clang* ) ;;
2795  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2796    coin_cc_is_cl=true
2797    ;;
2798esac
2799
2800
2801if test $coin_cc_is_cl = true; then
2802  COIN_CC_IS_CL_TRUE=
2803  COIN_CC_IS_CL_FALSE='#'
2804else
2805  COIN_CC_IS_CL_TRUE='#'
2806  COIN_CC_IS_CL_FALSE=
2807fi
2808
2809
2810# Check if a project specific CFLAGS variable has been set
2811if test x$COIN_PRJCT != x; then
2812  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2813  if test x$coin_tmp = xset; then
2814    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2815  fi
2816fi
2817
2818if test x"$CFLAGS" = x; then
2819
2820  coin_add_cflags=
2821  coin_opt_cflags=
2822  coin_dbg_cflags=
2823  coin_warn_cflags=
2824
2825  if test "$GCC" = "yes"; then
2826    case "$CC" in
2827      icc* | */icc*)
2828        ;;
2829      *)
2830        coin_opt_cflags="-O3"
2831        coin_add_cflags="-pipe"
2832        coin_dbg_cflags="-g -O0"
2833        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2834    esac
2835  fi
2836  if test -z "$coin_opt_cflags"; then
2837    case $build in
2838      *-cygwin* | *-mingw*)
2839        case "$CC" in
2840          clang* ) ;;
2841          cl* | */cl* | CL* | */CL*)
2842            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2843              coin_opt_cflags='-MD -O2'
2844              coin_dbg_cflags='-MDd'
2845            else
2846              coin_opt_cflags='-MT -O2'
2847              coin_dbg_cflags='-MTd'
2848            fi
2849            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2850            ;;
2851          icl* | */icl* | ICL* | */ICL*)
2852            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2853              coin_opt_cflags='-MD -Ox'
2854              coin_dbg_cflags='-MDd -debug'
2855            else
2856              coin_opt_cflags='-MT -Ox'
2857              coin_dbg_cflags='-MTd -debug'
2858            fi
2859            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2860            ;;
2861        esac
2862        ;;
2863      *-linux-*)
2864        case "$CC" in
2865          icc* | */icc*)
2866            coin_opt_cflags="-O3 -ip -mp1"
2867            coin_add_cflags=""
2868            coin_dbg_cflags="-g"
2869            # Check if -i_dynamic is necessary (for new glibc library)
2870            CFLAGS=
2871            cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h.  */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h.  */
2877
2878int
2879main ()
2880{
2881int i=0; i++;
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext conftest$ac_exeext
2887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888  (eval $ac_link) 2>conftest.er1
2889  ac_status=$?
2890  grep -v '^ *+' conftest.er1 >conftest.err
2891  rm -f conftest.er1
2892  cat conftest.err >&5
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); } &&
2895	 { ac_try='test -z "$ac_c_werror_flag"
2896			 || test ! -s conftest.err'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; } &&
2902	 { ac_try='test -s conftest$ac_exeext'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; }; then
2908  :
2909else
2910  echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913coin_add_cflags="-i_dynamic $coin_add_cflags"
2914fi
2915rm -f conftest.err conftest.$ac_objext \
2916      conftest$ac_exeext conftest.$ac_ext
2917            ;;
2918          pgcc* | */pgcc*)
2919            coin_opt_cflags="-fast"
2920            coin_add_cflags="-Kieee -pc 64"
2921            coin_dbg_cflags="-g"
2922            ;;
2923        esac
2924        ;;
2925      *-ibm-*)
2926        case "$CC" in
2927          xlc* | */xlc* | mpxlc* | */mpxlc*)
2928            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2929            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2930            coin_dbg_cflags="-g"
2931          ;;
2932        esac
2933        ;;
2934      *-hp-*)
2935        coin_opt_cflags="-O"
2936        coin_add_cflags="-Ae"
2937        coin_dbg_cflags="-g"
2938        ;;
2939      *-*-solaris*)
2940        coin_opt_cflags="-xO4"
2941        coin_dbg_cflags="-g"
2942        ;;
2943      *-sgi-*)
2944        coin_opt_cflags="-O -OPT:Olimit=0"
2945        coin_dbg_cflags="-g"
2946        ;;
2947    esac
2948  fi
2949
2950  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2951    coin_dbg_cflags="-g"
2952  fi
2953
2954  if test -z "$coin_opt_cflags"; then
2955    # Try if -O option works if nothing else is set
2956    CFLAGS="-O"
2957    cat >conftest.$ac_ext <<_ACEOF
2958/* confdefs.h.  */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h.  */
2963
2964int
2965main ()
2966{
2967int i=0; i++;
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972rm -f conftest.$ac_objext conftest$ac_exeext
2973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974  (eval $ac_link) 2>conftest.er1
2975  ac_status=$?
2976  grep -v '^ *+' conftest.er1 >conftest.err
2977  rm -f conftest.er1
2978  cat conftest.err >&5
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); } &&
2981	 { ac_try='test -z "$ac_c_werror_flag"
2982			 || test ! -s conftest.err'
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); }; } &&
2988	 { ac_try='test -s conftest$ac_exeext'
2989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990  (eval $ac_try) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }; }; then
2994  coin_opt_cflags="-O"
2995else
2996  echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999fi
3000rm -f conftest.err conftest.$ac_objext \
3001      conftest$ac_exeext conftest.$ac_ext
3002  fi
3003
3004  # if PM doesn't want the warning messages, take them out
3005  if test x"$coin_skip_warn_cflags" = xyes; then
3006    coin_warn_cflags=
3007  fi
3008
3009  if test x${DBG_CFLAGS+set} != xset; then
3010    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3011  fi
3012  if test x${OPT_CFLAGS+set} != xset; then
3013    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3014  fi
3015
3016  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3017  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3018
3019  if test "$coin_debug_compile" = "true"; then
3020    CFLAGS="$DBG_CFLAGS"
3021  else
3022    CFLAGS="$OPT_CFLAGS"
3023  fi
3024else
3025  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3026  if test x${DBG_CFLAGS+set} != xset; then
3027    DBG_CFLAGS="$CFLAGS"
3028  fi
3029  if test x${OPT_CFLAGS+set} != xset; then
3030    OPT_CFLAGS="$CFLAGS"
3031  fi
3032fi
3033
3034# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3035if test x$COIN_PRJCT != x; then
3036  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3037fi
3038
3039# Try if CFLAGS works
3040save_CFLAGS="$CFLAGS"
3041cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051int i=0; i++;
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext conftest$ac_exeext
3057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3058  (eval $ac_link) 2>conftest.er1
3059  ac_status=$?
3060  grep -v '^ *+' conftest.er1 >conftest.err
3061  rm -f conftest.er1
3062  cat conftest.err >&5
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); } &&
3065	 { ac_try='test -z "$ac_c_werror_flag"
3066			 || test ! -s conftest.err'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072	 { ac_try='test -s conftest$ac_exeext'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; }; then
3078  :
3079else
3080  echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083CFLAGS=
3084fi
3085rm -f conftest.err conftest.$ac_objext \
3086      conftest$ac_exeext conftest.$ac_ext
3087if test -z "$CFLAGS"; then
3088  { 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
3089echo "$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;}
3090  CFLAGS='-O'
3091  cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101int i=0; i++;
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext conftest$ac_exeext
3107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108  (eval $ac_link) 2>conftest.er1
3109  ac_status=$?
3110  grep -v '^ *+' conftest.er1 >conftest.err
3111  rm -f conftest.er1
3112  cat conftest.err >&5
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } &&
3115	 { ac_try='test -z "$ac_c_werror_flag"
3116			 || test ! -s conftest.err'
3117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; } &&
3122	 { ac_try='test -s conftest$ac_exeext'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; }; then
3128  :
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133CFLAGS=
3134fi
3135rm -f conftest.err conftest.$ac_objext \
3136      conftest$ac_exeext conftest.$ac_ext
3137  if test -z "$CFLAGS"; then
3138    { 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
3139echo "$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;}
3140  fi
3141fi
3142
3143{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3144echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3145
3146
3147if test x"$MPICC" = x; then :; else
3148  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3149echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3150  CC="$MPICC"
3151fi
3152
3153# Correct the LD variable if we are using the MS or Intel-windows compiler
3154case "$CC" in
3155  clang* ) ;;
3156  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3157    LD=link
3158    ;;
3159esac
3160
3161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168
3169 #Let's try if that overcomes configuration problem with VC++ 6.0
3170
3171ac_ext=cc
3172ac_cpp='$CXXCPP $CPPFLAGS'
3173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3176
3177
3178
3179
3180
3181
3182
3183coin_has_cxx=yes
3184
3185save_cxxflags="$CXXFLAGS"
3186# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3187case $build in
3188  *-cygwin* | *-mingw*)
3189      if test "$enable_msvc" = yes ; then
3190         comps="icl cl g++"
3191      else
3192         comps="g++ icl cl"
3193      fi ;;
3194  *-*-solaris*)
3195  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3196  *-darwin*) comps="clang++ g++ c++ CC" ;;
3197  *-linux-gnu*)
3198             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3199          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3200esac
3201
3202# We delete the cached value, since the test might not have been
3203# performed with our choice of compilers earlier
3204$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3205# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3206ac_ext=cc
3207ac_cpp='$CXXCPP $CPPFLAGS'
3208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3211if test -n "$ac_tool_prefix"; then
3212  for ac_prog in $CCC $comps
3213  do
3214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216echo "$as_me:$LINENO: checking for $ac_word" >&5
3217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218if test "${ac_cv_prog_CXX+set}" = set; then
3219  echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221  if test -n "$CXX"; then
3222  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229  for ac_exec_ext in '' $ac_executable_extensions; do
3230  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3232    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233    break 2
3234  fi
3235done
3236done
3237
3238fi
3239fi
3240CXX=$ac_cv_prog_CXX
3241if test -n "$CXX"; then
3242  echo "$as_me:$LINENO: result: $CXX" >&5
3243echo "${ECHO_T}$CXX" >&6
3244else
3245  echo "$as_me:$LINENO: result: no" >&5
3246echo "${ECHO_T}no" >&6
3247fi
3248
3249    test -n "$CXX" && break
3250  done
3251fi
3252if test -z "$CXX"; then
3253  ac_ct_CXX=$CXX
3254  for ac_prog in $CCC $comps
3255do
3256  # Extract the first word of "$ac_prog", so it can be a program name with args.
3257set dummy $ac_prog; ac_word=$2
3258echo "$as_me:$LINENO: checking for $ac_word" >&5
3259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3261  echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263  if test -n "$ac_ct_CXX"; then
3264  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271  for ac_exec_ext in '' $ac_executable_extensions; do
3272  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273    ac_cv_prog_ac_ct_CXX="$ac_prog"
3274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278done
3279
3280fi
3281fi
3282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3283if test -n "$ac_ct_CXX"; then
3284  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3285echo "${ECHO_T}$ac_ct_CXX" >&6
3286else
3287  echo "$as_me:$LINENO: result: no" >&5
3288echo "${ECHO_T}no" >&6
3289fi
3290
3291  test -n "$ac_ct_CXX" && break
3292done
3293test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3294
3295  CXX=$ac_ct_CXX
3296fi
3297
3298
3299# Provide some information about the compiler.
3300echo "$as_me:$LINENO:" \
3301     "checking for C++ compiler version" >&5
3302ac_compiler=`set X $ac_compile; echo $2`
3303{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3304  (eval $ac_compiler --version </dev/null >&5) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }
3308{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3309  (eval $ac_compiler -v </dev/null >&5) 2>&5
3310  ac_status=$?
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); }
3313{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3314  (eval $ac_compiler -V </dev/null >&5) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }
3318
3319echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3320echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3321if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h.  */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334#ifndef __GNUC__
3335       choke me
3336#endif
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342rm -f conftest.$ac_objext
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344  (eval $ac_compile) 2>conftest.er1
3345  ac_status=$?
3346  grep -v '^ *+' conftest.er1 >conftest.err
3347  rm -f conftest.er1
3348  cat conftest.err >&5
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } &&
3351	 { ac_try='test -z "$ac_cxx_werror_flag"
3352			 || test ! -s conftest.err'
3353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354  (eval $ac_try) 2>&5
3355  ac_status=$?
3356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357  (exit $ac_status); }; } &&
3358	 { ac_try='test -s conftest.$ac_objext'
3359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360  (eval $ac_try) 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); }; }; then
3364  ac_compiler_gnu=yes
3365else
3366  echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369ac_compiler_gnu=no
3370fi
3371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3373
3374fi
3375echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3376echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3377GXX=`test $ac_compiler_gnu = yes && echo yes`
3378ac_test_CXXFLAGS=${CXXFLAGS+set}
3379ac_save_CXXFLAGS=$CXXFLAGS
3380CXXFLAGS="-g"
3381echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3382echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3383if test "${ac_cv_prog_cxx_g+set}" = set; then
3384  echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386  cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h.  */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h.  */
3392
3393int
3394main ()
3395{
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext
3402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403  (eval $ac_compile) 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } &&
3410	 { ac_try='test -z "$ac_cxx_werror_flag"
3411			 || test ! -s conftest.err'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; } &&
3417	 { ac_try='test -s conftest.$ac_objext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  ac_cv_prog_cxx_g=yes
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428ac_cv_prog_cxx_g=no
3429fi
3430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3434if test "$ac_test_CXXFLAGS" = set; then
3435  CXXFLAGS=$ac_save_CXXFLAGS
3436elif test $ac_cv_prog_cxx_g = yes; then
3437  if test "$GXX" = yes; then
3438    CXXFLAGS="-g -O2"
3439  else
3440    CXXFLAGS="-g"
3441  fi
3442else
3443  if test "$GXX" = yes; then
3444    CXXFLAGS="-O2"
3445  else
3446    CXXFLAGS=
3447  fi
3448fi
3449for ac_declaration in \
3450   '' \
3451   'extern "C" void std::exit (int) throw (); using std::exit;' \
3452   'extern "C" void std::exit (int); using std::exit;' \
3453   'extern "C" void exit (int) throw ();' \
3454   'extern "C" void exit (int);' \
3455   'void exit (int);'
3456do
3457  cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h.  */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h.  */
3463$ac_declaration
3464#include <stdlib.h>
3465int
3466main ()
3467{
3468exit (42);
3469  ;
3470  return 0;
3471}
3472_ACEOF
3473rm -f conftest.$ac_objext
3474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475  (eval $ac_compile) 2>conftest.er1
3476  ac_status=$?
3477  grep -v '^ *+' conftest.er1 >conftest.err
3478  rm -f conftest.er1
3479  cat conftest.err >&5
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } &&
3482	 { ac_try='test -z "$ac_cxx_werror_flag"
3483			 || test ! -s conftest.err'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; } &&
3489	 { ac_try='test -s conftest.$ac_objext'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; }; then
3495  :
3496else
3497  echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500continue
3501fi
3502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503  cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509$ac_declaration
3510int
3511main ()
3512{
3513exit (42);
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520  (eval $ac_compile) 2>conftest.er1
3521  ac_status=$?
3522  grep -v '^ *+' conftest.er1 >conftest.err
3523  rm -f conftest.er1
3524  cat conftest.err >&5
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } &&
3527	 { ac_try='test -z "$ac_cxx_werror_flag"
3528			 || test ! -s conftest.err'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; } &&
3534	 { ac_try='test -s conftest.$ac_objext'
3535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536  (eval $ac_try) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }; }; then
3540  break
3541else
3542  echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545fi
3546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547done
3548rm -f conftest*
3549if test -n "$ac_declaration"; then
3550  echo '#ifdef __cplusplus' >>confdefs.h
3551  echo $ac_declaration      >>confdefs.h
3552  echo '#endif'             >>confdefs.h
3553fi
3554
3555ac_ext=cc
3556ac_cpp='$CXXCPP $CPPFLAGS'
3557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3560
3561
3562#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3563#thus, we test here whether $CXX is actually working
3564ac_ext=cc
3565ac_cpp='$CXXCPP $CPPFLAGS'
3566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3569
3570echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3571echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3572cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h.  */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582int i=0;
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589  (eval $ac_compile) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } &&
3596	 { ac_try='test -z "$ac_cxx_werror_flag"
3597			 || test ! -s conftest.err'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; } &&
3603	 { ac_try='test -s conftest.$ac_objext'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; }; then
3609  echo "$as_me:$LINENO: result: yes" >&5
3610echo "${ECHO_T}yes" >&6
3611else
3612  echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3618echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3619   { (exit 1); exit 1; }; }
3620
3621fi
3622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623ac_ext=cc
3624ac_cpp='$CXXCPP $CPPFLAGS'
3625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3628
3629
3630coin_cxx_is_cl=false
3631# It seems that we need to cleanup something here for the Windows
3632case "$CXX" in
3633  clang* | */clang*) ;;
3634  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3635    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3636    mv confdefs.hh confdefs.h
3637    coin_cxx_is_cl=true
3638    ;;
3639esac
3640
3641# add automake conditional so we can recognize cl compiler in makefile
3642
3643
3644if test $coin_cxx_is_cl = true; then
3645  COIN_CXX_IS_CL_TRUE=
3646  COIN_CXX_IS_CL_FALSE='#'
3647else
3648  COIN_CXX_IS_CL_TRUE='#'
3649  COIN_CXX_IS_CL_FALSE=
3650fi
3651
3652
3653# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3654case "$CXX" in
3655  clang* ) ;;
3656  cl* | */cl* | CL* | */CL* )
3657    if test "$ac_cv_prog_cxx_g" = yes ; then
3658      ac_cv_prog_cxx_g=no
3659      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3660echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3661    fi ;;
3662  * )
3663    if test x"$CYGPATH_W" = x ; then
3664      CYGPATH_W=echo
3665    fi
3666    ;;
3667esac
3668CXXFLAGS="$save_cxxflags"
3669
3670# Check if a project specific CXXFLAGS variable has been set
3671if test x$COIN_PRJCT != x; then
3672  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3673  if test x$coin_tmp = xset; then
3674    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3675  fi
3676fi
3677
3678if test x"$CXXFLAGS" = x; then
3679
3680# ToDo decide whether we want -DNDEBUG for optimization
3681  coin_add_cxxflags=
3682  coin_opt_cxxflags=
3683  coin_dbg_cxxflags=
3684  coin_warn_cxxflags=
3685
3686  if test "$GXX" = "yes"; then
3687    case "$CXX" in
3688      icpc* | */icpc*)
3689        ;;
3690      *)
3691# ToDo decide about unroll-loops
3692        coin_opt_cxxflags="-O3"
3693        coin_add_cxxflags="-pipe"
3694        coin_dbg_cxxflags="-g -O0"
3695        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3696    esac
3697  fi
3698
3699# Note that we do not need to cover GCC in the following tests.
3700
3701  if test -z "$coin_opt_cxxflags"; then
3702    case $build in
3703      *-cygwin* | *-mingw*)
3704        case "$CXX" in
3705          clang* ) ;;
3706          cl* | */cl* | CL* | */CL*)
3707            # The MT and MTd options are mutually exclusive
3708            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3709               coin_opt_cxxflags='-MD -O2'
3710               coin_dbg_cxxflags='-MDd'
3711            else
3712               coin_opt_cxxflags='-MT -O2'
3713               coin_dbg_cxxflags='-MTd'
3714            fi
3715            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3716            ;;
3717          icl* | */icl* | ICL* | */ICL*)
3718          # The MT and MTd options are mutually exclusive
3719            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3720              coin_opt_cxxflags='-MD -Ox'
3721              coin_dbg_cxxflags='-MDd -debug'
3722            else
3723              coin_opt_cxxflags='-MT -Ox'
3724              coin_dbg_cxxflags='-MTd -debug'
3725            fi
3726            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3727            ;;
3728        esac
3729        ;;
3730      *-linux-*)
3731        case "$CXX" in
3732          icpc* | */icpc*)
3733            coin_opt_cxxflags="-O3 -ip -mp1"
3734            coin_add_cxxflags=""
3735            coin_dbg_cxxflags="-g"
3736            # Check if -i_dynamic is necessary (for new glibc library)
3737            CXXFLAGS=
3738            cat >conftest.$ac_ext <<_ACEOF
3739/* confdefs.h.  */
3740_ACEOF
3741cat confdefs.h >>conftest.$ac_ext
3742cat >>conftest.$ac_ext <<_ACEOF
3743/* end confdefs.h.  */
3744
3745int
3746main ()
3747{
3748int i=0; i++;
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753rm -f conftest.$ac_objext conftest$ac_exeext
3754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755  (eval $ac_link) 2>conftest.er1
3756  ac_status=$?
3757  grep -v '^ *+' conftest.er1 >conftest.err
3758  rm -f conftest.er1
3759  cat conftest.err >&5
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); } &&
3762	 { ac_try='test -z "$ac_cxx_werror_flag"
3763			 || test ! -s conftest.err'
3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765  (eval $ac_try) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; } &&
3769	 { ac_try='test -s conftest$ac_exeext'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; }; then
3775  :
3776else
3777  echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3781fi
3782rm -f conftest.err conftest.$ac_objext \
3783      conftest$ac_exeext conftest.$ac_ext
3784            ;;
3785          pgCC* | */pgCC*)
3786            coin_opt_cxxflags="-fast"
3787            coin_add_cxxflags="-Kieee -pc 64"
3788            coin_dbg_cxxflags="-g"
3789            ;;
3790        esac
3791        ;;
3792      *-ibm-*)
3793        case "$CXX" in
3794          xlC* | */xlC* | mpxlC* | */mpxlC*)
3795            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3796            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3797            coin_dbg_cxxflags="-g"
3798            ;;
3799        esac
3800        ;;
3801      *-hp-*)
3802        case "$CXX" in
3803          aCC* | */aCC* )
3804            coin_opt_cxxflags="-O"
3805            coin_add_cxxflags="-AA"
3806            coin_dbg_cxxflags="-g"
3807            ;;
3808        esac
3809        ;;
3810      *-*-solaris*)
3811          coin_opt_cxxflags="-O4"
3812          coin_dbg_cxxflags="-g"
3813        ;;
3814    esac
3815  fi
3816
3817# Generic flag settings. If these don't work, add a case above.
3818
3819  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3820    coin_dbg_cxxflags="-g"
3821  fi
3822
3823  if test -z "$coin_opt_cxxflags"; then
3824    # Try if -O option works if nothing else is set
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  coin_opt_cxxflags="-O"
3864else
3865  echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868fi
3869rm -f conftest.err conftest.$ac_objext \
3870      conftest$ac_exeext conftest.$ac_ext
3871  fi
3872
3873  # if PM doesn't want the warning messages, take them out
3874  if test x"$coin_skip_warn_cxxflags" = xyes; then
3875    coin_warn_cxxflags=
3876  fi
3877
3878# Do final setup of flags based on values determined above.
3879
3880  if test x${DBG_CXXFLAGS+set} != xset; then
3881    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3882  fi
3883  if test x${OPT_CXXFLAGS+set} != xset; then
3884    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3885  fi
3886
3887  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3888  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3889
3890  if test "$coin_debug_compile" = "true"; then
3891    CXXFLAGS="$DBG_CXXFLAGS"
3892  else
3893    CXXFLAGS="$OPT_CXXFLAGS"
3894  fi
3895
3896# Handle the case where CXXFLAGS was set externally.
3897else
3898  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3899  if test x${DBG_CXXFLAGS+set} != xset; then
3900    DBG_CXXFLAGS="$CXXFLAGS"
3901  fi
3902  if test x${OPT_CXXFLAGS+set} != xset; then
3903    OPT_CXXFLAGS="$CXXFLAGS"
3904  fi
3905fi
3906
3907# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3908if test x$COIN_PRJCT != x; then
3909  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3910fi
3911
3912# Try if CXXFLAGS works
3913save_CXXFLAGS="$CXXFLAGS"
3914cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920
3921int
3922main ()
3923{
3924int i=0; i++;
3925  ;
3926  return 0;
3927}
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931  (eval $ac_link) 2>conftest.er1
3932  ac_status=$?
3933  grep -v '^ *+' conftest.er1 >conftest.err
3934  rm -f conftest.er1
3935  cat conftest.err >&5
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); } &&
3938	 { ac_try='test -z "$ac_cxx_werror_flag"
3939			 || test ! -s conftest.err'
3940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941  (eval $ac_try) 2>&5
3942  ac_status=$?
3943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944  (exit $ac_status); }; } &&
3945	 { ac_try='test -s conftest$ac_exeext'
3946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947  (eval $ac_try) 2>&5
3948  ac_status=$?
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); }; }; then
3951  :
3952else
3953  echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956CXXFLAGS=
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959      conftest$ac_exeext conftest.$ac_ext
3960if test -z "$CXXFLAGS"; then
3961  { 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
3962echo "$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;}
3963  CXXFLAGS='-O'
3964  cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974int i=0; i++;
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981  (eval $ac_link) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988	 { ac_try='test -z "$ac_cxx_werror_flag"
3989			 || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995	 { ac_try='test -s conftest$ac_exeext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  :
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006CXXFLAGS=
4007fi
4008rm -f conftest.err conftest.$ac_objext \
4009      conftest$ac_exeext conftest.$ac_ext
4010  if test -z "$CXXFLAGS"; then
4011    { 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
4012echo "$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;}
4013  fi
4014fi
4015
4016{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4017echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4018
4019
4020if test x"$MPICXX" = x; then :; else
4021  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4022echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4023  CXX="$MPICXX"
4024fi
4025
4026# correct the LD variable in a build with MS or Intel-windows compiler
4027case "$CXX" in
4028  clang* ) ;;
4029  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4030    LD=link
4031    ;;
4032esac
4033
4034ac_ext=c
4035ac_cpp='$CPP $CPPFLAGS'
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040
4041
4042# Initialize automake and libtool
4043{
4044
4045
4046
4047# START
4048
4049coin_disable_shared=no
4050# Test if force_shared has been set
4051if test "x" = xforce_shared; then
4052  if test x$enable_shared = xno; then
4053    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4054echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4055   { (exit 1); exit 1; }; }
4056  fi
4057  enable_shared=yes;
4058else
4059  case $build in
4060    *-cygwin* | *-mingw*)
4061      coin_disable_shared=yes
4062      if test x"$enable_shared" = xyes; then
4063        case "$CC" in
4064          clang* )
4065            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4066echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4067            ;;
4068          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4069            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4070echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4071            ;;
4072          *gcc*)
4073            if test x"$enable_dependency_linking" = xyes; then
4074              coin_disable_shared=no
4075            else
4076              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4077echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4078            fi
4079            ;;
4080          *)
4081            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4082echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4083            ;;
4084        esac
4085      fi
4086    ;;
4087    *-aix*)
4088      coin_disable_shared=yes
4089      platform=AIX
4090      if test x"$enable_shared" = xyes; then
4091        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4092echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4093      fi
4094    ;;
4095  esac
4096fi
4097if test x"$coin_disable_shared" = xyes; then
4098  if test x"$enable_shared" = xyes; then
4099    :
4100  else
4101    # we don't disable shared, because it was not selected anyway
4102    coin_disable_shared=no
4103  fi
4104  enable_shared=no
4105fi
4106# By default, we only want the shared objects to be compiled
4107# Check whether --enable-static or --disable-static was given.
4108if test "${enable_static+set}" = set; then
4109  enableval="$enable_static"
4110  p=${PACKAGE-default}
4111    case $enableval in
4112    yes) enable_static=yes ;;
4113    no) enable_static=no ;;
4114    *)
4115     enable_static=no
4116      # Look at the argument we got.  We use all the common list separators.
4117      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118      for pkg in $enableval; do
4119	IFS="$lt_save_ifs"
4120	if test "X$pkg" = "X$p"; then
4121	  enable_static=yes
4122	fi
4123      done
4124      IFS="$lt_save_ifs"
4125      ;;
4126    esac
4127else
4128  enable_static=no
4129fi;
4130
4131
4132
4133
4134# Initialize automake
4135echo "$as_me:$LINENO: checking for egrep" >&5
4136echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137if test "${ac_cv_prog_egrep+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141    then ac_cv_prog_egrep='grep -E'
4142    else ac_cv_prog_egrep='egrep'
4143    fi
4144fi
4145echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147 EGREP=$ac_cv_prog_egrep
4148
4149
4150echo "$as_me:$LINENO: checking whether ln -s works" >&5
4151echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4152LN_S=$as_ln_s
4153if test "$LN_S" = "ln -s"; then
4154  echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156else
4157  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4158echo "${ECHO_T}no, using $LN_S" >&6
4159fi
4160
4161am__api_version="1.9"
4162# Find a good install program.  We prefer a C program (faster),
4163# so one script is as good as another.  But avoid the broken or
4164# incompatible versions:
4165# SysV /etc/install, /usr/sbin/install
4166# SunOS /usr/etc/install
4167# IRIX /sbin/install
4168# AIX /bin/install
4169# AmigaOS /C/install, which installs bootblocks on floppy discs
4170# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4171# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4172# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4173# OS/2's system install, which has a completely different semantic
4174# ./install, which can be erroneously created by make from ./install.sh.
4175echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4176echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4177if test -z "$INSTALL"; then
4178if test "${ac_cv_path_install+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186  # Account for people who put trailing slashes in PATH elements.
4187case $as_dir/ in
4188  ./ | .// | /cC/* | \
4189  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4190  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4191  /usr/ucb/* ) ;;
4192  *)
4193    # OSF1 and SCO ODT 3.0 have their own names for install.
4194    # Don't use installbsd from OSF since it installs stuff as root
4195    # by default.
4196    for ac_prog in ginstall scoinst install; do
4197      for ac_exec_ext in '' $ac_executable_extensions; do
4198	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4199	  if test $ac_prog = install &&
4200	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4201	    # AIX install.  It has an incompatible calling convention.
4202	    :
4203	  elif test $ac_prog = install &&
4204	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4205	    # program-specific install script used by HP pwplus--don't use.
4206	    :
4207	  else
4208	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4209	    break 3
4210	  fi
4211	fi
4212      done
4213    done
4214    ;;
4215esac
4216done
4217
4218
4219fi
4220  if test "${ac_cv_path_install+set}" = set; then
4221    INSTALL=$ac_cv_path_install
4222  else
4223    # As a last resort, use the slow shell script.  We don't cache a
4224    # path for INSTALL within a source directory, because that will
4225    # break other packages using the cache if that directory is
4226    # removed, or if the path is relative.
4227    INSTALL=$ac_install_sh
4228  fi
4229fi
4230echo "$as_me:$LINENO: result: $INSTALL" >&5
4231echo "${ECHO_T}$INSTALL" >&6
4232
4233# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4234# It thinks the first close brace ends the variable substitution.
4235test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4236
4237test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4238
4239test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4240
4241echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4242echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4243# Just in case
4244sleep 1
4245echo timestamp > conftest.file
4246# Do `set' in a subshell so we don't clobber the current shell's
4247# arguments.  Must try -L first in case configure is actually a
4248# symlink; some systems play weird games with the mod time of symlinks
4249# (eg FreeBSD returns the mod time of the symlink's containing
4250# directory).
4251if (
4252   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4253   if test "$*" = "X"; then
4254      # -L didn't work.
4255      set X `ls -t $srcdir/configure conftest.file`
4256   fi
4257   rm -f conftest.file
4258   if test "$*" != "X $srcdir/configure conftest.file" \
4259      && test "$*" != "X conftest.file $srcdir/configure"; then
4260
4261      # If neither matched, then we have a broken ls.  This can happen
4262      # if, for instance, CONFIG_SHELL is bash and it inherits a
4263      # broken ls alias from the environment.  This has actually
4264      # happened.  Such a system could not be considered "sane".
4265      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4266alias in your environment" >&5
4267echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4268alias in your environment" >&2;}
4269   { (exit 1); exit 1; }; }
4270   fi
4271
4272   test "$2" = conftest.file
4273   )
4274then
4275   # Ok.
4276   :
4277else
4278   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4279Check your system clock" >&5
4280echo "$as_me: error: newly created file is older than distributed files!
4281Check your system clock" >&2;}
4282   { (exit 1); exit 1; }; }
4283fi
4284echo "$as_me:$LINENO: result: yes" >&5
4285echo "${ECHO_T}yes" >&6
4286test "$program_prefix" != NONE &&
4287  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4288# Use a double $ so make ignores it.
4289test "$program_suffix" != NONE &&
4290  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4291# Double any \ or $.  echo might interpret backslashes.
4292# By default was `s,x,x', remove it if useless.
4293cat <<\_ACEOF >conftest.sed
4294s/[\\$]/&&/g;s/;s,x,x,$//
4295_ACEOF
4296program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4297rm conftest.sed
4298
4299# expand $ac_aux_dir to an absolute path
4300am_aux_dir=`cd $ac_aux_dir && pwd`
4301
4302test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4303# Use eval to expand $SHELL
4304if eval "$MISSING --run true"; then
4305  am_missing_run="$MISSING --run "
4306else
4307  am_missing_run=
4308  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4309echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4310fi
4311
4312if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4313  # We used to keeping the `.' as first argument, in order to
4314  # allow $(mkdir_p) to be used without argument.  As in
4315  #   $(mkdir_p) $(somedir)
4316  # where $(somedir) is conditionally defined.  However this is wrong
4317  # for two reasons:
4318  #  1. if the package is installed by a user who cannot write `.'
4319  #     make install will fail,
4320  #  2. the above comment should most certainly read
4321  #     $(mkdir_p) $(DESTDIR)$(somedir)
4322  #     so it does not work when $(somedir) is undefined and
4323  #     $(DESTDIR) is not.
4324  #  To support the latter case, we have to write
4325  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4326  #  so the `.' trick is pointless.
4327  mkdir_p='mkdir -p --'
4328else
4329  # On NextStep and OpenStep, the `mkdir' command does not
4330  # recognize any option.  It will interpret all options as
4331  # directories to create, and then abort because `.' already
4332  # exists.
4333  for d in ./-p ./--version;
4334  do
4335    test -d $d && rmdir $d
4336  done
4337  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4338  if test -f "$ac_aux_dir/mkinstalldirs"; then
4339    mkdir_p='$(mkinstalldirs)'
4340  else
4341    mkdir_p='$(install_sh) -d'
4342  fi
4343fi
4344
4345for ac_prog in gawk mawk nawk awk
4346do
4347  # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349echo "$as_me:$LINENO: checking for $ac_word" >&5
4350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351if test "${ac_cv_prog_AWK+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  if test -n "$AWK"; then
4355  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362  for ac_exec_ext in '' $ac_executable_extensions; do
4363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364    ac_cv_prog_AWK="$ac_prog"
4365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366    break 2
4367  fi
4368done
4369done
4370
4371fi
4372fi
4373AWK=$ac_cv_prog_AWK
4374if test -n "$AWK"; then
4375  echo "$as_me:$LINENO: result: $AWK" >&5
4376echo "${ECHO_T}$AWK" >&6
4377else
4378  echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380fi
4381
4382  test -n "$AWK" && break
4383done
4384
4385echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4386echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4387set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4388if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.make <<\_ACEOF
4392all:
4393	@echo 'ac_maketemp="$(MAKE)"'
4394_ACEOF
4395# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4396eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4397if test -n "$ac_maketemp"; then
4398  eval ac_cv_prog_make_${ac_make}_set=yes
4399else
4400  eval ac_cv_prog_make_${ac_make}_set=no
4401fi
4402rm -f conftest.make
4403fi
4404if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4405  echo "$as_me:$LINENO: result: yes" >&5
4406echo "${ECHO_T}yes" >&6
4407  SET_MAKE=
4408else
4409  echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
4411  SET_MAKE="MAKE=${MAKE-make}"
4412fi
4413
4414rm -rf .tst 2>/dev/null
4415mkdir .tst 2>/dev/null
4416if test -d .tst; then
4417  am__leading_dot=.
4418else
4419  am__leading_dot=_
4420fi
4421rmdir .tst 2>/dev/null
4422
4423DEPDIR="${am__leading_dot}deps"
4424
4425          ac_config_commands="$ac_config_commands depfiles"
4426
4427
4428am_make=${MAKE-make}
4429cat > confinc << 'END'
4430am__doit:
4431	@echo done
4432.PHONY: am__doit
4433END
4434# If we don't find an include directive, just comment out the code.
4435echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4436echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4437am__include="#"
4438am__quote=
4439_am_result=none
4440# First try GNU make style include.
4441echo "include confinc" > confmf
4442# We grep out `Entering directory' and `Leaving directory'
4443# messages which can occur if `w' ends up in MAKEFLAGS.
4444# In particular we don't look at `^make:' because GNU make might
4445# be invoked under some other name (usually "gmake"), in which
4446# case it prints its new name instead of `make'.
4447if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4448   am__include=include
4449   am__quote=
4450   _am_result=GNU
4451fi
4452# Now try BSD make style include.
4453if test "$am__include" = "#"; then
4454   echo '.include "confinc"' > confmf
4455   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4456      am__include=.include
4457      am__quote="\""
4458      _am_result=BSD
4459   fi
4460fi
4461
4462
4463echo "$as_me:$LINENO: result: $_am_result" >&5
4464echo "${ECHO_T}$_am_result" >&6
4465rm -f confinc confmf
4466
4467# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4468if test "${enable_dependency_tracking+set}" = set; then
4469  enableval="$enable_dependency_tracking"
4470
4471fi;
4472if test "x$enable_dependency_tracking" != xno; then
4473  am_depcomp="$ac_aux_dir/depcomp"
4474  AMDEPBACKSLASH='\'
4475fi
4476
4477
4478if test "x$enable_dependency_tracking" != xno; then
4479  AMDEP_TRUE=
4480  AMDEP_FALSE='#'
4481else
4482  AMDEP_TRUE='#'
4483  AMDEP_FALSE=
4484fi
4485
4486
4487
4488
4489
4490
4491# AC_MSG_NOTICE([Beginning automake initialisation.])
4492# Stuff for automake
4493# test to see if srcdir already configured
4494if test "`cd $srcdir && pwd`" != "`pwd`" &&
4495   test -f $srcdir/config.status; then
4496  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4497echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4498   { (exit 1); exit 1; }; }
4499fi
4500
4501# test whether we have cygpath
4502if test -z "$CYGPATH_W"; then
4503  if (cygpath --version) >/dev/null 2>/dev/null; then
4504    CYGPATH_W='cygpath -w'
4505  else
4506    CYGPATH_W=echo
4507  fi
4508fi
4509
4510
4511# Define the identity of the package.
4512 PACKAGE='flopcpp'
4513 VERSION='trunk'
4514
4515
4516cat >>confdefs.h <<_ACEOF
4517#define PACKAGE "$PACKAGE"
4518_ACEOF
4519
4520
4521cat >>confdefs.h <<_ACEOF
4522#define VERSION "$VERSION"
4523_ACEOF
4524
4525# Some tools Automake needs.
4526
4527ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4528
4529
4530AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4531
4532
4533AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4534
4535
4536AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4537
4538
4539MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4540
4541install_sh=${install_sh-"$am_aux_dir/install-sh"}
4542
4543# Installed binaries are usually stripped using `strip' when the user
4544# run `make install-strip'.  However `strip' might not be the right
4545# tool to use in cross-compilation environments, therefore Automake
4546# will honor the `STRIP' environment variable to overrule this program.
4547if test "$cross_compiling" != no; then
4548  if test -n "$ac_tool_prefix"; then
4549  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4550set dummy ${ac_tool_prefix}strip; ac_word=$2
4551echo "$as_me:$LINENO: checking for $ac_word" >&5
4552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553if test "${ac_cv_prog_STRIP+set}" = set; then
4554  echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556  if test -n "$STRIP"; then
4557  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562  IFS=$as_save_IFS
4563  test -z "$as_dir" && as_dir=.
4564  for ac_exec_ext in '' $ac_executable_extensions; do
4565  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568    break 2
4569  fi
4570done
4571done
4572
4573fi
4574fi
4575STRIP=$ac_cv_prog_STRIP
4576if test -n "$STRIP"; then
4577  echo "$as_me:$LINENO: result: $STRIP" >&5
4578echo "${ECHO_T}$STRIP" >&6
4579else
4580  echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582fi
4583
4584fi
4585if test -z "$ac_cv_prog_STRIP"; then
4586  ac_ct_STRIP=$STRIP
4587  # Extract the first word of "strip", so it can be a program name with args.
4588set dummy strip; ac_word=$2
4589echo "$as_me:$LINENO: checking for $ac_word" >&5
4590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4591if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594  if test -n "$ac_ct_STRIP"; then
4595  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  test -z "$as_dir" && as_dir=.
4602  for ac_exec_ext in '' $ac_executable_extensions; do
4603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604    ac_cv_prog_ac_ct_STRIP="strip"
4605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609done
4610
4611  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4612fi
4613fi
4614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4615if test -n "$ac_ct_STRIP"; then
4616  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4617echo "${ECHO_T}$ac_ct_STRIP" >&6
4618else
4619  echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621fi
4622
4623  STRIP=$ac_ct_STRIP
4624else
4625  STRIP="$ac_cv_prog_STRIP"
4626fi
4627
4628fi
4629INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4630
4631# We need awk for the "check" target.  The system "awk" is bad on
4632# some platforms.
4633# Always define AMTAR for backward compatibility.
4634
4635AMTAR=${AMTAR-"${am_missing_run}tar"}
4636
4637am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4638
4639
4640
4641
4642depcc="$CC"   am_compiler_list=
4643
4644echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4645echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4646if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4647  echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650  # We make a subdir and do the tests there.  Otherwise we can end up
4651  # making bogus files that we don't know about and never remove.  For
4652  # instance it was reported that on HP-UX the gcc test will end up
4653  # making a dummy file named `D' -- because `-MD' means `put the output
4654  # in D'.
4655  mkdir conftest.dir
4656  # Copy depcomp to subdir because otherwise we won't find it if we're
4657  # using a relative directory.
4658  cp "$am_depcomp" conftest.dir
4659  cd conftest.dir
4660  # We will build objects and dependencies in a subdirectory because
4661  # it helps to detect inapplicable dependency modes.  For instance
4662  # both Tru64's cc and ICC support -MD to output dependencies as a
4663  # side effect of compilation, but ICC will put the dependencies in
4664  # the current directory while Tru64 will put them in the object
4665  # directory.
4666  mkdir sub
4667
4668  am_cv_CC_dependencies_compiler_type=none
4669  if test "$am_compiler_list" = ""; then
4670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4671  fi
4672  for depmode in $am_compiler_list; do
4673    # Setup a source with many dependencies, because some compilers
4674    # like to wrap large dependency lists on column 80 (with \), and
4675    # we should not choose a depcomp mode which is confused by this.
4676    #
4677    # We need to recreate these files for each test, as the compiler may
4678    # overwrite some of them when testing with obscure command lines.
4679    # This happens at least with the AIX C compiler.
4680    : > sub/conftest.c
4681    for i in 1 2 3 4 5 6; do
4682      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4683      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4684      # Solaris 8's {/usr,}/bin/sh.
4685      touch sub/conftst$i.h
4686    done
4687    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4688
4689    case $depmode in
4690    nosideeffect)
4691      # after this tag, mechanisms are not by side-effect, so they'll
4692      # only be used when explicitly requested
4693      if test "x$enable_dependency_tracking" = xyes; then
4694	continue
4695      else
4696	break
4697      fi
4698      ;;
4699    none) break ;;
4700    esac
4701    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4702    # mode.  It turns out that the SunPro C++ compiler does not properly
4703    # handle `-M -o', and we need to detect this.
4704    if depmode=$depmode \
4705       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4706       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4708         >/dev/null 2>conftest.err &&
4709       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4710       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4711       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4712      # icc doesn't choke on unknown options, it will just issue warnings
4713      # or remarks (even with -Werror).  So we grep stderr for any message
4714      # that says an option was ignored or not supported.
4715      # When given -MP, icc 7.0 and 7.1 complain thusly:
4716      #   icc: Command line warning: ignoring option '-M'; no argument required
4717      # The diagnosis changed in icc 8.0:
4718      #   icc: Command line remark: option '-MP' not supported
4719      if (grep 'ignoring option' conftest.err ||
4720          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4721        am_cv_CC_dependencies_compiler_type=$depmode
4722        break
4723      fi
4724    fi
4725  done
4726
4727  cd ..
4728  rm -rf conftest.dir
4729else
4730  am_cv_CC_dependencies_compiler_type=none
4731fi
4732
4733fi
4734echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4735echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4737
4738
4739
4740if
4741  test "x$enable_dependency_tracking" != xno \
4742  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743  am__fastdepCC_TRUE=
4744  am__fastdepCC_FALSE='#'
4745else
4746  am__fastdepCC_TRUE='#'
4747  am__fastdepCC_FALSE=
4748fi
4749
4750
4751depcc="$CXX"  am_compiler_list=
4752
4753echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4754echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4755if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759  # We make a subdir and do the tests there.  Otherwise we can end up
4760  # making bogus files that we don't know about and never remove.  For
4761  # instance it was reported that on HP-UX the gcc test will end up
4762  # making a dummy file named `D' -- because `-MD' means `put the output
4763  # in D'.
4764  mkdir conftest.dir
4765  # Copy depcomp to subdir because otherwise we won't find it if we're
4766  # using a relative directory.
4767  cp "$am_depcomp" conftest.dir
4768  cd conftest.dir
4769  # We will build objects and dependencies in a subdirectory because
4770  # it helps to detect inapplicable dependency modes.  For instance
4771  # both Tru64's cc and ICC support -MD to output dependencies as a
4772  # side effect of compilation, but ICC will put the dependencies in
4773  # the current directory while Tru64 will put them in the object
4774  # directory.
4775  mkdir sub
4776
4777  am_cv_CXX_dependencies_compiler_type=none
4778  if test "$am_compiler_list" = ""; then
4779     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780  fi
4781  for depmode in $am_compiler_list; do
4782    # Setup a source with many dependencies, because some compilers
4783    # like to wrap large dependency lists on column 80 (with \), and
4784    # we should not choose a depcomp mode which is confused by this.
4785    #
4786    # We need to recreate these files for each test, as the compiler may
4787    # overwrite some of them when testing with obscure command lines.
4788    # This happens at least with the AIX C compiler.
4789    : > sub/conftest.c
4790    for i in 1 2 3 4 5 6; do
4791      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4792      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4793      # Solaris 8's {/usr,}/bin/sh.
4794      touch sub/conftst$i.h
4795    done
4796    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4797
4798    case $depmode in
4799    nosideeffect)
4800      # after this tag, mechanisms are not by side-effect, so they'll
4801      # only be used when explicitly requested
4802      if test "x$enable_dependency_tracking" = xyes; then
4803	continue
4804      else
4805	break
4806      fi
4807      ;;
4808    none) break ;;
4809    esac
4810    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4811    # mode.  It turns out that the SunPro C++ compiler does not properly
4812    # handle `-M -o', and we need to detect this.
4813    if depmode=$depmode \
4814       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4815       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4816       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4817         >/dev/null 2>conftest.err &&
4818       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4819       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4820       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4821      # icc doesn't choke on unknown options, it will just issue warnings
4822      # or remarks (even with -Werror).  So we grep stderr for any message
4823      # that says an option was ignored or not supported.
4824      # When given -MP, icc 7.0 and 7.1 complain thusly:
4825      #   icc: Command line warning: ignoring option '-M'; no argument required
4826      # The diagnosis changed in icc 8.0:
4827      #   icc: Command line remark: option '-MP' not supported
4828      if (grep 'ignoring option' conftest.err ||
4829          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4830        am_cv_CXX_dependencies_compiler_type=$depmode
4831        break
4832      fi
4833    fi
4834  done
4835
4836  cd ..
4837  rm -rf conftest.dir
4838else
4839  am_cv_CXX_dependencies_compiler_type=none
4840fi
4841
4842fi
4843echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4844echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4845CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4846
4847
4848
4849if
4850  test "x$enable_dependency_tracking" != xno \
4851  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4852  am__fastdepCXX_TRUE=
4853  am__fastdepCXX_FALSE='#'
4854else
4855  am__fastdepCXX_TRUE='#'
4856  am__fastdepCXX_FALSE=
4857fi
4858
4859
4860
4861echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4862echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4863    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4864if test "${enable_maintainer_mode+set}" = set; then
4865  enableval="$enable_maintainer_mode"
4866  USE_MAINTAINER_MODE=$enableval
4867else
4868  USE_MAINTAINER_MODE=no
4869fi;
4870  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4871echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4872
4873
4874if test $USE_MAINTAINER_MODE = yes; then
4875  MAINTAINER_MODE_TRUE=
4876  MAINTAINER_MODE_FALSE='#'
4877else
4878  MAINTAINER_MODE_TRUE='#'
4879  MAINTAINER_MODE_FALSE=
4880fi
4881
4882  MAINT=$MAINTAINER_MODE_TRUE
4883
4884
4885
4886coin_have_externals=no
4887if test "$enable_maintainer_mode" = yes; then
4888
4889  # If maintainer mode is chosen, we make sure that the correct versions
4890  # of the tools are used, and that we know where libtool.m4 is (to
4891  # recreate acinclude.m4)
4892
4893
4894  LIBTOOLM4=
4895  # Normally, $HOME
4896  AUTOTOOLS_DFLT=$HOME
4897
4898  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4899echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4900if test "${ac_cv_use_correct_autotools+set}" = set; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903  ac_cv_use_correct_autotools=check
4904fi
4905echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4906echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4907
4908  if test $ac_cv_use_correct_autotools = check; then
4909    ac_cv_use_correct_autotools=yes
4910    # Check if we have autoconf
4911    # Extract the first word of "autoconf", so it can be a program name with args.
4912set dummy autoconf; ac_word=$2
4913echo "$as_me:$LINENO: checking for $ac_word" >&5
4914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915if test "${ac_cv_prog_have_autoconf+set}" = set; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  if test -n "$have_autoconf"; then
4919  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926  for ac_exec_ext in '' $ac_executable_extensions; do
4927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928    ac_cv_prog_have_autoconf="yes"
4929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933done
4934
4935  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4936fi
4937fi
4938have_autoconf=$ac_cv_prog_have_autoconf
4939if test -n "$have_autoconf"; then
4940  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4941echo "${ECHO_T}$have_autoconf" >&6
4942else
4943  echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947    if test $have_autoconf = no; then
4948      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4949echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4950   { (exit 1); exit 1; }; }
4951    fi
4952
4953    # Check whether autoconf is the correct version
4954    correct_version='2.59'
4955    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4956    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4957echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4958    autoconf --version > confauto.out 2>&1
4959    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4960      echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
4962    else
4963      rm -f confauto.out
4964      echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4967echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4968   { (exit 1); exit 1; }; }
4969    fi
4970    rm -f confauto.out
4971
4972    # Check if the executable autoconf is picked up from the correct location
4973    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4974echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4975    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4976    autoconf_dir=`cd $autoconf_dir; pwd`
4977    if test x$AUTOTOOLS_DIR = x; then
4978      want_dir=$AUTOTOOLS_DFLT/bin
4979    else
4980      want_dir=$AUTOTOOLS_DIR/bin
4981    fi
4982    if test $autoconf_dir = `cd $want_dir; pwd`; then
4983      echo "$as_me:$LINENO: result: yes" >&5
4984echo "${ECHO_T}yes" >&6
4985    else
4986      rm -f confauto.out
4987      echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6
4989      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4990echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4991   { (exit 1); exit 1; }; }
4992    fi
4993
4994    # Check if we have automake
4995    # Extract the first word of "automake", so it can be a program name with args.
4996set dummy automake; ac_word=$2
4997echo "$as_me:$LINENO: checking for $ac_word" >&5
4998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999if test "${ac_cv_prog_have_automake+set}" = set; then
5000  echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002  if test -n "$have_automake"; then
5003  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010  for ac_exec_ext in '' $ac_executable_extensions; do
5011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    ac_cv_prog_have_automake="yes"
5013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017done
5018
5019  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5020fi
5021fi
5022have_automake=$ac_cv_prog_have_automake
5023if test -n "$have_automake"; then
5024  echo "$as_me:$LINENO: result: $have_automake" >&5
5025echo "${ECHO_T}$have_automake" >&6
5026else
5027  echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029fi
5030
5031    if test $have_automake = no; then
5032      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5033echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5034   { (exit 1); exit 1; }; }
5035    fi
5036
5037    # Check whether automake is the correct version
5038    correct_version='1.9.6'
5039    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5040    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5041echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5042    automake --version > confauto.out 2>&1
5043    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5044      echo "$as_me:$LINENO: result: yes" >&5
5045echo "${ECHO_T}yes" >&6
5046    else
5047      rm -f confauto.out
5048      echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5051echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5052   { (exit 1); exit 1; }; }
5053    fi
5054    rm -f confauto.out
5055
5056    # Check if the executable automake is picked up from the correct location
5057    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5058echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5059    automake_dir=`which automake | sed -e 's=/automake=='`
5060    automake_dir=`cd $automake_dir; pwd`
5061    if test x$AUTOTOOLS_DIR = x; then
5062      want_dir=$AUTOTOOLS_DFLT/bin
5063    else
5064      want_dir=$AUTOTOOLS_DIR/bin
5065    fi
5066    if test $automake_dir = `cd $want_dir; pwd`; then
5067      echo "$as_me:$LINENO: result: yes" >&5
5068echo "${ECHO_T}yes" >&6
5069    else
5070      rm -f confauto.out
5071      echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5074echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5075   { (exit 1); exit 1; }; }
5076    fi
5077
5078    # Check if this is the correct version of libtool (with escaped dots)
5079    if test x$AUTOTOOLS_DIR = x; then
5080      want_dir=$AUTOTOOLS_DFLT/share
5081    else
5082      want_dir=$AUTOTOOLS_DIR/share
5083    fi
5084    correct_version='1.5.22'
5085    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5086    if test -r $want_dir/libtool/ltmain.sh; then
5087  have_ltmain=yes
5088  :
5089else
5090  have_ltmain=no
5091  :
5092fi
5093
5094    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5095echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5096    if test $have_ltmain = yes; then
5097    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5098        echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100      else
5101        echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5104echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5105   { (exit 1); exit 1; }; }
5106      fi
5107    else
5108      echo "$as_me:$LINENO: result: no" >&5
5109echo "${ECHO_T}no" >&6
5110      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5111echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5112   { (exit 1); exit 1; }; }
5113    fi
5114  fi
5115
5116  # Check if we can find the libtool file
5117  if test x$AUTOTOOLS_DIR = x; then
5118    want_dir=$AUTOTOOLS_DFLT/share
5119  else
5120    want_dir=$AUTOTOOLS_DIR/share
5121  fi
5122  if test -r $want_dir/aclocal/libtool.m4; then
5123  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5124  :
5125else
5126  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5127echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5128   { (exit 1); exit 1; }; }
5129  :
5130fi
5131
5132
5133  # Check if we have an Dependencies file
5134  if test -r $srcdir/Dependencies; then
5135    coin_have_externals=yes
5136  fi
5137  # Check if subversion is installed and understands https
5138  # Extract the first word of "svn", so it can be a program name with args.
5139set dummy svn; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_have_svn+set}" = set; then
5143  echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145  if test -n "$have_svn"; then
5146  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153  for ac_exec_ext in '' $ac_executable_extensions; do
5154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_have_svn="yes"
5156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160done
5161
5162  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5163fi
5164fi
5165have_svn=$ac_cv_prog_have_svn
5166if test -n "$have_svn"; then
5167  echo "$as_me:$LINENO: result: $have_svn" >&5
5168echo "${ECHO_T}$have_svn" >&6
5169else
5170  echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6
5172fi
5173
5174  if test x$have_svn = xyes; then
5175    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5176echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5177if test "${ac_cv_svn_understands_https+set}" = set; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180  svn --version > confauto.out 2>&1
5181                    if $EGREP https confauto.out >/dev/null 2>&1; then
5182                      ac_cv_svn_understands_https=yes
5183                    else
5184                      ac_cv_svn_understands_https=no
5185                      have_svn=no
5186                      ac_cv_prog_have_svn=no
5187                    fi
5188                    rm -f confauto.out
5189fi
5190echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5191echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5192  fi
5193
5194  # Find the location of the BuildTools directory
5195  BUILDTOOLSDIR=
5196  if test -r $srcdir/BuildTools/coin.m4; then
5197    BUILDTOOLSDIR=$srcdir/BuildTools
5198  elif test -r $srcdir/../BuildTools/coin.m4; then
5199    BUILDTOOLSDIR=$srcdir/../BuildTools
5200  elif test -r $srcdir/../../BuildTools/coin.m4; then
5201    BUILDTOOLSDIR=$srcdir/../../BuildTools
5202  elif test -r $srcdir/../../../BuildTools/coin.m4; then
5203    BUILDTOOLSDIR=$srcdir/../../../BuildTools
5204  else
5205    { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5206echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5207   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5208  fi
5209
5210
5211  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5212  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5213    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5214  fi
5215
5216  # The following variable is set to the name of the directory where
5217  # the autotool scripts are located
5218
5219  AUX_DIR=$ac_aux_dir
5220fi
5221
5222# helpful variable for the base directory of this package
5223abs_source_dir=`cd $srcdir; pwd`
5224
5225
5226# Stuff for example Makefiles
5227if test x$prefix = xNONE; then
5228  full_prefix=$ac_default_prefix
5229else
5230  full_prefix=$prefix
5231fi
5232full_prefix=`cd $full_prefix ; pwd`
5233
5234abs_lib_dir=$full_prefix/lib
5235
5236abs_include_dir=$full_prefix/include
5237
5238abs_bin_dir=$full_prefix/bin
5239
5240
5241
5242if test $coin_have_externals = yes && test x$have_svn = xyes; then
5243  HAVE_EXTERNALS_TRUE=
5244  HAVE_EXTERNALS_FALSE='#'
5245else
5246  HAVE_EXTERNALS_TRUE='#'
5247  HAVE_EXTERNALS_FALSE=
5248fi
5249
5250
5251# AC_MSG_NOTICE([End automake initialisation.])
5252
5253
5254
5255LIBTOOL=
5256if test -f ../libtool; then
5257  coin_config_dir=..
5258  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5259fi
5260if test "x$LIBTOOL" = x; then
5261  if test -f ../../libtool; then
5262    coin_config_dir=../..
5263    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5264  fi
5265fi
5266
5267if test "x$LIBTOOL" = x; then
5268# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5269  # Stuff for libtool
5270  # Check whether --enable-shared or --disable-shared was given.
5271if test "${enable_shared+set}" = set; then
5272  enableval="$enable_shared"
5273  p=${PACKAGE-default}
5274    case $enableval in
5275    yes) enable_shared=yes ;;
5276    no) enable_shared=no ;;
5277    *)
5278      enable_shared=no
5279      # Look at the argument we got.  We use all the common list separators.
5280      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5281      for pkg in $enableval; do
5282	IFS="$lt_save_ifs"
5283	if test "X$pkg" = "X$p"; then
5284	  enable_shared=yes
5285	fi
5286      done
5287      IFS="$lt_save_ifs"
5288      ;;
5289    esac
5290else
5291  enable_shared=yes
5292fi;
5293
5294# Check whether --enable-fast-install or --disable-fast-install was given.
5295if test "${enable_fast_install+set}" = set; then
5296  enableval="$enable_fast_install"
5297  p=${PACKAGE-default}
5298    case $enableval in
5299    yes) enable_fast_install=yes ;;
5300    no) enable_fast_install=no ;;
5301    *)
5302      enable_fast_install=no
5303      # Look at the argument we got.  We use all the common list separators.
5304      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5305      for pkg in $enableval; do
5306	IFS="$lt_save_ifs"
5307	if test "X$pkg" = "X$p"; then
5308	  enable_fast_install=yes
5309	fi
5310      done
5311      IFS="$lt_save_ifs"
5312      ;;
5313    esac
5314else
5315  enable_fast_install=yes
5316fi;
5317
5318echo "$as_me:$LINENO: checking host system type" >&5
5319echo $ECHO_N "checking host system type... $ECHO_C" >&6
5320if test "${ac_cv_host+set}" = set; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323  ac_cv_host_alias=$host_alias
5324test -z "$ac_cv_host_alias" &&
5325  ac_cv_host_alias=$ac_cv_build_alias
5326ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5327  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5328echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5329   { (exit 1); exit 1; }; }
5330
5331fi
5332echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5333echo "${ECHO_T}$ac_cv_host" >&6
5334host=$ac_cv_host
5335host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5336host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5337host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5338
5339
5340echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5341echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5342if test "${lt_cv_path_SED+set}" = set; then
5343  echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345  # Loop through the user's path and test for sed and gsed.
5346# Then use that list of sed's as ones to test for truncation.
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  for lt_ac_prog in sed gsed; do
5353    for ac_exec_ext in '' $ac_executable_extensions; do
5354      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5355        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5356      fi
5357    done
5358  done
5359done
5360lt_ac_max=0
5361lt_ac_count=0
5362# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5363# along with /bin/sed that truncates output.
5364for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5365  test ! -f $lt_ac_sed && continue
5366  cat /dev/null > conftest.in
5367  lt_ac_count=0
5368  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5369  # Check for GNU sed and select it if it is found.
5370  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5371    lt_cv_path_SED=$lt_ac_sed
5372    break
5373  fi
5374  while true; do
5375    cat conftest.in conftest.in >conftest.tmp
5376    mv conftest.tmp conftest.in
5377    cp conftest.in conftest.nl
5378    echo >>conftest.nl
5379    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5380    cmp -s conftest.out conftest.nl || break
5381    # 10000 chars as input seems more than enough
5382    test $lt_ac_count -gt 10 && break
5383    lt_ac_count=`expr $lt_ac_count + 1`
5384    if test $lt_ac_count -gt $lt_ac_max; then
5385      lt_ac_max=$lt_ac_count
5386      lt_cv_path_SED=$lt_ac_sed
5387    fi
5388  done
5389done
5390
5391fi
5392
5393SED=$lt_cv_path_SED
5394echo "$as_me:$LINENO: result: $SED" >&5
5395echo "${ECHO_T}$SED" >&6
5396
5397
5398# Check whether --with-gnu-ld or --without-gnu-ld was given.
5399if test "${with_gnu_ld+set}" = set; then
5400  withval="$with_gnu_ld"
5401  test "$withval" = no || with_gnu_ld=yes
5402else
5403  with_gnu_ld=no
5404fi;
5405ac_prog=ld
5406if test "$GCC" = yes; then
5407  # Check if gcc -print-prog-name=ld gives a path.
5408  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5409echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5410  case $host in
5411  *-*-mingw*)
5412    # gcc leaves a trailing carriage return which upsets mingw
5413    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5414  *)
5415    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5416  esac
5417  case $ac_prog in
5418    # Accept absolute paths.
5419    [\\/]* | ?:[\\/]*)
5420      re_direlt='/[^/][^/]*/\.\./'
5421      # Canonicalize the pathname of ld
5422      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5423      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5424	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5425      done
5426      test -z "$LD" && LD="$ac_prog"
5427      ;;
5428  "")
5429    # If it fails, then pretend we aren't using GCC.
5430    ac_prog=ld
5431    ;;
5432  *)
5433    # If it is relative, then search for the first ld in PATH.
5434    with_gnu_ld=unknown
5435    ;;
5436  esac
5437elif test "$with_gnu_ld" = yes; then
5438  echo "$as_me:$LINENO: checking for GNU ld" >&5
5439echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5440else
5441  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5442echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5443fi
5444if test "${lt_cv_path_LD+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  if test -z "$LD"; then
5448  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449  for ac_dir in $PATH; do
5450    IFS="$lt_save_ifs"
5451    test -z "$ac_dir" && ac_dir=.
5452    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5453      lt_cv_path_LD="$ac_dir/$ac_prog"
5454      # Check to see if the program is GNU ld.  I'd rather use --version,
5455      # but apparently some variants of GNU ld only accept -v.
5456      # Break only if it was the GNU/non-GNU ld that we prefer.
5457      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5458      *GNU* | *'with BFD'*)
5459	test "$with_gnu_ld" != no && break
5460	;;
5461      *)
5462	test "$with_gnu_ld" != yes && break
5463	;;
5464      esac
5465    fi
5466  done
5467  IFS="$lt_save_ifs"
5468else
5469  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5470fi
5471fi
5472
5473LD="$lt_cv_path_LD"
5474if test -n "$LD"; then
5475  echo "$as_me:$LINENO: result: $LD" >&5
5476echo "${ECHO_T}$LD" >&6
5477else
5478  echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480fi
5481test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5482echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5483   { (exit 1); exit 1; }; }
5484echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5485echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5486if test "${lt_cv_prog_gnu_ld+set}" = set; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5490case `$LD -v 2>&1 </dev/null` in
5491*GNU* | *'with BFD'*)
5492  lt_cv_prog_gnu_ld=yes
5493  ;;
5494*)
5495  lt_cv_prog_gnu_ld=no
5496  ;;
5497esac
5498fi
5499echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5500echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5501with_gnu_ld=$lt_cv_prog_gnu_ld
5502
5503
5504echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5505echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5506if test "${lt_cv_ld_reload_flag+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  lt_cv_ld_reload_flag='-r'
5510fi
5511echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5512echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5513reload_flag=$lt_cv_ld_reload_flag
5514case $reload_flag in
5515"" | " "*) ;;
5516*) reload_flag=" $reload_flag" ;;
5517esac
5518reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519case $host_os in
5520  darwin*)
5521    if test "$GCC" = yes; then
5522      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5523    else
5524      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5525    fi
5526    ;;
5527esac
5528
5529echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5530echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5531if test "${lt_cv_path_NM+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  if test -n "$NM"; then
5535  # Let the user override the test.
5536  lt_cv_path_NM="$NM"
5537else
5538  lt_nm_to_check="${ac_tool_prefix}nm"
5539  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5540    lt_nm_to_check="$lt_nm_to_check nm"
5541  fi
5542  for lt_tmp_nm in $lt_nm_to_check; do
5543    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5544    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5545      IFS="$lt_save_ifs"
5546      test -z "$ac_dir" && ac_dir=.
5547      tmp_nm="$ac_dir/$lt_tmp_nm"
5548      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5549	# Check to see if the nm accepts a BSD-compat flag.
5550	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5551	#   nm: unknown option "B" ignored
5552	# Tru64's nm complains that /dev/null is an invalid object file
5553	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5554	*/dev/null* | *'Invalid file or object type'*)
5555	  lt_cv_path_NM="$tmp_nm -B"
5556	  break
5557	  ;;
5558	*)
5559	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5560	  */dev/null*)
5561	    lt_cv_path_NM="$tmp_nm -p"
5562	    break
5563	    ;;
5564	  *)
5565	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5566	    continue # so that we can try to find one that supports BSD flags
5567	    ;;
5568	  esac
5569	  ;;
5570	esac
5571      fi
5572    done
5573    IFS="$lt_save_ifs"
5574  done
5575  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5576fi
5577fi
5578echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5579echo "${ECHO_T}$lt_cv_path_NM" >&6
5580NM="$lt_cv_path_NM"
5581
5582echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5583echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5584if test "${lt_cv_deplibs_check_method+set}" = set; then
5585  echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587  lt_cv_file_magic_cmd='$MAGIC_CMD'
5588lt_cv_file_magic_test_file=
5589lt_cv_deplibs_check_method='unknown'
5590# Need to set the preceding variable on all platforms that support
5591# interlibrary dependencies.
5592# 'none' -- dependencies not supported.
5593# `unknown' -- same as none, but documents that we really don't know.
5594# 'pass_all' -- all dependencies passed with no checks.
5595# 'test_compile' -- check by making test program.
5596# 'file_magic [[regex]]' -- check by looking for files in library path
5597# which responds to the $file_magic_cmd with a given extended regex.
5598# If you have `file' or equivalent on your system and you're not sure
5599# whether `pass_all' will *always* work, you probably want this one.
5600
5601case $host_os in
5602aix4* | aix5*)
5603  lt_cv_deplibs_check_method=pass_all
5604  ;;
5605
5606beos*)
5607  lt_cv_deplibs_check_method=pass_all
5608  ;;
5609
5610bsdi[45]*)
5611  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5612  lt_cv_file_magic_cmd='/usr/bin/file -L'
5613  lt_cv_file_magic_test_file=/shlib/libc.so
5614  ;;
5615
5616cygwin*)
5617  # func_win32_libid is a shell function defined in ltmain.sh
5618  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619  lt_cv_file_magic_cmd='func_win32_libid'
5620  ;;
5621
5622mingw* | pw32*)
5623  # Base MSYS/MinGW do not provide the 'file' command needed by
5624  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5625  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5626  lt_cv_file_magic_cmd='$OBJDUMP -f'
5627  ;;
5628
5629darwin* | rhapsody*)
5630  lt_cv_deplibs_check_method=pass_all
5631  ;;
5632
5633freebsd* | kfreebsd*-gnu | dragonfly*)
5634  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635    case $host_cpu in
5636    i*86 )
5637      # Not sure whether the presence of OpenBSD here was a mistake.
5638      # Let's accept both of them until this is cleared up.
5639      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5640      lt_cv_file_magic_cmd=/usr/bin/file
5641      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5642      ;;
5643    esac
5644  else
5645    lt_cv_deplibs_check_method=pass_all
5646  fi
5647  ;;
5648
5649gnu*)
5650  lt_cv_deplibs_check_method=pass_all
5651  ;;
5652
5653hpux10.20* | hpux11*)
5654  lt_cv_file_magic_cmd=/usr/bin/file
5655  case $host_cpu in
5656  ia64*)
5657    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5658    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5659    ;;
5660  hppa*64*)
5661    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]'
5662    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5663    ;;
5664  *)
5665    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5666    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5667    ;;
5668  esac
5669  ;;
5670
5671interix3*)
5672  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5673  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5674  ;;
5675
5676irix5* | irix6* | nonstopux*)
5677  case $LD in
5678  *-32|*"-32 ") libmagic=32-bit;;
5679  *-n32|*"-n32 ") libmagic=N32;;
5680  *-64|*"-64 ") libmagic=64-bit;;
5681  *) libmagic=never-match;;
5682  esac
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685
5686# This must be Linux ELF.
5687linux*)
5688  lt_cv_deplibs_check_method=pass_all
5689  ;;
5690
5691netbsd*)
5692  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694  else
5695    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5696  fi
5697  ;;
5698
5699newos6*)
5700  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5701  lt_cv_file_magic_cmd=/usr/bin/file
5702  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5703  ;;
5704
5705nto-qnx*)
5706  lt_cv_deplibs_check_method=unknown
5707  ;;
5708
5709openbsd*)
5710  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5712  else
5713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5714  fi
5715  ;;
5716
5717osf3* | osf4* | osf5*)
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721solaris*)
5722  lt_cv_deplibs_check_method=pass_all
5723  ;;
5724
5725sysv4 | sysv4.3*)
5726  case $host_vendor in
5727  motorola)
5728    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]'
5729    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5730    ;;
5731  ncr)
5732    lt_cv_deplibs_check_method=pass_all
5733    ;;
5734  sequent)
5735    lt_cv_file_magic_cmd='/bin/file'
5736    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5737    ;;
5738  sni)
5739    lt_cv_file_magic_cmd='/bin/file'
5740    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5741    lt_cv_file_magic_test_file=/lib/libc.so
5742    ;;
5743  siemens)
5744    lt_cv_deplibs_check_method=pass_all
5745    ;;
5746  pc)
5747    lt_cv_deplibs_check_method=pass_all
5748    ;;
5749  esac
5750  ;;
5751
5752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755esac
5756
5757fi
5758echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5759echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5760file_magic_cmd=$lt_cv_file_magic_cmd
5761deplibs_check_method=$lt_cv_deplibs_check_method
5762test -z "$deplibs_check_method" && deplibs_check_method=unknown
5763
5764
5765
5766
5767# If no C compiler was specified, use CC.
5768LTCC=${LTCC-"$CC"}
5769
5770# If no C compiler flags were specified, use CFLAGS.
5771LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5772
5773# Allow CC to be a program name with arguments.
5774compiler=$CC
5775
5776# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5777if test "${enable_libtool_lock+set}" = set; then
5778  enableval="$enable_libtool_lock"
5779
5780fi;
5781test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5782
5783# Some flags need to be propagated to the compiler or linker for good
5784# libtool support.
5785case $host in
5786ia64-*-hpux*)
5787  # Find out which ABI we are using.
5788  echo 'int i;' > conftest.$ac_ext
5789  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790  (eval $ac_compile) 2>&5
5791  ac_status=$?
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); }; then
5794    case `/usr/bin/file conftest.$ac_objext` in
5795    *ELF-32*)
5796      HPUX_IA64_MODE="32"
5797      ;;
5798    *ELF-64*)
5799      HPUX_IA64_MODE="64"
5800      ;;
5801    esac
5802  fi
5803  rm -rf conftest*
5804  ;;
5805*-*-irix6*)
5806  # Find out which ABI we are using.
5807  echo '#line 5807 "configure"' > conftest.$ac_ext
5808  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809  (eval $ac_compile) 2>&5
5810  ac_status=$?
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); }; then
5813   if test "$lt_cv_prog_gnu_ld" = yes; then
5814    case `/usr/bin/file conftest.$ac_objext` in
5815    *32-bit*)
5816      LD="${LD-ld} -melf32bsmip"
5817      ;;
5818    *N32*)
5819      LD="${LD-ld} -melf32bmipn32"
5820      ;;
5821    *64-bit*)
5822      LD="${LD-ld} -melf64bmip"
5823      ;;
5824    esac
5825   else
5826    case `/usr/bin/file conftest.$ac_objext` in
5827    *32-bit*)
5828      LD="${LD-ld} -32"
5829      ;;
5830    *N32*)
5831      LD="${LD-ld} -n32"
5832      ;;
5833    *64-bit*)
5834      LD="${LD-ld} -64"
5835      ;;
5836    esac
5837   fi
5838  fi
5839  rm -rf conftest*
5840  ;;
5841
5842x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5843  # Find out which ABI we are using.
5844  echo 'int i;' > conftest.$ac_ext
5845  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846  (eval $ac_compile) 2>&5
5847  ac_status=$?
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); }; then
5850    case `/usr/bin/file conftest.o` in
5851    *32-bit*)
5852      case $host in
5853        x86_64-*linux*)
5854          LD="${LD-ld} -m elf_i386"
5855          ;;
5856        ppc64-*linux*|powerpc64-*linux*)
5857          LD="${LD-ld} -m elf32ppclinux"
5858          ;;
5859        s390x-*linux*)
5860          LD="${LD-ld} -m elf_s390"
5861          ;;
5862        sparc64-*linux*)
5863          LD="${LD-ld} -m elf32_sparc"
5864          ;;
5865      esac
5866      ;;
5867    *64-bit*)
5868      case $host in
5869        x86_64-*linux*)
5870          LD="${LD-ld} -m elf_x86_64"
5871          ;;
5872        ppc*-*linux*|powerpc*-*linux*)
5873          LD="${LD-ld} -m elf64ppc"
5874          ;;
5875        s390*-*linux*)
5876          LD="${LD-ld} -m elf64_s390"
5877          ;;
5878        sparc*-*linux*)
5879          LD="${LD-ld} -m elf64_sparc"
5880          ;;
5881      esac
5882      ;;
5883    esac
5884  fi
5885  rm -rf conftest*
5886  ;;
5887
5888*-*-sco3.2v5*)
5889  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5890  SAVE_CFLAGS="$CFLAGS"
5891  CFLAGS="$CFLAGS -belf"
5892  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5893echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5894if test "${lt_cv_cc_needs_belf+set}" = set; then
5895  echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897  ac_ext=c
5898ac_cpp='$CPP $CPPFLAGS'
5899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
5903     cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909
5910int
5911main ()
5912{
5913
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920  (eval $ac_link) 2>conftest.er1
5921  ac_status=$?
5922  grep -v '^ *+' conftest.er1 >conftest.err
5923  rm -f conftest.er1
5924  cat conftest.err >&5
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); } &&
5927	 { ac_try='test -z "$ac_c_werror_flag"
5928			 || test ! -s conftest.err'
5929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930  (eval $ac_try) 2>&5
5931  ac_status=$?
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); }; } &&
5934	 { ac_try='test -s conftest$ac_exeext'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; }; then
5940  lt_cv_cc_needs_belf=yes
5941else
5942  echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945lt_cv_cc_needs_belf=no
5946fi
5947rm -f conftest.err conftest.$ac_objext \
5948      conftest$ac_exeext conftest.$ac_ext
5949     ac_ext=c
5950ac_cpp='$CPP $CPPFLAGS'
5951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954
5955fi
5956echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5957echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5958  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5959    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5960    CFLAGS="$SAVE_CFLAGS"
5961  fi
5962  ;;
5963sparc*-*solaris*)
5964  # Find out which ABI we are using.
5965  echo 'int i;' > conftest.$ac_ext
5966  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967  (eval $ac_compile) 2>&5
5968  ac_status=$?
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); }; then
5971    case `/usr/bin/file conftest.o` in
5972    *64-bit*)
5973      case $lt_cv_prog_gnu_ld in
5974      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5975      *)    LD="${LD-ld} -64" ;;
5976      esac
5977      ;;
5978    esac
5979  fi
5980  rm -rf conftest*
5981  ;;
5982
5983
5984esac
5985
5986need_locks="$enable_libtool_lock"
5987
5988
5989ac_ext=c
5990ac_cpp='$CPP $CPPFLAGS'
5991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5995echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5996# On Suns, sometimes $CPP names a directory.
5997if test -n "$CPP" && test -d "$CPP"; then
5998  CPP=
5999fi
6000if test -z "$CPP"; then
6001  if test "${ac_cv_prog_CPP+set}" = set; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004      # Double quotes because CPP needs to be expanded
6005    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6006    do
6007      ac_preproc_ok=false
6008for ac_c_preproc_warn_flag in '' yes
6009do
6010  # Use a header file that comes with gcc, so configuring glibc
6011  # with a fresh cross-compiler works.
6012  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013  # <limits.h> exists even on freestanding compilers.
6014  # On the NeXT, cc -E runs the code through the compiler's parser,
6015  # not just through cpp. "Syntax error" is here to catch this case.
6016  cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h.  */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h.  */
6022#ifdef __STDC__
6023# include <limits.h>
6024#else
6025# include <assert.h>
6026#endif
6027		     Syntax error
6028_ACEOF
6029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031  ac_status=$?
6032  grep -v '^ *+' conftest.er1 >conftest.err
6033  rm -f conftest.er1
6034  cat conftest.err >&5
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); } >/dev/null; then
6037  if test -s conftest.err; then
6038    ac_cpp_err=$ac_c_preproc_warn_flag
6039    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6040  else
6041    ac_cpp_err=
6042  fi
6043else
6044  ac_cpp_err=yes
6045fi
6046if test -z "$ac_cpp_err"; then
6047  :
6048else
6049  echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052  # Broken: fails on valid input.
6053continue
6054fi
6055rm -f conftest.err conftest.$ac_ext
6056
6057  # OK, works on sane cases.  Now check whether non-existent headers
6058  # can be detected and how.
6059  cat >conftest.$ac_ext <<_ACEOF
6060/* confdefs.h.  */
6061_ACEOF
6062cat confdefs.h >>conftest.$ac_ext
6063cat >>conftest.$ac_ext <<_ACEOF
6064/* end confdefs.h.  */
6065#include <ac_nonexistent.h>
6066_ACEOF
6067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6068  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } >/dev/null; then
6075  if test -s conftest.err; then
6076    ac_cpp_err=$ac_c_preproc_warn_flag
6077    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6078  else
6079    ac_cpp_err=
6080  fi
6081else
6082  ac_cpp_err=yes
6083fi
6084if test -z "$ac_cpp_err"; then
6085  # Broken: success on invalid input.
6086continue
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091  # Passes both tests.
6092ac_preproc_ok=:
6093break
6094fi
6095rm -f conftest.err conftest.$ac_ext
6096
6097done
6098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099rm -f conftest.err conftest.$ac_ext
6100if $ac_preproc_ok; then
6101  break
6102fi
6103
6104    done
6105    ac_cv_prog_CPP=$CPP
6106
6107fi
6108  CPP=$ac_cv_prog_CPP
6109else
6110  ac_cv_prog_CPP=$CPP
6111fi
6112echo "$as_me:$LINENO: result: $CPP" >&5
6113echo "${ECHO_T}$CPP" >&6
6114ac_preproc_ok=false
6115for ac_c_preproc_warn_flag in '' yes
6116do
6117  # Use a header file that comes with gcc, so configuring glibc
6118  # with a fresh cross-compiler works.
6119  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120  # <limits.h> exists even on freestanding compilers.
6121  # On the NeXT, cc -E runs the code through the compiler's parser,
6122  # not just through cpp. "Syntax error" is here to catch this case.
6123  cat >conftest.$ac_ext <<_ACEOF
6124/* confdefs.h.  */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
6128/* end confdefs.h.  */
6129#ifdef __STDC__
6130# include <limits.h>
6131#else
6132# include <assert.h>
6133#endif
6134		     Syntax error
6135_ACEOF
6136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6137  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6138  ac_status=$?
6139  grep -v '^ *+' conftest.er1 >conftest.err
6140  rm -f conftest.er1
6141  cat conftest.err >&5
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); } >/dev/null; then
6144  if test -s conftest.err; then
6145    ac_cpp_err=$ac_c_preproc_warn_flag
6146    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6147  else
6148    ac_cpp_err=
6149  fi
6150else
6151  ac_cpp_err=yes
6152fi
6153if test -z "$ac_cpp_err"; then
6154  :
6155else
6156  echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159  # Broken: fails on valid input.
6160continue
6161fi
6162rm -f conftest.err conftest.$ac_ext
6163
6164  # OK, works on sane cases.  Now check whether non-existent headers
6165  # can be detected and how.
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172#include <ac_nonexistent.h>
6173_ACEOF
6174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176  ac_status=$?
6177  grep -v '^ *+' conftest.er1 >conftest.err
6178  rm -f conftest.er1
6179  cat conftest.err >&5
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); } >/dev/null; then
6182  if test -s conftest.err; then
6183    ac_cpp_err=$ac_c_preproc_warn_flag
6184    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6185  else
6186    ac_cpp_err=
6187  fi
6188else
6189  ac_cpp_err=yes
6190fi
6191if test -z "$ac_cpp_err"; then
6192  # Broken: success on invalid input.
6193continue
6194else
6195  echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198  # Passes both tests.
6199ac_preproc_ok=:
6200break
6201fi
6202rm -f conftest.err conftest.$ac_ext
6203
6204done
6205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6206rm -f conftest.err conftest.$ac_ext
6207if $ac_preproc_ok; then
6208  :
6209else
6210  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6211See \`config.log' for more details." >&5
6212echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6213See \`config.log' for more details." >&2;}
6214   { (exit 1); exit 1; }; }
6215fi
6216
6217ac_ext=c
6218ac_cpp='$CPP $CPPFLAGS'
6219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222
6223
6224echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6225echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6226if test "${ac_cv_header_stdc+set}" = set; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229  cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235#include <stdlib.h>
6236#include <stdarg.h>
6237#include <string.h>
6238#include <float.h>
6239
6240int
6241main ()
6242{
6243
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248rm -f conftest.$ac_objext
6249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250  (eval $ac_compile) 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } &&
6257	 { ac_try='test -z "$ac_c_werror_flag"
6258			 || test ! -s conftest.err'
6259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260  (eval $ac_try) 2>&5
6261  ac_status=$?
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); }; } &&
6264	 { ac_try='test -s conftest.$ac_objext'
6265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266  (eval $ac_try) 2>&5
6267  ac_status=$?
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }; }; then
6270  ac_cv_header_stdc=yes
6271else
6272  echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275ac_cv_header_stdc=no
6276fi
6277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278
6279if test $ac_cv_header_stdc = yes; then
6280  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6281  cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h.  */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h.  */
6287#include <string.h>
6288
6289_ACEOF
6290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291  $EGREP "memchr" >/dev/null 2>&1; then
6292  :
6293else
6294  ac_cv_header_stdc=no
6295fi
6296rm -f conftest*
6297
6298fi
6299
6300if test $ac_cv_header_stdc = yes; then
6301  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6302  cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h.  */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h.  */
6308#include <stdlib.h>
6309
6310_ACEOF
6311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312  $EGREP "free" >/dev/null 2>&1; then
6313  :
6314else
6315  ac_cv_header_stdc=no
6316fi
6317rm -f conftest*
6318
6319fi
6320
6321if test $ac_cv_header_stdc = yes; then
6322  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6323  if test "$cross_compiling" = yes; then
6324  :
6325else
6326  cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332#include <ctype.h>
6333#if ((' ' & 0x0FF) == 0x020)
6334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6336#else
6337# define ISLOWER(c) \
6338		   (('a' <= (c) && (c) <= 'i') \
6339		     || ('j' <= (c) && (c) <= 'r') \
6340		     || ('s' <= (c) && (c) <= 'z'))
6341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6342#endif
6343
6344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6345int
6346main ()
6347{
6348  int i;
6349  for (i = 0; i < 256; i++)
6350    if (XOR (islower (i), ISLOWER (i))
6351	|| toupper (i) != TOUPPER (i))
6352      exit(2);
6353  exit (0);
6354}
6355_ACEOF
6356rm -f conftest$ac_exeext
6357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358  (eval $ac_link) 2>&5
6359  ac_status=$?
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; }; then
6367  :
6368else
6369  echo "$as_me: program exited with status $ac_status" >&5
6370echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373( exit $ac_status )
6374ac_cv_header_stdc=no
6375fi
6376rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6377fi
6378fi
6379fi
6380echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381echo "${ECHO_T}$ac_cv_header_stdc" >&6
6382if test $ac_cv_header_stdc = yes; then
6383
6384cat >>confdefs.h <<\_ACEOF
6385#define STDC_HEADERS 1
6386_ACEOF
6387
6388fi
6389
6390# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6401		  inttypes.h stdint.h unistd.h
6402do
6403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404echo "$as_me:$LINENO: checking for $ac_header" >&5
6405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h.  */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h.  */
6415$ac_includes_default
6416
6417#include <$ac_header>
6418_ACEOF
6419rm -f conftest.$ac_objext
6420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421  (eval $ac_compile) 2>conftest.er1
6422  ac_status=$?
6423  grep -v '^ *+' conftest.er1 >conftest.err
6424  rm -f conftest.er1
6425  cat conftest.err >&5
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); } &&
6428	 { ac_try='test -z "$ac_c_werror_flag"
6429			 || test ! -s conftest.err'
6430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431  (eval $ac_try) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; } &&
6435	 { ac_try='test -s conftest.$ac_objext'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; }; then
6441  eval "$as_ac_Header=yes"
6442else
6443  echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446eval "$as_ac_Header=no"
6447fi
6448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449fi
6450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452if test `eval echo '${'$as_ac_Header'}'` = yes; then
6453  cat >>confdefs.h <<_ACEOF
6454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6455_ACEOF
6456
6457fi
6458
6459done
6460
6461
6462
6463for ac_header in dlfcn.h
6464do
6465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467  echo "$as_me:$LINENO: checking for $ac_header" >&5
6468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471fi
6472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474else
6475  # Is the header compilable?
6476echo "$as_me:$LINENO: checking $ac_header usability" >&5
6477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6478cat >conftest.$ac_ext <<_ACEOF
6479/* confdefs.h.  */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h.  */
6484$ac_includes_default
6485#include <$ac_header>
6486_ACEOF
6487rm -f conftest.$ac_objext
6488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489  (eval $ac_compile) 2>conftest.er1
6490  ac_status=$?
6491  grep -v '^ *+' conftest.er1 >conftest.err
6492  rm -f conftest.er1
6493  cat conftest.err >&5
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); } &&
6496	 { ac_try='test -z "$ac_c_werror_flag"
6497			 || test ! -s conftest.err'
6498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499  (eval $ac_try) 2>&5
6500  ac_status=$?
6501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502  (exit $ac_status); }; } &&
6503	 { ac_try='test -s conftest.$ac_objext'
6504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505  (eval $ac_try) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; }; then
6509  ac_header_compiler=yes
6510else
6511  echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514ac_header_compiler=no
6515fi
6516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6518echo "${ECHO_T}$ac_header_compiler" >&6
6519
6520# Is the header present?
6521echo "$as_me:$LINENO: checking $ac_header presence" >&5
6522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6523cat >conftest.$ac_ext <<_ACEOF
6524/* confdefs.h.  */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h.  */
6529#include <$ac_header>
6530_ACEOF
6531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6533  ac_status=$?
6534  grep -v '^ *+' conftest.er1 >conftest.err
6535  rm -f conftest.er1
6536  cat conftest.err >&5
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); } >/dev/null; then
6539  if test -s conftest.err; then
6540    ac_cpp_err=$ac_c_preproc_warn_flag
6541    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6542  else
6543    ac_cpp_err=
6544  fi
6545else
6546  ac_cpp_err=yes
6547fi
6548if test -z "$ac_cpp_err"; then
6549  ac_header_preproc=yes
6550else
6551  echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
6554  ac_header_preproc=no
6555fi
6556rm -f conftest.err conftest.$ac_ext
6557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6558echo "${ECHO_T}$ac_header_preproc" >&6
6559
6560# So?  What about this header?
6561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6562  yes:no: )
6563    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6565    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6567    ac_header_preproc=yes
6568    ;;
6569  no:yes:* )
6570    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6572    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6573echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6574    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6576    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6577echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6578    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6580    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6582    (
6583      cat <<\_ASBOX
6584## --------------------------------------- ##
6585## Report this to flopcpp@list.coin-or.org ##
6586## --------------------------------------- ##
6587_ASBOX
6588    ) |
6589      sed "s/^/$as_me: WARNING:     /" >&2
6590    ;;
6591esac
6592echo "$as_me:$LINENO: checking for $ac_header" >&5
6593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6594if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595  echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597  eval "$as_ac_Header=\$ac_header_preproc"
6598fi
6599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601
6602fi
6603if test `eval echo '${'$as_ac_Header'}'` = yes; then
6604  cat >>confdefs.h <<_ACEOF
6605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6606_ACEOF
6607
6608fi
6609
6610done
6611
6612
6613
6614if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6615    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6616    (test "X$CXX" != "Xg++"))) ; then
6617  ac_ext=cc
6618ac_cpp='$CXXCPP $CPPFLAGS'
6619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6622echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6623echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6624if test -z "$CXXCPP"; then
6625  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628      # Double quotes because CXXCPP needs to be expanded
6629    for CXXCPP in "$CXX -E" "/lib/cpp"
6630    do
6631      ac_preproc_ok=false
6632for ac_cxx_preproc_warn_flag in '' yes
6633do
6634  # Use a header file that comes with gcc, so configuring glibc
6635  # with a fresh cross-compiler works.
6636  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637  # <limits.h> exists even on freestanding compilers.
6638  # On the NeXT, cc -E runs the code through the compiler's parser,
6639  # not just through cpp. "Syntax error" is here to catch this case.
6640  cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h.  */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h.  */
6646#ifdef __STDC__
6647# include <limits.h>
6648#else
6649# include <assert.h>
6650#endif
6651		     Syntax error
6652_ACEOF
6653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6654  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6655  ac_status=$?
6656  grep -v '^ *+' conftest.er1 >conftest.err
6657  rm -f conftest.er1
6658  cat conftest.err >&5
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); } >/dev/null; then
6661  if test -s conftest.err; then
6662    ac_cpp_err=$ac_cxx_preproc_warn_flag
6663    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6664  else
6665    ac_cpp_err=
6666  fi
6667else
6668  ac_cpp_err=yes
6669fi
6670if test -z "$ac_cpp_err"; then
6671  :
6672else
6673  echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676  # Broken: fails on valid input.
6677continue
6678fi
6679rm -f conftest.err conftest.$ac_ext
6680
6681  # OK, works on sane cases.  Now check whether non-existent headers
6682  # can be detected and how.
6683  cat >conftest.$ac_ext <<_ACEOF
6684/* confdefs.h.  */
6685_ACEOF
6686cat confdefs.h >>conftest.$ac_ext
6687cat >>conftest.$ac_ext <<_ACEOF
6688/* end confdefs.h.  */
6689#include <ac_nonexistent.h>
6690_ACEOF
6691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693  ac_status=$?
6694  grep -v '^ *+' conftest.er1 >conftest.err
6695  rm -f conftest.er1
6696  cat conftest.err >&5
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); } >/dev/null; then
6699  if test -s conftest.err; then
6700    ac_cpp_err=$ac_cxx_preproc_warn_flag
6701    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6702  else
6703    ac_cpp_err=
6704  fi
6705else
6706  ac_cpp_err=yes
6707fi
6708if test -z "$ac_cpp_err"; then
6709  # Broken: success on invalid input.
6710continue
6711else
6712  echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
6715  # Passes both tests.
6716ac_preproc_ok=:
6717break
6718fi
6719rm -f conftest.err conftest.$ac_ext
6720
6721done
6722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6723rm -f conftest.err conftest.$ac_ext
6724if $ac_preproc_ok; then
6725  break
6726fi
6727
6728    done
6729    ac_cv_prog_CXXCPP=$CXXCPP
6730
6731fi
6732  CXXCPP=$ac_cv_prog_CXXCPP
6733else
6734  ac_cv_prog_CXXCPP=$CXXCPP
6735fi
6736echo "$as_me:$LINENO: result: $CXXCPP" >&5
6737echo "${ECHO_T}$CXXCPP" >&6
6738ac_preproc_ok=false
6739for ac_cxx_preproc_warn_flag in '' yes
6740do
6741  # Use a header file that comes with gcc, so configuring glibc
6742  # with a fresh cross-compiler works.
6743  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6744  # <limits.h> exists even on freestanding compilers.
6745  # On the NeXT, cc -E runs the code through the compiler's parser,
6746  # not just through cpp. "Syntax error" is here to catch this case.
6747  cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753#ifdef __STDC__
6754# include <limits.h>
6755#else
6756# include <assert.h>
6757#endif
6758		     Syntax error
6759_ACEOF
6760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6762  ac_status=$?
6763  grep -v '^ *+' conftest.er1 >conftest.err
6764  rm -f conftest.er1
6765  cat conftest.err >&5
6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767  (exit $ac_status); } >/dev/null; then
6768  if test -s conftest.err; then
6769    ac_cpp_err=$ac_cxx_preproc_warn_flag
6770    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6771  else
6772    ac_cpp_err=
6773  fi
6774else
6775  ac_cpp_err=yes
6776fi
6777if test -z "$ac_cpp_err"; then
6778  :
6779else
6780  echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783  # Broken: fails on valid input.
6784continue
6785fi
6786rm -f conftest.err conftest.$ac_ext
6787
6788  # OK, works on sane cases.  Now check whether non-existent headers
6789  # can be detected and how.
6790  cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h.  */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h.  */
6796#include <ac_nonexistent.h>
6797_ACEOF
6798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6799  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6800  ac_status=$?
6801  grep -v '^ *+' conftest.er1 >conftest.err
6802  rm -f conftest.er1
6803  cat conftest.err >&5
6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805  (exit $ac_status); } >/dev/null; then
6806  if test -s conftest.err; then
6807    ac_cpp_err=$ac_cxx_preproc_warn_flag
6808    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6809  else
6810    ac_cpp_err=
6811  fi
6812else
6813  ac_cpp_err=yes
6814fi
6815if test -z "$ac_cpp_err"; then
6816  # Broken: success on invalid input.
6817continue
6818else
6819  echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822  # Passes both tests.
6823ac_preproc_ok=:
6824break
6825fi
6826rm -f conftest.err conftest.$ac_ext
6827
6828done
6829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6830rm -f conftest.err conftest.$ac_ext
6831if $ac_preproc_ok; then
6832  :
6833else
6834  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6835See \`config.log' for more details." >&5
6836echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6837See \`config.log' for more details." >&2;}
6838   { (exit 1); exit 1; }; }
6839fi
6840
6841ac_ext=cc
6842ac_cpp='$CXXCPP $CPPFLAGS'
6843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6846
6847fi
6848
6849ac_ext=f
6850ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6851ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6853if test -n "$ac_tool_prefix"; then
6854  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6855  do
6856    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6858echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860if test "${ac_cv_prog_F77+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863  if test -n "$F77"; then
6864  ac_cv_prog_F77="$F77" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  test -z "$as_dir" && as_dir=.
6871  for ac_exec_ext in '' $ac_executable_extensions; do
6872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875    break 2
6876  fi
6877done
6878done
6879
6880fi
6881fi
6882F77=$ac_cv_prog_F77
6883if test -n "$F77"; then
6884  echo "$as_me:$LINENO: result: $F77" >&5
6885echo "${ECHO_T}$F77" >&6
6886else
6887  echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889fi
6890
6891    test -n "$F77" && break
6892  done
6893fi
6894if test -z "$F77"; then
6895  ac_ct_F77=$F77
6896  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6897do
6898  # Extract the first word of "$ac_prog", so it can be a program name with args.
6899set dummy $ac_prog; ac_word=$2
6900echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6902if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6903  echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905  if test -n "$ac_ct_F77"; then
6906  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913  for ac_exec_ext in '' $ac_executable_extensions; do
6914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_ac_ct_F77="$ac_prog"
6916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920done
6921
6922fi
6923fi
6924ac_ct_F77=$ac_cv_prog_ac_ct_F77
6925if test -n "$ac_ct_F77"; then
6926  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6927echo "${ECHO_T}$ac_ct_F77" >&6
6928else
6929  echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
6931fi
6932
6933  test -n "$ac_ct_F77" && break
6934done
6935
6936  F77=$ac_ct_F77
6937fi
6938
6939
6940# Provide some information about the compiler.
6941echo "$as_me:6941:" \
6942     "checking for Fortran 77 compiler version" >&5
6943ac_compiler=`set X $ac_compile; echo $2`
6944{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6945  (eval $ac_compiler --version </dev/null >&5) 2>&5
6946  ac_status=$?
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); }
6949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6950  (eval $ac_compiler -v </dev/null >&5) 2>&5
6951  ac_status=$?
6952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953  (exit $ac_status); }
6954{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6955  (eval $ac_compiler -V </dev/null >&5) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); }
6959rm -f a.out
6960
6961# If we don't use `.F' as extension, the preprocessor is not run on the
6962# input file.  (Note that this only needs to work for GNU compilers.)
6963ac_save_ext=$ac_ext
6964ac_ext=F
6965echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6966echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6967if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6968  echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970  cat >conftest.$ac_ext <<_ACEOF
6971      program main
6972#ifndef __GNUC__
6973       choke me
6974#endif
6975
6976      end
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980  (eval $ac_compile) 2>conftest.er1
6981  ac_status=$?
6982  grep -v '^ *+' conftest.er1 >conftest.err
6983  rm -f conftest.er1
6984  cat conftest.err >&5
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } &&
6987	 { ac_try='test -z "$ac_f77_werror_flag"
6988			 || test ! -s conftest.err'
6989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990  (eval $ac_try) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; } &&
6994	 { ac_try='test -s conftest.$ac_objext'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; }; then
7000  ac_compiler_gnu=yes
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005ac_compiler_gnu=no
7006fi
7007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7009
7010fi
7011echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7012echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7013ac_ext=$ac_save_ext
7014ac_test_FFLAGS=${FFLAGS+set}
7015ac_save_FFLAGS=$FFLAGS
7016FFLAGS=
7017echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7018echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7019if test "${ac_cv_prog_f77_g+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  FFLAGS=-g
7023cat >conftest.$ac_ext <<_ACEOF
7024      program main
7025
7026      end
7027_ACEOF
7028rm -f conftest.$ac_objext
7029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030  (eval $ac_compile) 2>conftest.er1
7031  ac_status=$?
7032  grep -v '^ *+' conftest.er1 >conftest.err
7033  rm -f conftest.er1
7034  cat conftest.err >&5
7035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036  (exit $ac_status); } &&
7037	 { ac_try='test -z "$ac_f77_werror_flag"
7038			 || test ! -s conftest.err'
7039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040  (eval $ac_try) 2>&5
7041  ac_status=$?
7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043  (exit $ac_status); }; } &&
7044	 { ac_try='test -s conftest.$ac_objext'
7045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046  (eval $ac_try) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); }; }; then
7050  ac_cv_prog_f77_g=yes
7051else
7052  echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055ac_cv_prog_f77_g=no
7056fi
7057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058
7059fi
7060echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7061echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7062if test "$ac_test_FFLAGS" = set; then
7063  FFLAGS=$ac_save_FFLAGS
7064elif test $ac_cv_prog_f77_g = yes; then
7065  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7066    FFLAGS="-g -O2"
7067  else
7068    FFLAGS="-g"
7069  fi
7070else
7071  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7072    FFLAGS="-O2"
7073  else
7074    FFLAGS=
7075  fi
7076fi
7077
7078G77=`test $ac_compiler_gnu = yes && echo yes`
7079ac_ext=c
7080ac_cpp='$CPP $CPPFLAGS'
7081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085
7086
7087# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7088
7089# find the maximum length of command line arguments
7090echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7091echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7092if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095    i=0
7096  teststring="ABCD"
7097
7098  case $build_os in
7099  msdosdjgpp*)
7100    # On DJGPP, this test can blow up pretty badly due to problems in libc
7101    # (any single argument exceeding 2000 bytes causes a buffer overrun
7102    # during glob expansion).  Even if it were fixed, the result of this
7103    # check would be larger than it should be.
7104    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7105    ;;
7106
7107  gnu*)
7108    # Under GNU Hurd, this test is not required because there is
7109    # no limit to the length of command line arguments.
7110    # Libtool will interpret -1 as no limit whatsoever
7111    lt_cv_sys_max_cmd_len=-1;
7112    ;;
7113
7114  cygwin* | mingw*)
7115    # On Win9x/ME, this test blows up -- it succeeds, but takes
7116    # about 5 minutes as the teststring grows exponentially.
7117    # Worse, since 9x/ME are not pre-emptively multitasking,
7118    # you end up with a "frozen" computer, even though with patience
7119    # the test eventually succeeds (with a max line length of 256k).
7120    # Instead, let's just punt: use the minimum linelength reported by
7121    # all of the supported platforms: 8192 (on NT/2K/XP).
7122    lt_cv_sys_max_cmd_len=8192;
7123    ;;
7124
7125  amigaos*)
7126    # On AmigaOS with pdksh, this test takes hours, literally.
7127    # So we just punt and use a minimum line length of 8192.
7128    lt_cv_sys_max_cmd_len=8192;
7129    ;;
7130
7131  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7132    # This has been around since 386BSD, at least.  Likely further.
7133    if test -x /sbin/sysctl; then
7134      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7135    elif test -x /usr/sbin/sysctl; then
7136      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7137    else
7138      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7139    fi
7140    # And add a safety zone
7141    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7142    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7143    ;;
7144
7145  interix*)
7146    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7147    lt_cv_sys_max_cmd_len=196608
7148    ;;
7149
7150  osf*)
7151    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7152    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7153    # nice to cause kernel panics so lets avoid the loop below.
7154    # First set a reasonable default.
7155    lt_cv_sys_max_cmd_len=16384
7156    #
7157    if test -x /sbin/sysconfig; then
7158      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7159        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7160      esac
7161    fi
7162    ;;
7163  sco3.2v5*)
7164    lt_cv_sys_max_cmd_len=102400
7165    ;;
7166  sysv5* | sco5v6* | sysv4.2uw2*)
7167    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7168    if test -n "$kargmax"; then
7169      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7170    else
7171      lt_cv_sys_max_cmd_len=32768
7172    fi
7173    ;;
7174  *)
7175    # If test is not a shell built-in, we'll probably end up computing a
7176    # maximum length that is only half of the actual maximum length, but
7177    # we can't tell.
7178    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7179    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7180	       = "XX$teststring") >/dev/null 2>&1 &&
7181	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7182	    lt_cv_sys_max_cmd_len=$new_result &&
7183	    test $i != 17 # 1/2 MB should be enough
7184    do
7185      i=`expr $i + 1`
7186      teststring=$teststring$teststring
7187    done
7188    teststring=
7189    # Add a significant safety factor because C++ compilers can tack on massive
7190    # amounts of additional arguments before passing them to the linker.
7191    # It appears as though 1/2 is a usable value.
7192    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7193    ;;
7194  esac
7195
7196fi
7197
7198if test -n $lt_cv_sys_max_cmd_len ; then
7199  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7200echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7201else
7202  echo "$as_me:$LINENO: result: none" >&5
7203echo "${ECHO_T}none" >&6
7204fi
7205
7206
7207
7208
7209# Check for command to grab the raw symbol name followed by C symbol from nm.
7210echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7211echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7212if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215
7216# These are sane defaults that work on at least a few old systems.
7217# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7218
7219# Character class describing NM global symbol codes.
7220symcode='[BCDEGRST]'
7221
7222# Regexp to match symbols that can be accessed directly from C.
7223sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224
7225# Transform an extracted symbol line into a proper C declaration
7226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7227
7228# Transform an extracted symbol line into symbol name and symbol address
7229lt_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'"
7230
7231# Define system-specific variables.
7232case $host_os in
7233aix*)
7234  symcode='[BCDT]'
7235  ;;
7236cygwin* | mingw* | pw32*)
7237  symcode='[ABCDGISTW]'
7238  ;;
7239hpux*) # Its linker distinguishes data from code symbols
7240  if test "$host_cpu" = ia64; then
7241    symcode='[ABCDEGRST]'
7242  fi
7243  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7244  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'"
7245  ;;
7246linux*)
7247  if test "$host_cpu" = ia64; then
7248    symcode='[ABCDGIRSTW]'
7249    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7250    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'"
7251  fi
7252  ;;
7253irix* | nonstopux*)
7254  symcode='[BCDEGRST]'
7255  ;;
7256osf*)
7257  symcode='[BCDEGQRST]'
7258  ;;
7259solaris*)
7260  symcode='[BDRT]'
7261  ;;
7262sco3.2v5*)
7263  symcode='[DT]'
7264  ;;
7265sysv4.2uw2*)
7266  symcode='[DT]'
7267  ;;
7268sysv5* | sco5v6* | unixware* | OpenUNIX*)
7269  symcode='[ABDT]'
7270  ;;
7271sysv4)
7272  symcode='[DFNSTU]'
7273  ;;
7274esac
7275
7276# Handle CRLF in mingw tool chain
7277opt_cr=
7278case $build_os in
7279mingw*)
7280  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281  ;;
7282esac
7283
7284# If we're using GNU nm, then use its standard symbol codes.
7285case `$NM -V 2>&1` in
7286*GNU* | *'with BFD'*)
7287  symcode='[ABCDGIRSTW]' ;;
7288esac
7289
7290# Try without a prefix undercore, then with it.
7291for ac_symprfx in "" "_"; do
7292
7293  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7294  symxfrm="\\1 $ac_symprfx\\2 \\2"
7295
7296  # Write the raw and C identifiers.
7297  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7298
7299  # Check to see that the pipe works correctly.
7300  pipe_works=no
7301
7302  rm -f conftest*
7303  cat > conftest.$ac_ext <<EOF
7304#ifdef __cplusplus
7305extern "C" {
7306#endif
7307char nm_test_var;
7308void nm_test_func(){}
7309#ifdef __cplusplus
7310}
7311#endif
7312int main(){nm_test_var='a';nm_test_func();return(0);}
7313EOF
7314
7315  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316  (eval $ac_compile) 2>&5
7317  ac_status=$?
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); }; then
7320    # Now try to grab the symbols.
7321    nlist=conftest.nm
7322    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7323  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7324  ac_status=$?
7325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326  (exit $ac_status); } && test -s "$nlist"; then
7327      # Try sorting and uniquifying the output.
7328      if sort "$nlist" | uniq > "$nlist"T; then
7329	mv -f "$nlist"T "$nlist"
7330      else
7331	rm -f "$nlist"T
7332      fi
7333
7334      # Make sure that we snagged all the symbols we need.
7335      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7336	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7337	  cat <<EOF > conftest.$ac_ext
7338#ifdef __cplusplus
7339extern "C" {
7340#endif
7341
7342EOF
7343	  # Now generate the symbol file.
7344	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7345
7346	  cat <<EOF >> conftest.$ac_ext
7347#if defined (__STDC__) && __STDC__
7348# define lt_ptr_t void *
7349#else
7350# define lt_ptr_t char *
7351# define const
7352#endif
7353
7354/* The mapping between symbol names and symbols. */
7355const struct {
7356  const char *name;
7357  lt_ptr_t address;
7358}
7359lt_preloaded_symbols[] =
7360{
7361EOF
7362	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7363	  cat <<\EOF >> conftest.$ac_ext
7364  {0, (lt_ptr_t) 0}
7365};
7366
7367#ifdef __cplusplus
7368}
7369#endif
7370EOF
7371	  # Now try linking the two files.
7372	  mv conftest.$ac_objext conftstm.$ac_objext
7373	  lt_save_LIBS="$LIBS"
7374	  lt_save_CFLAGS="$CFLAGS"
7375	  LIBS="conftstm.$ac_objext"
7376	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7377	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378  (eval $ac_link) 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7382	    pipe_works=yes
7383	  fi
7384	  LIBS="$lt_save_LIBS"
7385	  CFLAGS="$lt_save_CFLAGS"
7386	else
7387	  echo "cannot find nm_test_func in $nlist" >&5
7388	fi
7389      else
7390	echo "cannot find nm_test_var in $nlist" >&5
7391      fi
7392    else
7393      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7394    fi
7395  else
7396    echo "$progname: failed program was:" >&5
7397    cat conftest.$ac_ext >&5
7398  fi
7399  rm -f conftest* conftst*
7400
7401  # Do not use the global_symbol_pipe unless it works.
7402  if test "$pipe_works" = yes; then
7403    break
7404  else
7405    lt_cv_sys_global_symbol_pipe=
7406  fi
7407done
7408
7409fi
7410
7411if test -z "$lt_cv_sys_global_symbol_pipe"; then
7412  lt_cv_sys_global_symbol_to_cdecl=
7413fi
7414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7415  echo "$as_me:$LINENO: result: failed" >&5
7416echo "${ECHO_T}failed" >&6
7417else
7418  echo "$as_me:$LINENO: result: ok" >&5
7419echo "${ECHO_T}ok" >&6
7420fi
7421
7422echo "$as_me:$LINENO: checking for objdir" >&5
7423echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424if test "${lt_cv_objdir+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  rm -f .libs 2>/dev/null
7428mkdir .libs 2>/dev/null
7429if test -d .libs; then
7430  lt_cv_objdir=.libs
7431else
7432  # MS-DOS does not allow filenames that begin with a dot.
7433  lt_cv_objdir=_libs
7434fi
7435rmdir .libs 2>/dev/null
7436fi
7437echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7438echo "${ECHO_T}$lt_cv_objdir" >&6
7439objdir=$lt_cv_objdir
7440
7441
7442
7443
7444
7445case $host_os in
7446aix3*)
7447  # AIX sometimes has problems with the GCC collect2 program.  For some
7448  # reason, if we set the COLLECT_NAMES environment variable, the problems
7449  # vanish in a puff of smoke.
7450  if test "X${COLLECT_NAMES+set}" != Xset; then
7451    COLLECT_NAMES=
7452    export COLLECT_NAMES
7453  fi
7454  ;;
7455esac
7456
7457# Sed substitution that helps us do robust quoting.  It backslashifies
7458# metacharacters that are still active within double-quoted strings.
7459Xsed='sed -e 1s/^X//'
7460sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7461
7462# Same as above, but do not quote variable references.
7463double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7464
7465# Sed substitution to delay expansion of an escaped shell variable in a
7466# double_quote_subst'ed string.
7467delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7468
7469# Sed substitution to avoid accidental globbing in evaled expressions
7470no_glob_subst='s/\*/\\\*/g'
7471
7472# Constants:
7473rm="rm -f"
7474
7475# Global variables:
7476default_ofile=libtool
7477can_build_shared=yes
7478
7479# All known linkers require a `.a' archive for static linking (except MSVC,
7480# which needs '.lib').
7481libext=a
7482ltmain="$ac_aux_dir/ltmain.sh"
7483ofile="$default_ofile"
7484with_gnu_ld="$lt_cv_prog_gnu_ld"
7485
7486if test -n "$ac_tool_prefix"; then
7487  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}ar; ac_word=$2
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491if test "${ac_cv_prog_AR+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  if test -n "$AR"; then
7495  ac_cv_prog_AR="$AR" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502  for ac_exec_ext in '' $ac_executable_extensions; do
7503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_AR="${ac_tool_prefix}ar"
7505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509done
7510
7511fi
7512fi
7513AR=$ac_cv_prog_AR
7514if test -n "$AR"; then
7515  echo "$as_me:$LINENO: result: $AR" >&5
7516echo "${ECHO_T}$AR" >&6
7517else
7518  echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520fi
7521
7522fi
7523if test -z "$ac_cv_prog_AR"; then
7524  ac_ct_AR=$AR
7525  # Extract the first word of "ar", so it can be a program name with args.
7526set dummy ar; ac_word=$2
7527echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7529if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7530  echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532  if test -n "$ac_ct_AR"; then
7533  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538  IFS=$as_save_IFS
7539  test -z "$as_dir" && as_dir=.
7540  for ac_exec_ext in '' $ac_executable_extensions; do
7541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542    ac_cv_prog_ac_ct_AR="ar"
7543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544    break 2
7545  fi
7546done
7547done
7548
7549  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7550fi
7551fi
7552ac_ct_AR=$ac_cv_prog_ac_ct_AR
7553if test -n "$ac_ct_AR"; then
7554  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7555echo "${ECHO_T}$ac_ct_AR" >&6
7556else
7557  echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
7559fi
7560
7561  AR=$ac_ct_AR
7562else
7563  AR="$ac_cv_prog_AR"
7564fi
7565
7566if test -n "$ac_tool_prefix"; then
7567  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7568set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7569echo "$as_me:$LINENO: checking for $ac_word" >&5
7570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7571if test "${ac_cv_prog_RANLIB+set}" = set; then
7572  echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574  if test -n "$RANLIB"; then
7575  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7576else
7577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580  IFS=$as_save_IFS
7581  test -z "$as_dir" && as_dir=.
7582  for ac_exec_ext in '' $ac_executable_extensions; do
7583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589done
7590
7591fi
7592fi
7593RANLIB=$ac_cv_prog_RANLIB
7594if test -n "$RANLIB"; then
7595  echo "$as_me:$LINENO: result: $RANLIB" >&5
7596echo "${ECHO_T}$RANLIB" >&6
7597else
7598  echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600fi
7601
7602fi
7603if test -z "$ac_cv_prog_RANLIB"; then
7604  ac_ct_RANLIB=$RANLIB
7605  # Extract the first word of "ranlib", so it can be a program name with args.
7606set dummy ranlib; ac_word=$2
7607echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7610  echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612  if test -n "$ac_ct_RANLIB"; then
7613  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618  IFS=$as_save_IFS
7619  test -z "$as_dir" && as_dir=.
7620  for ac_exec_ext in '' $ac_executable_extensions; do
7621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622    ac_cv_prog_ac_ct_RANLIB="ranlib"
7623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624    break 2
7625  fi
7626done
7627done
7628
7629  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7630fi
7631fi
7632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7633if test -n "$ac_ct_RANLIB"; then
7634  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7635echo "${ECHO_T}$ac_ct_RANLIB" >&6
7636else
7637  echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
7639fi
7640
7641  RANLIB=$ac_ct_RANLIB
7642else
7643  RANLIB="$ac_cv_prog_RANLIB"
7644fi
7645
7646if test -n "$ac_tool_prefix"; then
7647  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7648set dummy ${ac_tool_prefix}strip; ac_word=$2
7649echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651if test "${ac_cv_prog_STRIP+set}" = set; then
7652  echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654  if test -n "$STRIP"; then
7655  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660  IFS=$as_save_IFS
7661  test -z "$as_dir" && as_dir=.
7662  for ac_exec_ext in '' $ac_executable_extensions; do
7663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666    break 2
7667  fi
7668done
7669done
7670
7671fi
7672fi
7673STRIP=$ac_cv_prog_STRIP
7674if test -n "$STRIP"; then
7675  echo "$as_me:$LINENO: result: $STRIP" >&5
7676echo "${ECHO_T}$STRIP" >&6
7677else
7678  echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
7682fi
7683if test -z "$ac_cv_prog_STRIP"; then
7684  ac_ct_STRIP=$STRIP
7685  # Extract the first word of "strip", so it can be a program name with args.
7686set dummy strip; ac_word=$2
7687echo "$as_me:$LINENO: checking for $ac_word" >&5
7688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7690  echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692  if test -n "$ac_ct_STRIP"; then
7693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698  IFS=$as_save_IFS
7699  test -z "$as_dir" && as_dir=.
7700  for ac_exec_ext in '' $ac_executable_extensions; do
7701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702    ac_cv_prog_ac_ct_STRIP="strip"
7703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704    break 2
7705  fi
7706done
7707done
7708
7709  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7710fi
7711fi
7712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7713if test -n "$ac_ct_STRIP"; then
7714  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7715echo "${ECHO_T}$ac_ct_STRIP" >&6
7716else
7717  echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
7719fi
7720
7721  STRIP=$ac_ct_STRIP
7722else
7723  STRIP="$ac_cv_prog_STRIP"
7724fi
7725
7726
7727old_CC="$CC"
7728old_CFLAGS="$CFLAGS"
7729
7730# Set sane defaults for various variables
7731test -z "$AR" && AR=ar
7732test -z "$AR_FLAGS" && AR_FLAGS=cru
7733test -z "$AS" && AS=as
7734test -z "$CC" && CC=cc
7735test -z "$LTCC" && LTCC=$CC
7736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7737test -z "$DLLTOOL" && DLLTOOL=dlltool
7738test -z "$LD" && LD=ld
7739test -z "$LN_S" && LN_S="ln -s"
7740test -z "$MAGIC_CMD" && MAGIC_CMD=file
7741test -z "$NM" && NM=nm
7742test -z "$SED" && SED=sed
7743test -z "$OBJDUMP" && OBJDUMP=objdump
7744test -z "$RANLIB" && RANLIB=:
7745test -z "$STRIP" && STRIP=:
7746test -z "$ac_objext" && ac_objext=o
7747
7748# Determine commands to create old-style static archives.
7749old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7750old_postinstall_cmds='chmod 644 $oldlib'
7751old_postuninstall_cmds=
7752
7753if test -n "$RANLIB"; then
7754  case $host_os in
7755  openbsd*)
7756    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7757    ;;
7758  *)
7759    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7760    ;;
7761  esac
7762  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7763fi
7764
7765for cc_temp in $compiler""; do
7766  case $cc_temp in
7767    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7768    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7769    \-*) ;;
7770    *) break;;
7771  esac
7772done
7773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7774
7775
7776# Only perform the check for file, if the check method requires it
7777case $deplibs_check_method in
7778file_magic*)
7779  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7780    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7781echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7782if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7783  echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785  case $MAGIC_CMD in
7786[\\/*] |  ?:[\\/]*)
7787  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7788  ;;
7789*)
7790  lt_save_MAGIC_CMD="$MAGIC_CMD"
7791  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7792  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7793  for ac_dir in $ac_dummy; do
7794    IFS="$lt_save_ifs"
7795    test -z "$ac_dir" && ac_dir=.
7796    if test -f $ac_dir/${ac_tool_prefix}file; then
7797      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7798      if test -n "$file_magic_test_file"; then
7799	case $deplibs_check_method in
7800	"file_magic "*)
7801	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7802	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7803	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7804	    $EGREP "$file_magic_regex" > /dev/null; then
7805	    :
7806	  else
7807	    cat <<EOF 1>&2
7808
7809*** Warning: the command libtool uses to detect shared libraries,
7810*** $file_magic_cmd, produces output that libtool cannot recognize.
7811*** The result is that libtool may fail to recognize shared libraries
7812*** as such.  This will affect the creation of libtool libraries that
7813*** depend on shared libraries, but programs linked with such libtool
7814*** libraries will work regardless of this problem.  Nevertheless, you
7815*** may want to report the problem to your system manager and/or to
7816*** bug-libtool@gnu.org
7817
7818EOF
7819	  fi ;;
7820	esac
7821      fi
7822      break
7823    fi
7824  done
7825  IFS="$lt_save_ifs"
7826  MAGIC_CMD="$lt_save_MAGIC_CMD"
7827  ;;
7828esac
7829fi
7830
7831MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7832if test -n "$MAGIC_CMD"; then
7833  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7834echo "${ECHO_T}$MAGIC_CMD" >&6
7835else
7836  echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
7838fi
7839
7840if test -z "$lt_cv_path_MAGIC_CMD"; then
7841  if test -n "$ac_tool_prefix"; then
7842    echo "$as_me:$LINENO: checking for file" >&5
7843echo $ECHO_N "checking for file... $ECHO_C" >&6
7844if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  case $MAGIC_CMD in
7848[\\/*] |  ?:[\\/]*)
7849  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7850  ;;
7851*)
7852  lt_save_MAGIC_CMD="$MAGIC_CMD"
7853  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7854  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7855  for ac_dir in $ac_dummy; do
7856    IFS="$lt_save_ifs"
7857    test -z "$ac_dir" && ac_dir=.
7858    if test -f $ac_dir/file; then
7859      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7860      if test -n "$file_magic_test_file"; then
7861	case $deplibs_check_method in
7862	"file_magic "*)
7863	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7864	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7866	    $EGREP "$file_magic_regex" > /dev/null; then
7867	    :
7868	  else
7869	    cat <<EOF 1>&2
7870
7871*** Warning: the command libtool uses to detect shared libraries,
7872*** $file_magic_cmd, produces output that libtool cannot recognize.
7873*** The result is that libtool may fail to recognize shared libraries
7874*** as such.  This will affect the creation of libtool libraries that
7875*** depend on shared libraries, but programs linked with such libtool
7876*** libraries will work regardless of this problem.  Nevertheless, you
7877*** may want to report the problem to your system manager and/or to
7878*** bug-libtool@gnu.org
7879
7880EOF
7881	  fi ;;
7882	esac
7883      fi
7884      break
7885    fi
7886  done
7887  IFS="$lt_save_ifs"
7888  MAGIC_CMD="$lt_save_MAGIC_CMD"
7889  ;;
7890esac
7891fi
7892
7893MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894if test -n "$MAGIC_CMD"; then
7895  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7896echo "${ECHO_T}$MAGIC_CMD" >&6
7897else
7898  echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902  else
7903    MAGIC_CMD=:
7904  fi
7905fi
7906
7907  fi
7908  ;;
7909esac
7910
7911enable_dlopen=no
7912enable_win32_dll=no
7913
7914# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7915if test "${enable_libtool_lock+set}" = set; then
7916  enableval="$enable_libtool_lock"
7917
7918fi;
7919test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7920
7921
7922# Check whether --with-pic or --without-pic was given.
7923if test "${with_pic+set}" = set; then
7924  withval="$with_pic"
7925  pic_mode="$withval"
7926else
7927  pic_mode=default
7928fi;
7929test -z "$pic_mode" && pic_mode=default
7930
7931# Use C for the default configuration in the libtool script
7932tagname=
7933lt_save_CC="$CC"
7934ac_ext=c
7935ac_cpp='$CPP $CPPFLAGS'
7936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941# Source file extension for C test sources.
7942ac_ext=c
7943
7944# Object file extension for compiled C test sources.
7945objext=o
7946objext=$objext
7947
7948# Code to be used in simple compile tests
7949lt_simple_compile_test_code="int some_variable = 0;\n"
7950
7951# Code to be used in simple link tests
7952lt_simple_link_test_code='int main(){return(0);}\n'
7953
7954
7955# If no C compiler was specified, use CC.
7956LTCC=${LTCC-"$CC"}
7957
7958# If no C compiler flags were specified, use CFLAGS.
7959LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7960
7961# Allow CC to be a program name with arguments.
7962compiler=$CC
7963
7964
7965# save warnings/boilerplate of simple test code
7966ac_outfile=conftest.$ac_objext
7967printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7968eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7969_lt_compiler_boilerplate=`cat conftest.err`
7970$rm conftest*
7971
7972ac_outfile=conftest.$ac_objext
7973printf "$lt_simple_link_test_code" >conftest.$ac_ext
7974eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975_lt_linker_boilerplate=`cat conftest.err`
7976$rm conftest*
7977
7978
7979## CAVEAT EMPTOR:
7980## There is no encapsulation within the following macros, do not change
7981## the running order or otherwise move them around unless you know exactly
7982## what you are doing...
7983
7984lt_prog_compiler_no_builtin_flag=
7985
7986if test "$GCC" = yes; then
7987  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7988
7989
7990echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7991echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7992if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  lt_cv_prog_compiler_rtti_exceptions=no
7996  ac_outfile=conftest.$ac_objext
7997   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7998   lt_compiler_flag="-fno-rtti -fno-exceptions"
7999   # Insert the option either (1) after the last *FLAGS variable, or
8000   # (2) before a word containing "conftest.", or (3) at the end.
8001   # Note that $ac_compile itself does not contain backslashes and begins
8002   # with a dollar sign (not a hyphen), so the echo should work correctly.
8003   # The option is referenced via a variable to avoid confusing sed.
8004   lt_compile=`echo "$ac_compile" | $SED \
8005   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007   -e 's:$: $lt_compiler_flag:'`
8008   (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
8009   (eval "$lt_compile" 2>conftest.err)
8010   ac_status=$?
8011   cat conftest.err >&5
8012   echo "$as_me:8012: \$? = $ac_status" >&5
8013   if (exit $ac_status) && test -s "$ac_outfile"; then
8014     # The compiler can only warn and ignore the option if not recognized
8015     # So say no if there are warnings other than the usual output.
8016     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8017     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8018     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8019       lt_cv_prog_compiler_rtti_exceptions=yes
8020     fi
8021   fi
8022   $rm conftest*
8023
8024fi
8025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8026echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8027
8028if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8029    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8030else
8031    :
8032fi
8033
8034fi
8035
8036lt_prog_compiler_wl=
8037lt_prog_compiler_pic=
8038lt_prog_compiler_static=
8039
8040echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8041echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8042
8043  if test "$GCC" = yes; then
8044    lt_prog_compiler_wl='-Wl,'
8045    lt_prog_compiler_static='-static'
8046
8047    case $host_os in
8048      aix*)
8049      # All AIX code is PIC.
8050      if test "$host_cpu" = ia64; then
8051	# AIX 5 now supports IA64 processor
8052	lt_prog_compiler_static='-Bstatic'
8053      fi
8054      ;;
8055
8056    amigaos*)
8057      # FIXME: we need at least 68020 code to build shared libraries, but
8058      # adding the `-m68020' flag to GCC prevents building anything better,
8059      # like `-m68040'.
8060      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8061      ;;
8062
8063    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8064      # PIC is the default for these OSes.
8065      ;;
8066
8067    mingw* | pw32* | os2*)
8068      # This hack is so that the source file can tell whether it is being
8069      # built for inclusion in a dll (and should export symbols for example).
8070      lt_prog_compiler_pic='-DDLL_EXPORT'
8071      ;;
8072
8073    darwin* | rhapsody*)
8074      # PIC is the default on this platform
8075      # Common symbols not allowed in MH_DYLIB files
8076      lt_prog_compiler_pic='-fno-common'
8077      ;;
8078
8079    interix3*)
8080      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8081      # Instead, we relocate shared libraries at runtime.
8082      ;;
8083
8084    msdosdjgpp*)
8085      # Just because we use GCC doesn't mean we suddenly get shared libraries
8086      # on systems that don't support them.
8087      lt_prog_compiler_can_build_shared=no
8088      enable_shared=no
8089      ;;
8090
8091    sysv4*MP*)
8092      if test -d /usr/nec; then
8093	lt_prog_compiler_pic=-Kconform_pic
8094      fi
8095      ;;
8096
8097    hpux*)
8098      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8099      # not for PA HP-UX.
8100      case $host_cpu in
8101      hppa*64*|ia64*)
8102	# +Z the default
8103	;;
8104      *)
8105	lt_prog_compiler_pic='-fPIC'
8106	;;
8107      esac
8108      ;;
8109
8110    *)
8111      lt_prog_compiler_pic='-fPIC'
8112      ;;
8113    esac
8114  else
8115    # PORTME Check for flag to pass linker flags through the system compiler.
8116    case $host_os in
8117    aix*)
8118      lt_prog_compiler_wl='-Wl,'
8119      if test "$host_cpu" = ia64; then
8120	# AIX 5 now supports IA64 processor
8121	lt_prog_compiler_static='-Bstatic'
8122      else
8123	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8124      fi
8125      ;;
8126      darwin*)
8127        # PIC is the default on this platform
8128        # Common symbols not allowed in MH_DYLIB files
8129       case $cc_basename in
8130         xlc*)
8131         lt_prog_compiler_pic='-qnocommon'
8132         lt_prog_compiler_wl='-Wl,'
8133         ;;
8134       esac
8135       ;;
8136
8137    mingw* | pw32* | os2*)
8138      # This hack is so that the source file can tell whether it is being
8139      # built for inclusion in a dll (and should export symbols for example).
8140      lt_prog_compiler_pic='-DDLL_EXPORT'
8141      ;;
8142
8143    hpux9* | hpux10* | hpux11*)
8144      lt_prog_compiler_wl='-Wl,'
8145      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8146      # not for PA HP-UX.
8147      case $host_cpu in
8148      hppa*64*|ia64*)
8149	# +Z the default
8150	;;
8151      *)
8152	lt_prog_compiler_pic='+Z'
8153	;;
8154      esac
8155      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8156      lt_prog_compiler_static='${wl}-a ${wl}archive'
8157      ;;
8158
8159    irix5* | irix6* | nonstopux*)
8160      lt_prog_compiler_wl='-Wl,'
8161      # PIC (with -KPIC) is the default.
8162      lt_prog_compiler_static='-non_shared'
8163      ;;
8164
8165    newsos6)
8166      lt_prog_compiler_pic='-KPIC'
8167      lt_prog_compiler_static='-Bstatic'
8168      ;;
8169
8170    linux*)
8171      case $cc_basename in
8172      icc* | ecc*)
8173	lt_prog_compiler_wl='-Wl,'
8174	lt_prog_compiler_pic='-KPIC'
8175	lt_prog_compiler_static='-static'
8176        ;;
8177      pgcc* | pgf77* | pgf90* | pgf95*)
8178        # Portland Group compilers (*not* the Pentium gcc compiler,
8179	# which looks to be a dead project)
8180	lt_prog_compiler_wl='-Wl,'
8181	lt_prog_compiler_pic='-fpic'
8182	lt_prog_compiler_static='-Bstatic'
8183        ;;
8184      ccc*)
8185        lt_prog_compiler_wl='-Wl,'
8186        # All Alpha code is PIC.
8187        lt_prog_compiler_static='-non_shared'
8188        ;;
8189      esac
8190      ;;
8191
8192    osf3* | osf4* | osf5*)
8193      lt_prog_compiler_wl='-Wl,'
8194      # All OSF/1 code is PIC.
8195      lt_prog_compiler_static='-non_shared'
8196      ;;
8197
8198    solaris*)
8199      lt_prog_compiler_pic='-KPIC'
8200      lt_prog_compiler_static='-Bstatic'
8201      case $cc_basename in
8202      f77* | f90* | f95*)
8203	lt_prog_compiler_wl='-Qoption ld ';;
8204      *)
8205	lt_prog_compiler_wl='-Wl,';;
8206      esac
8207      ;;
8208
8209    sunos4*)
8210      lt_prog_compiler_wl='-Qoption ld '
8211      lt_prog_compiler_pic='-PIC'
8212      lt_prog_compiler_static='-Bstatic'
8213      ;;
8214
8215    sysv4 | sysv4.2uw2* | sysv4.3*)
8216      lt_prog_compiler_wl='-Wl,'
8217      lt_prog_compiler_pic='-KPIC'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    sysv4*MP*)
8222      if test -d /usr/nec ;then
8223	lt_prog_compiler_pic='-Kconform_pic'
8224	lt_prog_compiler_static='-Bstatic'
8225      fi
8226      ;;
8227
8228    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8229      lt_prog_compiler_wl='-Wl,'
8230      lt_prog_compiler_pic='-KPIC'
8231      lt_prog_compiler_static='-Bstatic'
8232      ;;
8233
8234    unicos*)
8235      lt_prog_compiler_wl='-Wl,'
8236      lt_prog_compiler_can_build_shared=no
8237      ;;
8238
8239    uts4*)
8240      lt_prog_compiler_pic='-pic'
8241      lt_prog_compiler_static='-Bstatic'
8242      ;;
8243
8244    *)
8245      lt_prog_compiler_can_build_shared=no
8246      ;;
8247    esac
8248  fi
8249
8250echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8251echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8252
8253#
8254# Check to make sure the PIC flag actually works.
8255#
8256if test -n "$lt_prog_compiler_pic"; then
8257
8258echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8259echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8260if test "${lt_prog_compiler_pic_works+set}" = set; then
8261  echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263  lt_prog_compiler_pic_works=no
8264  ac_outfile=conftest.$ac_objext
8265   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8266   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8267   # Insert the option either (1) after the last *FLAGS variable, or
8268   # (2) before a word containing "conftest.", or (3) at the end.
8269   # Note that $ac_compile itself does not contain backslashes and begins
8270   # with a dollar sign (not a hyphen), so the echo should work correctly.
8271   # The option is referenced via a variable to avoid confusing sed.
8272   lt_compile=`echo "$ac_compile" | $SED \
8273   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275   -e 's:$: $lt_compiler_flag:'`
8276   (eval echo "\"\$as_me:8276: $lt_compile\"" >&5)
8277   (eval "$lt_compile" 2>conftest.err)
8278   ac_status=$?
8279   cat conftest.err >&5
8280   echo "$as_me:8280: \$? = $ac_status" >&5
8281   if (exit $ac_status) && test -s "$ac_outfile"; then
8282     # The compiler can only warn and ignore the option if not recognized
8283     # So say no if there are warnings other than the usual output.
8284     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8285     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8287       lt_prog_compiler_pic_works=yes
8288     fi
8289   fi
8290   $rm conftest*
8291
8292fi
8293echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8294echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8295
8296if test x"$lt_prog_compiler_pic_works" = xyes; then
8297    case $lt_prog_compiler_pic in
8298     "" | " "*) ;;
8299     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8300     esac
8301else
8302    lt_prog_compiler_pic=
8303     lt_prog_compiler_can_build_shared=no
8304fi
8305
8306fi
8307case $host_os in
8308  # For platforms which do not support PIC, -DPIC is meaningless:
8309  *djgpp*)
8310    lt_prog_compiler_pic=
8311    ;;
8312  *)
8313    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8314    ;;
8315esac
8316
8317#
8318# Check to make sure the static flag actually works.
8319#
8320wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8321echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8322echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8323if test "${lt_prog_compiler_static_works+set}" = set; then
8324  echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326  lt_prog_compiler_static_works=no
8327   save_LDFLAGS="$LDFLAGS"
8328   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8329   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8331     # The linker can only warn and ignore the option if not recognized
8332     # So say no if there are warnings
8333     if test -s conftest.err; then
8334       # Append any errors to the config.log.
8335       cat conftest.err 1>&5
8336       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338       if diff conftest.exp conftest.er2 >/dev/null; then
8339         lt_prog_compiler_static_works=yes
8340       fi
8341     else
8342       lt_prog_compiler_static_works=yes
8343     fi
8344   fi
8345   $rm conftest*
8346   LDFLAGS="$save_LDFLAGS"
8347
8348fi
8349echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8350echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8351
8352if test x"$lt_prog_compiler_static_works" = xyes; then
8353    :
8354else
8355    lt_prog_compiler_static=
8356fi
8357
8358
8359echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8360echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8361if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8362  echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364  lt_cv_prog_compiler_c_o=no
8365   $rm -r conftest 2>/dev/null
8366   mkdir conftest
8367   cd conftest
8368   mkdir out
8369   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8370
8371   lt_compiler_flag="-o out/conftest2.$ac_objext"
8372   # Insert the option either (1) after the last *FLAGS variable, or
8373   # (2) before a word containing "conftest.", or (3) at the end.
8374   # Note that $ac_compile itself does not contain backslashes and begins
8375   # with a dollar sign (not a hyphen), so the echo should work correctly.
8376   lt_compile=`echo "$ac_compile" | $SED \
8377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8379   -e 's:$: $lt_compiler_flag:'`
8380   (eval echo "\"\$as_me:8380: $lt_compile\"" >&5)
8381   (eval "$lt_compile" 2>out/conftest.err)
8382   ac_status=$?
8383   cat out/conftest.err >&5
8384   echo "$as_me:8384: \$? = $ac_status" >&5
8385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8386   then
8387     # The compiler can only warn and ignore the option if not recognized
8388     # So say no if there are warnings
8389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8390     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8391     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8392       lt_cv_prog_compiler_c_o=yes
8393     fi
8394   fi
8395   chmod u+w . 2>&5
8396   $rm conftest*
8397   # SGI C++ compiler will create directory out/ii_files/ for
8398   # template instantiation
8399   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8400   $rm out/* && rmdir out
8401   cd ..
8402   rmdir conftest
8403   $rm conftest*
8404
8405fi
8406echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8407echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8408
8409
8410hard_links="nottested"
8411if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8412  # do not overwrite the value of need_locks provided by the user
8413  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8414echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8415  hard_links=yes
8416  $rm conftest*
8417  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8418  touch conftest.a
8419  ln conftest.a conftest.b 2>&5 || hard_links=no
8420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8421  echo "$as_me:$LINENO: result: $hard_links" >&5
8422echo "${ECHO_T}$hard_links" >&6
8423  if test "$hard_links" = no; then
8424    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8425echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8426    need_locks=warn
8427  fi
8428else
8429  need_locks=no
8430fi
8431
8432echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8433echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8434
8435  runpath_var=
8436  allow_undefined_flag=
8437  enable_shared_with_static_runtimes=no
8438  archive_cmds=
8439  archive_expsym_cmds=
8440  old_archive_From_new_cmds=
8441  old_archive_from_expsyms_cmds=
8442  export_dynamic_flag_spec=
8443  whole_archive_flag_spec=
8444  thread_safe_flag_spec=
8445  hardcode_libdir_flag_spec=
8446  hardcode_libdir_flag_spec_ld=
8447  hardcode_libdir_separator=
8448  hardcode_direct=no
8449  hardcode_minus_L=no
8450  hardcode_shlibpath_var=unsupported
8451  link_all_deplibs=unknown
8452  hardcode_automatic=no
8453  module_cmds=
8454  module_expsym_cmds=
8455  always_export_symbols=no
8456  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8457  # include_expsyms should be a list of space-separated symbols to be *always*
8458  # included in the symbol list
8459  include_expsyms=
8460  # exclude_expsyms can be an extended regexp of symbols to exclude
8461  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8462  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8463  # as well as any symbol that contains `d'.
8464  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8465  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8466  # platforms (ab)use it in PIC code, but their linkers get confused if
8467  # the symbol is explicitly referenced.  Since portable code cannot
8468  # rely on this symbol name, it's probably fine to never include it in
8469  # preloaded symbol tables.
8470  extract_expsyms_cmds=
8471  # Just being paranoid about ensuring that cc_basename is set.
8472  for cc_temp in $compiler""; do
8473  case $cc_temp in
8474    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8475    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8476    \-*) ;;
8477    *) break;;
8478  esac
8479done
8480cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8481
8482  case $host_os in
8483  cygwin* | mingw* | pw32*)
8484    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8485    # When not using gcc, we currently assume that we are using
8486    # Microsoft Visual C++.
8487    if test "$GCC" != yes; then
8488      with_gnu_ld=no
8489    fi
8490    ;;
8491  interix*)
8492    # we just hope/assume this is gcc and not c89 (= MSVC++)
8493    with_gnu_ld=yes
8494    ;;
8495  openbsd*)
8496    with_gnu_ld=no
8497    ;;
8498  esac
8499
8500  ld_shlibs=yes
8501  if test "$with_gnu_ld" = yes; then
8502    # If archive_cmds runs LD, not CC, wlarc should be empty
8503    wlarc='${wl}'
8504
8505    # Set some defaults for GNU ld with shared library support. These
8506    # are reset later if shared libraries are not supported. Putting them
8507    # here allows them to be overridden if necessary.
8508    runpath_var=LD_RUN_PATH
8509    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8510    export_dynamic_flag_spec='${wl}--export-dynamic'
8511    # ancient GNU ld didn't support --whole-archive et. al.
8512    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8513	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8514      else
8515  	whole_archive_flag_spec=
8516    fi
8517    supports_anon_versioning=no
8518    case `$LD -v 2>/dev/null` in
8519      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8520      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8521      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8522      *\ 2.11.*) ;; # other 2.11 versions
8523      *) supports_anon_versioning=yes ;;
8524    esac
8525
8526    # See if GNU ld supports shared libraries.
8527    case $host_os in
8528    aix3* | aix4* | aix5*)
8529      # On AIX/PPC, the GNU linker is very broken
8530      if test "$host_cpu" != ia64; then
8531	ld_shlibs=no
8532	cat <<EOF 1>&2
8533
8534*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8535*** to be unable to reliably create shared libraries on AIX.
8536*** Therefore, libtool is disabling shared libraries support.  If you
8537*** really care for shared libraries, you may want to modify your PATH
8538*** so that a non-GNU linker is found, and then restart.
8539
8540EOF
8541      fi
8542      ;;
8543
8544    amigaos*)
8545      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)'
8546      hardcode_libdir_flag_spec='-L$libdir'
8547      hardcode_minus_L=yes
8548
8549      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8550      # that the semantics of dynamic libraries on AmigaOS, at least up
8551      # to version 4, is to share data among multiple programs linked
8552      # with the same dynamic library.  Since this doesn't match the
8553      # behavior of shared libraries on other platforms, we can't use
8554      # them.
8555      ld_shlibs=no
8556      ;;
8557
8558    beos*)
8559      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8560	allow_undefined_flag=unsupported
8561	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8562	# support --undefined.  This deserves some investigation.  FIXME
8563	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564      else
8565	ld_shlibs=no
8566      fi
8567      ;;
8568
8569    cygwin* | mingw* | pw32*)
8570      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8571      # as there is no search path for DLLs.
8572      hardcode_libdir_flag_spec='-L$libdir'
8573      allow_undefined_flag=unsupported
8574      always_export_symbols=no
8575      enable_shared_with_static_runtimes=yes
8576      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8577
8578      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8579        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8580	# If the export-symbols file already is a .def file (1st line
8581	# is EXPORTS), use it as is; otherwise, prepend...
8582	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8583	  cp $export_symbols $output_objdir/$soname.def;
8584	else
8585	  echo EXPORTS > $output_objdir/$soname.def;
8586	  cat $export_symbols >> $output_objdir/$soname.def;
8587	fi~
8588	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589      else
8590	ld_shlibs=no
8591      fi
8592      ;;
8593
8594    interix3*)
8595      hardcode_direct=no
8596      hardcode_shlibpath_var=no
8597      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8598      export_dynamic_flag_spec='${wl}-E'
8599      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8600      # Instead, shared libraries are loaded at an image base (0x10000000 by
8601      # default) and relocated if they conflict, which is a slow very memory
8602      # consuming and fragmenting process.  To avoid this, we pick a random,
8603      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8604      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8605      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8606      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'
8607      ;;
8608
8609    linux*)
8610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8611	tmp_addflag=
8612	case $cc_basename,$host_cpu in
8613	pgcc*)				# Portland Group C compiler
8614	  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'
8615	  tmp_addflag=' $pic_flag'
8616	  ;;
8617	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8618	  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'
8619	  tmp_addflag=' $pic_flag -Mnomain' ;;
8620	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8621	  tmp_addflag=' -i_dynamic' ;;
8622	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8623	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8624	ifc* | ifort*)			# Intel Fortran compiler
8625	  tmp_addflag=' -nofor_main' ;;
8626	esac
8627	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628
8629	if test $supports_anon_versioning = yes; then
8630	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8631  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632  $echo "local: *; };" >> $output_objdir/$libname.ver~
8633	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8634	fi
8635      else
8636	ld_shlibs=no
8637      fi
8638      ;;
8639
8640    netbsd*)
8641      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8642	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8643	wlarc=
8644      else
8645	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8647      fi
8648      ;;
8649
8650    solaris*)
8651      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8652	ld_shlibs=no
8653	cat <<EOF 1>&2
8654
8655*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8656*** create shared libraries on Solaris systems.  Therefore, libtool
8657*** is disabling shared libraries support.  We urge you to upgrade GNU
8658*** binutils to release 2.9.1 or newer.  Another option is to modify
8659*** your PATH or compiler configuration so that the native linker is
8660*** used, and then restart.
8661
8662EOF
8663      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8664	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666      else
8667	ld_shlibs=no
8668      fi
8669      ;;
8670
8671    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8672      case `$LD -v 2>&1` in
8673        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8674	ld_shlibs=no
8675	cat <<_LT_EOF 1>&2
8676
8677*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8678*** reliably create shared libraries on SCO systems.  Therefore, libtool
8679*** is disabling shared libraries support.  We urge you to upgrade GNU
8680*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8681*** your PATH or compiler configuration so that the native linker is
8682*** used, and then restart.
8683
8684_LT_EOF
8685	;;
8686	*)
8687	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8688	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8689	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8690	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8691	  else
8692	    ld_shlibs=no
8693	  fi
8694	;;
8695      esac
8696      ;;
8697
8698    sunos4*)
8699      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700      wlarc=
8701      hardcode_direct=yes
8702      hardcode_shlibpath_var=no
8703      ;;
8704
8705    *)
8706      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8707	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709      else
8710	ld_shlibs=no
8711      fi
8712      ;;
8713    esac
8714
8715    if test "$ld_shlibs" = no; then
8716      runpath_var=
8717      hardcode_libdir_flag_spec=
8718      export_dynamic_flag_spec=
8719      whole_archive_flag_spec=
8720    fi
8721  else
8722    # PORTME fill in a description of your system's linker (not GNU ld)
8723    case $host_os in
8724    aix3*)
8725      allow_undefined_flag=unsupported
8726      always_export_symbols=yes
8727      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'
8728      # Note: this linker hardcodes the directories in LIBPATH if there
8729      # are no directories specified by -L.
8730      hardcode_minus_L=yes
8731      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8732	# Neither direct hardcoding nor static linking is supported with a
8733	# broken collect2.
8734	hardcode_direct=unsupported
8735      fi
8736      ;;
8737
8738    aix4* | aix5*)
8739      if test "$host_cpu" = ia64; then
8740	# On IA64, the linker does run time linking by default, so we don't
8741	# have to do anything special.
8742	aix_use_runtimelinking=no
8743	exp_sym_flag='-Bexport'
8744	no_entry_flag=""
8745      else
8746	# If we're using GNU nm, then we don't want the "-C" option.
8747	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8748	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8749	  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'
8750	else
8751	  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'
8752	fi
8753	aix_use_runtimelinking=no
8754
8755	# Test if we are trying to use run time linking or normal
8756	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8757	# need to do runtime linking.
8758	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8759	  for ld_flag in $LDFLAGS; do
8760  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8761  	    aix_use_runtimelinking=yes
8762  	    break
8763  	  fi
8764	  done
8765	  ;;
8766	esac
8767
8768	exp_sym_flag='-bexport'
8769	no_entry_flag='-bnoentry'
8770      fi
8771
8772      # When large executables or shared objects are built, AIX ld can
8773      # have problems creating the table of contents.  If linking a library
8774      # or program results in "error TOC overflow" add -mminimal-toc to
8775      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8776      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8777
8778      archive_cmds=''
8779      hardcode_direct=yes
8780      hardcode_libdir_separator=':'
8781      link_all_deplibs=yes
8782
8783      if test "$GCC" = yes; then
8784	case $host_os in aix4.[012]|aix4.[012].*)
8785	# We only want to do this on AIX 4.2 and lower, the check
8786	# below for broken collect2 doesn't work under 4.3+
8787	  collect2name=`${CC} -print-prog-name=collect2`
8788	  if test -f "$collect2name" && \
8789  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8790	  then
8791  	  # We have reworked collect2
8792  	  hardcode_direct=yes
8793	  else
8794  	  # We have old collect2
8795  	  hardcode_direct=unsupported
8796  	  # It fails to find uninstalled libraries when the uninstalled
8797  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8798  	  # to unsupported forces relinking
8799  	  hardcode_minus_L=yes
8800  	  hardcode_libdir_flag_spec='-L$libdir'
8801  	  hardcode_libdir_separator=
8802	  fi
8803	  ;;
8804	esac
8805	shared_flag='-shared'
8806	if test "$aix_use_runtimelinking" = yes; then
8807	  shared_flag="$shared_flag "'${wl}-G'
8808	fi
8809      else
8810	# not using gcc
8811	if test "$host_cpu" = ia64; then
8812  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8813  	# chokes on -Wl,-G. The following line is correct:
8814	  shared_flag='-G'
8815	else
8816	  if test "$aix_use_runtimelinking" = yes; then
8817	    shared_flag='${wl}-G'
8818	  else
8819	    shared_flag='${wl}-bM:SRE'
8820	  fi
8821	fi
8822      fi
8823
8824      # It seems that -bexpall does not export symbols beginning with
8825      # underscore (_), so it is better to generate a list of symbols to export.
8826      always_export_symbols=yes
8827      if test "$aix_use_runtimelinking" = yes; then
8828	# Warning - without using the other runtime loading flags (-brtl),
8829	# -berok will link without error, but may produce a broken library.
8830	allow_undefined_flag='-berok'
8831       # Determine the default libpath from the value encoded in an empty executable.
8832       cat >conftest.$ac_ext <<_ACEOF
8833/* confdefs.h.  */
8834_ACEOF
8835cat confdefs.h >>conftest.$ac_ext
8836cat >>conftest.$ac_ext <<_ACEOF
8837/* end confdefs.h.  */
8838
8839int
8840main ()
8841{
8842
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext conftest$ac_exeext
8848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849  (eval $ac_link) 2>conftest.er1
8850  ac_status=$?
8851  grep -v '^ *+' conftest.er1 >conftest.err
8852  rm -f conftest.er1
8853  cat conftest.err >&5
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); } &&
8856	 { ac_try='test -z "$ac_c_werror_flag"
8857			 || test ! -s conftest.err'
8858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859  (eval $ac_try) 2>&5
8860  ac_status=$?
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); }; } &&
8863	 { ac_try='test -s conftest$ac_exeext'
8864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865  (eval $ac_try) 2>&5
8866  ac_status=$?
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); }; }; then
8869
8870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8871}'`
8872# Check for a 64-bit object if we didn't find anything.
8873if 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; }
8874}'`; fi
8875else
8876  echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879fi
8880rm -f conftest.err conftest.$ac_objext \
8881      conftest$ac_exeext conftest.$ac_ext
8882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8883
8884       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8885	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"
8886       else
8887	if test "$host_cpu" = ia64; then
8888	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8889	  allow_undefined_flag="-z nodefs"
8890	  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"
8891	else
8892	 # Determine the default libpath from the value encoded in an empty executable.
8893	 cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h.  */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h.  */
8899
8900int
8901main ()
8902{
8903
8904  ;
8905  return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext conftest$ac_exeext
8909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910  (eval $ac_link) 2>conftest.er1
8911  ac_status=$?
8912  grep -v '^ *+' conftest.er1 >conftest.err
8913  rm -f conftest.er1
8914  cat conftest.err >&5
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); } &&
8917	 { ac_try='test -z "$ac_c_werror_flag"
8918			 || test ! -s conftest.err'
8919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920  (eval $ac_try) 2>&5
8921  ac_status=$?
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); }; } &&
8924	 { ac_try='test -s conftest$ac_exeext'
8925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926  (eval $ac_try) 2>&5
8927  ac_status=$?
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); }; }; then
8930
8931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8932}'`
8933# Check for a 64-bit object if we didn't find anything.
8934if 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; }
8935}'`; fi
8936else
8937  echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940fi
8941rm -f conftest.err conftest.$ac_objext \
8942      conftest$ac_exeext conftest.$ac_ext
8943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946	  # Warning - without using the other run time loading flags,
8947	  # -berok will link without error, but may produce a broken library.
8948	  no_undefined_flag=' ${wl}-bernotok'
8949	  allow_undefined_flag=' ${wl}-berok'
8950	  # Exported symbols can be pulled into shared objects from archives
8951	  whole_archive_flag_spec='$convenience'
8952	  archive_cmds_need_lc=yes
8953	  # This is similar to how AIX traditionally builds its shared libraries.
8954	  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'
8955	fi
8956      fi
8957      ;;
8958
8959    amigaos*)
8960      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)'
8961      hardcode_libdir_flag_spec='-L$libdir'
8962      hardcode_minus_L=yes
8963      # see comment about different semantics on the GNU ld section
8964      ld_shlibs=no
8965      ;;
8966
8967    bsdi[45]*)
8968      export_dynamic_flag_spec=-rdynamic
8969      ;;
8970
8971    cygwin* | mingw* | pw32*)
8972      # When not using gcc, we currently assume that we are using
8973      # Microsoft Visual C++.
8974      # hardcode_libdir_flag_spec is actually meaningless, as there is
8975      # no search path for DLLs.
8976      hardcode_libdir_flag_spec=' '
8977      allow_undefined_flag=unsupported
8978      # Tell ltmain to make .lib files, not .a files.
8979      libext=lib
8980      # Tell ltmain to make .dll files, not .so files.
8981      shrext_cmds=".dll"
8982      # FIXME: Setting linknames here is a bad hack.
8983      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8984      # The linker will automatically build a .lib file if we build a DLL.
8985      old_archive_From_new_cmds='true'
8986      # FIXME: Should let the user specify the lib program.
8987      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8988      fix_srcfile_path='`cygpath -w "$srcfile"`'
8989      enable_shared_with_static_runtimes=yes
8990      ;;
8991
8992    darwin* | rhapsody*)
8993      case $host_os in
8994        rhapsody* | darwin1.[012])
8995         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8996         ;;
8997       *) # Darwin 1.3 on
8998         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8999           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9000         else
9001           case ${MACOSX_DEPLOYMENT_TARGET} in
9002             10.[012])
9003               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9004               ;;
9005             10.*)
9006               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9007               ;;
9008           esac
9009         fi
9010         ;;
9011      esac
9012      archive_cmds_need_lc=no
9013      hardcode_direct=no
9014      hardcode_automatic=yes
9015      hardcode_shlibpath_var=unsupported
9016      whole_archive_flag_spec=''
9017      link_all_deplibs=yes
9018    if test "$GCC" = yes ; then
9019    	output_verbose_link_cmd='echo'
9020        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9021      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9022      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9023      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}'
9024      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}'
9025    else
9026      case $cc_basename in
9027        xlc*)
9028         output_verbose_link_cmd='echo'
9029         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9030         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9031          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9032         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}'
9033          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}'
9034          ;;
9035       *)
9036         ld_shlibs=no
9037          ;;
9038      esac
9039    fi
9040      ;;
9041
9042    dgux*)
9043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044      hardcode_libdir_flag_spec='-L$libdir'
9045      hardcode_shlibpath_var=no
9046      ;;
9047
9048    freebsd1*)
9049      ld_shlibs=no
9050      ;;
9051
9052    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9053    # support.  Future versions do this automatically, but an explicit c++rt0.o
9054    # does not break anything, and helps significantly (at the cost of a little
9055    # extra space).
9056    freebsd2.2*)
9057      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9058      hardcode_libdir_flag_spec='-R$libdir'
9059      hardcode_direct=yes
9060      hardcode_shlibpath_var=no
9061      ;;
9062
9063    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9064    freebsd2*)
9065      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066      hardcode_direct=yes
9067      hardcode_minus_L=yes
9068      hardcode_shlibpath_var=no
9069      ;;
9070
9071    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9072    freebsd* | kfreebsd*-gnu | dragonfly*)
9073      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9074      hardcode_libdir_flag_spec='-R$libdir'
9075      hardcode_direct=yes
9076      hardcode_shlibpath_var=no
9077      ;;
9078
9079    hpux9*)
9080      if test "$GCC" = yes; then
9081	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'
9082      else
9083	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'
9084      fi
9085      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086      hardcode_libdir_separator=:
9087      hardcode_direct=yes
9088
9089      # hardcode_minus_L: Not really in the search PATH,
9090      # but as the default location of the library.
9091      hardcode_minus_L=yes
9092      export_dynamic_flag_spec='${wl}-E'
9093      ;;
9094
9095    hpux10*)
9096      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9097	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9098      else
9099	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9100      fi
9101      if test "$with_gnu_ld" = no; then
9102	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103	hardcode_libdir_separator=:
9104
9105	hardcode_direct=yes
9106	export_dynamic_flag_spec='${wl}-E'
9107
9108	# hardcode_minus_L: Not really in the search PATH,
9109	# but as the default location of the library.
9110	hardcode_minus_L=yes
9111      fi
9112      ;;
9113
9114    hpux11*)
9115      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9116	case $host_cpu in
9117	hppa*64*)
9118	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119	  ;;
9120	ia64*)
9121	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122	  ;;
9123	*)
9124	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9125	  ;;
9126	esac
9127      else
9128	case $host_cpu in
9129	hppa*64*)
9130	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9131	  ;;
9132	ia64*)
9133	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9134	  ;;
9135	*)
9136	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137	  ;;
9138	esac
9139      fi
9140      if test "$with_gnu_ld" = no; then
9141	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142	hardcode_libdir_separator=:
9143
9144	case $host_cpu in
9145	hppa*64*|ia64*)
9146	  hardcode_libdir_flag_spec_ld='+b $libdir'
9147	  hardcode_direct=no
9148	  hardcode_shlibpath_var=no
9149	  ;;
9150	*)
9151	  hardcode_direct=yes
9152	  export_dynamic_flag_spec='${wl}-E'
9153
9154	  # hardcode_minus_L: Not really in the search PATH,
9155	  # but as the default location of the library.
9156	  hardcode_minus_L=yes
9157	  ;;
9158	esac
9159      fi
9160      ;;
9161
9162    irix5* | irix6* | nonstopux*)
9163      if test "$GCC" = yes; then
9164	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'
9165      else
9166	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'
9167	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9168      fi
9169      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9170      hardcode_libdir_separator=:
9171      link_all_deplibs=yes
9172      ;;
9173
9174    netbsd*)
9175      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9176	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9177      else
9178	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9179      fi
9180      hardcode_libdir_flag_spec='-R$libdir'
9181      hardcode_direct=yes
9182      hardcode_shlibpath_var=no
9183      ;;
9184
9185    newsos6)
9186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187      hardcode_direct=yes
9188      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189      hardcode_libdir_separator=:
9190      hardcode_shlibpath_var=no
9191      ;;
9192
9193    openbsd*)
9194      hardcode_direct=yes
9195      hardcode_shlibpath_var=no
9196      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9198	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9199	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200	export_dynamic_flag_spec='${wl}-E'
9201      else
9202       case $host_os in
9203	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9204	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9205	   hardcode_libdir_flag_spec='-R$libdir'
9206	   ;;
9207	 *)
9208	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9209	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9210	   ;;
9211       esac
9212      fi
9213      ;;
9214
9215    os2*)
9216      hardcode_libdir_flag_spec='-L$libdir'
9217      hardcode_minus_L=yes
9218      allow_undefined_flag=unsupported
9219      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'
9220      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9221      ;;
9222
9223    osf3*)
9224      if test "$GCC" = yes; then
9225	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9226	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'
9227      else
9228	allow_undefined_flag=' -expect_unresolved \*'
9229	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'
9230      fi
9231      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232      hardcode_libdir_separator=:
9233      ;;
9234
9235    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9236      if test "$GCC" = yes; then
9237	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9238	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'
9239	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240      else
9241	allow_undefined_flag=' -expect_unresolved \*'
9242	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'
9243	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9244	$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'
9245
9246	# Both c and cxx compiler support -rpath directly
9247	hardcode_libdir_flag_spec='-rpath $libdir'
9248      fi
9249      hardcode_libdir_separator=:
9250      ;;
9251
9252    solaris*)
9253      no_undefined_flag=' -z text'
9254      if test "$GCC" = yes; then
9255	wlarc='${wl}'
9256	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9257	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9258	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9259      else
9260	wlarc=''
9261	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9263  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9264      fi
9265      hardcode_libdir_flag_spec='-R$libdir'
9266      hardcode_shlibpath_var=no
9267      case $host_os in
9268      solaris2.[0-5] | solaris2.[0-5].*) ;;
9269      *)
9270 	# The compiler driver will combine linker options so we
9271 	# cannot just pass the convience library names through
9272 	# without $wl, iff we do not link with $LD.
9273 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9274 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9275 	case $wlarc in
9276 	'')
9277 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9278 	*)
9279 	  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' ;;
9280 	esac ;;
9281      esac
9282      link_all_deplibs=yes
9283      ;;
9284
9285    sunos4*)
9286      if test "x$host_vendor" = xsequent; then
9287	# Use $CC to link under sequent, because it throws in some extra .o
9288	# files that make .init and .fini sections work.
9289	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9290      else
9291	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9292      fi
9293      hardcode_libdir_flag_spec='-L$libdir'
9294      hardcode_direct=yes
9295      hardcode_minus_L=yes
9296      hardcode_shlibpath_var=no
9297      ;;
9298
9299    sysv4)
9300      case $host_vendor in
9301	sni)
9302	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303	  hardcode_direct=yes # is this really true???
9304	;;
9305	siemens)
9306	  ## LD is ld it makes a PLAMLIB
9307	  ## CC just makes a GrossModule.
9308	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9309	  reload_cmds='$CC -r -o $output$reload_objs'
9310	  hardcode_direct=no
9311        ;;
9312	motorola)
9313	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9315	;;
9316      esac
9317      runpath_var='LD_RUN_PATH'
9318      hardcode_shlibpath_var=no
9319      ;;
9320
9321    sysv4.3*)
9322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323      hardcode_shlibpath_var=no
9324      export_dynamic_flag_spec='-Bexport'
9325      ;;
9326
9327    sysv4*MP*)
9328      if test -d /usr/nec; then
9329	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330	hardcode_shlibpath_var=no
9331	runpath_var=LD_RUN_PATH
9332	hardcode_runpath_var=yes
9333	ld_shlibs=yes
9334      fi
9335      ;;
9336
9337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9338      no_undefined_flag='${wl}-z,text'
9339      archive_cmds_need_lc=no
9340      hardcode_shlibpath_var=no
9341      runpath_var='LD_RUN_PATH'
9342
9343      if test "$GCC" = yes; then
9344	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9345	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9346      else
9347	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349      fi
9350      ;;
9351
9352    sysv5* | sco3.2v5* | sco5v6*)
9353      # Note: We can NOT use -z defs as we might desire, because we do not
9354      # link with -lc, and that would cause any symbols used from libc to
9355      # always be unresolved, which means just about no library would
9356      # ever link correctly.  If we're not using GNU ld we use -z text
9357      # though, which does catch some bad symbols but isn't as heavy-handed
9358      # as -z defs.
9359      no_undefined_flag='${wl}-z,text'
9360      allow_undefined_flag='${wl}-z,nodefs'
9361      archive_cmds_need_lc=no
9362      hardcode_shlibpath_var=no
9363      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9364      hardcode_libdir_separator=':'
9365      link_all_deplibs=yes
9366      export_dynamic_flag_spec='${wl}-Bexport'
9367      runpath_var='LD_RUN_PATH'
9368
9369      if test "$GCC" = yes; then
9370	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372      else
9373	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9374	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375      fi
9376      ;;
9377
9378    uts4*)
9379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380      hardcode_libdir_flag_spec='-L$libdir'
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    *)
9385      ld_shlibs=no
9386      ;;
9387    esac
9388  fi
9389
9390echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9391echo "${ECHO_T}$ld_shlibs" >&6
9392test "$ld_shlibs" = no && can_build_shared=no
9393
9394#
9395# Do we need to explicitly link libc?
9396#
9397case "x$archive_cmds_need_lc" in
9398x|xyes)
9399  # Assume -lc should be added
9400  archive_cmds_need_lc=yes
9401
9402  if test "$enable_shared" = yes && test "$GCC" = yes; then
9403    case $archive_cmds in
9404    *'~'*)
9405      # FIXME: we may have to deal with multi-command sequences.
9406      ;;
9407    '$CC '*)
9408      # Test whether the compiler implicitly links with -lc since on some
9409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9410      # to ld, don't add -lc before -lgcc.
9411      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9413      $rm conftest*
9414      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9415
9416      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417  (eval $ac_compile) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); } 2>conftest.err; then
9421        soname=conftest
9422        lib=conftest
9423        libobjs=conftest.$ac_objext
9424        deplibs=
9425        wl=$lt_prog_compiler_wl
9426	pic_flag=$lt_prog_compiler_pic
9427        compiler_flags=-v
9428        linker_flags=-v
9429        verstring=
9430        output_objdir=.
9431        libname=conftest
9432        lt_save_allow_undefined_flag=$allow_undefined_flag
9433        allow_undefined_flag=
9434        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9435  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9436  ac_status=$?
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); }
9439        then
9440	  archive_cmds_need_lc=no
9441        else
9442	  archive_cmds_need_lc=yes
9443        fi
9444        allow_undefined_flag=$lt_save_allow_undefined_flag
9445      else
9446        cat conftest.err 1>&5
9447      fi
9448      $rm conftest*
9449      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9450echo "${ECHO_T}$archive_cmds_need_lc" >&6
9451      ;;
9452    esac
9453  fi
9454  ;;
9455esac
9456
9457echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9459library_names_spec=
9460libname_spec='lib$name'
9461soname_spec=
9462shrext_cmds=".so"
9463postinstall_cmds=
9464postuninstall_cmds=
9465finish_cmds=
9466finish_eval=
9467shlibpath_var=
9468shlibpath_overrides_runpath=unknown
9469version_type=none
9470dynamic_linker="$host_os ld.so"
9471sys_lib_dlsearch_path_spec="/lib /usr/lib"
9472if test "$GCC" = yes; then
9473  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9474  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9475    # if the path contains ";" then we assume it to be the separator
9476    # otherwise default to the standard path separator (i.e. ":") - it is
9477    # assumed that no part of a normal pathname contains ";" but that should
9478    # okay in the real world where ";" in dirpaths is itself problematic.
9479    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9480  else
9481    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9482  fi
9483else
9484  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9485fi
9486need_lib_prefix=unknown
9487hardcode_into_libs=no
9488
9489# when you set need_version to no, make sure it does not cause -set_version
9490# flags to be left without arguments
9491need_version=unknown
9492
9493case $host_os in
9494aix3*)
9495  version_type=linux
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9497  shlibpath_var=LIBPATH
9498
9499  # AIX 3 has no versioning support, so we append a major version to the name.
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  ;;
9502
9503aix4* | aix5*)
9504  version_type=linux
9505  need_lib_prefix=no
9506  need_version=no
9507  hardcode_into_libs=yes
9508  if test "$host_cpu" = ia64; then
9509    # AIX 5 supports IA64
9510    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9511    shlibpath_var=LD_LIBRARY_PATH
9512  else
9513    # With GCC up to 2.95.x, collect2 would create an import file
9514    # for dependence libraries.  The import file would start with
9515    # the line `#! .'.  This would cause the generated library to
9516    # depend on `.', always an invalid library.  This was fixed in
9517    # development snapshots of GCC prior to 3.0.
9518    case $host_os in
9519      aix4 | aix4.[01] | aix4.[01].*)
9520      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9521	   echo ' yes '
9522	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9523	:
9524      else
9525	can_build_shared=no
9526      fi
9527      ;;
9528    esac
9529    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9530    # soname into executable. Probably we can add versioning support to
9531    # collect2, so additional links can be useful in future.
9532    if test "$aix_use_runtimelinking" = yes; then
9533      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9534      # instead of lib<name>.a to let people know that these are not
9535      # typical AIX shared libraries.
9536      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537    else
9538      # We preserve .a as extension for shared libraries through AIX4.2
9539      # and later when we are not doing run time linking.
9540      library_names_spec='${libname}${release}.a $libname.a'
9541      soname_spec='${libname}${release}${shared_ext}$major'
9542    fi
9543    shlibpath_var=LIBPATH
9544  fi
9545  ;;
9546
9547amigaos*)
9548  library_names_spec='$libname.ixlibrary $libname.a'
9549  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9550  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'
9551  ;;
9552
9553beos*)
9554  library_names_spec='${libname}${shared_ext}'
9555  dynamic_linker="$host_os ld.so"
9556  shlibpath_var=LIBRARY_PATH
9557  ;;
9558
9559bsdi[45]*)
9560  version_type=linux
9561  need_version=no
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563  soname_spec='${libname}${release}${shared_ext}$major'
9564  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9567  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9568  # the default ld.so.conf also contains /usr/contrib/lib and
9569  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9570  # libtool to hard-code these into programs
9571  ;;
9572
9573cygwin* | mingw* | pw32*)
9574  version_type=windows
9575  shrext_cmds=".dll"
9576  need_version=no
9577  need_lib_prefix=no
9578
9579  case $GCC,$host_os in
9580  yes,cygwin* | yes,mingw* | yes,pw32*)
9581    library_names_spec='$libname.dll.a'
9582    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9583    postinstall_cmds='base_file=`basename \${file}`~
9584      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9585      dldir=$destdir/`dirname \$dlpath`~
9586      test -d \$dldir || mkdir -p \$dldir~
9587      $install_prog $dir/$dlname \$dldir/$dlname~
9588      chmod a+x \$dldir/$dlname'
9589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9590      dlpath=$dir/\$dldll~
9591       $rm \$dlpath'
9592    shlibpath_overrides_runpath=yes
9593
9594    case $host_os in
9595    cygwin*)
9596      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9597      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9599      ;;
9600    mingw*)
9601      # MinGW DLLs use traditional 'lib' prefix
9602      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9603      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9604      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9605        # It is most probably a Windows format PATH printed by
9606        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9607        # path with ; separators, and with drive letters. We can handle the
9608        # drive letters (cygwin fileutils understands them), so leave them,
9609        # especially as we might pass files found there to a mingw objdump,
9610        # which wouldn't understand a cygwinified path. Ahh.
9611        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9612      else
9613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9614      fi
9615      ;;
9616    pw32*)
9617      # pw32 DLLs use 'pw' prefix rather than 'lib'
9618      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9619      ;;
9620    esac
9621    ;;
9622
9623  *)
9624    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9625    ;;
9626  esac
9627  dynamic_linker='Win32 ld.exe'
9628  # FIXME: first we should search . and the directory the executable is in
9629  shlibpath_var=PATH
9630  ;;
9631
9632darwin* | rhapsody*)
9633  dynamic_linker="$host_os dyld"
9634  version_type=darwin
9635  need_lib_prefix=no
9636  need_version=no
9637  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9638  soname_spec='${libname}${release}${major}$shared_ext'
9639  shlibpath_overrides_runpath=yes
9640  shlibpath_var=DYLD_LIBRARY_PATH
9641  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9642  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9643  if test "$GCC" = yes; then
9644    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"`
9645  else
9646    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9647  fi
9648  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9649  ;;
9650
9651dgux*)
9652  version_type=linux
9653  need_lib_prefix=no
9654  need_version=no
9655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9656  soname_spec='${libname}${release}${shared_ext}$major'
9657  shlibpath_var=LD_LIBRARY_PATH
9658  ;;
9659
9660freebsd1*)
9661  dynamic_linker=no
9662  ;;
9663
9664kfreebsd*-gnu)
9665  version_type=linux
9666  need_lib_prefix=no
9667  need_version=no
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  shlibpath_var=LD_LIBRARY_PATH
9671  shlibpath_overrides_runpath=no
9672  hardcode_into_libs=yes
9673  dynamic_linker='GNU ld.so'
9674  ;;
9675
9676freebsd* | dragonfly*)
9677  # DragonFly does not have aout.  When/if they implement a new
9678  # versioning mechanism, adjust this.
9679  if test -x /usr/bin/objformat; then
9680    objformat=`/usr/bin/objformat`
9681  else
9682    case $host_os in
9683    freebsd[123]*) objformat=aout ;;
9684    *) objformat=elf ;;
9685    esac
9686  fi
9687  version_type=freebsd-$objformat
9688  case $version_type in
9689    freebsd-elf*)
9690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9691      need_version=no
9692      need_lib_prefix=no
9693      ;;
9694    freebsd-*)
9695      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9696      need_version=yes
9697      ;;
9698  esac
9699  shlibpath_var=LD_LIBRARY_PATH
9700  case $host_os in
9701  freebsd2*)
9702    shlibpath_overrides_runpath=yes
9703    ;;
9704  freebsd3.[01]* | freebsdelf3.[01]*)
9705    shlibpath_overrides_runpath=yes
9706    hardcode_into_libs=yes
9707    ;;
9708  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9709  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9710    shlibpath_overrides_runpath=no
9711    hardcode_into_libs=yes
9712    ;;
9713  freebsd*) # from 4.6 on
9714    shlibpath_overrides_runpath=yes
9715    hardcode_into_libs=yes
9716    ;;
9717  esac
9718  ;;
9719
9720gnu*)
9721  version_type=linux
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  hardcode_into_libs=yes
9728  ;;
9729
9730hpux9* | hpux10* | hpux11*)
9731  # Give a soname corresponding to the major version so that dld.sl refuses to
9732  # link against other versions.
9733  version_type=sunos
9734  need_lib_prefix=no
9735  need_version=no
9736  case $host_cpu in
9737  ia64*)
9738    shrext_cmds='.so'
9739    hardcode_into_libs=yes
9740    dynamic_linker="$host_os dld.so"
9741    shlibpath_var=LD_LIBRARY_PATH
9742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744    soname_spec='${libname}${release}${shared_ext}$major'
9745    if test "X$HPUX_IA64_MODE" = X32; then
9746      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9747    else
9748      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9749    fi
9750    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9751    ;;
9752   hppa*64*)
9753     shrext_cmds='.sl'
9754     hardcode_into_libs=yes
9755     dynamic_linker="$host_os dld.sl"
9756     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759     soname_spec='${libname}${release}${shared_ext}$major'
9760     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9762     ;;
9763   *)
9764    shrext_cmds='.sl'
9765    dynamic_linker="$host_os dld.sl"
9766    shlibpath_var=SHLIB_PATH
9767    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769    soname_spec='${libname}${release}${shared_ext}$major'
9770    ;;
9771  esac
9772  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9773  postinstall_cmds='chmod 555 $lib'
9774  ;;
9775
9776interix3*)
9777  version_type=linux
9778  need_lib_prefix=no
9779  need_version=no
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  shlibpath_overrides_runpath=no
9785  hardcode_into_libs=yes
9786  ;;
9787
9788irix5* | irix6* | nonstopux*)
9789  case $host_os in
9790    nonstopux*) version_type=nonstopux ;;
9791    *)
9792	if test "$lt_cv_prog_gnu_ld" = yes; then
9793		version_type=linux
9794	else
9795		version_type=irix
9796	fi ;;
9797  esac
9798  need_lib_prefix=no
9799  need_version=no
9800  soname_spec='${libname}${release}${shared_ext}$major'
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9802  case $host_os in
9803  irix5* | nonstopux*)
9804    libsuff= shlibsuff=
9805    ;;
9806  *)
9807    case $LD in # libtool.m4 will add one of these switches to LD
9808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9809      libsuff= shlibsuff= libmagic=32-bit;;
9810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9811      libsuff=32 shlibsuff=N32 libmagic=N32;;
9812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9814    *) libsuff= shlibsuff= libmagic=never-match;;
9815    esac
9816    ;;
9817  esac
9818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9819  shlibpath_overrides_runpath=no
9820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9822  hardcode_into_libs=yes
9823  ;;
9824
9825# No shared lib support for Linux oldld, aout, or coff.
9826linux*oldld* | linux*aout* | linux*coff*)
9827  dynamic_linker=no
9828  ;;
9829
9830# This must be Linux ELF.
9831linux*)
9832  version_type=linux
9833  need_lib_prefix=no
9834  need_version=no
9835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836  soname_spec='${libname}${release}${shared_ext}$major'
9837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  shlibpath_overrides_runpath=no
9840  # This implies no fast_install, which is unacceptable.
9841  # Some rework will be needed to allow for fast_install
9842  # before this can be enabled.
9843  hardcode_into_libs=yes
9844
9845  # Append ld.so.conf contents to the search path
9846  if test -f /etc/ld.so.conf; then
9847    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' ' '`
9848    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9849  fi
9850
9851  # We used to test for /lib/ld.so.1 and disable shared libraries on
9852  # powerpc, because MkLinux only supported shared libraries with the
9853  # GNU dynamic linker.  Since this was broken with cross compilers,
9854  # most powerpc-linux boxes support dynamic linking these days and
9855  # people can always --disable-shared, the test was removed, and we
9856  # assume the GNU/Linux dynamic linker is in use.
9857  dynamic_linker='GNU/Linux ld.so'
9858  ;;
9859
9860knetbsd*-gnu)
9861  version_type=linux
9862  need_lib_prefix=no
9863  need_version=no
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9865  soname_spec='${libname}${release}${shared_ext}$major'
9866  shlibpath_var=LD_LIBRARY_PATH
9867  shlibpath_overrides_runpath=no
9868  hardcode_into_libs=yes
9869  dynamic_linker='GNU ld.so'
9870  ;;
9871
9872netbsd*)
9873  version_type=sunos
9874  need_lib_prefix=no
9875  need_version=no
9876  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9878    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9879    dynamic_linker='NetBSD (a.out) ld.so'
9880  else
9881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9882    soname_spec='${libname}${release}${shared_ext}$major'
9883    dynamic_linker='NetBSD ld.elf_so'
9884  fi
9885  shlibpath_var=LD_LIBRARY_PATH
9886  shlibpath_overrides_runpath=yes
9887  hardcode_into_libs=yes
9888  ;;
9889
9890newsos6)
9891  version_type=linux
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893  shlibpath_var=LD_LIBRARY_PATH
9894  shlibpath_overrides_runpath=yes
9895  ;;
9896
9897nto-qnx*)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  shlibpath_var=LD_LIBRARY_PATH
9904  shlibpath_overrides_runpath=yes
9905  ;;
9906
9907openbsd*)
9908  version_type=sunos
9909  sys_lib_dlsearch_path_spec="/usr/lib"
9910  need_lib_prefix=no
9911  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9912  case $host_os in
9913    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9914    *)                         need_version=no  ;;
9915  esac
9916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9917  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9918  shlibpath_var=LD_LIBRARY_PATH
9919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9920    case $host_os in
9921      openbsd2.[89] | openbsd2.[89].*)
9922	shlibpath_overrides_runpath=no
9923	;;
9924      *)
9925	shlibpath_overrides_runpath=yes
9926	;;
9927      esac
9928  else
9929    shlibpath_overrides_runpath=yes
9930  fi
9931  ;;
9932
9933os2*)
9934  libname_spec='$name'
9935  shrext_cmds=".dll"
9936  need_lib_prefix=no
9937  library_names_spec='$libname${shared_ext} $libname.a'
9938  dynamic_linker='OS/2 ld.exe'
9939  shlibpath_var=LIBPATH
9940  ;;
9941
9942osf3* | osf4* | osf5*)
9943  version_type=osf
9944  need_lib_prefix=no
9945  need_version=no
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948  shlibpath_var=LD_LIBRARY_PATH
9949  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9950  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9951  ;;
9952
9953solaris*)
9954  version_type=linux
9955  need_lib_prefix=no
9956  need_version=no
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958  soname_spec='${libname}${release}${shared_ext}$major'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=yes
9961  hardcode_into_libs=yes
9962  # ldd complains unless libraries are executable
9963  postinstall_cmds='chmod +x $lib'
9964  ;;
9965
9966sunos4*)
9967  version_type=sunos
9968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9969  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  shlibpath_overrides_runpath=yes
9972  if test "$with_gnu_ld" = yes; then
9973    need_lib_prefix=no
9974  fi
9975  need_version=yes
9976  ;;
9977
9978sysv4 | sysv4.3*)
9979  version_type=linux
9980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981  soname_spec='${libname}${release}${shared_ext}$major'
9982  shlibpath_var=LD_LIBRARY_PATH
9983  case $host_vendor in
9984    sni)
9985      shlibpath_overrides_runpath=no
9986      need_lib_prefix=no
9987      export_dynamic_flag_spec='${wl}-Blargedynsym'
9988      runpath_var=LD_RUN_PATH
9989      ;;
9990    siemens)
9991      need_lib_prefix=no
9992      ;;
9993    motorola)
9994      need_lib_prefix=no
9995      need_version=no
9996      shlibpath_overrides_runpath=no
9997      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9998      ;;
9999  esac
10000  ;;
10001
10002sysv4*MP*)
10003  if test -d /usr/nec ;then
10004    version_type=linux
10005    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10006    soname_spec='$libname${shared_ext}.$major'
10007    shlibpath_var=LD_LIBRARY_PATH
10008  fi
10009  ;;
10010
10011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10012  version_type=freebsd-elf
10013  need_lib_prefix=no
10014  need_version=no
10015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10016  soname_spec='${libname}${release}${shared_ext}$major'
10017  shlibpath_var=LD_LIBRARY_PATH
10018  hardcode_into_libs=yes
10019  if test "$with_gnu_ld" = yes; then
10020    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10021    shlibpath_overrides_runpath=no
10022  else
10023    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10024    shlibpath_overrides_runpath=yes
10025    case $host_os in
10026      sco3.2v5*)
10027        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10028	;;
10029    esac
10030  fi
10031  sys_lib_dlsearch_path_spec='/usr/lib'
10032  ;;
10033
10034uts4*)
10035  version_type=linux
10036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037  soname_spec='${libname}${release}${shared_ext}$major'
10038  shlibpath_var=LD_LIBRARY_PATH
10039  ;;
10040
10041*)
10042  dynamic_linker=no
10043  ;;
10044esac
10045echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10046echo "${ECHO_T}$dynamic_linker" >&6
10047test "$dynamic_linker" = no && can_build_shared=no
10048
10049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10050if test "$GCC" = yes; then
10051  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10052fi
10053
10054echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10056hardcode_action=
10057if test -n "$hardcode_libdir_flag_spec" || \
10058   test -n "$runpath_var" || \
10059   test "X$hardcode_automatic" = "Xyes" ; then
10060
10061  # We can hardcode non-existant directories.
10062  if test "$hardcode_direct" != no &&
10063     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10064     # have to relink, otherwise we might link with an installed library
10065     # when we should be linking with a yet-to-be-installed one
10066     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10067     test "$hardcode_minus_L" != no; then
10068    # Linking always hardcodes the temporary library directory.
10069    hardcode_action=relink
10070  else
10071    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10072    hardcode_action=immediate
10073  fi
10074else
10075  # We cannot hardcode anything, or else we can only hardcode existing
10076  # directories.
10077  hardcode_action=unsupported
10078fi
10079echo "$as_me:$LINENO: result: $hardcode_action" >&5
10080echo "${ECHO_T}$hardcode_action" >&6
10081
10082if test "$hardcode_action" = relink; then
10083  # Fast installation is not supported
10084  enable_fast_install=no
10085elif test "$shlibpath_overrides_runpath" = yes ||
10086     test "$enable_shared" = no; then
10087  # Fast installation is not necessary
10088  enable_fast_install=needless
10089fi
10090
10091striplib=
10092old_striplib=
10093echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10094echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10095if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10096  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10097  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10098  echo "$as_me:$LINENO: result: yes" >&5
10099echo "${ECHO_T}yes" >&6
10100else
10101# FIXME - insert some real tests, host_os isn't really good enough
10102  case $host_os in
10103   darwin*)
10104       if test -n "$STRIP" ; then
10105         striplib="$STRIP -x"
10106         echo "$as_me:$LINENO: result: yes" >&5
10107echo "${ECHO_T}yes" >&6
10108       else
10109  echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111fi
10112       ;;
10113   *)
10114  echo "$as_me:$LINENO: result: no" >&5
10115echo "${ECHO_T}no" >&6
10116    ;;
10117  esac
10118fi
10119
10120if test "x$enable_dlopen" != xyes; then
10121  enable_dlopen=unknown
10122  enable_dlopen_self=unknown
10123  enable_dlopen_self_static=unknown
10124else
10125  lt_cv_dlopen=no
10126  lt_cv_dlopen_libs=
10127
10128  case $host_os in
10129  beos*)
10130    lt_cv_dlopen="load_add_on"
10131    lt_cv_dlopen_libs=
10132    lt_cv_dlopen_self=yes
10133    ;;
10134
10135  mingw* | pw32*)
10136    lt_cv_dlopen="LoadLibrary"
10137    lt_cv_dlopen_libs=
10138   ;;
10139
10140  cygwin*)
10141    lt_cv_dlopen="dlopen"
10142    lt_cv_dlopen_libs=
10143   ;;
10144
10145  darwin*)
10146  # if libdl is installed we need to link against it
10147    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10148echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10149if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10150  echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152  ac_check_lib_save_LIBS=$LIBS
10153LIBS="-ldl  $LIBS"
10154cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h.  */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h.  */
10160
10161/* Override any gcc2 internal prototype to avoid an error.  */
10162#ifdef __cplusplus
10163extern "C"
10164#endif
10165/* We use char because int might match the return type of a gcc2
10166   builtin and then its argument prototype would still apply.  */
10167char dlopen ();
10168int
10169main ()
10170{
10171dlopen ();
10172  ;
10173  return 0;
10174}
10175_ACEOF
10176rm -f conftest.$ac_objext conftest$ac_exeext
10177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10178  (eval $ac_link) 2>conftest.er1
10179  ac_status=$?
10180  grep -v '^ *+' conftest.er1 >conftest.err
10181  rm -f conftest.er1
10182  cat conftest.err >&5
10183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184  (exit $ac_status); } &&
10185	 { ac_try='test -z "$ac_c_werror_flag"
10186			 || test ! -s conftest.err'
10187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188  (eval $ac_try) 2>&5
10189  ac_status=$?
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); }; } &&
10192	 { ac_try='test -s conftest$ac_exeext'
10193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194  (eval $ac_try) 2>&5
10195  ac_status=$?
10196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); }; }; then
10198  ac_cv_lib_dl_dlopen=yes
10199else
10200  echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
10203ac_cv_lib_dl_dlopen=no
10204fi
10205rm -f conftest.err conftest.$ac_objext \
10206      conftest$ac_exeext conftest.$ac_ext
10207LIBS=$ac_check_lib_save_LIBS
10208fi
10209echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10211if test $ac_cv_lib_dl_dlopen = yes; then
10212  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10213else
10214
10215    lt_cv_dlopen="dyld"
10216    lt_cv_dlopen_libs=
10217    lt_cv_dlopen_self=yes
10218
10219fi
10220
10221   ;;
10222
10223  *)
10224    echo "$as_me:$LINENO: checking for shl_load" >&5
10225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10226if test "${ac_cv_func_shl_load+set}" = set; then
10227  echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229  cat >conftest.$ac_ext <<_ACEOF
10230/* confdefs.h.  */
10231_ACEOF
10232cat confdefs.h >>conftest.$ac_ext
10233cat >>conftest.$ac_ext <<_ACEOF
10234/* end confdefs.h.  */
10235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10236   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10237#define shl_load innocuous_shl_load
10238
10239/* System header to define __stub macros and hopefully few prototypes,
10240    which can conflict with char shl_load (); below.
10241    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10242    <limits.h> exists even on freestanding compilers.  */
10243
10244#ifdef __STDC__
10245# include <limits.h>
10246#else
10247# include <assert.h>
10248#endif
10249
10250#undef shl_load
10251
10252/* Override any gcc2 internal prototype to avoid an error.  */
10253#ifdef __cplusplus
10254extern "C"
10255{
10256#endif
10257/* We use char because int might match the return type of a gcc2
10258   builtin and then its argument prototype would still apply.  */
10259char shl_load ();
10260/* The GNU C library defines this for functions which it implements
10261    to always fail with ENOSYS.  Some functions are actually named
10262    something starting with __ and the normal name is an alias.  */
10263#if defined (__stub_shl_load) || defined (__stub___shl_load)
10264choke me
10265#else
10266char (*f) () = shl_load;
10267#endif
10268#ifdef __cplusplus
10269}
10270#endif
10271
10272int
10273main ()
10274{
10275return f != shl_load;
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282  (eval $ac_link) 2>conftest.er1
10283  ac_status=$?
10284  grep -v '^ *+' conftest.er1 >conftest.err
10285  rm -f conftest.er1
10286  cat conftest.err >&5
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); } &&
10289	 { ac_try='test -z "$ac_c_werror_flag"
10290			 || test ! -s conftest.err'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; } &&
10296	 { ac_try='test -s conftest$ac_exeext'
10297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298  (eval $ac_try) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; }; then
10302  ac_cv_func_shl_load=yes
10303else
10304  echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307ac_cv_func_shl_load=no
10308fi
10309rm -f conftest.err conftest.$ac_objext \
10310      conftest$ac_exeext conftest.$ac_ext
10311fi
10312echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10313echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10314if test $ac_cv_func_shl_load = yes; then
10315  lt_cv_dlopen="shl_load"
10316else
10317  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10318echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10319if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10320  echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322  ac_check_lib_save_LIBS=$LIBS
10323LIBS="-ldld  $LIBS"
10324cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h.  */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h.  */
10330
10331/* Override any gcc2 internal prototype to avoid an error.  */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335/* We use char because int might match the return type of a gcc2
10336   builtin and then its argument prototype would still apply.  */
10337char shl_load ();
10338int
10339main ()
10340{
10341shl_load ();
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348  (eval $ac_link) 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } &&
10355	 { ac_try='test -z "$ac_c_werror_flag"
10356			 || test ! -s conftest.err'
10357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358  (eval $ac_try) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; } &&
10362	 { ac_try='test -s conftest$ac_exeext'
10363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364  (eval $ac_try) 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; }; then
10368  ac_cv_lib_dld_shl_load=yes
10369else
10370  echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373ac_cv_lib_dld_shl_load=no
10374fi
10375rm -f conftest.err conftest.$ac_objext \
10376      conftest$ac_exeext conftest.$ac_ext
10377LIBS=$ac_check_lib_save_LIBS
10378fi
10379echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10380echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10381if test $ac_cv_lib_dld_shl_load = yes; then
10382  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10383else
10384  echo "$as_me:$LINENO: checking for dlopen" >&5
10385echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10386if test "${ac_cv_func_dlopen+set}" = set; then
10387  echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389  cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h.  */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h.  */
10395/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10397#define dlopen innocuous_dlopen
10398
10399/* System header to define __stub macros and hopefully few prototypes,
10400    which can conflict with char dlopen (); below.
10401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402    <limits.h> exists even on freestanding compilers.  */
10403
10404#ifdef __STDC__
10405# include <limits.h>
10406#else
10407# include <assert.h>
10408#endif
10409
10410#undef dlopen
10411
10412/* Override any gcc2 internal prototype to avoid an error.  */
10413#ifdef __cplusplus
10414extern "C"
10415{
10416#endif
10417/* We use char because int might match the return type of a gcc2
10418   builtin and then its argument prototype would still apply.  */
10419char dlopen ();
10420/* The GNU C library defines this for functions which it implements
10421    to always fail with ENOSYS.  Some functions are actually named
10422    something starting with __ and the normal name is an alias.  */
10423#if defined (__stub_dlopen) || defined (__stub___dlopen)
10424choke me
10425#else
10426char (*f) () = dlopen;
10427#endif
10428#ifdef __cplusplus
10429}
10430#endif
10431
10432int
10433main ()
10434{
10435return f != dlopen;
10436  ;
10437  return 0;
10438}
10439_ACEOF
10440rm -f conftest.$ac_objext conftest$ac_exeext
10441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442  (eval $ac_link) 2>conftest.er1
10443  ac_status=$?
10444  grep -v '^ *+' conftest.er1 >conftest.err
10445  rm -f conftest.er1
10446  cat conftest.err >&5
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); } &&
10449	 { ac_try='test -z "$ac_c_werror_flag"
10450			 || test ! -s conftest.err'
10451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452  (eval $ac_try) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); }; } &&
10456	 { ac_try='test -s conftest$ac_exeext'
10457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458  (eval $ac_try) 2>&5
10459  ac_status=$?
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); }; }; then
10462  ac_cv_func_dlopen=yes
10463else
10464  echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467ac_cv_func_dlopen=no
10468fi
10469rm -f conftest.err conftest.$ac_objext \
10470      conftest$ac_exeext conftest.$ac_ext
10471fi
10472echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10473echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10474if test $ac_cv_func_dlopen = yes; then
10475  lt_cv_dlopen="dlopen"
10476else
10477  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10478echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10479if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10480  echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482  ac_check_lib_save_LIBS=$LIBS
10483LIBS="-ldl  $LIBS"
10484cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h.  */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h.  */
10490
10491/* Override any gcc2 internal prototype to avoid an error.  */
10492#ifdef __cplusplus
10493extern "C"
10494#endif
10495/* We use char because int might match the return type of a gcc2
10496   builtin and then its argument prototype would still apply.  */
10497char dlopen ();
10498int
10499main ()
10500{
10501dlopen ();
10502  ;
10503  return 0;
10504}
10505_ACEOF
10506rm -f conftest.$ac_objext conftest$ac_exeext
10507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508  (eval $ac_link) 2>conftest.er1
10509  ac_status=$?
10510  grep -v '^ *+' conftest.er1 >conftest.err
10511  rm -f conftest.er1
10512  cat conftest.err >&5
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); } &&
10515	 { ac_try='test -z "$ac_c_werror_flag"
10516			 || test ! -s conftest.err'
10517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518  (eval $ac_try) 2>&5
10519  ac_status=$?
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); }; } &&
10522	 { ac_try='test -s conftest$ac_exeext'
10523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524  (eval $ac_try) 2>&5
10525  ac_status=$?
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); }; }; then
10528  ac_cv_lib_dl_dlopen=yes
10529else
10530  echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533ac_cv_lib_dl_dlopen=no
10534fi
10535rm -f conftest.err conftest.$ac_objext \
10536      conftest$ac_exeext conftest.$ac_ext
10537LIBS=$ac_check_lib_save_LIBS
10538fi
10539echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10540echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10541if test $ac_cv_lib_dl_dlopen = yes; then
10542  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10543else
10544  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10545echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10546if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10547  echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549  ac_check_lib_save_LIBS=$LIBS
10550LIBS="-lsvld  $LIBS"
10551cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h.  */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h.  */
10557
10558/* Override any gcc2 internal prototype to avoid an error.  */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562/* We use char because int might match the return type of a gcc2
10563   builtin and then its argument prototype would still apply.  */
10564char dlopen ();
10565int
10566main ()
10567{
10568dlopen ();
10569  ;
10570  return 0;
10571}
10572_ACEOF
10573rm -f conftest.$ac_objext conftest$ac_exeext
10574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575  (eval $ac_link) 2>conftest.er1
10576  ac_status=$?
10577  grep -v '^ *+' conftest.er1 >conftest.err
10578  rm -f conftest.er1
10579  cat conftest.err >&5
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); } &&
10582	 { ac_try='test -z "$ac_c_werror_flag"
10583			 || test ! -s conftest.err'
10584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585  (eval $ac_try) 2>&5
10586  ac_status=$?
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); }; } &&
10589	 { ac_try='test -s conftest$ac_exeext'
10590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591  (eval $ac_try) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); }; }; then
10595  ac_cv_lib_svld_dlopen=yes
10596else
10597  echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600ac_cv_lib_svld_dlopen=no
10601fi
10602rm -f conftest.err conftest.$ac_objext \
10603      conftest$ac_exeext conftest.$ac_ext
10604LIBS=$ac_check_lib_save_LIBS
10605fi
10606echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10607echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10608if test $ac_cv_lib_svld_dlopen = yes; then
10609  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10610else
10611  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10612echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10613if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10614  echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616  ac_check_lib_save_LIBS=$LIBS
10617LIBS="-ldld  $LIBS"
10618cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h.  */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h.  */
10624
10625/* Override any gcc2 internal prototype to avoid an error.  */
10626#ifdef __cplusplus
10627extern "C"
10628#endif
10629/* We use char because int might match the return type of a gcc2
10630   builtin and then its argument prototype would still apply.  */
10631char dld_link ();
10632int
10633main ()
10634{
10635dld_link ();
10636  ;
10637  return 0;
10638}
10639_ACEOF
10640rm -f conftest.$ac_objext conftest$ac_exeext
10641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642  (eval $ac_link) 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } &&
10649	 { ac_try='test -z "$ac_c_werror_flag"
10650			 || test ! -s conftest.err'
10651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652  (eval $ac_try) 2>&5
10653  ac_status=$?
10654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655  (exit $ac_status); }; } &&
10656	 { ac_try='test -s conftest$ac_exeext'
10657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658  (eval $ac_try) 2>&5
10659  ac_status=$?
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); }; }; then
10662  ac_cv_lib_dld_dld_link=yes
10663else
10664  echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667ac_cv_lib_dld_dld_link=no
10668fi
10669rm -f conftest.err conftest.$ac_objext \
10670      conftest$ac_exeext conftest.$ac_ext
10671LIBS=$ac_check_lib_save_LIBS
10672fi
10673echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10674echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10675if test $ac_cv_lib_dld_dld_link = yes; then
10676  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10677fi
10678
10679
10680fi
10681
10682
10683fi
10684
10685
10686fi
10687
10688
10689fi
10690
10691
10692fi
10693
10694    ;;
10695  esac
10696
10697  if test "x$lt_cv_dlopen" != xno; then
10698    enable_dlopen=yes
10699  else
10700    enable_dlopen=no
10701  fi
10702
10703  case $lt_cv_dlopen in
10704  dlopen)
10705    save_CPPFLAGS="$CPPFLAGS"
10706    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10707
10708    save_LDFLAGS="$LDFLAGS"
10709    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10710
10711    save_LIBS="$LIBS"
10712    LIBS="$lt_cv_dlopen_libs $LIBS"
10713
10714    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10715echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10716if test "${lt_cv_dlopen_self+set}" = set; then
10717  echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719  	  if test "$cross_compiling" = yes; then :
10720  lt_cv_dlopen_self=cross
10721else
10722  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10723  lt_status=$lt_dlunknown
10724  cat > conftest.$ac_ext <<EOF
10725#line 10725 "configure"
10726#include "confdefs.h"
10727
10728#if HAVE_DLFCN_H
10729#include <dlfcn.h>
10730#endif
10731
10732#include <stdio.h>
10733
10734#ifdef RTLD_GLOBAL
10735#  define LT_DLGLOBAL		RTLD_GLOBAL
10736#else
10737#  ifdef DL_GLOBAL
10738#    define LT_DLGLOBAL		DL_GLOBAL
10739#  else
10740#    define LT_DLGLOBAL		0
10741#  endif
10742#endif
10743
10744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10745   find out it does not work in some platform. */
10746#ifndef LT_DLLAZY_OR_NOW
10747#  ifdef RTLD_LAZY
10748#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10749#  else
10750#    ifdef DL_LAZY
10751#      define LT_DLLAZY_OR_NOW		DL_LAZY
10752#    else
10753#      ifdef RTLD_NOW
10754#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10755#      else
10756#        ifdef DL_NOW
10757#          define LT_DLLAZY_OR_NOW	DL_NOW
10758#        else
10759#          define LT_DLLAZY_OR_NOW	0
10760#        endif
10761#      endif
10762#    endif
10763#  endif
10764#endif
10765
10766#ifdef __cplusplus
10767extern "C" void exit (int);
10768#endif
10769
10770void fnord() { int i=42;}
10771int main ()
10772{
10773  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10774  int status = $lt_dlunknown;
10775
10776  if (self)
10777    {
10778      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10779      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10780      /* dlclose (self); */
10781    }
10782  else
10783    puts (dlerror ());
10784
10785    exit (status);
10786}
10787EOF
10788  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789  (eval $ac_link) 2>&5
10790  ac_status=$?
10791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10793    (./conftest; exit; ) >&5 2>/dev/null
10794    lt_status=$?
10795    case x$lt_status in
10796      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10797      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10798      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10799    esac
10800  else :
10801    # compilation failed
10802    lt_cv_dlopen_self=no
10803  fi
10804fi
10805rm -fr conftest*
10806
10807
10808fi
10809echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10810echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10811
10812    if test "x$lt_cv_dlopen_self" = xyes; then
10813      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10814      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10815echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10816if test "${lt_cv_dlopen_self_static+set}" = set; then
10817  echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819  	  if test "$cross_compiling" = yes; then :
10820  lt_cv_dlopen_self_static=cross
10821else
10822  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10823  lt_status=$lt_dlunknown
10824  cat > conftest.$ac_ext <<EOF
10825#line 10825 "configure"
10826#include "confdefs.h"
10827
10828#if HAVE_DLFCN_H
10829#include <dlfcn.h>
10830#endif
10831
10832#include <stdio.h>
10833
10834#ifdef RTLD_GLOBAL
10835#  define LT_DLGLOBAL		RTLD_GLOBAL
10836#else
10837#  ifdef DL_GLOBAL
10838#    define LT_DLGLOBAL		DL_GLOBAL
10839#  else
10840#    define LT_DLGLOBAL		0
10841#  endif
10842#endif
10843
10844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10845   find out it does not work in some platform. */
10846#ifndef LT_DLLAZY_OR_NOW
10847#  ifdef RTLD_LAZY
10848#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10849#  else
10850#    ifdef DL_LAZY
10851#      define LT_DLLAZY_OR_NOW		DL_LAZY
10852#    else
10853#      ifdef RTLD_NOW
10854#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10855#      else
10856#        ifdef DL_NOW
10857#          define LT_DLLAZY_OR_NOW	DL_NOW
10858#        else
10859#          define LT_DLLAZY_OR_NOW	0
10860#        endif
10861#      endif
10862#    endif
10863#  endif
10864#endif
10865
10866#ifdef __cplusplus
10867extern "C" void exit (int);
10868#endif
10869
10870void fnord() { int i=42;}
10871int main ()
10872{
10873  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10874  int status = $lt_dlunknown;
10875
10876  if (self)
10877    {
10878      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10879      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10880      /* dlclose (self); */
10881    }
10882  else
10883    puts (dlerror ());
10884
10885    exit (status);
10886}
10887EOF
10888  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889  (eval $ac_link) 2>&5
10890  ac_status=$?
10891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10893    (./conftest; exit; ) >&5 2>/dev/null
10894    lt_status=$?
10895    case x$lt_status in
10896      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10897      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10898      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10899    esac
10900  else :
10901    # compilation failed
10902    lt_cv_dlopen_self_static=no
10903  fi
10904fi
10905rm -fr conftest*
10906
10907
10908fi
10909echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10910echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10911    fi
10912
10913    CPPFLAGS="$save_CPPFLAGS"
10914    LDFLAGS="$save_LDFLAGS"
10915    LIBS="$save_LIBS"
10916    ;;
10917  esac
10918
10919  case $lt_cv_dlopen_self in
10920  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10921  *) enable_dlopen_self=unknown ;;
10922  esac
10923
10924  case $lt_cv_dlopen_self_static in
10925  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10926  *) enable_dlopen_self_static=unknown ;;
10927  esac
10928fi
10929
10930
10931# Report which library types will actually be built
10932echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10933echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10934echo "$as_me:$LINENO: result: $can_build_shared" >&5
10935echo "${ECHO_T}$can_build_shared" >&6
10936
10937echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10938echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10939test "$can_build_shared" = "no" && enable_shared=no
10940
10941# On AIX, shared libraries and static libraries use the same namespace, and
10942# are all built from PIC.
10943case $host_os in
10944aix3*)
10945  test "$enable_shared" = yes && enable_static=no
10946  if test -n "$RANLIB"; then
10947    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10948    postinstall_cmds='$RANLIB $lib'
10949  fi
10950  ;;
10951
10952aix4* | aix5*)
10953  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10954    test "$enable_shared" = yes && enable_static=no
10955  fi
10956    ;;
10957esac
10958echo "$as_me:$LINENO: result: $enable_shared" >&5
10959echo "${ECHO_T}$enable_shared" >&6
10960
10961echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10962echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10963# Make sure either enable_shared or enable_static is yes.
10964test "$enable_shared" = yes || enable_static=yes
10965echo "$as_me:$LINENO: result: $enable_static" >&5
10966echo "${ECHO_T}$enable_static" >&6
10967
10968# The else clause should only fire when bootstrapping the
10969# libtool distribution, otherwise you forgot to ship ltmain.sh
10970# with your package, and you will get complaints that there are
10971# no rules to generate ltmain.sh.
10972if test -f "$ltmain"; then
10973  # See if we are running on zsh, and set the options which allow our commands through
10974  # without removal of \ escapes.
10975  if test -n "${ZSH_VERSION+set}" ; then
10976    setopt NO_GLOB_SUBST
10977  fi
10978  # Now quote all the things that may contain metacharacters while being
10979  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10980  # variables and quote the copies for generation of the libtool script.
10981  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10982    SED SHELL STRIP \
10983    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10984    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10985    deplibs_check_method reload_flag reload_cmds need_locks \
10986    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10987    lt_cv_sys_global_symbol_to_c_name_address \
10988    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10989    old_postinstall_cmds old_postuninstall_cmds \
10990    compiler \
10991    CC \
10992    LD \
10993    lt_prog_compiler_wl \
10994    lt_prog_compiler_pic \
10995    lt_prog_compiler_static \
10996    lt_prog_compiler_no_builtin_flag \
10997    export_dynamic_flag_spec \
10998    thread_safe_flag_spec \
10999    whole_archive_flag_spec \
11000    enable_shared_with_static_runtimes \
11001    old_archive_cmds \
11002    old_archive_from_new_cmds \
11003    predep_objects \
11004    postdep_objects \
11005    predeps \
11006    postdeps \
11007    compiler_lib_search_path \
11008    archive_cmds \
11009    archive_expsym_cmds \
11010    postinstall_cmds \
11011    postuninstall_cmds \
11012    old_archive_from_expsyms_cmds \
11013    allow_undefined_flag \
11014    no_undefined_flag \
11015    export_symbols_cmds \
11016    hardcode_libdir_flag_spec \
11017    hardcode_libdir_flag_spec_ld \
11018    hardcode_libdir_separator \
11019    hardcode_automatic \
11020    module_cmds \
11021    module_expsym_cmds \
11022    lt_cv_prog_compiler_c_o \
11023    exclude_expsyms \
11024    include_expsyms; do
11025
11026    case $var in
11027    old_archive_cmds | \
11028    old_archive_from_new_cmds | \
11029    archive_cmds | \
11030    archive_expsym_cmds | \
11031    module_cmds | \
11032    module_expsym_cmds | \
11033    old_archive_from_expsyms_cmds | \
11034    export_symbols_cmds | \
11035    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11036    postinstall_cmds | postuninstall_cmds | \
11037    old_postinstall_cmds | old_postuninstall_cmds | \
11038    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11039      # Double-quote double-evaled strings.
11040      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11041      ;;
11042    *)
11043      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11044      ;;
11045    esac
11046  done
11047
11048  case $lt_echo in
11049  *'\$0 --fallback-echo"')
11050    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11051    ;;
11052  esac
11053
11054cfgfile="${ofile}T"
11055  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11056  $rm -f "$cfgfile"
11057  { echo "$as_me:$LINENO: creating $ofile" >&5
11058echo "$as_me: creating $ofile" >&6;}
11059
11060  cat <<__EOF__ >> "$cfgfile"
11061#! $SHELL
11062
11063# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11064# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11065# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11066#
11067# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11068# Free Software Foundation, Inc.
11069#
11070# This file is part of GNU Libtool:
11071# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11072#
11073# This program is free software; you can redistribute it and/or modify
11074# it under the terms of the GNU General Public License as published by
11075# the Free Software Foundation; either version 2 of the License, or
11076# (at your option) any later version.
11077#
11078# This program is distributed in the hope that it will be useful, but
11079# WITHOUT ANY WARRANTY; without even the implied warranty of
11080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11081# General Public License for more details.
11082#
11083# You should have received a copy of the GNU General Public License
11084# along with this program; if not, write to the Free Software
11085# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11086#
11087# As a special exception to the GNU General Public License, if you
11088# distribute this file as part of a program that contains a
11089# configuration script generated by Autoconf, you may include it under
11090# the same distribution terms that you use for the rest of that program.
11091
11092# A sed program that does not truncate output.
11093SED=$lt_SED
11094
11095# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11096Xsed="$SED -e 1s/^X//"
11097
11098# The HP-UX ksh and POSIX shell print the target directory to stdout
11099# if CDPATH is set.
11100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11101
11102# The names of the tagged configurations supported by this script.
11103available_tags=
11104
11105# ### BEGIN LIBTOOL CONFIG
11106
11107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11108
11109# Shell to use when invoking shell scripts.
11110SHELL=$lt_SHELL
11111
11112# Whether or not to build shared libraries.
11113build_libtool_libs=$enable_shared
11114
11115# Whether or not to build static libraries.
11116build_old_libs=$enable_static
11117
11118# Whether or not to add -lc for building shared libraries.
11119build_libtool_need_lc=$archive_cmds_need_lc
11120
11121# Whether or not to disallow shared libs when runtime libs are static
11122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11123
11124# Whether or not to optimize for fast installation.
11125fast_install=$enable_fast_install
11126
11127# The host system.
11128host_alias=$host_alias
11129host=$host
11130host_os=$host_os
11131
11132# The build system.
11133build_alias=$build_alias
11134build=$build
11135build_os=$build_os
11136
11137# An echo program that does not interpret backslashes.
11138echo=$lt_echo
11139
11140# The archiver.
11141AR=$lt_AR
11142AR_FLAGS=$lt_AR_FLAGS
11143
11144# A C compiler.
11145LTCC=$lt_LTCC
11146
11147# LTCC compiler flags.
11148LTCFLAGS=$lt_LTCFLAGS
11149
11150# A language-specific compiler.
11151CC=$lt_compiler
11152
11153# Is the compiler the GNU C compiler?
11154with_gcc=$GCC
11155
11156# An ERE matcher.
11157EGREP=$lt_EGREP
11158
11159# The linker used to build libraries.
11160LD=$lt_LD
11161
11162# Whether we need hard or soft links.
11163LN_S=$lt_LN_S
11164
11165# A BSD-compatible nm program.
11166NM=$lt_NM
11167
11168# A symbol stripping program
11169STRIP=$lt_STRIP
11170
11171# Used to examine libraries when file_magic_cmd begins "file"
11172MAGIC_CMD=$MAGIC_CMD
11173
11174# Used on cygwin: DLL creation program.
11175DLLTOOL="$DLLTOOL"
11176
11177# Used on cygwin: object dumper.
11178OBJDUMP="$OBJDUMP"
11179
11180# Used on cygwin: assembler.
11181AS="$AS"
11182
11183# The name of the directory that contains temporary libtool files.
11184objdir=$objdir
11185
11186# How to create reloadable object files.
11187reload_flag=$lt_reload_flag
11188reload_cmds=$lt_reload_cmds
11189
11190# How to pass a linker flag through the compiler.
11191wl=$lt_lt_prog_compiler_wl
11192
11193# Object file suffix (normally "o").
11194objext="$ac_objext"
11195
11196# Old archive suffix (normally "a").
11197libext="$libext"
11198
11199# Shared library suffix (normally ".so").
11200shrext_cmds='$shrext_cmds'
11201
11202# Executable file suffix (normally "").
11203exeext="$exeext"
11204
11205# Additional compiler flags for building library objects.
11206pic_flag=$lt_lt_prog_compiler_pic
11207pic_mode=$pic_mode
11208
11209# What is the maximum length of a command?
11210max_cmd_len=$lt_cv_sys_max_cmd_len
11211
11212# Does compiler simultaneously support -c and -o options?
11213compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11214
11215# Must we lock files when doing compilation?
11216need_locks=$lt_need_locks
11217
11218# Do we need the lib prefix for modules?
11219need_lib_prefix=$need_lib_prefix
11220
11221# Do we need a version for libraries?
11222need_version=$need_version
11223
11224# Whether dlopen is supported.
11225dlopen_support=$enable_dlopen
11226
11227# Whether dlopen of programs is supported.
11228dlopen_self=$enable_dlopen_self
11229
11230# Whether dlopen of statically linked programs is supported.
11231dlopen_self_static=$enable_dlopen_self_static
11232
11233# Compiler flag to prevent dynamic linking.
11234link_static_flag=$lt_lt_prog_compiler_static
11235
11236# Compiler flag to turn off builtin functions.
11237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11238
11239# Compiler flag to allow reflexive dlopens.
11240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11241
11242# Compiler flag to generate shared objects directly from archives.
11243whole_archive_flag_spec=$lt_whole_archive_flag_spec
11244
11245# Compiler flag to generate thread-safe objects.
11246thread_safe_flag_spec=$lt_thread_safe_flag_spec
11247
11248# Library versioning type.
11249version_type=$version_type
11250
11251# Format of library name prefix.
11252libname_spec=$lt_libname_spec
11253
11254# List of archive names.  First name is the real one, the rest are links.
11255# The last name is the one that the linker finds with -lNAME.
11256library_names_spec=$lt_library_names_spec
11257
11258# The coded name of the library, if different from the real name.
11259soname_spec=$lt_soname_spec
11260
11261# Commands used to build and install an old-style archive.
11262RANLIB=$lt_RANLIB
11263old_archive_cmds=$lt_old_archive_cmds
11264old_postinstall_cmds=$lt_old_postinstall_cmds
11265old_postuninstall_cmds=$lt_old_postuninstall_cmds
11266
11267# Create an old-style archive from a shared archive.
11268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11269
11270# Create a temporary old-style archive to link instead of a shared archive.
11271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11272
11273# Commands used to build and install a shared archive.
11274archive_cmds=$lt_archive_cmds
11275archive_expsym_cmds=$lt_archive_expsym_cmds
11276postinstall_cmds=$lt_postinstall_cmds
11277postuninstall_cmds=$lt_postuninstall_cmds
11278
11279# Commands used to build a loadable module (assumed same as above if empty)
11280module_cmds=$lt_module_cmds
11281module_expsym_cmds=$lt_module_expsym_cmds
11282
11283# Commands to strip libraries.
11284old_striplib=$lt_old_striplib
11285striplib=$lt_striplib
11286
11287# Dependencies to place before the objects being linked to create a
11288# shared library.
11289predep_objects=$lt_predep_objects
11290
11291# Dependencies to place after the objects being linked to create a
11292# shared library.
11293postdep_objects=$lt_postdep_objects
11294
11295# Dependencies to place before the objects being linked to create a
11296# shared library.
11297predeps=$lt_predeps
11298
11299# Dependencies to place after the objects being linked to create a
11300# shared library.
11301postdeps=$lt_postdeps
11302
11303# The library search path used internally by the compiler when linking
11304# a shared library.
11305compiler_lib_search_path=$lt_compiler_lib_search_path
11306
11307# Method to check whether dependent libraries are shared objects.
11308deplibs_check_method=$lt_deplibs_check_method
11309
11310# Command to use when deplibs_check_method == file_magic.
11311file_magic_cmd=$lt_file_magic_cmd
11312
11313# Flag that allows shared libraries with undefined symbols to be built.
11314allow_undefined_flag=$lt_allow_undefined_flag
11315
11316# Flag that forces no undefined symbols.
11317no_undefined_flag=$lt_no_undefined_flag
11318
11319# Commands used to finish a libtool library installation in a directory.
11320finish_cmds=$lt_finish_cmds
11321
11322# Same as above, but a single script fragment to be evaled but not shown.
11323finish_eval=$lt_finish_eval
11324
11325# Take the output of nm and produce a listing of raw symbols and C names.
11326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11327
11328# Transform the output of nm in a proper C declaration
11329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11330
11331# Transform the output of nm in a C name address pair
11332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11333
11334# This is the shared library runtime path variable.
11335runpath_var=$runpath_var
11336
11337# This is the shared library path variable.
11338shlibpath_var=$shlibpath_var
11339
11340# Is shlibpath searched before the hard-coded library search path?
11341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11342
11343# How to hardcode a shared library path into an executable.
11344hardcode_action=$hardcode_action
11345
11346# Whether we should hardcode library paths into libraries.
11347hardcode_into_libs=$hardcode_into_libs
11348
11349# Flag to hardcode \$libdir into a binary during linking.
11350# This must work even if \$libdir does not exist.
11351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11352
11353# If ld is used when linking, flag to hardcode \$libdir into
11354# a binary during linking. This must work even if \$libdir does
11355# not exist.
11356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11357
11358# Whether we need a single -rpath flag with a separated argument.
11359hardcode_libdir_separator=$lt_hardcode_libdir_separator
11360
11361# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11362# resulting binary.
11363hardcode_direct=$hardcode_direct
11364
11365# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11366# resulting binary.
11367hardcode_minus_L=$hardcode_minus_L
11368
11369# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11370# the resulting binary.
11371hardcode_shlibpath_var=$hardcode_shlibpath_var
11372
11373# Set to yes if building a shared library automatically hardcodes DIR into the library
11374# and all subsequent libraries and executables linked against it.
11375hardcode_automatic=$hardcode_automatic
11376
11377# Variables whose values should be saved in libtool wrapper scripts and
11378# restored at relink time.
11379variables_saved_for_relink="$variables_saved_for_relink"
11380
11381# Whether libtool must link a program against all its dependency libraries.
11382link_all_deplibs=$link_all_deplibs
11383
11384# Compile-time system search path for libraries
11385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11386
11387# Run-time system search path for libraries
11388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11389
11390# Fix the shell variable \$srcfile for the compiler.
11391fix_srcfile_path="$fix_srcfile_path"
11392
11393# Set to yes if exported symbols are required.
11394always_export_symbols=$always_export_symbols
11395
11396# The commands to list exported symbols.
11397export_symbols_cmds=$lt_export_symbols_cmds
11398
11399# The commands to extract the exported symbol list from a shared archive.
11400extract_expsyms_cmds=$lt_extract_expsyms_cmds
11401
11402# Symbols that should not be listed in the preloaded symbols.
11403exclude_expsyms=$lt_exclude_expsyms
11404
11405# Symbols that must always be exported.
11406include_expsyms=$lt_include_expsyms
11407
11408# ### END LIBTOOL CONFIG
11409
11410__EOF__
11411
11412
11413  case $host_os in
11414  aix3*)
11415    cat <<\EOF >> "$cfgfile"
11416
11417# AIX sometimes has problems with the GCC collect2 program.  For some
11418# reason, if we set the COLLECT_NAMES environment variable, the problems
11419# vanish in a puff of smoke.
11420if test "X${COLLECT_NAMES+set}" != Xset; then
11421  COLLECT_NAMES=
11422  export COLLECT_NAMES
11423fi
11424EOF
11425    ;;
11426  esac
11427
11428  # We use sed instead of cat because bash on DJGPP gets confused if
11429  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11430  # text mode, it properly converts lines to CR/LF.  This bash problem
11431  # is reportedly fixed, but why not run on old versions too?
11432  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11433
11434  mv -f "$cfgfile" "$ofile" || \
11435    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11436  chmod +x "$ofile"
11437
11438else
11439  # If there is no Makefile yet, we rely on a make rule to execute
11440  # `config.status --recheck' to rerun these tests and create the
11441  # libtool script then.
11442  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11443  if test -f "$ltmain_in"; then
11444    test -f Makefile && make "$ltmain"
11445  fi
11446fi
11447
11448
11449ac_ext=c
11450ac_cpp='$CPP $CPPFLAGS'
11451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11453ac_compiler_gnu=$ac_cv_c_compiler_gnu
11454
11455CC="$lt_save_CC"
11456
11457
11458# Check whether --with-tags or --without-tags was given.
11459if test "${with_tags+set}" = set; then
11460  withval="$with_tags"
11461  tagnames="$withval"
11462fi;
11463
11464if test -f "$ltmain" && test -n "$tagnames"; then
11465  if test ! -f "${ofile}"; then
11466    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11467echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11468  fi
11469
11470  if test -z "$LTCC"; then
11471    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11472    if test -z "$LTCC"; then
11473      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11474echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11475    else
11476      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11477echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11478    fi
11479  fi
11480  if test -z "$LTCFLAGS"; then
11481    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11482  fi
11483
11484  # Extract list of available tagged configurations in $ofile.
11485  # Note that this assumes the entire list is on one line.
11486  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11487
11488  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11489  for tagname in $tagnames; do
11490    IFS="$lt_save_ifs"
11491    # Check whether tagname contains only valid characters
11492    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11493    "") ;;
11494    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11495echo "$as_me: error: invalid tag name: $tagname" >&2;}
11496   { (exit 1); exit 1; }; }
11497	;;
11498    esac
11499
11500    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11501    then
11502      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11503echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11504   { (exit 1); exit 1; }; }
11505    fi
11506
11507    # Update the list of available tags.
11508    if test -n "$tagname"; then
11509      echo appending configuration tag \"$tagname\" to $ofile
11510
11511      case $tagname in
11512      CXX)
11513	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11514	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11515	    (test "X$CXX" != "Xg++"))) ; then
11516	  ac_ext=cc
11517ac_cpp='$CXXCPP $CPPFLAGS'
11518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11521
11522
11523
11524
11525archive_cmds_need_lc_CXX=no
11526allow_undefined_flag_CXX=
11527always_export_symbols_CXX=no
11528archive_expsym_cmds_CXX=
11529export_dynamic_flag_spec_CXX=
11530hardcode_direct_CXX=no
11531hardcode_libdir_flag_spec_CXX=
11532hardcode_libdir_flag_spec_ld_CXX=
11533hardcode_libdir_separator_CXX=
11534hardcode_minus_L_CXX=no
11535hardcode_shlibpath_var_CXX=unsupported
11536hardcode_automatic_CXX=no
11537module_cmds_CXX=
11538module_expsym_cmds_CXX=
11539link_all_deplibs_CXX=unknown
11540old_archive_cmds_CXX=$old_archive_cmds
11541no_undefined_flag_CXX=
11542whole_archive_flag_spec_CXX=
11543enable_shared_with_static_runtimes_CXX=no
11544
11545# Dependencies to place before and after the object being linked:
11546predep_objects_CXX=
11547postdep_objects_CXX=
11548predeps_CXX=
11549postdeps_CXX=
11550compiler_lib_search_path_CXX=
11551
11552# Source file extension for C++ test sources.
11553ac_ext=cpp
11554
11555# Object file extension for compiled C++ test sources.
11556objext=o
11557objext_CXX=$objext
11558
11559# Code to be used in simple compile tests
11560lt_simple_compile_test_code="int some_variable = 0;\n"
11561
11562# Code to be used in simple link tests
11563lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11564
11565# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11566
11567# If no C compiler was specified, use CC.
11568LTCC=${LTCC-"$CC"}
11569
11570# If no C compiler flags were specified, use CFLAGS.
11571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11572
11573# Allow CC to be a program name with arguments.
11574compiler=$CC
11575
11576
11577# save warnings/boilerplate of simple test code
11578ac_outfile=conftest.$ac_objext
11579printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11581_lt_compiler_boilerplate=`cat conftest.err`
11582$rm conftest*
11583
11584ac_outfile=conftest.$ac_objext
11585printf "$lt_simple_link_test_code" >conftest.$ac_ext
11586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11587_lt_linker_boilerplate=`cat conftest.err`
11588$rm conftest*
11589
11590
11591# Allow CC to be a program name with arguments.
11592lt_save_CC=$CC
11593lt_save_LD=$LD
11594lt_save_GCC=$GCC
11595GCC=$GXX
11596lt_save_with_gnu_ld=$with_gnu_ld
11597lt_save_path_LD=$lt_cv_path_LD
11598if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11599  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11600else
11601  $as_unset lt_cv_prog_gnu_ld
11602fi
11603if test -n "${lt_cv_path_LDCXX+set}"; then
11604  lt_cv_path_LD=$lt_cv_path_LDCXX
11605else
11606  $as_unset lt_cv_path_LD
11607fi
11608test -z "${LDCXX+set}" || LD=$LDCXX
11609CC=${CXX-"c++"}
11610compiler=$CC
11611compiler_CXX=$CC
11612for cc_temp in $compiler""; do
11613  case $cc_temp in
11614    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11615    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11616    \-*) ;;
11617    *) break;;
11618  esac
11619done
11620cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11621
11622
11623# We don't want -fno-exception wen compiling C++ code, so set the
11624# no_builtin_flag separately
11625if test "$GXX" = yes; then
11626  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11627else
11628  lt_prog_compiler_no_builtin_flag_CXX=
11629fi
11630
11631if test "$GXX" = yes; then
11632  # Set up default GNU C++ configuration
11633
11634
11635# Check whether --with-gnu-ld or --without-gnu-ld was given.
11636if test "${with_gnu_ld+set}" = set; then
11637  withval="$with_gnu_ld"
11638  test "$withval" = no || with_gnu_ld=yes
11639else
11640  with_gnu_ld=no
11641fi;
11642ac_prog=ld
11643if test "$GCC" = yes; then
11644  # Check if gcc -print-prog-name=ld gives a path.
11645  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11646echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11647  case $host in
11648  *-*-mingw*)
11649    # gcc leaves a trailing carriage return which upsets mingw
11650    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11651  *)
11652    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11653  esac
11654  case $ac_prog in
11655    # Accept absolute paths.
11656    [\\/]* | ?:[\\/]*)
11657      re_direlt='/[^/][^/]*/\.\./'
11658      # Canonicalize the pathname of ld
11659      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11660      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11661	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11662      done
11663      test -z "$LD" && LD="$ac_prog"
11664      ;;
11665  "")
11666    # If it fails, then pretend we aren't using GCC.
11667    ac_prog=ld
11668    ;;
11669  *)
11670    # If it is relative, then search for the first ld in PATH.
11671    with_gnu_ld=unknown
11672    ;;
11673  esac
11674elif test "$with_gnu_ld" = yes; then
11675  echo "$as_me:$LINENO: checking for GNU ld" >&5
11676echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11677else
11678  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11679echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11680fi
11681if test "${lt_cv_path_LD+set}" = set; then
11682  echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684  if test -z "$LD"; then
11685  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11686  for ac_dir in $PATH; do
11687    IFS="$lt_save_ifs"
11688    test -z "$ac_dir" && ac_dir=.
11689    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11690      lt_cv_path_LD="$ac_dir/$ac_prog"
11691      # Check to see if the program is GNU ld.  I'd rather use --version,
11692      # but apparently some variants of GNU ld only accept -v.
11693      # Break only if it was the GNU/non-GNU ld that we prefer.
11694      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11695      *GNU* | *'with BFD'*)
11696	test "$with_gnu_ld" != no && break
11697	;;
11698      *)
11699	test "$with_gnu_ld" != yes && break
11700	;;
11701      esac
11702    fi
11703  done
11704  IFS="$lt_save_ifs"
11705else
11706  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11707fi
11708fi
11709
11710LD="$lt_cv_path_LD"
11711if test -n "$LD"; then
11712  echo "$as_me:$LINENO: result: $LD" >&5
11713echo "${ECHO_T}$LD" >&6
11714else
11715  echo "$as_me:$LINENO: result: no" >&5
11716echo "${ECHO_T}no" >&6
11717fi
11718test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11719echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11720   { (exit 1); exit 1; }; }
11721echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11722echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11723if test "${lt_cv_prog_gnu_ld+set}" = set; then
11724  echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11727case `$LD -v 2>&1 </dev/null` in
11728*GNU* | *'with BFD'*)
11729  lt_cv_prog_gnu_ld=yes
11730  ;;
11731*)
11732  lt_cv_prog_gnu_ld=no
11733  ;;
11734esac
11735fi
11736echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11737echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11738with_gnu_ld=$lt_cv_prog_gnu_ld
11739
11740
11741
11742  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11743  # archiving commands below assume that GNU ld is being used.
11744  if test "$with_gnu_ld" = yes; then
11745    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11746    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'
11747
11748    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11749    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11750
11751    # If archive_cmds runs LD, not CC, wlarc should be empty
11752    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11753    #     investigate it a little bit more. (MM)
11754    wlarc='${wl}'
11755
11756    # ancient GNU ld didn't support --whole-archive et. al.
11757    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11758	grep 'no-whole-archive' > /dev/null; then
11759      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11760    else
11761      whole_archive_flag_spec_CXX=
11762    fi
11763  else
11764    with_gnu_ld=no
11765    wlarc=
11766
11767    # A generic and very simple default shared library creation
11768    # command for GNU C++ for the case where it uses the native
11769    # linker, instead of GNU ld.  If possible, this setting should
11770    # overridden to take advantage of the native linker features on
11771    # the platform it is being used on.
11772    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11773  fi
11774
11775  # Commands to make compiler produce verbose output that lists
11776  # what "hidden" libraries, object files and flags are used when
11777  # linking a shared library.
11778  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11779
11780else
11781  GXX=no
11782  with_gnu_ld=no
11783  wlarc=
11784fi
11785
11786# PORTME: fill in a description of your system's C++ link characteristics
11787echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11789ld_shlibs_CXX=yes
11790case $host_os in
11791  aix3*)
11792    # FIXME: insert proper C++ library support
11793    ld_shlibs_CXX=no
11794    ;;
11795  aix4* | aix5*)
11796    if test "$host_cpu" = ia64; then
11797      # On IA64, the linker does run time linking by default, so we don't
11798      # have to do anything special.
11799      aix_use_runtimelinking=no
11800      exp_sym_flag='-Bexport'
11801      no_entry_flag=""
11802    else
11803      aix_use_runtimelinking=no
11804
11805      # Test if we are trying to use run time linking or normal
11806      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11807      # need to do runtime linking.
11808      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11809	for ld_flag in $LDFLAGS; do
11810	  case $ld_flag in
11811	  *-brtl*)
11812	    aix_use_runtimelinking=yes
11813	    break
11814	    ;;
11815	  esac
11816	done
11817	;;
11818      esac
11819
11820      exp_sym_flag='-bexport'
11821      no_entry_flag='-bnoentry'
11822    fi
11823
11824    # When large executables or shared objects are built, AIX ld can
11825    # have problems creating the table of contents.  If linking a library
11826    # or program results in "error TOC overflow" add -mminimal-toc to
11827    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11828    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11829
11830    archive_cmds_CXX=''
11831    hardcode_direct_CXX=yes
11832    hardcode_libdir_separator_CXX=':'
11833    link_all_deplibs_CXX=yes
11834
11835    if test "$GXX" = yes; then
11836      case $host_os in aix4.[012]|aix4.[012].*)
11837      # We only want to do this on AIX 4.2 and lower, the check
11838      # below for broken collect2 doesn't work under 4.3+
11839	collect2name=`${CC} -print-prog-name=collect2`
11840	if test -f "$collect2name" && \
11841	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11842	then
11843	  # We have reworked collect2
11844	  hardcode_direct_CXX=yes
11845	else
11846	  # We have old collect2
11847	  hardcode_direct_CXX=unsupported
11848	  # It fails to find uninstalled libraries when the uninstalled
11849	  # path is not listed in the libpath.  Setting hardcode_minus_L
11850	  # to unsupported forces relinking
11851	  hardcode_minus_L_CXX=yes
11852	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11853	  hardcode_libdir_separator_CXX=
11854	fi
11855	;;
11856      esac
11857      shared_flag='-shared'
11858      if test "$aix_use_runtimelinking" = yes; then
11859	shared_flag="$shared_flag "'${wl}-G'
11860      fi
11861    else
11862      # not using gcc
11863      if test "$host_cpu" = ia64; then
11864	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11865	# chokes on -Wl,-G. The following line is correct:
11866	shared_flag='-G'
11867      else
11868	if test "$aix_use_runtimelinking" = yes; then
11869	  shared_flag='${wl}-G'
11870	else
11871	  shared_flag='${wl}-bM:SRE'
11872	fi
11873      fi
11874    fi
11875
11876    # It seems that -bexpall does not export symbols beginning with
11877    # underscore (_), so it is better to generate a list of symbols to export.
11878    always_export_symbols_CXX=yes
11879    if test "$aix_use_runtimelinking" = yes; then
11880      # Warning - without using the other runtime loading flags (-brtl),
11881      # -berok will link without error, but may produce a broken library.
11882      allow_undefined_flag_CXX='-berok'
11883      # Determine the default libpath from the value encoded in an empty executable.
11884      cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h.  */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h.  */
11890
11891int
11892main ()
11893{
11894
11895  ;
11896  return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext conftest$ac_exeext
11900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901  (eval $ac_link) 2>conftest.er1
11902  ac_status=$?
11903  grep -v '^ *+' conftest.er1 >conftest.err
11904  rm -f conftest.er1
11905  cat conftest.err >&5
11906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907  (exit $ac_status); } &&
11908	 { ac_try='test -z "$ac_cxx_werror_flag"
11909			 || test ! -s conftest.err'
11910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911  (eval $ac_try) 2>&5
11912  ac_status=$?
11913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914  (exit $ac_status); }; } &&
11915	 { ac_try='test -s conftest$ac_exeext'
11916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917  (eval $ac_try) 2>&5
11918  ac_status=$?
11919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920  (exit $ac_status); }; }; then
11921
11922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11923}'`
11924# Check for a 64-bit object if we didn't find anything.
11925if 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; }
11926}'`; fi
11927else
11928  echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931fi
11932rm -f conftest.err conftest.$ac_objext \
11933      conftest$ac_exeext conftest.$ac_ext
11934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11935
11936      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11937
11938      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"
11939     else
11940      if test "$host_cpu" = ia64; then
11941	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11942	allow_undefined_flag_CXX="-z nodefs"
11943	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"
11944      else
11945	# Determine the default libpath from the value encoded in an empty executable.
11946	cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h.  */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h.  */
11952
11953int
11954main ()
11955{
11956
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext conftest$ac_exeext
11962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963  (eval $ac_link) 2>conftest.er1
11964  ac_status=$?
11965  grep -v '^ *+' conftest.er1 >conftest.err
11966  rm -f conftest.er1
11967  cat conftest.err >&5
11968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969  (exit $ac_status); } &&
11970	 { ac_try='test -z "$ac_cxx_werror_flag"
11971			 || test ! -s conftest.err'
11972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973  (eval $ac_try) 2>&5
11974  ac_status=$?
11975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976  (exit $ac_status); }; } &&
11977	 { ac_try='test -s conftest$ac_exeext'
11978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979  (eval $ac_try) 2>&5
11980  ac_status=$?
11981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982  (exit $ac_status); }; }; then
11983
11984aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11985}'`
11986# Check for a 64-bit object if we didn't find anything.
11987if 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; }
11988}'`; fi
11989else
11990  echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993fi
11994rm -f conftest.err conftest.$ac_objext \
11995      conftest$ac_exeext conftest.$ac_ext
11996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11997
11998	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11999	# Warning - without using the other run time loading flags,
12000	# -berok will link without error, but may produce a broken library.
12001	no_undefined_flag_CXX=' ${wl}-bernotok'
12002	allow_undefined_flag_CXX=' ${wl}-berok'
12003	# Exported symbols can be pulled into shared objects from archives
12004	whole_archive_flag_spec_CXX='$convenience'
12005	archive_cmds_need_lc_CXX=yes
12006	# This is similar to how AIX traditionally builds its shared libraries.
12007	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'
12008      fi
12009    fi
12010    ;;
12011
12012  beos*)
12013    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12014      allow_undefined_flag_CXX=unsupported
12015      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12016      # support --undefined.  This deserves some investigation.  FIXME
12017      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12018    else
12019      ld_shlibs_CXX=no
12020    fi
12021    ;;
12022
12023  chorus*)
12024    case $cc_basename in
12025      *)
12026	# FIXME: insert proper C++ library support
12027	ld_shlibs_CXX=no
12028	;;
12029    esac
12030    ;;
12031
12032  cygwin* | mingw* | pw32*)
12033    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12034    # as there is no search path for DLLs.
12035    hardcode_libdir_flag_spec_CXX='-L$libdir'
12036    allow_undefined_flag_CXX=unsupported
12037    always_export_symbols_CXX=no
12038    enable_shared_with_static_runtimes_CXX=yes
12039
12040    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12041      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'
12042      # If the export-symbols file already is a .def file (1st line
12043      # is EXPORTS), use it as is; otherwise, prepend...
12044      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12045	cp $export_symbols $output_objdir/$soname.def;
12046      else
12047	echo EXPORTS > $output_objdir/$soname.def;
12048	cat $export_symbols >> $output_objdir/$soname.def;
12049      fi~
12050      $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'
12051    else
12052      ld_shlibs_CXX=no
12053    fi
12054  ;;
12055      darwin* | rhapsody*)
12056        case $host_os in
12057        rhapsody* | darwin1.[012])
12058         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12059         ;;
12060       *) # Darwin 1.3 on
12061         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12062           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12063         else
12064           case ${MACOSX_DEPLOYMENT_TARGET} in
12065             10.[012])
12066               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12067               ;;
12068             10.*)
12069               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12070               ;;
12071           esac
12072         fi
12073         ;;
12074        esac
12075      archive_cmds_need_lc_CXX=no
12076      hardcode_direct_CXX=no
12077      hardcode_automatic_CXX=yes
12078      hardcode_shlibpath_var_CXX=unsupported
12079      whole_archive_flag_spec_CXX=''
12080      link_all_deplibs_CXX=yes
12081
12082    if test "$GXX" = yes ; then
12083      lt_int_apple_cc_single_mod=no
12084      output_verbose_link_cmd='echo'
12085      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12086       lt_int_apple_cc_single_mod=yes
12087      fi
12088      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12089       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12090      else
12091          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'
12092        fi
12093        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12094        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12095          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12096            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}'
12097          else
12098            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}'
12099          fi
12100            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}'
12101      else
12102      case $cc_basename in
12103        xlc*)
12104         output_verbose_link_cmd='echo'
12105          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'
12106          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12107          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12108          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}'
12109          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}'
12110          ;;
12111       *)
12112         ld_shlibs_CXX=no
12113          ;;
12114      esac
12115      fi
12116        ;;
12117
12118  dgux*)
12119    case $cc_basename in
12120      ec++*)
12121	# FIXME: insert proper C++ library support
12122	ld_shlibs_CXX=no
12123	;;
12124      ghcx*)
12125	# Green Hills C++ Compiler
12126	# FIXME: insert proper C++ library support
12127	ld_shlibs_CXX=no
12128	;;
12129      *)
12130	# FIXME: insert proper C++ library support
12131	ld_shlibs_CXX=no
12132	;;
12133    esac
12134    ;;
12135  freebsd[12]*)
12136    # C++ shared libraries reported to be fairly broken before switch to ELF
12137    ld_shlibs_CXX=no
12138    ;;
12139  freebsd-elf*)
12140    archive_cmds_need_lc_CXX=no
12141    ;;
12142  freebsd* | kfreebsd*-gnu | dragonfly*)
12143    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12144    # conventions
12145    ld_shlibs_CXX=yes
12146    ;;
12147  gnu*)
12148    ;;
12149  hpux9*)
12150    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12151    hardcode_libdir_separator_CXX=:
12152    export_dynamic_flag_spec_CXX='${wl}-E'
12153    hardcode_direct_CXX=yes
12154    hardcode_minus_L_CXX=yes # Not in the search PATH,
12155				# but as the default
12156				# location of the library.
12157
12158    case $cc_basename in
12159    CC*)
12160      # FIXME: insert proper C++ library support
12161      ld_shlibs_CXX=no
12162      ;;
12163    aCC*)
12164      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'
12165      # Commands to make compiler produce verbose output that lists
12166      # what "hidden" libraries, object files and flags are used when
12167      # linking a shared library.
12168      #
12169      # There doesn't appear to be a way to prevent this compiler from
12170      # explicitly linking system object files so we need to strip them
12171      # from the output so that they don't get included in the library
12172      # dependencies.
12173      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'
12174      ;;
12175    *)
12176      if test "$GXX" = yes; then
12177        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'
12178      else
12179        # FIXME: insert proper C++ library support
12180        ld_shlibs_CXX=no
12181      fi
12182      ;;
12183    esac
12184    ;;
12185  hpux10*|hpux11*)
12186    if test $with_gnu_ld = no; then
12187      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12188      hardcode_libdir_separator_CXX=:
12189
12190      case $host_cpu in
12191      hppa*64*|ia64*)
12192	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12193        ;;
12194      *)
12195	export_dynamic_flag_spec_CXX='${wl}-E'
12196        ;;
12197      esac
12198    fi
12199    case $host_cpu in
12200    hppa*64*|ia64*)
12201      hardcode_direct_CXX=no
12202      hardcode_shlibpath_var_CXX=no
12203      ;;
12204    *)
12205      hardcode_direct_CXX=yes
12206      hardcode_minus_L_CXX=yes # Not in the search PATH,
12207					      # but as the default
12208					      # location of the library.
12209      ;;
12210    esac
12211
12212    case $cc_basename in
12213      CC*)
12214	# FIXME: insert proper C++ library support
12215	ld_shlibs_CXX=no
12216	;;
12217      aCC*)
12218	case $host_cpu in
12219	hppa*64*)
12220	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12221	  ;;
12222	ia64*)
12223	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12224	  ;;
12225	*)
12226	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12227	  ;;
12228	esac
12229	# Commands to make compiler produce verbose output that lists
12230	# what "hidden" libraries, object files and flags are used when
12231	# linking a shared library.
12232	#
12233	# There doesn't appear to be a way to prevent this compiler from
12234	# explicitly linking system object files so we need to strip them
12235	# from the output so that they don't get included in the library
12236	# dependencies.
12237	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'
12238	;;
12239      *)
12240	if test "$GXX" = yes; then
12241	  if test $with_gnu_ld = no; then
12242	    case $host_cpu in
12243	    hppa*64*)
12244	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12245	      ;;
12246	    ia64*)
12247	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12248	      ;;
12249	    *)
12250	      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'
12251	      ;;
12252	    esac
12253	  fi
12254	else
12255	  # FIXME: insert proper C++ library support
12256	  ld_shlibs_CXX=no
12257	fi
12258	;;
12259    esac
12260    ;;
12261  interix3*)
12262    hardcode_direct_CXX=no
12263    hardcode_shlibpath_var_CXX=no
12264    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12265    export_dynamic_flag_spec_CXX='${wl}-E'
12266    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12267    # Instead, shared libraries are loaded at an image base (0x10000000 by
12268    # default) and relocated if they conflict, which is a slow very memory
12269    # consuming and fragmenting process.  To avoid this, we pick a random,
12270    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12271    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12272    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'
12273    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'
12274    ;;
12275  irix5* | irix6*)
12276    case $cc_basename in
12277      CC*)
12278	# SGI C++
12279	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'
12280
12281	# Archives containing C++ object files must be created using
12282	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12283	# necessary to make sure instantiated templates are included
12284	# in the archive.
12285	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12286	;;
12287      *)
12288	if test "$GXX" = yes; then
12289	  if test "$with_gnu_ld" = no; then
12290	    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'
12291	  else
12292	    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'
12293	  fi
12294	fi
12295	link_all_deplibs_CXX=yes
12296	;;
12297    esac
12298    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299    hardcode_libdir_separator_CXX=:
12300    ;;
12301  linux*)
12302    case $cc_basename in
12303      KCC*)
12304	# Kuck and Associates, Inc. (KAI) C++ Compiler
12305
12306	# KCC will only create a shared library if the output file
12307	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12308	# to its proper name (with version) after linking.
12309	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'
12310	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'
12311	# Commands to make compiler produce verbose output that lists
12312	# what "hidden" libraries, object files and flags are used when
12313	# linking a shared library.
12314	#
12315	# There doesn't appear to be a way to prevent this compiler from
12316	# explicitly linking system object files so we need to strip them
12317	# from the output so that they don't get included in the library
12318	# dependencies.
12319	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'
12320
12321	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12322	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12323
12324	# Archives containing C++ object files must be created using
12325	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12326	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12327	;;
12328      icpc*)
12329	# Intel C++
12330	with_gnu_ld=yes
12331	# version 8.0 and above of icpc choke on multiply defined symbols
12332	# if we add $predep_objects and $postdep_objects, however 7.1 and
12333	# earlier do not add the objects themselves.
12334	case `$CC -V 2>&1` in
12335	*"Version 7."*)
12336  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12337  	  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'
12338	  ;;
12339	*)  # Version 8.0 or newer
12340	  tmp_idyn=
12341	  case $host_cpu in
12342	    ia64*) tmp_idyn=' -i_dynamic';;
12343	  esac
12344  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12345	  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'
12346	  ;;
12347	esac
12348	archive_cmds_need_lc_CXX=no
12349	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12350	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12351	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12352	;;
12353      pgCC*)
12354        # Portland Group C++ compiler
12355	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12356  	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'
12357
12358	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12359	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12360	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'
12361        ;;
12362      cxx*)
12363	# Compaq C++
12364	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365	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'
12366
12367	runpath_var=LD_RUN_PATH
12368	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12369	hardcode_libdir_separator_CXX=:
12370
12371	# Commands to make compiler produce verbose output that lists
12372	# what "hidden" libraries, object files and flags are used when
12373	# linking a shared library.
12374	#
12375	# There doesn't appear to be a way to prevent this compiler from
12376	# explicitly linking system object files so we need to strip them
12377	# from the output so that they don't get included in the library
12378	# dependencies.
12379	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'
12380	;;
12381    esac
12382    ;;
12383  lynxos*)
12384    # FIXME: insert proper C++ library support
12385    ld_shlibs_CXX=no
12386    ;;
12387  m88k*)
12388    # FIXME: insert proper C++ library support
12389    ld_shlibs_CXX=no
12390    ;;
12391  mvs*)
12392    case $cc_basename in
12393      cxx*)
12394	# FIXME: insert proper C++ library support
12395	ld_shlibs_CXX=no
12396	;;
12397      *)
12398	# FIXME: insert proper C++ library support
12399	ld_shlibs_CXX=no
12400	;;
12401    esac
12402    ;;
12403  netbsd*)
12404    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12405      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12406      wlarc=
12407      hardcode_libdir_flag_spec_CXX='-R$libdir'
12408      hardcode_direct_CXX=yes
12409      hardcode_shlibpath_var_CXX=no
12410    fi
12411    # Workaround some broken pre-1.5 toolchains
12412    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12413    ;;
12414  openbsd2*)
12415    # C++ shared libraries are fairly broken
12416    ld_shlibs_CXX=no
12417    ;;
12418  openbsd*)
12419    hardcode_direct_CXX=yes
12420    hardcode_shlibpath_var_CXX=no
12421    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12422    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12423    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12424      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12425      export_dynamic_flag_spec_CXX='${wl}-E'
12426      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12427    fi
12428    output_verbose_link_cmd='echo'
12429    ;;
12430  osf3*)
12431    case $cc_basename in
12432      KCC*)
12433	# Kuck and Associates, Inc. (KAI) C++ Compiler
12434
12435	# KCC will only create a shared library if the output file
12436	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12437	# to its proper name (with version) after linking.
12438	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'
12439
12440	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12441	hardcode_libdir_separator_CXX=:
12442
12443	# Archives containing C++ object files must be created using
12444	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12445	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12446
12447	;;
12448      RCC*)
12449	# Rational C++ 2.4.1
12450	# FIXME: insert proper C++ library support
12451	ld_shlibs_CXX=no
12452	;;
12453      cxx*)
12454	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455	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'
12456
12457	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458	hardcode_libdir_separator_CXX=:
12459
12460	# Commands to make compiler produce verbose output that lists
12461	# what "hidden" libraries, object files and flags are used when
12462	# linking a shared library.
12463	#
12464	# There doesn't appear to be a way to prevent this compiler from
12465	# explicitly linking system object files so we need to strip them
12466	# from the output so that they don't get included in the library
12467	# dependencies.
12468	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'
12469	;;
12470      *)
12471	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12472	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12473	  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'
12474
12475	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12476	  hardcode_libdir_separator_CXX=:
12477
12478	  # Commands to make compiler produce verbose output that lists
12479	  # what "hidden" libraries, object files and flags are used when
12480	  # linking a shared library.
12481	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12482
12483	else
12484	  # FIXME: insert proper C++ library support
12485	  ld_shlibs_CXX=no
12486	fi
12487	;;
12488    esac
12489    ;;
12490  osf4* | osf5*)
12491    case $cc_basename in
12492      KCC*)
12493	# Kuck and Associates, Inc. (KAI) C++ Compiler
12494
12495	# KCC will only create a shared library if the output file
12496	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12497	# to its proper name (with version) after linking.
12498	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'
12499
12500	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12501	hardcode_libdir_separator_CXX=:
12502
12503	# Archives containing C++ object files must be created using
12504	# the KAI C++ compiler.
12505	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12506	;;
12507      RCC*)
12508	# Rational C++ 2.4.1
12509	# FIXME: insert proper C++ library support
12510	ld_shlibs_CXX=no
12511	;;
12512      cxx*)
12513	allow_undefined_flag_CXX=' -expect_unresolved \*'
12514	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'
12515	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12516	  echo "-hidden">> $lib.exp~
12517	  $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~
12518	  $rm $lib.exp'
12519
12520	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12521	hardcode_libdir_separator_CXX=:
12522
12523	# Commands to make compiler produce verbose output that lists
12524	# what "hidden" libraries, object files and flags are used when
12525	# linking a shared library.
12526	#
12527	# There doesn't appear to be a way to prevent this compiler from
12528	# explicitly linking system object files so we need to strip them
12529	# from the output so that they don't get included in the library
12530	# dependencies.
12531	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'
12532	;;
12533      *)
12534	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12535	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12536	 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'
12537
12538	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12539	  hardcode_libdir_separator_CXX=:
12540
12541	  # Commands to make compiler produce verbose output that lists
12542	  # what "hidden" libraries, object files and flags are used when
12543	  # linking a shared library.
12544	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12545
12546	else
12547	  # FIXME: insert proper C++ library support
12548	  ld_shlibs_CXX=no
12549	fi
12550	;;
12551    esac
12552    ;;
12553  psos*)
12554    # FIXME: insert proper C++ library support
12555    ld_shlibs_CXX=no
12556    ;;
12557  sunos4*)
12558    case $cc_basename in
12559      CC*)
12560	# Sun C++ 4.x
12561	# FIXME: insert proper C++ library support
12562	ld_shlibs_CXX=no
12563	;;
12564      lcc*)
12565	# Lucid
12566	# FIXME: insert proper C++ library support
12567	ld_shlibs_CXX=no
12568	;;
12569      *)
12570	# FIXME: insert proper C++ library support
12571	ld_shlibs_CXX=no
12572	;;
12573    esac
12574    ;;
12575  solaris*)
12576    case $cc_basename in
12577      CC*)
12578	# Sun C++ 4.2, 5.x and Centerline C++
12579        archive_cmds_need_lc_CXX=yes
12580	no_undefined_flag_CXX=' -zdefs'
12581	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12582	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12583	$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'
12584
12585	hardcode_libdir_flag_spec_CXX='-R$libdir'
12586	hardcode_shlibpath_var_CXX=no
12587	case $host_os in
12588	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12589	  *)
12590	    # The C++ compiler is used as linker so we must use $wl
12591	    # flag to pass the commands to the underlying system
12592	    # linker. We must also pass each convience library through
12593	    # to the system linker between allextract/defaultextract.
12594	    # The C++ compiler will combine linker options so we
12595	    # cannot just pass the convience library names through
12596	    # without $wl.
12597	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12598	    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'
12599	    ;;
12600	esac
12601	link_all_deplibs_CXX=yes
12602
12603	output_verbose_link_cmd='echo'
12604
12605	# Archives containing C++ object files must be created using
12606	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12607	# necessary to make sure instantiated templates are included
12608	# in the archive.
12609	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12610	;;
12611      gcx*)
12612	# Green Hills C++ Compiler
12613	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12614
12615	# The C++ compiler must be used to create the archive.
12616	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12617	;;
12618      *)
12619	# GNU C++ compiler with Solaris linker
12620	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12621	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12622	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12623	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12624	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12625		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12626
12627	    # Commands to make compiler produce verbose output that lists
12628	    # what "hidden" libraries, object files and flags are used when
12629	    # linking a shared library.
12630	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12631	  else
12632	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12633	    # platform.
12634	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12635	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12636		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12637
12638	    # Commands to make compiler produce verbose output that lists
12639	    # what "hidden" libraries, object files and flags are used when
12640	    # linking a shared library.
12641	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12642	  fi
12643
12644	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12645	fi
12646	;;
12647    esac
12648    ;;
12649  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12650    no_undefined_flag_CXX='${wl}-z,text'
12651    archive_cmds_need_lc_CXX=no
12652    hardcode_shlibpath_var_CXX=no
12653    runpath_var='LD_RUN_PATH'
12654
12655    case $cc_basename in
12656      CC*)
12657	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12658	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12659	;;
12660      *)
12661	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12662	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12663	;;
12664    esac
12665    ;;
12666  sysv5* | sco3.2v5* | sco5v6*)
12667    # Note: We can NOT use -z defs as we might desire, because we do not
12668    # link with -lc, and that would cause any symbols used from libc to
12669    # always be unresolved, which means just about no library would
12670    # ever link correctly.  If we're not using GNU ld we use -z text
12671    # though, which does catch some bad symbols but isn't as heavy-handed
12672    # as -z defs.
12673    # For security reasons, it is highly recommended that you always
12674    # use absolute paths for naming shared libraries, and exclude the
12675    # DT_RUNPATH tag from executables and libraries.  But doing so
12676    # requires that you compile everything twice, which is a pain.
12677    # So that behaviour is only enabled if SCOABSPATH is set to a
12678    # non-empty value in the environment.  Most likely only useful for
12679    # creating official distributions of packages.
12680    # This is a hack until libtool officially supports absolute path
12681    # names for shared libraries.
12682    no_undefined_flag_CXX='${wl}-z,text'
12683    allow_undefined_flag_CXX='${wl}-z,nodefs'
12684    archive_cmds_need_lc_CXX=no
12685    hardcode_shlibpath_var_CXX=no
12686    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12687    hardcode_libdir_separator_CXX=':'
12688    link_all_deplibs_CXX=yes
12689    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12690    runpath_var='LD_RUN_PATH'
12691
12692    case $cc_basename in
12693      CC*)
12694	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12695	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12696	;;
12697      *)
12698	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12699	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12700	;;
12701    esac
12702    ;;
12703  tandem*)
12704    case $cc_basename in
12705      NCC*)
12706	# NonStop-UX NCC 3.20
12707	# FIXME: insert proper C++ library support
12708	ld_shlibs_CXX=no
12709	;;
12710      *)
12711	# FIXME: insert proper C++ library support
12712	ld_shlibs_CXX=no
12713	;;
12714    esac
12715    ;;
12716  vxworks*)
12717    # FIXME: insert proper C++ library support
12718    ld_shlibs_CXX=no
12719    ;;
12720  *)
12721    # FIXME: insert proper C++ library support
12722    ld_shlibs_CXX=no
12723    ;;
12724esac
12725echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12726echo "${ECHO_T}$ld_shlibs_CXX" >&6
12727test "$ld_shlibs_CXX" = no && can_build_shared=no
12728
12729GCC_CXX="$GXX"
12730LD_CXX="$LD"
12731
12732## CAVEAT EMPTOR:
12733## There is no encapsulation within the following macros, do not change
12734## the running order or otherwise move them around unless you know exactly
12735## what you are doing...
12736
12737cat > conftest.$ac_ext <<EOF
12738class Foo
12739{
12740public:
12741  Foo (void) { a = 0; }
12742private:
12743  int a;
12744};
12745EOF
12746
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748  (eval $ac_compile) 2>&5
12749  ac_status=$?
12750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751  (exit $ac_status); }; then
12752  # Parse the compiler output and extract the necessary
12753  # objects, libraries and library flags.
12754
12755  # Sentinel used to keep track of whether or not we are before
12756  # the conftest object file.
12757  pre_test_object_deps_done=no
12758
12759  # The `*' in the case matches for architectures that use `case' in
12760  # $output_verbose_cmd can trigger glob expansion during the loop
12761  # eval without this substitution.
12762  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12763
12764  for p in `eval $output_verbose_link_cmd`; do
12765    case $p in
12766
12767    -L* | -R* | -l*)
12768       # Some compilers place space between "-{L,R}" and the path.
12769       # Remove the space.
12770       if test $p = "-L" \
12771	  || test $p = "-R"; then
12772	 prev=$p
12773	 continue
12774       else
12775	 prev=
12776       fi
12777
12778       if test "$pre_test_object_deps_done" = no; then
12779	 case $p in
12780	 -L* | -R*)
12781	   # Internal compiler library paths should come after those
12782	   # provided the user.  The postdeps already come after the
12783	   # user supplied libs so there is no need to process them.
12784	   if test -z "$compiler_lib_search_path_CXX"; then
12785	     compiler_lib_search_path_CXX="${prev}${p}"
12786	   else
12787	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12788	   fi
12789	   ;;
12790	 # The "-l" case would never come before the object being
12791	 # linked, so don't bother handling this case.
12792	 esac
12793       else
12794	 if test -z "$postdeps_CXX"; then
12795	   postdeps_CXX="${prev}${p}"
12796	 else
12797	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12798	 fi
12799       fi
12800       ;;
12801
12802    *.$objext)
12803       # This assumes that the test object file only shows up
12804       # once in the compiler output.
12805       if test "$p" = "conftest.$objext"; then
12806	 pre_test_object_deps_done=yes
12807	 continue
12808       fi
12809
12810       if test "$pre_test_object_deps_done" = no; then
12811	 if test -z "$predep_objects_CXX"; then
12812	   predep_objects_CXX="$p"
12813	 else
12814	   predep_objects_CXX="$predep_objects_CXX $p"
12815	 fi
12816       else
12817	 if test -z "$postdep_objects_CXX"; then
12818	   postdep_objects_CXX="$p"
12819	 else
12820	   postdep_objects_CXX="$postdep_objects_CXX $p"
12821	 fi
12822       fi
12823       ;;
12824
12825    *) ;; # Ignore the rest.
12826
12827    esac
12828  done
12829
12830  # Clean up.
12831  rm -f a.out a.exe
12832else
12833  echo "libtool.m4: error: problem compiling CXX test program"
12834fi
12835
12836$rm -f confest.$objext
12837
12838# PORTME: override above test on systems where it is broken
12839case $host_os in
12840interix3*)
12841  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12842  # hack all around it, let's just trust "g++" to DTRT.
12843  predep_objects_CXX=
12844  postdep_objects_CXX=
12845  postdeps_CXX=
12846  ;;
12847
12848solaris*)
12849  case $cc_basename in
12850  CC*)
12851    # Adding this requires a known-good setup of shared libraries for
12852    # Sun compiler versions before 5.6, else PIC objects from an old
12853    # archive will be linked into the output, leading to subtle bugs.
12854    postdeps_CXX='-lCstd -lCrun'
12855    ;;
12856  esac
12857  ;;
12858esac
12859
12860
12861case " $postdeps_CXX " in
12862*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12863esac
12864
12865lt_prog_compiler_wl_CXX=
12866lt_prog_compiler_pic_CXX=
12867lt_prog_compiler_static_CXX=
12868
12869echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12871
12872  # C++ specific cases for pic, static, wl, etc.
12873  if test "$GXX" = yes; then
12874    lt_prog_compiler_wl_CXX='-Wl,'
12875    lt_prog_compiler_static_CXX='-static'
12876
12877    case $host_os in
12878    aix*)
12879      # All AIX code is PIC.
12880      if test "$host_cpu" = ia64; then
12881	# AIX 5 now supports IA64 processor
12882	lt_prog_compiler_static_CXX='-Bstatic'
12883      fi
12884      ;;
12885    amigaos*)
12886      # FIXME: we need at least 68020 code to build shared libraries, but
12887      # adding the `-m68020' flag to GCC prevents building anything better,
12888      # like `-m68040'.
12889      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12890      ;;
12891    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12892      # PIC is the default for these OSes.
12893      ;;
12894    mingw* | os2* | pw32*)
12895      # This hack is so that the source file can tell whether it is being
12896      # built for inclusion in a dll (and should export symbols for example).
12897      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12898      ;;
12899    darwin* | rhapsody*)
12900      # PIC is the default on this platform
12901      # Common symbols not allowed in MH_DYLIB files
12902      lt_prog_compiler_pic_CXX='-fno-common'
12903      ;;
12904    *djgpp*)
12905      # DJGPP does not support shared libraries at all
12906      lt_prog_compiler_pic_CXX=
12907      ;;
12908    interix3*)
12909      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12910      # Instead, we relocate shared libraries at runtime.
12911      ;;
12912    sysv4*MP*)
12913      if test -d /usr/nec; then
12914	lt_prog_compiler_pic_CXX=-Kconform_pic
12915      fi
12916      ;;
12917    hpux*)
12918      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12919      # not for PA HP-UX.
12920      case $host_cpu in
12921      hppa*64*|ia64*)
12922	;;
12923      *)
12924	lt_prog_compiler_pic_CXX='-fPIC'
12925	;;
12926      esac
12927      ;;
12928    *)
12929      lt_prog_compiler_pic_CXX='-fPIC'
12930      ;;
12931    esac
12932  else
12933    case $host_os in
12934      aix4* | aix5*)
12935	# All AIX code is PIC.
12936	if test "$host_cpu" = ia64; then
12937	  # AIX 5 now supports IA64 processor
12938	  lt_prog_compiler_static_CXX='-Bstatic'
12939	else
12940	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12941	fi
12942	;;
12943      chorus*)
12944	case $cc_basename in
12945	cxch68*)
12946	  # Green Hills C++ Compiler
12947	  # _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"
12948	  ;;
12949	esac
12950	;;
12951       darwin*)
12952         # PIC is the default on this platform
12953         # Common symbols not allowed in MH_DYLIB files
12954         case $cc_basename in
12955           xlc*)
12956           lt_prog_compiler_pic_CXX='-qnocommon'
12957           lt_prog_compiler_wl_CXX='-Wl,'
12958           ;;
12959         esac
12960       ;;
12961      dgux*)
12962	case $cc_basename in
12963	  ec++*)
12964	    lt_prog_compiler_pic_CXX='-KPIC'
12965	    ;;
12966	  ghcx*)
12967	    # Green Hills C++ Compiler
12968	    lt_prog_compiler_pic_CXX='-pic'
12969	    ;;
12970	  *)
12971	    ;;
12972	esac
12973	;;
12974      freebsd* | kfreebsd*-gnu | dragonfly*)
12975	# FreeBSD uses GNU C++
12976	;;
12977      hpux9* | hpux10* | hpux11*)
12978	case $cc_basename in
12979	  CC*)
12980	    lt_prog_compiler_wl_CXX='-Wl,'
12981	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12982	    if test "$host_cpu" != ia64; then
12983	      lt_prog_compiler_pic_CXX='+Z'
12984	    fi
12985	    ;;
12986	  aCC*)
12987	    lt_prog_compiler_wl_CXX='-Wl,'
12988	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12989	    case $host_cpu in
12990	    hppa*64*|ia64*)
12991	      # +Z the default
12992	      ;;
12993	    *)
12994	      lt_prog_compiler_pic_CXX='+Z'
12995	      ;;
12996	    esac
12997	    ;;
12998	  *)
12999	    ;;
13000	esac
13001	;;
13002      interix*)
13003	# This is c89, which is MS Visual C++ (no shared libs)
13004	# Anyone wants to do a port?
13005	;;
13006      irix5* | irix6* | nonstopux*)
13007	case $cc_basename in
13008	  CC*)
13009	    lt_prog_compiler_wl_CXX='-Wl,'
13010	    lt_prog_compiler_static_CXX='-non_shared'
13011	    # CC pic flag -KPIC is the default.
13012	    ;;
13013	  *)
13014	    ;;
13015	esac
13016	;;
13017      linux*)
13018	case $cc_basename in
13019	  KCC*)
13020	    # KAI C++ Compiler
13021	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13022	    lt_prog_compiler_pic_CXX='-fPIC'
13023	    ;;
13024	  icpc* | ecpc*)
13025	    # Intel C++
13026	    lt_prog_compiler_wl_CXX='-Wl,'
13027	    lt_prog_compiler_pic_CXX='-KPIC'
13028	    lt_prog_compiler_static_CXX='-static'
13029	    ;;
13030	  pgCC*)
13031	    # Portland Group C++ compiler.
13032	    lt_prog_compiler_wl_CXX='-Wl,'
13033	    lt_prog_compiler_pic_CXX='-fpic'
13034	    lt_prog_compiler_static_CXX='-Bstatic'
13035	    ;;
13036	  cxx*)
13037	    # Compaq C++
13038	    # Make sure the PIC flag is empty.  It appears that all Alpha
13039	    # Linux and Compaq Tru64 Unix objects are PIC.
13040	    lt_prog_compiler_pic_CXX=
13041	    lt_prog_compiler_static_CXX='-non_shared'
13042	    ;;
13043	  *)
13044	    ;;
13045	esac
13046	;;
13047      lynxos*)
13048	;;
13049      m88k*)
13050	;;
13051      mvs*)
13052	case $cc_basename in
13053	  cxx*)
13054	    lt_prog_compiler_pic_CXX='-W c,exportall'
13055	    ;;
13056	  *)
13057	    ;;
13058	esac
13059	;;
13060      netbsd*)
13061	;;
13062      osf3* | osf4* | osf5*)
13063	case $cc_basename in
13064	  KCC*)
13065	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13066	    ;;
13067	  RCC*)
13068	    # Rational C++ 2.4.1
13069	    lt_prog_compiler_pic_CXX='-pic'
13070	    ;;
13071	  cxx*)
13072	    # Digital/Compaq C++
13073	    lt_prog_compiler_wl_CXX='-Wl,'
13074	    # Make sure the PIC flag is empty.  It appears that all Alpha
13075	    # Linux and Compaq Tru64 Unix objects are PIC.
13076	    lt_prog_compiler_pic_CXX=
13077	    lt_prog_compiler_static_CXX='-non_shared'
13078	    ;;
13079	  *)
13080	    ;;
13081	esac
13082	;;
13083      psos*)
13084	;;
13085      solaris*)
13086	case $cc_basename in
13087	  CC*)
13088	    # Sun C++ 4.2, 5.x and Centerline C++
13089	    lt_prog_compiler_pic_CXX='-KPIC'
13090	    lt_prog_compiler_static_CXX='-Bstatic'
13091	    lt_prog_compiler_wl_CXX='-Qoption ld '
13092	    ;;
13093	  gcx*)
13094	    # Green Hills C++ Compiler
13095	    lt_prog_compiler_pic_CXX='-PIC'
13096	    ;;
13097	  *)
13098	    ;;
13099	esac
13100	;;
13101      sunos4*)
13102	case $cc_basename in
13103	  CC*)
13104	    # Sun C++ 4.x
13105	    lt_prog_compiler_pic_CXX='-pic'
13106	    lt_prog_compiler_static_CXX='-Bstatic'
13107	    ;;
13108	  lcc*)
13109	    # Lucid
13110	    lt_prog_compiler_pic_CXX='-pic'
13111	    ;;
13112	  *)
13113	    ;;
13114	esac
13115	;;
13116      tandem*)
13117	case $cc_basename in
13118	  NCC*)
13119	    # NonStop-UX NCC 3.20
13120	    lt_prog_compiler_pic_CXX='-KPIC'
13121	    ;;
13122	  *)
13123	    ;;
13124	esac
13125	;;
13126      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13127	case $cc_basename in
13128	  CC*)
13129	    lt_prog_compiler_wl_CXX='-Wl,'
13130	    lt_prog_compiler_pic_CXX='-KPIC'
13131	    lt_prog_compiler_static_CXX='-Bstatic'
13132	    ;;
13133	esac
13134	;;
13135      vxworks*)
13136	;;
13137      *)
13138	lt_prog_compiler_can_build_shared_CXX=no
13139	;;
13140    esac
13141  fi
13142
13143echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13144echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13145
13146#
13147# Check to make sure the PIC flag actually works.
13148#
13149if test -n "$lt_prog_compiler_pic_CXX"; then
13150
13151echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13153if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13154  echo $ECHO_N "(cached) $ECHO_C" >&6
13155else
13156  lt_prog_compiler_pic_works_CXX=no
13157  ac_outfile=conftest.$ac_objext
13158   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13159   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13160   # Insert the option either (1) after the last *FLAGS variable, or
13161   # (2) before a word containing "conftest.", or (3) at the end.
13162   # Note that $ac_compile itself does not contain backslashes and begins
13163   # with a dollar sign (not a hyphen), so the echo should work correctly.
13164   # The option is referenced via a variable to avoid confusing sed.
13165   lt_compile=`echo "$ac_compile" | $SED \
13166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13168   -e 's:$: $lt_compiler_flag:'`
13169   (eval echo "\"\$as_me:13169: $lt_compile\"" >&5)
13170   (eval "$lt_compile" 2>conftest.err)
13171   ac_status=$?
13172   cat conftest.err >&5
13173   echo "$as_me:13173: \$? = $ac_status" >&5
13174   if (exit $ac_status) && test -s "$ac_outfile"; then
13175     # The compiler can only warn and ignore the option if not recognized
13176     # So say no if there are warnings other than the usual output.
13177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13180       lt_prog_compiler_pic_works_CXX=yes
13181     fi
13182   fi
13183   $rm conftest*
13184
13185fi
13186echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13187echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13188
13189if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13190    case $lt_prog_compiler_pic_CXX in
13191     "" | " "*) ;;
13192     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13193     esac
13194else
13195    lt_prog_compiler_pic_CXX=
13196     lt_prog_compiler_can_build_shared_CXX=no
13197fi
13198
13199fi
13200case $host_os in
13201  # For platforms which do not support PIC, -DPIC is meaningless:
13202  *djgpp*)
13203    lt_prog_compiler_pic_CXX=
13204    ;;
13205  *)
13206    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13207    ;;
13208esac
13209
13210#
13211# Check to make sure the static flag actually works.
13212#
13213wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13214echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13216if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13217  echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
13219  lt_prog_compiler_static_works_CXX=no
13220   save_LDFLAGS="$LDFLAGS"
13221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13222   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13224     # The linker can only warn and ignore the option if not recognized
13225     # So say no if there are warnings
13226     if test -s conftest.err; then
13227       # Append any errors to the config.log.
13228       cat conftest.err 1>&5
13229       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13231       if diff conftest.exp conftest.er2 >/dev/null; then
13232         lt_prog_compiler_static_works_CXX=yes
13233       fi
13234     else
13235       lt_prog_compiler_static_works_CXX=yes
13236     fi
13237   fi
13238   $rm conftest*
13239   LDFLAGS="$save_LDFLAGS"
13240
13241fi
13242echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13243echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13244
13245if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13246    :
13247else
13248    lt_prog_compiler_static_CXX=
13249fi
13250
13251
13252echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13254if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13255  echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257  lt_cv_prog_compiler_c_o_CXX=no
13258   $rm -r conftest 2>/dev/null
13259   mkdir conftest
13260   cd conftest
13261   mkdir out
13262   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13263
13264   lt_compiler_flag="-o out/conftest2.$ac_objext"
13265   # Insert the option either (1) after the last *FLAGS variable, or
13266   # (2) before a word containing "conftest.", or (3) at the end.
13267   # Note that $ac_compile itself does not contain backslashes and begins
13268   # with a dollar sign (not a hyphen), so the echo should work correctly.
13269   lt_compile=`echo "$ac_compile" | $SED \
13270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13272   -e 's:$: $lt_compiler_flag:'`
13273   (eval echo "\"\$as_me:13273: $lt_compile\"" >&5)
13274   (eval "$lt_compile" 2>out/conftest.err)
13275   ac_status=$?
13276   cat out/conftest.err >&5
13277   echo "$as_me:13277: \$? = $ac_status" >&5
13278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13279   then
13280     # The compiler can only warn and ignore the option if not recognized
13281     # So say no if there are warnings
13282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13285       lt_cv_prog_compiler_c_o_CXX=yes
13286     fi
13287   fi
13288   chmod u+w . 2>&5
13289   $rm conftest*
13290   # SGI C++ compiler will create directory out/ii_files/ for
13291   # template instantiation
13292   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13293   $rm out/* && rmdir out
13294   cd ..
13295   rmdir conftest
13296   $rm conftest*
13297
13298fi
13299echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13301
13302
13303hard_links="nottested"
13304if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13305  # do not overwrite the value of need_locks provided by the user
13306  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13308  hard_links=yes
13309  $rm conftest*
13310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13311  touch conftest.a
13312  ln conftest.a conftest.b 2>&5 || hard_links=no
13313  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13314  echo "$as_me:$LINENO: result: $hard_links" >&5
13315echo "${ECHO_T}$hard_links" >&6
13316  if test "$hard_links" = no; then
13317    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13319    need_locks=warn
13320  fi
13321else
13322  need_locks=no
13323fi
13324
13325echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13327
13328  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13329  case $host_os in
13330  aix4* | aix5*)
13331    # If we're using GNU nm, then we don't want the "-C" option.
13332    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13333    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13334      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'
13335    else
13336      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'
13337    fi
13338    ;;
13339  pw32*)
13340    export_symbols_cmds_CXX="$ltdll_cmds"
13341  ;;
13342  cygwin* | mingw*)
13343    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'
13344  ;;
13345  *)
13346    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13347  ;;
13348  esac
13349
13350echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13351echo "${ECHO_T}$ld_shlibs_CXX" >&6
13352test "$ld_shlibs_CXX" = no && can_build_shared=no
13353
13354#
13355# Do we need to explicitly link libc?
13356#
13357case "x$archive_cmds_need_lc_CXX" in
13358x|xyes)
13359  # Assume -lc should be added
13360  archive_cmds_need_lc_CXX=yes
13361
13362  if test "$enable_shared" = yes && test "$GCC" = yes; then
13363    case $archive_cmds_CXX in
13364    *'~'*)
13365      # FIXME: we may have to deal with multi-command sequences.
13366      ;;
13367    '$CC '*)
13368      # Test whether the compiler implicitly links with -lc since on some
13369      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13370      # to ld, don't add -lc before -lgcc.
13371      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13373      $rm conftest*
13374      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375
13376      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377  (eval $ac_compile) 2>&5
13378  ac_status=$?
13379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380  (exit $ac_status); } 2>conftest.err; then
13381        soname=conftest
13382        lib=conftest
13383        libobjs=conftest.$ac_objext
13384        deplibs=
13385        wl=$lt_prog_compiler_wl_CXX
13386	pic_flag=$lt_prog_compiler_pic_CXX
13387        compiler_flags=-v
13388        linker_flags=-v
13389        verstring=
13390        output_objdir=.
13391        libname=conftest
13392        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13393        allow_undefined_flag_CXX=
13394        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13395  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13396  ac_status=$?
13397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); }
13399        then
13400	  archive_cmds_need_lc_CXX=no
13401        else
13402	  archive_cmds_need_lc_CXX=yes
13403        fi
13404        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13405      else
13406        cat conftest.err 1>&5
13407      fi
13408      $rm conftest*
13409      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13410echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13411      ;;
13412    esac
13413  fi
13414  ;;
13415esac
13416
13417echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13418echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13419library_names_spec=
13420libname_spec='lib$name'
13421soname_spec=
13422shrext_cmds=".so"
13423postinstall_cmds=
13424postuninstall_cmds=
13425finish_cmds=
13426finish_eval=
13427shlibpath_var=
13428shlibpath_overrides_runpath=unknown
13429version_type=none
13430dynamic_linker="$host_os ld.so"
13431sys_lib_dlsearch_path_spec="/lib /usr/lib"
13432if test "$GCC" = yes; then
13433  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13434  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13435    # if the path contains ";" then we assume it to be the separator
13436    # otherwise default to the standard path separator (i.e. ":") - it is
13437    # assumed that no part of a normal pathname contains ";" but that should
13438    # okay in the real world where ";" in dirpaths is itself problematic.
13439    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13440  else
13441    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13442  fi
13443else
13444  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13445fi
13446need_lib_prefix=unknown
13447hardcode_into_libs=no
13448
13449# when you set need_version to no, make sure it does not cause -set_version
13450# flags to be left without arguments
13451need_version=unknown
13452
13453case $host_os in
13454aix3*)
13455  version_type=linux
13456  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13457  shlibpath_var=LIBPATH
13458
13459  # AIX 3 has no versioning support, so we append a major version to the name.
13460  soname_spec='${libname}${release}${shared_ext}$major'
13461  ;;
13462
13463aix4* | aix5*)
13464  version_type=linux
13465  need_lib_prefix=no
13466  need_version=no
13467  hardcode_into_libs=yes
13468  if test "$host_cpu" = ia64; then
13469    # AIX 5 supports IA64
13470    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13471    shlibpath_var=LD_LIBRARY_PATH
13472  else
13473    # With GCC up to 2.95.x, collect2 would create an import file
13474    # for dependence libraries.  The import file would start with
13475    # the line `#! .'.  This would cause the generated library to
13476    # depend on `.', always an invalid library.  This was fixed in
13477    # development snapshots of GCC prior to 3.0.
13478    case $host_os in
13479      aix4 | aix4.[01] | aix4.[01].*)
13480      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13481	   echo ' yes '
13482	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13483	:
13484      else
13485	can_build_shared=no
13486      fi
13487      ;;
13488    esac
13489    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13490    # soname into executable. Probably we can add versioning support to
13491    # collect2, so additional links can be useful in future.
13492    if test "$aix_use_runtimelinking" = yes; then
13493      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13494      # instead of lib<name>.a to let people know that these are not
13495      # typical AIX shared libraries.
13496      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497    else
13498      # We preserve .a as extension for shared libraries through AIX4.2
13499      # and later when we are not doing run time linking.
13500      library_names_spec='${libname}${release}.a $libname.a'
13501      soname_spec='${libname}${release}${shared_ext}$major'
13502    fi
13503    shlibpath_var=LIBPATH
13504  fi
13505  ;;
13506
13507amigaos*)
13508  library_names_spec='$libname.ixlibrary $libname.a'
13509  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13510  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'
13511  ;;
13512
13513beos*)
13514  library_names_spec='${libname}${shared_ext}'
13515  dynamic_linker="$host_os ld.so"
13516  shlibpath_var=LIBRARY_PATH
13517  ;;
13518
13519bsdi[45]*)
13520  version_type=linux
13521  need_version=no
13522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523  soname_spec='${libname}${release}${shared_ext}$major'
13524  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13525  shlibpath_var=LD_LIBRARY_PATH
13526  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13527  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13528  # the default ld.so.conf also contains /usr/contrib/lib and
13529  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13530  # libtool to hard-code these into programs
13531  ;;
13532
13533cygwin* | mingw* | pw32*)
13534  version_type=windows
13535  shrext_cmds=".dll"
13536  need_version=no
13537  need_lib_prefix=no
13538
13539  case $GCC,$host_os in
13540  yes,cygwin* | yes,mingw* | yes,pw32*)
13541    library_names_spec='$libname.dll.a'
13542    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13543    postinstall_cmds='base_file=`basename \${file}`~
13544      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13545      dldir=$destdir/`dirname \$dlpath`~
13546      test -d \$dldir || mkdir -p \$dldir~
13547      $install_prog $dir/$dlname \$dldir/$dlname~
13548      chmod a+x \$dldir/$dlname'
13549    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13550      dlpath=$dir/\$dldll~
13551       $rm \$dlpath'
13552    shlibpath_overrides_runpath=yes
13553
13554    case $host_os in
13555    cygwin*)
13556      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13557      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13558      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13559      ;;
13560    mingw*)
13561      # MinGW DLLs use traditional 'lib' prefix
13562      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13563      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13564      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13565        # It is most probably a Windows format PATH printed by
13566        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13567        # path with ; separators, and with drive letters. We can handle the
13568        # drive letters (cygwin fileutils understands them), so leave them,
13569        # especially as we might pass files found there to a mingw objdump,
13570        # which wouldn't understand a cygwinified path. Ahh.
13571        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13572      else
13573        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13574      fi
13575      ;;
13576    pw32*)
13577      # pw32 DLLs use 'pw' prefix rather than 'lib'
13578      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13579      ;;
13580    esac
13581    ;;
13582
13583  *)
13584    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13585    ;;
13586  esac
13587  dynamic_linker='Win32 ld.exe'
13588  # FIXME: first we should search . and the directory the executable is in
13589  shlibpath_var=PATH
13590  ;;
13591
13592darwin* | rhapsody*)
13593  dynamic_linker="$host_os dyld"
13594  version_type=darwin
13595  need_lib_prefix=no
13596  need_version=no
13597  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13598  soname_spec='${libname}${release}${major}$shared_ext'
13599  shlibpath_overrides_runpath=yes
13600  shlibpath_var=DYLD_LIBRARY_PATH
13601  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13602  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13603  if test "$GCC" = yes; then
13604    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"`
13605  else
13606    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13607  fi
13608  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13609  ;;
13610
13611dgux*)
13612  version_type=linux
13613  need_lib_prefix=no
13614  need_version=no
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13616  soname_spec='${libname}${release}${shared_ext}$major'
13617  shlibpath_var=LD_LIBRARY_PATH
13618  ;;
13619
13620freebsd1*)
13621  dynamic_linker=no
13622  ;;
13623
13624kfreebsd*-gnu)
13625  version_type=linux
13626  need_lib_prefix=no
13627  need_version=no
13628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629  soname_spec='${libname}${release}${shared_ext}$major'
13630  shlibpath_var=LD_LIBRARY_PATH
13631  shlibpath_overrides_runpath=no
13632  hardcode_into_libs=yes
13633  dynamic_linker='GNU ld.so'
13634  ;;
13635
13636freebsd* | dragonfly*)
13637  # DragonFly does not have aout.  When/if they implement a new
13638  # versioning mechanism, adjust this.
13639  if test -x /usr/bin/objformat; then
13640    objformat=`/usr/bin/objformat`
13641  else
13642    case $host_os in
13643    freebsd[123]*) objformat=aout ;;
13644    *) objformat=elf ;;
13645    esac
13646  fi
13647  version_type=freebsd-$objformat
13648  case $version_type in
13649    freebsd-elf*)
13650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13651      need_version=no
13652      need_lib_prefix=no
13653      ;;
13654    freebsd-*)
13655      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13656      need_version=yes
13657      ;;
13658  esac
13659  shlibpath_var=LD_LIBRARY_PATH
13660  case $host_os in
13661  freebsd2*)
13662    shlibpath_overrides_runpath=yes
13663    ;;
13664  freebsd3.[01]* | freebsdelf3.[01]*)
13665    shlibpath_overrides_runpath=yes
13666    hardcode_into_libs=yes
13667    ;;
13668  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13669  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13670    shlibpath_overrides_runpath=no
13671    hardcode_into_libs=yes
13672    ;;
13673  freebsd*) # from 4.6 on
13674    shlibpath_overrides_runpath=yes
13675    hardcode_into_libs=yes
13676    ;;
13677  esac
13678  ;;
13679
13680gnu*)
13681  version_type=linux
13682  need_lib_prefix=no
13683  need_version=no
13684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13685  soname_spec='${libname}${release}${shared_ext}$major'
13686  shlibpath_var=LD_LIBRARY_PATH
13687  hardcode_into_libs=yes
13688  ;;
13689
13690hpux9* | hpux10* | hpux11*)
13691  # Give a soname corresponding to the major version so that dld.sl refuses to
13692  # link against other versions.
13693  version_type=sunos
13694  need_lib_prefix=no
13695  need_version=no
13696  case $host_cpu in
13697  ia64*)
13698    shrext_cmds='.so'
13699    hardcode_into_libs=yes
13700    dynamic_linker="$host_os dld.so"
13701    shlibpath_var=LD_LIBRARY_PATH
13702    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13703    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704    soname_spec='${libname}${release}${shared_ext}$major'
13705    if test "X$HPUX_IA64_MODE" = X32; then
13706      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13707    else
13708      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13709    fi
13710    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13711    ;;
13712   hppa*64*)
13713     shrext_cmds='.sl'
13714     hardcode_into_libs=yes
13715     dynamic_linker="$host_os dld.sl"
13716     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719     soname_spec='${libname}${release}${shared_ext}$major'
13720     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13721     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13722     ;;
13723   *)
13724    shrext_cmds='.sl'
13725    dynamic_linker="$host_os dld.sl"
13726    shlibpath_var=SHLIB_PATH
13727    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13729    soname_spec='${libname}${release}${shared_ext}$major'
13730    ;;
13731  esac
13732  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13733  postinstall_cmds='chmod 555 $lib'
13734  ;;
13735
13736interix3*)
13737  version_type=linux
13738  need_lib_prefix=no
13739  need_version=no
13740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13741  soname_spec='${libname}${release}${shared_ext}$major'
13742  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13743  shlibpath_var=LD_LIBRARY_PATH
13744  shlibpath_overrides_runpath=no
13745  hardcode_into_libs=yes
13746  ;;
13747
13748irix5* | irix6* | nonstopux*)
13749  case $host_os in
13750    nonstopux*) version_type=nonstopux ;;
13751    *)
13752	if test "$lt_cv_prog_gnu_ld" = yes; then
13753		version_type=linux
13754	else
13755		version_type=irix
13756	fi ;;
13757  esac
13758  need_lib_prefix=no
13759  need_version=no
13760  soname_spec='${libname}${release}${shared_ext}$major'
13761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13762  case $host_os in
13763  irix5* | nonstopux*)
13764    libsuff= shlibsuff=
13765    ;;
13766  *)
13767    case $LD in # libtool.m4 will add one of these switches to LD
13768    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13769      libsuff= shlibsuff= libmagic=32-bit;;
13770    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13771      libsuff=32 shlibsuff=N32 libmagic=N32;;
13772    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13773      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13774    *) libsuff= shlibsuff= libmagic=never-match;;
13775    esac
13776    ;;
13777  esac
13778  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13779  shlibpath_overrides_runpath=no
13780  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13781  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13782  hardcode_into_libs=yes
13783  ;;
13784
13785# No shared lib support for Linux oldld, aout, or coff.
13786linux*oldld* | linux*aout* | linux*coff*)
13787  dynamic_linker=no
13788  ;;
13789
13790# This must be Linux ELF.
13791linux*)
13792  version_type=linux
13793  need_lib_prefix=no
13794  need_version=no
13795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796  soname_spec='${libname}${release}${shared_ext}$major'
13797  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13798  shlibpath_var=LD_LIBRARY_PATH
13799  shlibpath_overrides_runpath=no
13800  # This implies no fast_install, which is unacceptable.
13801  # Some rework will be needed to allow for fast_install
13802  # before this can be enabled.
13803  hardcode_into_libs=yes
13804
13805  # Append ld.so.conf contents to the search path
13806  if test -f /etc/ld.so.conf; then
13807    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' ' '`
13808    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13809  fi
13810
13811  # We used to test for /lib/ld.so.1 and disable shared libraries on
13812  # powerpc, because MkLinux only supported shared libraries with the
13813  # GNU dynamic linker.  Since this was broken with cross compilers,
13814  # most powerpc-linux boxes support dynamic linking these days and
13815  # people can always --disable-shared, the test was removed, and we
13816  # assume the GNU/Linux dynamic linker is in use.
13817  dynamic_linker='GNU/Linux ld.so'
13818  ;;
13819
13820knetbsd*-gnu)
13821  version_type=linux
13822  need_lib_prefix=no
13823  need_version=no
13824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13825  soname_spec='${libname}${release}${shared_ext}$major'
13826  shlibpath_var=LD_LIBRARY_PATH
13827  shlibpath_overrides_runpath=no
13828  hardcode_into_libs=yes
13829  dynamic_linker='GNU ld.so'
13830  ;;
13831
13832netbsd*)
13833  version_type=sunos
13834  need_lib_prefix=no
13835  need_version=no
13836  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13837    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13838    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13839    dynamic_linker='NetBSD (a.out) ld.so'
13840  else
13841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13842    soname_spec='${libname}${release}${shared_ext}$major'
13843    dynamic_linker='NetBSD ld.elf_so'
13844  fi
13845  shlibpath_var=LD_LIBRARY_PATH
13846  shlibpath_overrides_runpath=yes
13847  hardcode_into_libs=yes
13848  ;;
13849
13850newsos6)
13851  version_type=linux
13852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853  shlibpath_var=LD_LIBRARY_PATH
13854  shlibpath_overrides_runpath=yes
13855  ;;
13856
13857nto-qnx*)
13858  version_type=linux
13859  need_lib_prefix=no
13860  need_version=no
13861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862  soname_spec='${libname}${release}${shared_ext}$major'
13863  shlibpath_var=LD_LIBRARY_PATH
13864  shlibpath_overrides_runpath=yes
13865  ;;
13866
13867openbsd*)
13868  version_type=sunos
13869  sys_lib_dlsearch_path_spec="/usr/lib"
13870  need_lib_prefix=no
13871  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13872  case $host_os in
13873    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13874    *)                         need_version=no  ;;
13875  esac
13876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13878  shlibpath_var=LD_LIBRARY_PATH
13879  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13880    case $host_os in
13881      openbsd2.[89] | openbsd2.[89].*)
13882	shlibpath_overrides_runpath=no
13883	;;
13884      *)
13885	shlibpath_overrides_runpath=yes
13886	;;
13887      esac
13888  else
13889    shlibpath_overrides_runpath=yes
13890  fi
13891  ;;
13892
13893os2*)
13894  libname_spec='$name'
13895  shrext_cmds=".dll"
13896  need_lib_prefix=no
13897  library_names_spec='$libname${shared_ext} $libname.a'
13898  dynamic_linker='OS/2 ld.exe'
13899  shlibpath_var=LIBPATH
13900  ;;
13901
13902osf3* | osf4* | osf5*)
13903  version_type=osf
13904  need_lib_prefix=no
13905  need_version=no
13906  soname_spec='${libname}${release}${shared_ext}$major'
13907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908  shlibpath_var=LD_LIBRARY_PATH
13909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13910  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13911  ;;
13912
13913solaris*)
13914  version_type=linux
13915  need_lib_prefix=no
13916  need_version=no
13917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918  soname_spec='${libname}${release}${shared_ext}$major'
13919  shlibpath_var=LD_LIBRARY_PATH
13920  shlibpath_overrides_runpath=yes
13921  hardcode_into_libs=yes
13922  # ldd complains unless libraries are executable
13923  postinstall_cmds='chmod +x $lib'
13924  ;;
13925
13926sunos4*)
13927  version_type=sunos
13928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13929  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13930  shlibpath_var=LD_LIBRARY_PATH
13931  shlibpath_overrides_runpath=yes
13932  if test "$with_gnu_ld" = yes; then
13933    need_lib_prefix=no
13934  fi
13935  need_version=yes
13936  ;;
13937
13938sysv4 | sysv4.3*)
13939  version_type=linux
13940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941  soname_spec='${libname}${release}${shared_ext}$major'
13942  shlibpath_var=LD_LIBRARY_PATH
13943  case $host_vendor in
13944    sni)
13945      shlibpath_overrides_runpath=no
13946      need_lib_prefix=no
13947      export_dynamic_flag_spec='${wl}-Blargedynsym'
13948      runpath_var=LD_RUN_PATH
13949      ;;
13950    siemens)
13951      need_lib_prefix=no
13952      ;;
13953    motorola)
13954      need_lib_prefix=no
13955      need_version=no
13956      shlibpath_overrides_runpath=no
13957      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13958      ;;
13959  esac
13960  ;;
13961
13962sysv4*MP*)
13963  if test -d /usr/nec ;then
13964    version_type=linux
13965    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13966    soname_spec='$libname${shared_ext}.$major'
13967    shlibpath_var=LD_LIBRARY_PATH
13968  fi
13969  ;;
13970
13971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13972  version_type=freebsd-elf
13973  need_lib_prefix=no
13974  need_version=no
13975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13976  soname_spec='${libname}${release}${shared_ext}$major'
13977  shlibpath_var=LD_LIBRARY_PATH
13978  hardcode_into_libs=yes
13979  if test "$with_gnu_ld" = yes; then
13980    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13981    shlibpath_overrides_runpath=no
13982  else
13983    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13984    shlibpath_overrides_runpath=yes
13985    case $host_os in
13986      sco3.2v5*)
13987        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13988	;;
13989    esac
13990  fi
13991  sys_lib_dlsearch_path_spec='/usr/lib'
13992  ;;
13993
13994uts4*)
13995  version_type=linux
13996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997  soname_spec='${libname}${release}${shared_ext}$major'
13998  shlibpath_var=LD_LIBRARY_PATH
13999  ;;
14000
14001*)
14002  dynamic_linker=no
14003  ;;
14004esac
14005echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14006echo "${ECHO_T}$dynamic_linker" >&6
14007test "$dynamic_linker" = no && can_build_shared=no
14008
14009variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14010if test "$GCC" = yes; then
14011  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14012fi
14013
14014echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14015echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14016hardcode_action_CXX=
14017if test -n "$hardcode_libdir_flag_spec_CXX" || \
14018   test -n "$runpath_var_CXX" || \
14019   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14020
14021  # We can hardcode non-existant directories.
14022  if test "$hardcode_direct_CXX" != no &&
14023     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14024     # have to relink, otherwise we might link with an installed library
14025     # when we should be linking with a yet-to-be-installed one
14026     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14027     test "$hardcode_minus_L_CXX" != no; then
14028    # Linking always hardcodes the temporary library directory.
14029    hardcode_action_CXX=relink
14030  else
14031    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14032    hardcode_action_CXX=immediate
14033  fi
14034else
14035  # We cannot hardcode anything, or else we can only hardcode existing
14036  # directories.
14037  hardcode_action_CXX=unsupported
14038fi
14039echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14040echo "${ECHO_T}$hardcode_action_CXX" >&6
14041
14042if test "$hardcode_action_CXX" = relink; then
14043  # Fast installation is not supported
14044  enable_fast_install=no
14045elif test "$shlibpath_overrides_runpath" = yes ||
14046     test "$enable_shared" = no; then
14047  # Fast installation is not necessary
14048  enable_fast_install=needless
14049fi
14050
14051
14052# The else clause should only fire when bootstrapping the
14053# libtool distribution, otherwise you forgot to ship ltmain.sh
14054# with your package, and you will get complaints that there are
14055# no rules to generate ltmain.sh.
14056if test -f "$ltmain"; then
14057  # See if we are running on zsh, and set the options which allow our commands through
14058  # without removal of \ escapes.
14059  if test -n "${ZSH_VERSION+set}" ; then
14060    setopt NO_GLOB_SUBST
14061  fi
14062  # Now quote all the things that may contain metacharacters while being
14063  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14064  # variables and quote the copies for generation of the libtool script.
14065  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14066    SED SHELL STRIP \
14067    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14068    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14069    deplibs_check_method reload_flag reload_cmds need_locks \
14070    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14071    lt_cv_sys_global_symbol_to_c_name_address \
14072    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14073    old_postinstall_cmds old_postuninstall_cmds \
14074    compiler_CXX \
14075    CC_CXX \
14076    LD_CXX \
14077    lt_prog_compiler_wl_CXX \
14078    lt_prog_compiler_pic_CXX \
14079    lt_prog_compiler_static_CXX \
14080    lt_prog_compiler_no_builtin_flag_CXX \
14081    export_dynamic_flag_spec_CXX \
14082    thread_safe_flag_spec_CXX \
14083    whole_archive_flag_spec_CXX \
14084    enable_shared_with_static_runtimes_CXX \
14085    old_archive_cmds_CXX \
14086    old_archive_from_new_cmds_CXX \
14087    predep_objects_CXX \
14088    postdep_objects_CXX \
14089    predeps_CXX \
14090    postdeps_CXX \
14091    compiler_lib_search_path_CXX \
14092    archive_cmds_CXX \
14093    archive_expsym_cmds_CXX \
14094    postinstall_cmds_CXX \
14095    postuninstall_cmds_CXX \
14096    old_archive_from_expsyms_cmds_CXX \
14097    allow_undefined_flag_CXX \
14098    no_undefined_flag_CXX \
14099    export_symbols_cmds_CXX \
14100    hardcode_libdir_flag_spec_CXX \
14101    hardcode_libdir_flag_spec_ld_CXX \
14102    hardcode_libdir_separator_CXX \
14103    hardcode_automatic_CXX \
14104    module_cmds_CXX \
14105    module_expsym_cmds_CXX \
14106    lt_cv_prog_compiler_c_o_CXX \
14107    exclude_expsyms_CXX \
14108    include_expsyms_CXX; do
14109
14110    case $var in
14111    old_archive_cmds_CXX | \
14112    old_archive_from_new_cmds_CXX | \
14113    archive_cmds_CXX | \
14114    archive_expsym_cmds_CXX | \
14115    module_cmds_CXX | \
14116    module_expsym_cmds_CXX | \
14117    old_archive_from_expsyms_cmds_CXX | \
14118    export_symbols_cmds_CXX | \
14119    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14120    postinstall_cmds | postuninstall_cmds | \
14121    old_postinstall_cmds | old_postuninstall_cmds | \
14122    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14123      # Double-quote double-evaled strings.
14124      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14125      ;;
14126    *)
14127      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14128      ;;
14129    esac
14130  done
14131
14132  case $lt_echo in
14133  *'\$0 --fallback-echo"')
14134    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14135    ;;
14136  esac
14137
14138cfgfile="$ofile"
14139
14140  cat <<__EOF__ >> "$cfgfile"
14141# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14142
14143# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14144
14145# Shell to use when invoking shell scripts.
14146SHELL=$lt_SHELL
14147
14148# Whether or not to build shared libraries.
14149build_libtool_libs=$enable_shared
14150
14151# Whether or not to build static libraries.
14152build_old_libs=$enable_static
14153
14154# Whether or not to add -lc for building shared libraries.
14155build_libtool_need_lc=$archive_cmds_need_lc_CXX
14156
14157# Whether or not to disallow shared libs when runtime libs are static
14158allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14159
14160# Whether or not to optimize for fast installation.
14161fast_install=$enable_fast_install
14162
14163# The host system.
14164host_alias=$host_alias
14165host=$host
14166host_os=$host_os
14167
14168# The build system.
14169build_alias=$build_alias
14170build=$build
14171build_os=$build_os
14172
14173# An echo program that does not interpret backslashes.
14174echo=$lt_echo
14175
14176# The archiver.
14177AR=$lt_AR
14178AR_FLAGS=$lt_AR_FLAGS
14179
14180# A C compiler.
14181LTCC=$lt_LTCC
14182
14183# LTCC compiler flags.
14184LTCFLAGS=$lt_LTCFLAGS
14185
14186# A language-specific compiler.
14187CC=$lt_compiler_CXX
14188
14189# Is the compiler the GNU C compiler?
14190with_gcc=$GCC_CXX
14191
14192# An ERE matcher.
14193EGREP=$lt_EGREP
14194
14195# The linker used to build libraries.
14196LD=$lt_LD_CXX
14197
14198# Whether we need hard or soft links.
14199LN_S=$lt_LN_S
14200
14201# A BSD-compatible nm program.
14202NM=$lt_NM
14203
14204# A symbol stripping program
14205STRIP=$lt_STRIP
14206
14207# Used to examine libraries when file_magic_cmd begins "file"
14208MAGIC_CMD=$MAGIC_CMD
14209
14210# Used on cygwin: DLL creation program.
14211DLLTOOL="$DLLTOOL"
14212
14213# Used on cygwin: object dumper.
14214OBJDUMP="$OBJDUMP"
14215
14216# Used on cygwin: assembler.
14217AS="$AS"
14218
14219# The name of the directory that contains temporary libtool files.
14220objdir=$objdir
14221
14222# How to create reloadable object files.
14223reload_flag=$lt_reload_flag
14224reload_cmds=$lt_reload_cmds
14225
14226# How to pass a linker flag through the compiler.
14227wl=$lt_lt_prog_compiler_wl_CXX
14228
14229# Object file suffix (normally "o").
14230objext="$ac_objext"
14231
14232# Old archive suffix (normally "a").
14233libext="$libext"
14234
14235# Shared library suffix (normally ".so").
14236shrext_cmds='$shrext_cmds'
14237
14238# Executable file suffix (normally "").
14239exeext="$exeext"
14240
14241# Additional compiler flags for building library objects.
14242pic_flag=$lt_lt_prog_compiler_pic_CXX
14243pic_mode=$pic_mode
14244
14245# What is the maximum length of a command?
14246max_cmd_len=$lt_cv_sys_max_cmd_len
14247
14248# Does compiler simultaneously support -c and -o options?
14249compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14250
14251# Must we lock files when doing compilation?
14252need_locks=$lt_need_locks
14253
14254# Do we need the lib prefix for modules?
14255need_lib_prefix=$need_lib_prefix
14256
14257# Do we need a version for libraries?
14258need_version=$need_version
14259
14260# Whether dlopen is supported.
14261dlopen_support=$enable_dlopen
14262
14263# Whether dlopen of programs is supported.
14264dlopen_self=$enable_dlopen_self
14265
14266# Whether dlopen of statically linked programs is supported.
14267dlopen_self_static=$enable_dlopen_self_static
14268
14269# Compiler flag to prevent dynamic linking.
14270link_static_flag=$lt_lt_prog_compiler_static_CXX
14271
14272# Compiler flag to turn off builtin functions.
14273no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14274
14275# Compiler flag to allow reflexive dlopens.
14276export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14277
14278# Compiler flag to generate shared objects directly from archives.
14279whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14280
14281# Compiler flag to generate thread-safe objects.
14282thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14283
14284# Library versioning type.
14285version_type=$version_type
14286
14287# Format of library name prefix.
14288libname_spec=$lt_libname_spec
14289
14290# List of archive names.  First name is the real one, the rest are links.
14291# The last name is the one that the linker finds with -lNAME.
14292library_names_spec=$lt_library_names_spec
14293
14294# The coded name of the library, if different from the real name.
14295soname_spec=$lt_soname_spec
14296
14297# Commands used to build and install an old-style archive.
14298RANLIB=$lt_RANLIB
14299old_archive_cmds=$lt_old_archive_cmds_CXX
14300old_postinstall_cmds=$lt_old_postinstall_cmds
14301old_postuninstall_cmds=$lt_old_postuninstall_cmds
14302
14303# Create an old-style archive from a shared archive.
14304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14305
14306# Create a temporary old-style archive to link instead of a shared archive.
14307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14308
14309# Commands used to build and install a shared archive.
14310archive_cmds=$lt_archive_cmds_CXX
14311archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14312postinstall_cmds=$lt_postinstall_cmds
14313postuninstall_cmds=$lt_postuninstall_cmds
14314
14315# Commands used to build a loadable module (assumed same as above if empty)
14316module_cmds=$lt_module_cmds_CXX
14317module_expsym_cmds=$lt_module_expsym_cmds_CXX
14318
14319# Commands to strip libraries.
14320old_striplib=$lt_old_striplib
14321striplib=$lt_striplib
14322
14323# Dependencies to place before the objects being linked to create a
14324# shared library.
14325predep_objects=$lt_predep_objects_CXX
14326
14327# Dependencies to place after the objects being linked to create a
14328# shared library.
14329postdep_objects=$lt_postdep_objects_CXX
14330
14331# Dependencies to place before the objects being linked to create a
14332# shared library.
14333predeps=$lt_predeps_CXX
14334
14335# Dependencies to place after the objects being linked to create a
14336# shared library.
14337postdeps=$lt_postdeps_CXX
14338
14339# The library search path used internally by the compiler when linking
14340# a shared library.
14341compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14342
14343# Method to check whether dependent libraries are shared objects.
14344deplibs_check_method=$lt_deplibs_check_method
14345
14346# Command to use when deplibs_check_method == file_magic.
14347file_magic_cmd=$lt_file_magic_cmd
14348
14349# Flag that allows shared libraries with undefined symbols to be built.
14350allow_undefined_flag=$lt_allow_undefined_flag_CXX
14351
14352# Flag that forces no undefined symbols.
14353no_undefined_flag=$lt_no_undefined_flag_CXX
14354
14355# Commands used to finish a libtool library installation in a directory.
14356finish_cmds=$lt_finish_cmds
14357
14358# Same as above, but a single script fragment to be evaled but not shown.
14359finish_eval=$lt_finish_eval
14360
14361# Take the output of nm and produce a listing of raw symbols and C names.
14362global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14363
14364# Transform the output of nm in a proper C declaration
14365global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14366
14367# Transform the output of nm in a C name address pair
14368global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14369
14370# This is the shared library runtime path variable.
14371runpath_var=$runpath_var
14372
14373# This is the shared library path variable.
14374shlibpath_var=$shlibpath_var
14375
14376# Is shlibpath searched before the hard-coded library search path?
14377shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14378
14379# How to hardcode a shared library path into an executable.
14380hardcode_action=$hardcode_action_CXX
14381
14382# Whether we should hardcode library paths into libraries.
14383hardcode_into_libs=$hardcode_into_libs
14384
14385# Flag to hardcode \$libdir into a binary during linking.
14386# This must work even if \$libdir does not exist.
14387hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14388
14389# If ld is used when linking, flag to hardcode \$libdir into
14390# a binary during linking. This must work even if \$libdir does
14391# not exist.
14392hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14393
14394# Whether we need a single -rpath flag with a separated argument.
14395hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14396
14397# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14398# resulting binary.
14399hardcode_direct=$hardcode_direct_CXX
14400
14401# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14402# resulting binary.
14403hardcode_minus_L=$hardcode_minus_L_CXX
14404
14405# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14406# the resulting binary.
14407hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14408
14409# Set to yes if building a shared library automatically hardcodes DIR into the library
14410# and all subsequent libraries and executables linked against it.
14411hardcode_automatic=$hardcode_automatic_CXX
14412
14413# Variables whose values should be saved in libtool wrapper scripts and
14414# restored at relink time.
14415variables_saved_for_relink="$variables_saved_for_relink"
14416
14417# Whether libtool must link a program against all its dependency libraries.
14418link_all_deplibs=$link_all_deplibs_CXX
14419
14420# Compile-time system search path for libraries
14421sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14422
14423# Run-time system search path for libraries
14424sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14425
14426# Fix the shell variable \$srcfile for the compiler.
14427fix_srcfile_path="$fix_srcfile_path_CXX"
14428
14429# Set to yes if exported symbols are required.
14430always_export_symbols=$always_export_symbols_CXX
14431
14432# The commands to list exported symbols.
14433export_symbols_cmds=$lt_export_symbols_cmds_CXX
14434
14435# The commands to extract the exported symbol list from a shared archive.
14436extract_expsyms_cmds=$lt_extract_expsyms_cmds
14437
14438# Symbols that should not be listed in the preloaded symbols.
14439exclude_expsyms=$lt_exclude_expsyms_CXX
14440
14441# Symbols that must always be exported.
14442include_expsyms=$lt_include_expsyms_CXX
14443
14444# ### END LIBTOOL TAG CONFIG: $tagname
14445
14446__EOF__
14447
14448
14449else
14450  # If there is no Makefile yet, we rely on a make rule to execute
14451  # `config.status --recheck' to rerun these tests and create the
14452  # libtool script then.
14453  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14454  if test -f "$ltmain_in"; then
14455    test -f Makefile && make "$ltmain"
14456  fi
14457fi
14458
14459
14460ac_ext=c
14461ac_cpp='$CPP $CPPFLAGS'
14462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14464ac_compiler_gnu=$ac_cv_c_compiler_gnu
14465
14466CC=$lt_save_CC
14467LDCXX=$LD
14468LD=$lt_save_LD
14469GCC=$lt_save_GCC
14470with_gnu_ldcxx=$with_gnu_ld
14471with_gnu_ld=$lt_save_with_gnu_ld
14472lt_cv_path_LDCXX=$lt_cv_path_LD
14473lt_cv_path_LD=$lt_save_path_LD
14474lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14475lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14476
14477	else
14478	  tagname=""
14479	fi
14480	;;
14481
14482      F77)
14483	if test -n "$F77" && test "X$F77" != "Xno"; then
14484
14485ac_ext=f
14486ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14487ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14488ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14489
14490
14491archive_cmds_need_lc_F77=no
14492allow_undefined_flag_F77=
14493always_export_symbols_F77=no
14494archive_expsym_cmds_F77=
14495export_dynamic_flag_spec_F77=
14496hardcode_direct_F77=no
14497hardcode_libdir_flag_spec_F77=
14498hardcode_libdir_flag_spec_ld_F77=
14499hardcode_libdir_separator_F77=
14500hardcode_minus_L_F77=no
14501hardcode_automatic_F77=no
14502module_cmds_F77=
14503module_expsym_cmds_F77=
14504link_all_deplibs_F77=unknown
14505old_archive_cmds_F77=$old_archive_cmds
14506no_undefined_flag_F77=
14507whole_archive_flag_spec_F77=
14508enable_shared_with_static_runtimes_F77=no
14509
14510# Source file extension for f77 test sources.
14511ac_ext=f
14512
14513# Object file extension for compiled f77 test sources.
14514objext=o
14515objext_F77=$objext
14516
14517# Code to be used in simple compile tests
14518lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14519
14520# Code to be used in simple link tests
14521lt_simple_link_test_code="      program t\n      end\n"
14522
14523# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14524
14525# If no C compiler was specified, use CC.
14526LTCC=${LTCC-"$CC"}
14527
14528# If no C compiler flags were specified, use CFLAGS.
14529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14530
14531# Allow CC to be a program name with arguments.
14532compiler=$CC
14533
14534
14535# save warnings/boilerplate of simple test code
14536ac_outfile=conftest.$ac_objext
14537printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14539_lt_compiler_boilerplate=`cat conftest.err`
14540$rm conftest*
14541
14542ac_outfile=conftest.$ac_objext
14543printf "$lt_simple_link_test_code" >conftest.$ac_ext
14544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14545_lt_linker_boilerplate=`cat conftest.err`
14546$rm conftest*
14547
14548
14549# Allow CC to be a program name with arguments.
14550lt_save_CC="$CC"
14551CC=${F77-"f77"}
14552compiler=$CC
14553compiler_F77=$CC
14554for cc_temp in $compiler""; do
14555  case $cc_temp in
14556    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14557    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14558    \-*) ;;
14559    *) break;;
14560  esac
14561done
14562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14563
14564
14565echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14566echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14567echo "$as_me:$LINENO: result: $can_build_shared" >&5
14568echo "${ECHO_T}$can_build_shared" >&6
14569
14570echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14571echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14572test "$can_build_shared" = "no" && enable_shared=no
14573
14574# On AIX, shared libraries and static libraries use the same namespace, and
14575# are all built from PIC.
14576case $host_os in
14577aix3*)
14578  test "$enable_shared" = yes && enable_static=no
14579  if test -n "$RANLIB"; then
14580    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14581    postinstall_cmds='$RANLIB $lib'
14582  fi
14583  ;;
14584aix4* | aix5*)
14585  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14586    test "$enable_shared" = yes && enable_static=no
14587  fi
14588  ;;
14589esac
14590echo "$as_me:$LINENO: result: $enable_shared" >&5
14591echo "${ECHO_T}$enable_shared" >&6
14592
14593echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14594echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14595# Make sure either enable_shared or enable_static is yes.
14596test "$enable_shared" = yes || enable_static=yes
14597echo "$as_me:$LINENO: result: $enable_static" >&5
14598echo "${ECHO_T}$enable_static" >&6
14599
14600GCC_F77="$G77"
14601LD_F77="$LD"
14602
14603lt_prog_compiler_wl_F77=
14604lt_prog_compiler_pic_F77=
14605lt_prog_compiler_static_F77=
14606
14607echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14608echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14609
14610  if test "$GCC" = yes; then
14611    lt_prog_compiler_wl_F77='-Wl,'
14612    lt_prog_compiler_static_F77='-static'
14613
14614    case $host_os in
14615      aix*)
14616      # All AIX code is PIC.
14617      if test "$host_cpu" = ia64; then
14618	# AIX 5 now supports IA64 processor
14619	lt_prog_compiler_static_F77='-Bstatic'
14620      fi
14621      ;;
14622
14623    amigaos*)
14624      # FIXME: we need at least 68020 code to build shared libraries, but
14625      # adding the `-m68020' flag to GCC prevents building anything better,
14626      # like `-m68040'.
14627      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14628      ;;
14629
14630    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14631      # PIC is the default for these OSes.
14632      ;;
14633
14634    mingw* | pw32* | os2*)
14635      # This hack is so that the source file can tell whether it is being
14636      # built for inclusion in a dll (and should export symbols for example).
14637      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14638      ;;
14639
14640    darwin* | rhapsody*)
14641      # PIC is the default on this platform
14642      # Common symbols not allowed in MH_DYLIB files
14643      lt_prog_compiler_pic_F77='-fno-common'
14644      ;;
14645
14646    interix3*)
14647      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14648      # Instead, we relocate shared libraries at runtime.
14649      ;;
14650
14651    msdosdjgpp*)
14652      # Just because we use GCC doesn't mean we suddenly get shared libraries
14653      # on systems that don't support them.
14654      lt_prog_compiler_can_build_shared_F77=no
14655      enable_shared=no
14656      ;;
14657
14658    sysv4*MP*)
14659      if test -d /usr/nec; then
14660	lt_prog_compiler_pic_F77=-Kconform_pic
14661      fi
14662      ;;
14663
14664    hpux*)
14665      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14666      # not for PA HP-UX.
14667      case $host_cpu in
14668      hppa*64*|ia64*)
14669	# +Z the default
14670	;;
14671      *)
14672	lt_prog_compiler_pic_F77='-fPIC'
14673	;;
14674      esac
14675      ;;
14676
14677    *)
14678      lt_prog_compiler_pic_F77='-fPIC'
14679      ;;
14680    esac
14681  else
14682    # PORTME Check for flag to pass linker flags through the system compiler.
14683    case $host_os in
14684    aix*)
14685      lt_prog_compiler_wl_F77='-Wl,'
14686      if test "$host_cpu" = ia64; then
14687	# AIX 5 now supports IA64 processor
14688	lt_prog_compiler_static_F77='-Bstatic'
14689      else
14690	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14691      fi
14692      ;;
14693      darwin*)
14694        # PIC is the default on this platform
14695        # Common symbols not allowed in MH_DYLIB files
14696       case $cc_basename in
14697         xlc*)
14698         lt_prog_compiler_pic_F77='-qnocommon'
14699         lt_prog_compiler_wl_F77='-Wl,'
14700         ;;
14701       esac
14702       ;;
14703
14704    mingw* | pw32* | os2*)
14705      # This hack is so that the source file can tell whether it is being
14706      # built for inclusion in a dll (and should export symbols for example).
14707      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14708      ;;
14709
14710    hpux9* | hpux10* | hpux11*)
14711      lt_prog_compiler_wl_F77='-Wl,'
14712      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14713      # not for PA HP-UX.
14714      case $host_cpu in
14715      hppa*64*|ia64*)
14716	# +Z the default
14717	;;
14718      *)
14719	lt_prog_compiler_pic_F77='+Z'
14720	;;
14721      esac
14722      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14723      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14724      ;;
14725
14726    irix5* | irix6* | nonstopux*)
14727      lt_prog_compiler_wl_F77='-Wl,'
14728      # PIC (with -KPIC) is the default.
14729      lt_prog_compiler_static_F77='-non_shared'
14730      ;;
14731
14732    newsos6)
14733      lt_prog_compiler_pic_F77='-KPIC'
14734      lt_prog_compiler_static_F77='-Bstatic'
14735      ;;
14736
14737    linux*)
14738      case $cc_basename in
14739      icc* | ecc*)
14740	lt_prog_compiler_wl_F77='-Wl,'
14741	lt_prog_compiler_pic_F77='-KPIC'
14742	lt_prog_compiler_static_F77='-static'
14743        ;;
14744      pgcc* | pgf77* | pgf90* | pgf95*)
14745        # Portland Group compilers (*not* the Pentium gcc compiler,
14746	# which looks to be a dead project)
14747	lt_prog_compiler_wl_F77='-Wl,'
14748	lt_prog_compiler_pic_F77='-fpic'
14749	lt_prog_compiler_static_F77='-Bstatic'
14750        ;;
14751      ccc*)
14752        lt_prog_compiler_wl_F77='-Wl,'
14753        # All Alpha code is PIC.
14754        lt_prog_compiler_static_F77='-non_shared'
14755        ;;
14756      esac
14757      ;;
14758
14759    osf3* | osf4* | osf5*)
14760      lt_prog_compiler_wl_F77='-Wl,'
14761      # All OSF/1 code is PIC.
14762      lt_prog_compiler_static_F77='-non_shared'
14763      ;;
14764
14765    solaris*)
14766      lt_prog_compiler_pic_F77='-KPIC'
14767      lt_prog_compiler_static_F77='-Bstatic'
14768      case $cc_basename in
14769      f77* | f90* | f95*)
14770	lt_prog_compiler_wl_F77='-Qoption ld ';;
14771      *)
14772	lt_prog_compiler_wl_F77='-Wl,';;
14773      esac
14774      ;;
14775
14776    sunos4*)
14777      lt_prog_compiler_wl_F77='-Qoption ld '
14778      lt_prog_compiler_pic_F77='-PIC'
14779      lt_prog_compiler_static_F77='-Bstatic'
14780      ;;
14781
14782    sysv4 | sysv4.2uw2* | sysv4.3*)
14783      lt_prog_compiler_wl_F77='-Wl,'
14784      lt_prog_compiler_pic_F77='-KPIC'
14785      lt_prog_compiler_static_F77='-Bstatic'
14786      ;;
14787
14788    sysv4*MP*)
14789      if test -d /usr/nec ;then
14790	lt_prog_compiler_pic_F77='-Kconform_pic'
14791	lt_prog_compiler_static_F77='-Bstatic'
14792      fi
14793      ;;
14794
14795    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14796      lt_prog_compiler_wl_F77='-Wl,'
14797      lt_prog_compiler_pic_F77='-KPIC'
14798      lt_prog_compiler_static_F77='-Bstatic'
14799      ;;
14800
14801    unicos*)
14802      lt_prog_compiler_wl_F77='-Wl,'
14803      lt_prog_compiler_can_build_shared_F77=no
14804      ;;
14805
14806    uts4*)
14807      lt_prog_compiler_pic_F77='-pic'
14808      lt_prog_compiler_static_F77='-Bstatic'
14809      ;;
14810
14811    *)
14812      lt_prog_compiler_can_build_shared_F77=no
14813      ;;
14814    esac
14815  fi
14816
14817echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14818echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14819
14820#
14821# Check to make sure the PIC flag actually works.
14822#
14823if test -n "$lt_prog_compiler_pic_F77"; then
14824
14825echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14826echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14827if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14828  echo $ECHO_N "(cached) $ECHO_C" >&6
14829else
14830  lt_prog_compiler_pic_works_F77=no
14831  ac_outfile=conftest.$ac_objext
14832   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14833   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14834   # Insert the option either (1) after the last *FLAGS variable, or
14835   # (2) before a word containing "conftest.", or (3) at the end.
14836   # Note that $ac_compile itself does not contain backslashes and begins
14837   # with a dollar sign (not a hyphen), so the echo should work correctly.
14838   # The option is referenced via a variable to avoid confusing sed.
14839   lt_compile=`echo "$ac_compile" | $SED \
14840   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14842   -e 's:$: $lt_compiler_flag:'`
14843   (eval echo "\"\$as_me:14843: $lt_compile\"" >&5)
14844   (eval "$lt_compile" 2>conftest.err)
14845   ac_status=$?
14846   cat conftest.err >&5
14847   echo "$as_me:14847: \$? = $ac_status" >&5
14848   if (exit $ac_status) && test -s "$ac_outfile"; then
14849     # The compiler can only warn and ignore the option if not recognized
14850     # So say no if there are warnings other than the usual output.
14851     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14852     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14853     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14854       lt_prog_compiler_pic_works_F77=yes
14855     fi
14856   fi
14857   $rm conftest*
14858
14859fi
14860echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14861echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14862
14863if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14864    case $lt_prog_compiler_pic_F77 in
14865     "" | " "*) ;;
14866     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14867     esac
14868else
14869    lt_prog_compiler_pic_F77=
14870     lt_prog_compiler_can_build_shared_F77=no
14871fi
14872
14873fi
14874case $host_os in
14875  # For platforms which do not support PIC, -DPIC is meaningless:
14876  *djgpp*)
14877    lt_prog_compiler_pic_F77=
14878    ;;
14879  *)
14880    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14881    ;;
14882esac
14883
14884#
14885# Check to make sure the static flag actually works.
14886#
14887wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14888echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14889echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14890if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14891  echo $ECHO_N "(cached) $ECHO_C" >&6
14892else
14893  lt_prog_compiler_static_works_F77=no
14894   save_LDFLAGS="$LDFLAGS"
14895   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14896   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14897   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14898     # The linker can only warn and ignore the option if not recognized
14899     # So say no if there are warnings
14900     if test -s conftest.err; then
14901       # Append any errors to the config.log.
14902       cat conftest.err 1>&5
14903       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14904       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14905       if diff conftest.exp conftest.er2 >/dev/null; then
14906         lt_prog_compiler_static_works_F77=yes
14907       fi
14908     else
14909       lt_prog_compiler_static_works_F77=yes
14910     fi
14911   fi
14912   $rm conftest*
14913   LDFLAGS="$save_LDFLAGS"
14914
14915fi
14916echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14917echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14918
14919if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14920    :
14921else
14922    lt_prog_compiler_static_F77=
14923fi
14924
14925
14926echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14928if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14929  echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
14931  lt_cv_prog_compiler_c_o_F77=no
14932   $rm -r conftest 2>/dev/null
14933   mkdir conftest
14934   cd conftest
14935   mkdir out
14936   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14937
14938   lt_compiler_flag="-o out/conftest2.$ac_objext"
14939   # Insert the option either (1) after the last *FLAGS variable, or
14940   # (2) before a word containing "conftest.", or (3) at the end.
14941   # Note that $ac_compile itself does not contain backslashes and begins
14942   # with a dollar sign (not a hyphen), so the echo should work correctly.
14943   lt_compile=`echo "$ac_compile" | $SED \
14944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946   -e 's:$: $lt_compiler_flag:'`
14947   (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948   (eval "$lt_compile" 2>out/conftest.err)
14949   ac_status=$?
14950   cat out/conftest.err >&5
14951   echo "$as_me:14951: \$? = $ac_status" >&5
14952   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14953   then
14954     # The compiler can only warn and ignore the option if not recognized
14955     # So say no if there are warnings
14956     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959       lt_cv_prog_compiler_c_o_F77=yes
14960     fi
14961   fi
14962   chmod u+w . 2>&5
14963   $rm conftest*
14964   # SGI C++ compiler will create directory out/ii_files/ for
14965   # template instantiation
14966   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14967   $rm out/* && rmdir out
14968   cd ..
14969   rmdir conftest
14970   $rm conftest*
14971
14972fi
14973echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14974echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14975
14976
14977hard_links="nottested"
14978if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14979  # do not overwrite the value of need_locks provided by the user
14980  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14981echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14982  hard_links=yes
14983  $rm conftest*
14984  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14985  touch conftest.a
14986  ln conftest.a conftest.b 2>&5 || hard_links=no
14987  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988  echo "$as_me:$LINENO: result: $hard_links" >&5
14989echo "${ECHO_T}$hard_links" >&6
14990  if test "$hard_links" = no; then
14991    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14992echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14993    need_locks=warn
14994  fi
14995else
14996  need_locks=no
14997fi
14998
14999echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15001
15002  runpath_var=
15003  allow_undefined_flag_F77=
15004  enable_shared_with_static_runtimes_F77=no
15005  archive_cmds_F77=
15006  archive_expsym_cmds_F77=
15007  old_archive_From_new_cmds_F77=
15008  old_archive_from_expsyms_cmds_F77=
15009  export_dynamic_flag_spec_F77=
15010  whole_archive_flag_spec_F77=
15011  thread_safe_flag_spec_F77=
15012  hardcode_libdir_flag_spec_F77=
15013  hardcode_libdir_flag_spec_ld_F77=
15014  hardcode_libdir_separator_F77=
15015  hardcode_direct_F77=no
15016  hardcode_minus_L_F77=no
15017  hardcode_shlibpath_var_F77=unsupported
15018  link_all_deplibs_F77=unknown
15019  hardcode_automatic_F77=no
15020  module_cmds_F77=
15021  module_expsym_cmds_F77=
15022  always_export_symbols_F77=no
15023  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15024  # include_expsyms should be a list of space-separated symbols to be *always*
15025  # included in the symbol list
15026  include_expsyms_F77=
15027  # exclude_expsyms can be an extended regexp of symbols to exclude
15028  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15029  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15030  # as well as any symbol that contains `d'.
15031  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15032  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15033  # platforms (ab)use it in PIC code, but their linkers get confused if
15034  # the symbol is explicitly referenced.  Since portable code cannot
15035  # rely on this symbol name, it's probably fine to never include it in
15036  # preloaded symbol tables.
15037  extract_expsyms_cmds=
15038  # Just being paranoid about ensuring that cc_basename is set.
15039  for cc_temp in $compiler""; do
15040  case $cc_temp in
15041    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15042    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15043    \-*) ;;
15044    *) break;;
15045  esac
15046done
15047cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15048
15049  case $host_os in
15050  cygwin* | mingw* | pw32*)
15051    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15052    # When not using gcc, we currently assume that we are using
15053    # Microsoft Visual C++.
15054    if test "$GCC" != yes; then
15055      with_gnu_ld=no
15056    fi
15057    ;;
15058  interix*)
15059    # we just hope/assume this is gcc and not c89 (= MSVC++)
15060    with_gnu_ld=yes
15061    ;;
15062  openbsd*)
15063    with_gnu_ld=no
15064    ;;
15065  esac
15066
15067  ld_shlibs_F77=yes
15068  if test "$with_gnu_ld" = yes; then
15069    # If archive_cmds runs LD, not CC, wlarc should be empty
15070    wlarc='${wl}'
15071
15072    # Set some defaults for GNU ld with shared library support. These
15073    # are reset later if shared libraries are not supported. Putting them
15074    # here allows them to be overridden if necessary.
15075    runpath_var=LD_RUN_PATH
15076    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15077    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15078    # ancient GNU ld didn't support --whole-archive et. al.
15079    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15080	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15081      else
15082  	whole_archive_flag_spec_F77=
15083    fi
15084    supports_anon_versioning=no
15085    case `$LD -v 2>/dev/null` in
15086      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15087      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15088      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15089      *\ 2.11.*) ;; # other 2.11 versions
15090      *) supports_anon_versioning=yes ;;
15091    esac
15092
15093    # See if GNU ld supports shared libraries.
15094    case $host_os in
15095    aix3* | aix4* | aix5*)
15096      # On AIX/PPC, the GNU linker is very broken
15097      if test "$host_cpu" != ia64; then
15098	ld_shlibs_F77=no
15099	cat <<EOF 1>&2
15100
15101*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15102*** to be unable to reliably create shared libraries on AIX.
15103*** Therefore, libtool is disabling shared libraries support.  If you
15104*** really care for shared libraries, you may want to modify your PATH
15105*** so that a non-GNU linker is found, and then restart.
15106
15107EOF
15108      fi
15109      ;;
15110
15111    amigaos*)
15112      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)'
15113      hardcode_libdir_flag_spec_F77='-L$libdir'
15114      hardcode_minus_L_F77=yes
15115
15116      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15117      # that the semantics of dynamic libraries on AmigaOS, at least up
15118      # to version 4, is to share data among multiple programs linked
15119      # with the same dynamic library.  Since this doesn't match the
15120      # behavior of shared libraries on other platforms, we can't use
15121      # them.
15122      ld_shlibs_F77=no
15123      ;;
15124
15125    beos*)
15126      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15127	allow_undefined_flag_F77=unsupported
15128	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15129	# support --undefined.  This deserves some investigation.  FIXME
15130	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131      else
15132	ld_shlibs_F77=no
15133      fi
15134      ;;
15135
15136    cygwin* | mingw* | pw32*)
15137      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15138      # as there is no search path for DLLs.
15139      hardcode_libdir_flag_spec_F77='-L$libdir'
15140      allow_undefined_flag_F77=unsupported
15141      always_export_symbols_F77=no
15142      enable_shared_with_static_runtimes_F77=yes
15143      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15144
15145      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15146        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15147	# If the export-symbols file already is a .def file (1st line
15148	# is EXPORTS), use it as is; otherwise, prepend...
15149	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15150	  cp $export_symbols $output_objdir/$soname.def;
15151	else
15152	  echo EXPORTS > $output_objdir/$soname.def;
15153	  cat $export_symbols >> $output_objdir/$soname.def;
15154	fi~
15155	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15156      else
15157	ld_shlibs_F77=no
15158      fi
15159      ;;
15160
15161    interix3*)
15162      hardcode_direct_F77=no
15163      hardcode_shlibpath_var_F77=no
15164      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15165      export_dynamic_flag_spec_F77='${wl}-E'
15166      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15167      # Instead, shared libraries are loaded at an image base (0x10000000 by
15168      # default) and relocated if they conflict, which is a slow very memory
15169      # consuming and fragmenting process.  To avoid this, we pick a random,
15170      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15171      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15172      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'
15173      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'
15174      ;;
15175
15176    linux*)
15177      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178	tmp_addflag=
15179	case $cc_basename,$host_cpu in
15180	pgcc*)				# Portland Group C compiler
15181	  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'
15182	  tmp_addflag=' $pic_flag'
15183	  ;;
15184	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15185	  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'
15186	  tmp_addflag=' $pic_flag -Mnomain' ;;
15187	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15188	  tmp_addflag=' -i_dynamic' ;;
15189	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15190	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15191	ifc* | ifort*)			# Intel Fortran compiler
15192	  tmp_addflag=' -nofor_main' ;;
15193	esac
15194	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195
15196	if test $supports_anon_versioning = yes; then
15197	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15198  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15199  $echo "local: *; };" >> $output_objdir/$libname.ver~
15200	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15201	fi
15202      else
15203	ld_shlibs_F77=no
15204      fi
15205      ;;
15206
15207    netbsd*)
15208      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15209	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15210	wlarc=
15211      else
15212	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15213	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15214      fi
15215      ;;
15216
15217    solaris*)
15218      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15219	ld_shlibs_F77=no
15220	cat <<EOF 1>&2
15221
15222*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15223*** create shared libraries on Solaris systems.  Therefore, libtool
15224*** is disabling shared libraries support.  We urge you to upgrade GNU
15225*** binutils to release 2.9.1 or newer.  Another option is to modify
15226*** your PATH or compiler configuration so that the native linker is
15227*** used, and then restart.
15228
15229EOF
15230      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15231	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15233      else
15234	ld_shlibs_F77=no
15235      fi
15236      ;;
15237
15238    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15239      case `$LD -v 2>&1` in
15240        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15241	ld_shlibs_F77=no
15242	cat <<_LT_EOF 1>&2
15243
15244*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15245*** reliably create shared libraries on SCO systems.  Therefore, libtool
15246*** is disabling shared libraries support.  We urge you to upgrade GNU
15247*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15248*** your PATH or compiler configuration so that the native linker is
15249*** used, and then restart.
15250
15251_LT_EOF
15252	;;
15253	*)
15254	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15255	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15256	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15257	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15258	  else
15259	    ld_shlibs_F77=no
15260	  fi
15261	;;
15262      esac
15263      ;;
15264
15265    sunos4*)
15266      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15267      wlarc=
15268      hardcode_direct_F77=yes
15269      hardcode_shlibpath_var_F77=no
15270      ;;
15271
15272    *)
15273      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15274	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15275	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15276      else
15277	ld_shlibs_F77=no
15278      fi
15279      ;;
15280    esac
15281
15282    if test "$ld_shlibs_F77" = no; then
15283      runpath_var=
15284      hardcode_libdir_flag_spec_F77=
15285      export_dynamic_flag_spec_F77=
15286      whole_archive_flag_spec_F77=
15287    fi
15288  else
15289    # PORTME fill in a description of your system's linker (not GNU ld)
15290    case $host_os in
15291    aix3*)
15292      allow_undefined_flag_F77=unsupported
15293      always_export_symbols_F77=yes
15294      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'
15295      # Note: this linker hardcodes the directories in LIBPATH if there
15296      # are no directories specified by -L.
15297      hardcode_minus_L_F77=yes
15298      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15299	# Neither direct hardcoding nor static linking is supported with a
15300	# broken collect2.
15301	hardcode_direct_F77=unsupported
15302      fi
15303      ;;
15304
15305    aix4* | aix5*)
15306      if test "$host_cpu" = ia64; then
15307	# On IA64, the linker does run time linking by default, so we don't
15308	# have to do anything special.
15309	aix_use_runtimelinking=no
15310	exp_sym_flag='-Bexport'
15311	no_entry_flag=""
15312      else
15313	# If we're using GNU nm, then we don't want the "-C" option.
15314	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15315	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15316	  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'
15317	else
15318	  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'
15319	fi
15320	aix_use_runtimelinking=no
15321
15322	# Test if we are trying to use run time linking or normal
15323	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15324	# need to do runtime linking.
15325	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15326	  for ld_flag in $LDFLAGS; do
15327  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15328  	    aix_use_runtimelinking=yes
15329  	    break
15330  	  fi
15331	  done
15332	  ;;
15333	esac
15334
15335	exp_sym_flag='-bexport'
15336	no_entry_flag='-bnoentry'
15337      fi
15338
15339      # When large executables or shared objects are built, AIX ld can
15340      # have problems creating the table of contents.  If linking a library
15341      # or program results in "error TOC overflow" add -mminimal-toc to
15342      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15343      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15344
15345      archive_cmds_F77=''
15346      hardcode_direct_F77=yes
15347      hardcode_libdir_separator_F77=':'
15348      link_all_deplibs_F77=yes
15349
15350      if test "$GCC" = yes; then
15351	case $host_os in aix4.[012]|aix4.[012].*)
15352	# We only want to do this on AIX 4.2 and lower, the check
15353	# below for broken collect2 doesn't work under 4.3+
15354	  collect2name=`${CC} -print-prog-name=collect2`
15355	  if test -f "$collect2name" && \
15356  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15357	  then
15358  	  # We have reworked collect2
15359  	  hardcode_direct_F77=yes
15360	  else
15361  	  # We have old collect2
15362  	  hardcode_direct_F77=unsupported
15363  	  # It fails to find uninstalled libraries when the uninstalled
15364  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15365  	  # to unsupported forces relinking
15366  	  hardcode_minus_L_F77=yes
15367  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15368  	  hardcode_libdir_separator_F77=
15369	  fi
15370	  ;;
15371	esac
15372	shared_flag='-shared'
15373	if test "$aix_use_runtimelinking" = yes; then
15374	  shared_flag="$shared_flag "'${wl}-G'
15375	fi
15376      else
15377	# not using gcc
15378	if test "$host_cpu" = ia64; then
15379  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15380  	# chokes on -Wl,-G. The following line is correct:
15381	  shared_flag='-G'
15382	else
15383	  if test "$aix_use_runtimelinking" = yes; then
15384	    shared_flag='${wl}-G'
15385	  else
15386	    shared_flag='${wl}-bM:SRE'
15387	  fi
15388	fi
15389      fi
15390
15391      # It seems that -bexpall does not export symbols beginning with
15392      # underscore (_), so it is better to generate a list of symbols to export.
15393      always_export_symbols_F77=yes
15394      if test "$aix_use_runtimelinking" = yes; then
15395	# Warning - without using the other runtime loading flags (-brtl),
15396	# -berok will link without error, but may produce a broken library.
15397	allow_undefined_flag_F77='-berok'
15398       # Determine the default libpath from the value encoded in an empty executable.
15399       cat >conftest.$ac_ext <<_ACEOF
15400      program main
15401
15402      end
15403_ACEOF
15404rm -f conftest.$ac_objext conftest$ac_exeext
15405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406  (eval $ac_link) 2>conftest.er1
15407  ac_status=$?
15408  grep -v '^ *+' conftest.er1 >conftest.err
15409  rm -f conftest.er1
15410  cat conftest.err >&5
15411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412  (exit $ac_status); } &&
15413	 { ac_try='test -z "$ac_f77_werror_flag"
15414			 || test ! -s conftest.err'
15415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416  (eval $ac_try) 2>&5
15417  ac_status=$?
15418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419  (exit $ac_status); }; } &&
15420	 { ac_try='test -s conftest$ac_exeext'
15421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422  (eval $ac_try) 2>&5
15423  ac_status=$?
15424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425  (exit $ac_status); }; }; then
15426
15427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15428}'`
15429# Check for a 64-bit object if we didn't find anything.
15430if 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; }
15431}'`; fi
15432else
15433  echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436fi
15437rm -f conftest.err conftest.$ac_objext \
15438      conftest$ac_exeext conftest.$ac_ext
15439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15440
15441       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15442	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"
15443       else
15444	if test "$host_cpu" = ia64; then
15445	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15446	  allow_undefined_flag_F77="-z nodefs"
15447	  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"
15448	else
15449	 # Determine the default libpath from the value encoded in an empty executable.
15450	 cat >conftest.$ac_ext <<_ACEOF
15451      program main
15452
15453      end
15454_ACEOF
15455rm -f conftest.$ac_objext conftest$ac_exeext
15456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457  (eval $ac_link) 2>conftest.er1
15458  ac_status=$?
15459  grep -v '^ *+' conftest.er1 >conftest.err
15460  rm -f conftest.er1
15461  cat conftest.err >&5
15462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463  (exit $ac_status); } &&
15464	 { ac_try='test -z "$ac_f77_werror_flag"
15465			 || test ! -s conftest.err'
15466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467  (eval $ac_try) 2>&5
15468  ac_status=$?
15469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470  (exit $ac_status); }; } &&
15471	 { ac_try='test -s conftest$ac_exeext'
15472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473  (eval $ac_try) 2>&5
15474  ac_status=$?
15475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476  (exit $ac_status); }; }; then
15477
15478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15479}'`
15480# Check for a 64-bit object if we didn't find anything.
15481if 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; }
15482}'`; fi
15483else
15484  echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
15486
15487fi
15488rm -f conftest.err conftest.$ac_objext \
15489      conftest$ac_exeext conftest.$ac_ext
15490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15491
15492	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15493	  # Warning - without using the other run time loading flags,
15494	  # -berok will link without error, but may produce a broken library.
15495	  no_undefined_flag_F77=' ${wl}-bernotok'
15496	  allow_undefined_flag_F77=' ${wl}-berok'
15497	  # Exported symbols can be pulled into shared objects from archives
15498	  whole_archive_flag_spec_F77='$convenience'
15499	  archive_cmds_need_lc_F77=yes
15500	  # This is similar to how AIX traditionally builds its shared libraries.
15501	  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'
15502	fi
15503      fi
15504      ;;
15505
15506    amigaos*)
15507      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)'
15508      hardcode_libdir_flag_spec_F77='-L$libdir'
15509      hardcode_minus_L_F77=yes
15510      # see comment about different semantics on the GNU ld section
15511      ld_shlibs_F77=no
15512      ;;
15513
15514    bsdi[45]*)
15515      export_dynamic_flag_spec_F77=-rdynamic
15516      ;;
15517
15518    cygwin* | mingw* | pw32*)
15519      # When not using gcc, we currently assume that we are using
15520      # Microsoft Visual C++.
15521      # hardcode_libdir_flag_spec is actually meaningless, as there is
15522      # no search path for DLLs.
15523      hardcode_libdir_flag_spec_F77=' '
15524      allow_undefined_flag_F77=unsupported
15525      # Tell ltmain to make .lib files, not .a files.
15526      libext=lib
15527      # Tell ltmain to make .dll files, not .so files.
15528      shrext_cmds=".dll"
15529      # FIXME: Setting linknames here is a bad hack.
15530      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15531      # The linker will automatically build a .lib file if we build a DLL.
15532      old_archive_From_new_cmds_F77='true'
15533      # FIXME: Should let the user specify the lib program.
15534      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15535      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15536      enable_shared_with_static_runtimes_F77=yes
15537      ;;
15538
15539    darwin* | rhapsody*)
15540      case $host_os in
15541        rhapsody* | darwin1.[012])
15542         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15543         ;;
15544       *) # Darwin 1.3 on
15545         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15546           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15547         else
15548           case ${MACOSX_DEPLOYMENT_TARGET} in
15549             10.[012])
15550               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15551               ;;
15552             10.*)
15553               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15554               ;;
15555           esac
15556         fi
15557         ;;
15558      esac
15559      archive_cmds_need_lc_F77=no
15560      hardcode_direct_F77=no
15561      hardcode_automatic_F77=yes
15562      hardcode_shlibpath_var_F77=unsupported
15563      whole_archive_flag_spec_F77=''
15564      link_all_deplibs_F77=yes
15565    if test "$GCC" = yes ; then
15566    	output_verbose_link_cmd='echo'
15567        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15568      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15569      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15570      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}'
15571      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}'
15572    else
15573      case $cc_basename in
15574        xlc*)
15575         output_verbose_link_cmd='echo'
15576         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15577         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15579         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}'
15580          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}'
15581          ;;
15582       *)
15583         ld_shlibs_F77=no
15584          ;;
15585      esac
15586    fi
15587      ;;
15588
15589    dgux*)
15590      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591      hardcode_libdir_flag_spec_F77='-L$libdir'
15592      hardcode_shlibpath_var_F77=no
15593      ;;
15594
15595    freebsd1*)
15596      ld_shlibs_F77=no
15597      ;;
15598
15599    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15600    # support.  Future versions do this automatically, but an explicit c++rt0.o
15601    # does not break anything, and helps significantly (at the cost of a little
15602    # extra space).
15603    freebsd2.2*)
15604      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15605      hardcode_libdir_flag_spec_F77='-R$libdir'
15606      hardcode_direct_F77=yes
15607      hardcode_shlibpath_var_F77=no
15608      ;;
15609
15610    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15611    freebsd2*)
15612      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15613      hardcode_direct_F77=yes
15614      hardcode_minus_L_F77=yes
15615      hardcode_shlibpath_var_F77=no
15616      ;;
15617
15618    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15619    freebsd* | kfreebsd*-gnu | dragonfly*)
15620      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15621      hardcode_libdir_flag_spec_F77='-R$libdir'
15622      hardcode_direct_F77=yes
15623      hardcode_shlibpath_var_F77=no
15624      ;;
15625
15626    hpux9*)
15627      if test "$GCC" = yes; then
15628	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'
15629      else
15630	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'
15631      fi
15632      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15633      hardcode_libdir_separator_F77=:
15634      hardcode_direct_F77=yes
15635
15636      # hardcode_minus_L: Not really in the search PATH,
15637      # but as the default location of the library.
15638      hardcode_minus_L_F77=yes
15639      export_dynamic_flag_spec_F77='${wl}-E'
15640      ;;
15641
15642    hpux10*)
15643      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15644	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15645      else
15646	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15647      fi
15648      if test "$with_gnu_ld" = no; then
15649	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15650	hardcode_libdir_separator_F77=:
15651
15652	hardcode_direct_F77=yes
15653	export_dynamic_flag_spec_F77='${wl}-E'
15654
15655	# hardcode_minus_L: Not really in the search PATH,
15656	# but as the default location of the library.
15657	hardcode_minus_L_F77=yes
15658      fi
15659      ;;
15660
15661    hpux11*)
15662      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15663	case $host_cpu in
15664	hppa*64*)
15665	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15666	  ;;
15667	ia64*)
15668	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15669	  ;;
15670	*)
15671	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15672	  ;;
15673	esac
15674      else
15675	case $host_cpu in
15676	hppa*64*)
15677	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15678	  ;;
15679	ia64*)
15680	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15681	  ;;
15682	*)
15683	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15684	  ;;
15685	esac
15686      fi
15687      if test "$with_gnu_ld" = no; then
15688	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15689	hardcode_libdir_separator_F77=:
15690
15691	case $host_cpu in
15692	hppa*64*|ia64*)
15693	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15694	  hardcode_direct_F77=no
15695	  hardcode_shlibpath_var_F77=no
15696	  ;;
15697	*)
15698	  hardcode_direct_F77=yes
15699	  export_dynamic_flag_spec_F77='${wl}-E'
15700
15701	  # hardcode_minus_L: Not really in the search PATH,
15702	  # but as the default location of the library.
15703	  hardcode_minus_L_F77=yes
15704	  ;;
15705	esac
15706      fi
15707      ;;
15708
15709    irix5* | irix6* | nonstopux*)
15710      if test "$GCC" = yes; then
15711	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'
15712      else
15713	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'
15714	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15715      fi
15716      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15717      hardcode_libdir_separator_F77=:
15718      link_all_deplibs_F77=yes
15719      ;;
15720
15721    netbsd*)
15722      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15723	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15724      else
15725	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15726      fi
15727      hardcode_libdir_flag_spec_F77='-R$libdir'
15728      hardcode_direct_F77=yes
15729      hardcode_shlibpath_var_F77=no
15730      ;;
15731
15732    newsos6)
15733      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734      hardcode_direct_F77=yes
15735      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15736      hardcode_libdir_separator_F77=:
15737      hardcode_shlibpath_var_F77=no
15738      ;;
15739
15740    openbsd*)
15741      hardcode_direct_F77=yes
15742      hardcode_shlibpath_var_F77=no
15743      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15745	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15746	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15747	export_dynamic_flag_spec_F77='${wl}-E'
15748      else
15749       case $host_os in
15750	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15751	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15752	   hardcode_libdir_flag_spec_F77='-R$libdir'
15753	   ;;
15754	 *)
15755	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15756	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15757	   ;;
15758       esac
15759      fi
15760      ;;
15761
15762    os2*)
15763      hardcode_libdir_flag_spec_F77='-L$libdir'
15764      hardcode_minus_L_F77=yes
15765      allow_undefined_flag_F77=unsupported
15766      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'
15767      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15768      ;;
15769
15770    osf3*)
15771      if test "$GCC" = yes; then
15772	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15773	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'
15774      else
15775	allow_undefined_flag_F77=' -expect_unresolved \*'
15776	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'
15777      fi
15778      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15779      hardcode_libdir_separator_F77=:
15780      ;;
15781
15782    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15783      if test "$GCC" = yes; then
15784	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15785	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'
15786	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15787      else
15788	allow_undefined_flag_F77=' -expect_unresolved \*'
15789	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'
15790	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~
15791	$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'
15792
15793	# Both c and cxx compiler support -rpath directly
15794	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15795      fi
15796      hardcode_libdir_separator_F77=:
15797      ;;
15798
15799    solaris*)
15800      no_undefined_flag_F77=' -z text'
15801      if test "$GCC" = yes; then
15802	wlarc='${wl}'
15803	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15805	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15806      else
15807	wlarc=''
15808	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15810  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15811      fi
15812      hardcode_libdir_flag_spec_F77='-R$libdir'
15813      hardcode_shlibpath_var_F77=no
15814      case $host_os in
15815      solaris2.[0-5] | solaris2.[0-5].*) ;;
15816      *)
15817 	# The compiler driver will combine linker options so we
15818 	# cannot just pass the convience library names through
15819 	# without $wl, iff we do not link with $LD.
15820 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15821 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15822 	case $wlarc in
15823 	'')
15824 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15825 	*)
15826 	  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' ;;
15827 	esac ;;
15828      esac
15829      link_all_deplibs_F77=yes
15830      ;;
15831
15832    sunos4*)
15833      if test "x$host_vendor" = xsequent; then
15834	# Use $CC to link under sequent, because it throws in some extra .o
15835	# files that make .init and .fini sections work.
15836	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15837      else
15838	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15839      fi
15840      hardcode_libdir_flag_spec_F77='-L$libdir'
15841      hardcode_direct_F77=yes
15842      hardcode_minus_L_F77=yes
15843      hardcode_shlibpath_var_F77=no
15844      ;;
15845
15846    sysv4)
15847      case $host_vendor in
15848	sni)
15849	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850	  hardcode_direct_F77=yes # is this really true???
15851	;;
15852	siemens)
15853	  ## LD is ld it makes a PLAMLIB
15854	  ## CC just makes a GrossModule.
15855	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15856	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15857	  hardcode_direct_F77=no
15858        ;;
15859	motorola)
15860	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15862	;;
15863      esac
15864      runpath_var='LD_RUN_PATH'
15865      hardcode_shlibpath_var_F77=no
15866      ;;
15867
15868    sysv4.3*)
15869      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870      hardcode_shlibpath_var_F77=no
15871      export_dynamic_flag_spec_F77='-Bexport'
15872      ;;
15873
15874    sysv4*MP*)
15875      if test -d /usr/nec; then
15876	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877	hardcode_shlibpath_var_F77=no
15878	runpath_var=LD_RUN_PATH
15879	hardcode_runpath_var=yes
15880	ld_shlibs_F77=yes
15881      fi
15882      ;;
15883
15884    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15885      no_undefined_flag_F77='${wl}-z,text'
15886      archive_cmds_need_lc_F77=no
15887      hardcode_shlibpath_var_F77=no
15888      runpath_var='LD_RUN_PATH'
15889
15890      if test "$GCC" = yes; then
15891	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15892	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15893      else
15894	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15895	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15896      fi
15897      ;;
15898
15899    sysv5* | sco3.2v5* | sco5v6*)
15900      # Note: We can NOT use -z defs as we might desire, because we do not
15901      # link with -lc, and that would cause any symbols used from libc to
15902      # always be unresolved, which means just about no library would
15903      # ever link correctly.  If we're not using GNU ld we use -z text
15904      # though, which does catch some bad symbols but isn't as heavy-handed
15905      # as -z defs.
15906      no_undefined_flag_F77='${wl}-z,text'
15907      allow_undefined_flag_F77='${wl}-z,nodefs'
15908      archive_cmds_need_lc_F77=no
15909      hardcode_shlibpath_var_F77=no
15910      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15911      hardcode_libdir_separator_F77=':'
15912      link_all_deplibs_F77=yes
15913      export_dynamic_flag_spec_F77='${wl}-Bexport'
15914      runpath_var='LD_RUN_PATH'
15915
15916      if test "$GCC" = yes; then
15917	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919      else
15920	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15921	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922      fi
15923      ;;
15924
15925    uts4*)
15926      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927      hardcode_libdir_flag_spec_F77='-L$libdir'
15928      hardcode_shlibpath_var_F77=no
15929      ;;
15930
15931    *)
15932      ld_shlibs_F77=no
15933      ;;
15934    esac
15935  fi
15936
15937echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15938echo "${ECHO_T}$ld_shlibs_F77" >&6
15939test "$ld_shlibs_F77" = no && can_build_shared=no
15940
15941#
15942# Do we need to explicitly link libc?
15943#
15944case "x$archive_cmds_need_lc_F77" in
15945x|xyes)
15946  # Assume -lc should be added
15947  archive_cmds_need_lc_F77=yes
15948
15949  if test "$enable_shared" = yes && test "$GCC" = yes; then
15950    case $archive_cmds_F77 in
15951    *'~'*)
15952      # FIXME: we may have to deal with multi-command sequences.
15953      ;;
15954    '$CC '*)
15955      # Test whether the compiler implicitly links with -lc since on some
15956      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15957      # to ld, don't add -lc before -lgcc.
15958      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15959echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15960      $rm conftest*
15961      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15962
15963      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964  (eval $ac_compile) 2>&5
15965  ac_status=$?
15966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967  (exit $ac_status); } 2>conftest.err; then
15968        soname=conftest
15969        lib=conftest
15970        libobjs=conftest.$ac_objext
15971        deplibs=
15972        wl=$lt_prog_compiler_wl_F77
15973	pic_flag=$lt_prog_compiler_pic_F77
15974        compiler_flags=-v
15975        linker_flags=-v
15976        verstring=
15977        output_objdir=.
15978        libname=conftest
15979        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15980        allow_undefined_flag_F77=
15981        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15982  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15983  ac_status=$?
15984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985  (exit $ac_status); }
15986        then
15987	  archive_cmds_need_lc_F77=no
15988        else
15989	  archive_cmds_need_lc_F77=yes
15990        fi
15991        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15992      else
15993        cat conftest.err 1>&5
15994      fi
15995      $rm conftest*
15996      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15997echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15998      ;;
15999    esac
16000  fi
16001  ;;
16002esac
16003
16004echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16005echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16006library_names_spec=
16007libname_spec='lib$name'
16008soname_spec=
16009shrext_cmds=".so"
16010postinstall_cmds=
16011postuninstall_cmds=
16012finish_cmds=
16013finish_eval=
16014shlibpath_var=
16015shlibpath_overrides_runpath=unknown
16016version_type=none
16017dynamic_linker="$host_os ld.so"
16018sys_lib_dlsearch_path_spec="/lib /usr/lib"
16019if test "$GCC" = yes; then
16020  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16021  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16022    # if the path contains ";" then we assume it to be the separator
16023    # otherwise default to the standard path separator (i.e. ":") - it is
16024    # assumed that no part of a normal pathname contains ";" but that should
16025    # okay in the real world where ";" in dirpaths is itself problematic.
16026    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16027  else
16028    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16029  fi
16030else
16031  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16032fi
16033need_lib_prefix=unknown
16034hardcode_into_libs=no
16035
16036# when you set need_version to no, make sure it does not cause -set_version
16037# flags to be left without arguments
16038need_version=unknown
16039
16040case $host_os in
16041aix3*)
16042  version_type=linux
16043  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16044  shlibpath_var=LIBPATH
16045
16046  # AIX 3 has no versioning support, so we append a major version to the name.
16047  soname_spec='${libname}${release}${shared_ext}$major'
16048  ;;
16049
16050aix4* | aix5*)
16051  version_type=linux
16052  need_lib_prefix=no
16053  need_version=no
16054  hardcode_into_libs=yes
16055  if test "$host_cpu" = ia64; then
16056    # AIX 5 supports IA64
16057    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16058    shlibpath_var=LD_LIBRARY_PATH
16059  else
16060    # With GCC up to 2.95.x, collect2 would create an import file
16061    # for dependence libraries.  The import file would start with
16062    # the line `#! .'.  This would cause the generated library to
16063    # depend on `.', always an invalid library.  This was fixed in
16064    # development snapshots of GCC prior to 3.0.
16065    case $host_os in
16066      aix4 | aix4.[01] | aix4.[01].*)
16067      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16068	   echo ' yes '
16069	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16070	:
16071      else
16072	can_build_shared=no
16073      fi
16074      ;;
16075    esac
16076    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16077    # soname into executable. Probably we can add versioning support to
16078    # collect2, so additional links can be useful in future.
16079    if test "$aix_use_runtimelinking" = yes; then
16080      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16081      # instead of lib<name>.a to let people know that these are not
16082      # typical AIX shared libraries.
16083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084    else
16085      # We preserve .a as extension for shared libraries through AIX4.2
16086      # and later when we are not doing run time linking.
16087      library_names_spec='${libname}${release}.a $libname.a'
16088      soname_spec='${libname}${release}${shared_ext}$major'
16089    fi
16090    shlibpath_var=LIBPATH
16091  fi
16092  ;;
16093
16094amigaos*)
16095  library_names_spec='$libname.ixlibrary $libname.a'
16096  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16097  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'
16098  ;;
16099
16100beos*)
16101  library_names_spec='${libname}${shared_ext}'
16102  dynamic_linker="$host_os ld.so"
16103  shlibpath_var=LIBRARY_PATH
16104  ;;
16105
16106bsdi[45]*)
16107  version_type=linux
16108  need_version=no
16109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110  soname_spec='${libname}${release}${shared_ext}$major'
16111  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16112  shlibpath_var=LD_LIBRARY_PATH
16113  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16114  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16115  # the default ld.so.conf also contains /usr/contrib/lib and
16116  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16117  # libtool to hard-code these into programs
16118  ;;
16119
16120cygwin* | mingw* | pw32*)
16121  version_type=windows
16122  shrext_cmds=".dll"
16123  need_version=no
16124  need_lib_prefix=no
16125
16126  case $GCC,$host_os in
16127  yes,cygwin* | yes,mingw* | yes,pw32*)
16128    library_names_spec='$libname.dll.a'
16129    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16130    postinstall_cmds='base_file=`basename \${file}`~
16131      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16132      dldir=$destdir/`dirname \$dlpath`~
16133      test -d \$dldir || mkdir -p \$dldir~
16134      $install_prog $dir/$dlname \$dldir/$dlname~
16135      chmod a+x \$dldir/$dlname'
16136    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16137      dlpath=$dir/\$dldll~
16138       $rm \$dlpath'
16139    shlibpath_overrides_runpath=yes
16140
16141    case $host_os in
16142    cygwin*)
16143      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16144      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16146      ;;
16147    mingw*)
16148      # MinGW DLLs use traditional 'lib' prefix
16149      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16151      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16152        # It is most probably a Windows format PATH printed by
16153        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16154        # path with ; separators, and with drive letters. We can handle the
16155        # drive letters (cygwin fileutils understands them), so leave them,
16156        # especially as we might pass files found there to a mingw objdump,
16157        # which wouldn't understand a cygwinified path. Ahh.
16158        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16159      else
16160        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16161      fi
16162      ;;
16163    pw32*)
16164      # pw32 DLLs use 'pw' prefix rather than 'lib'
16165      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16166      ;;
16167    esac
16168    ;;
16169
16170  *)
16171    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16172    ;;
16173  esac
16174  dynamic_linker='Win32 ld.exe'
16175  # FIXME: first we should search . and the directory the executable is in
16176  shlibpath_var=PATH
16177  ;;
16178
16179darwin* | rhapsody*)
16180  dynamic_linker="$host_os dyld"
16181  version_type=darwin
16182  need_lib_prefix=no
16183  need_version=no
16184  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16185  soname_spec='${libname}${release}${major}$shared_ext'
16186  shlibpath_overrides_runpath=yes
16187  shlibpath_var=DYLD_LIBRARY_PATH
16188  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16189  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16190  if test "$GCC" = yes; then
16191    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"`
16192  else
16193    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16194  fi
16195  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16196  ;;
16197
16198dgux*)
16199  version_type=linux
16200  need_lib_prefix=no
16201  need_version=no
16202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16203  soname_spec='${libname}${release}${shared_ext}$major'
16204  shlibpath_var=LD_LIBRARY_PATH
16205  ;;
16206
16207freebsd1*)
16208  dynamic_linker=no
16209  ;;
16210
16211kfreebsd*-gnu)
16212  version_type=linux
16213  need_lib_prefix=no
16214  need_version=no
16215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16216  soname_spec='${libname}${release}${shared_ext}$major'
16217  shlibpath_var=LD_LIBRARY_PATH
16218  shlibpath_overrides_runpath=no
16219  hardcode_into_libs=yes
16220  dynamic_linker='GNU ld.so'
16221  ;;
16222
16223freebsd* | dragonfly*)
16224  # DragonFly does not have aout.  When/if they implement a new
16225  # versioning mechanism, adjust this.
16226  if test -x /usr/bin/objformat; then
16227    objformat=`/usr/bin/objformat`
16228  else
16229    case $host_os in
16230    freebsd[123]*) objformat=aout ;;
16231    *) objformat=elf ;;
16232    esac
16233  fi
16234  version_type=freebsd-$objformat
16235  case $version_type in
16236    freebsd-elf*)
16237      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16238      need_version=no
16239      need_lib_prefix=no
16240      ;;
16241    freebsd-*)
16242      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16243      need_version=yes
16244      ;;
16245  esac
16246  shlibpath_var=LD_LIBRARY_PATH
16247  case $host_os in
16248  freebsd2*)
16249    shlibpath_overrides_runpath=yes
16250    ;;
16251  freebsd3.[01]* | freebsdelf3.[01]*)
16252    shlibpath_overrides_runpath=yes
16253    hardcode_into_libs=yes
16254    ;;
16255  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16256  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16257    shlibpath_overrides_runpath=no
16258    hardcode_into_libs=yes
16259    ;;
16260  freebsd*) # from 4.6 on
16261    shlibpath_overrides_runpath=yes
16262    hardcode_into_libs=yes
16263    ;;
16264  esac
16265  ;;
16266
16267gnu*)
16268  version_type=linux
16269  need_lib_prefix=no
16270  need_version=no
16271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16272  soname_spec='${libname}${release}${shared_ext}$major'
16273  shlibpath_var=LD_LIBRARY_PATH
16274  hardcode_into_libs=yes
16275  ;;
16276
16277hpux9* | hpux10* | hpux11*)
16278  # Give a soname corresponding to the major version so that dld.sl refuses to
16279  # link against other versions.
16280  version_type=sunos
16281  need_lib_prefix=no
16282  need_version=no
16283  case $host_cpu in
16284  ia64*)
16285    shrext_cmds='.so'
16286    hardcode_into_libs=yes
16287    dynamic_linker="$host_os dld.so"
16288    shlibpath_var=LD_LIBRARY_PATH
16289    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291    soname_spec='${libname}${release}${shared_ext}$major'
16292    if test "X$HPUX_IA64_MODE" = X32; then
16293      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16294    else
16295      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16296    fi
16297    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16298    ;;
16299   hppa*64*)
16300     shrext_cmds='.sl'
16301     hardcode_into_libs=yes
16302     dynamic_linker="$host_os dld.sl"
16303     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306     soname_spec='${libname}${release}${shared_ext}$major'
16307     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16309     ;;
16310   *)
16311    shrext_cmds='.sl'
16312    dynamic_linker="$host_os dld.sl"
16313    shlibpath_var=SHLIB_PATH
16314    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316    soname_spec='${libname}${release}${shared_ext}$major'
16317    ;;
16318  esac
16319  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16320  postinstall_cmds='chmod 555 $lib'
16321  ;;
16322
16323interix3*)
16324  version_type=linux
16325  need_lib_prefix=no
16326  need_version=no
16327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16328  soname_spec='${libname}${release}${shared_ext}$major'
16329  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16330  shlibpath_var=LD_LIBRARY_PATH
16331  shlibpath_overrides_runpath=no
16332  hardcode_into_libs=yes
16333  ;;
16334
16335irix5* | irix6* | nonstopux*)
16336  case $host_os in
16337    nonstopux*) version_type=nonstopux ;;
16338    *)
16339	if test "$lt_cv_prog_gnu_ld" = yes; then
16340		version_type=linux
16341	else
16342		version_type=irix
16343	fi ;;
16344  esac
16345  need_lib_prefix=no
16346  need_version=no
16347  soname_spec='${libname}${release}${shared_ext}$major'
16348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16349  case $host_os in
16350  irix5* | nonstopux*)
16351    libsuff= shlibsuff=
16352    ;;
16353  *)
16354    case $LD in # libtool.m4 will add one of these switches to LD
16355    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16356      libsuff= shlibsuff= libmagic=32-bit;;
16357    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16358      libsuff=32 shlibsuff=N32 libmagic=N32;;
16359    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16360      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16361    *) libsuff= shlibsuff= libmagic=never-match;;
16362    esac
16363    ;;
16364  esac
16365  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16366  shlibpath_overrides_runpath=no
16367  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16368  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16369  hardcode_into_libs=yes
16370  ;;
16371
16372# No shared lib support for Linux oldld, aout, or coff.
16373linux*oldld* | linux*aout* | linux*coff*)
16374  dynamic_linker=no
16375  ;;
16376
16377# This must be Linux ELF.
16378linux*)
16379  version_type=linux
16380  need_lib_prefix=no
16381  need_version=no
16382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383  soname_spec='${libname}${release}${shared_ext}$major'
16384  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16385  shlibpath_var=LD_LIBRARY_PATH
16386  shlibpath_overrides_runpath=no
16387  # This implies no fast_install, which is unacceptable.
16388  # Some rework will be needed to allow for fast_install
16389  # before this can be enabled.
16390  hardcode_into_libs=yes
16391
16392  # Append ld.so.conf contents to the search path
16393  if test -f /etc/ld.so.conf; then
16394    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' ' '`
16395    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16396  fi
16397
16398  # We used to test for /lib/ld.so.1 and disable shared libraries on
16399  # powerpc, because MkLinux only supported shared libraries with the
16400  # GNU dynamic linker.  Since this was broken with cross compilers,
16401  # most powerpc-linux boxes support dynamic linking these days and
16402  # people can always --disable-shared, the test was removed, and we
16403  # assume the GNU/Linux dynamic linker is in use.
16404  dynamic_linker='GNU/Linux ld.so'
16405  ;;
16406
16407knetbsd*-gnu)
16408  version_type=linux
16409  need_lib_prefix=no
16410  need_version=no
16411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16412  soname_spec='${libname}${release}${shared_ext}$major'
16413  shlibpath_var=LD_LIBRARY_PATH
16414  shlibpath_overrides_runpath=no
16415  hardcode_into_libs=yes
16416  dynamic_linker='GNU ld.so'
16417  ;;
16418
16419netbsd*)
16420  version_type=sunos
16421  need_lib_prefix=no
16422  need_version=no
16423  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16425    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16426    dynamic_linker='NetBSD (a.out) ld.so'
16427  else
16428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16429    soname_spec='${libname}${release}${shared_ext}$major'
16430    dynamic_linker='NetBSD ld.elf_so'
16431  fi
16432  shlibpath_var=LD_LIBRARY_PATH
16433  shlibpath_overrides_runpath=yes
16434  hardcode_into_libs=yes
16435  ;;
16436
16437newsos6)
16438  version_type=linux
16439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440  shlibpath_var=LD_LIBRARY_PATH
16441  shlibpath_overrides_runpath=yes
16442  ;;
16443
16444nto-qnx*)
16445  version_type=linux
16446  need_lib_prefix=no
16447  need_version=no
16448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449  soname_spec='${libname}${release}${shared_ext}$major'
16450  shlibpath_var=LD_LIBRARY_PATH
16451  shlibpath_overrides_runpath=yes
16452  ;;
16453
16454openbsd*)
16455  version_type=sunos
16456  sys_lib_dlsearch_path_spec="/usr/lib"
16457  need_lib_prefix=no
16458  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16459  case $host_os in
16460    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16461    *)                         need_version=no  ;;
16462  esac
16463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16465  shlibpath_var=LD_LIBRARY_PATH
16466  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467    case $host_os in
16468      openbsd2.[89] | openbsd2.[89].*)
16469	shlibpath_overrides_runpath=no
16470	;;
16471      *)
16472	shlibpath_overrides_runpath=yes
16473	;;
16474      esac
16475  else
16476    shlibpath_overrides_runpath=yes
16477  fi
16478  ;;
16479
16480os2*)
16481  libname_spec='$name'
16482  shrext_cmds=".dll"
16483  need_lib_prefix=no
16484  library_names_spec='$libname${shared_ext} $libname.a'
16485  dynamic_linker='OS/2 ld.exe'
16486  shlibpath_var=LIBPATH
16487  ;;
16488
16489osf3* | osf4* | osf5*)
16490  version_type=osf
16491  need_lib_prefix=no
16492  need_version=no
16493  soname_spec='${libname}${release}${shared_ext}$major'
16494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495  shlibpath_var=LD_LIBRARY_PATH
16496  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16497  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16498  ;;
16499
16500solaris*)
16501  version_type=linux
16502  need_lib_prefix=no
16503  need_version=no
16504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505  soname_spec='${libname}${release}${shared_ext}$major'
16506  shlibpath_var=LD_LIBRARY_PATH
16507  shlibpath_overrides_runpath=yes
16508  hardcode_into_libs=yes
16509  # ldd complains unless libraries are executable
16510  postinstall_cmds='chmod +x $lib'
16511  ;;
16512
16513sunos4*)
16514  version_type=sunos
16515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16516  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16517  shlibpath_var=LD_LIBRARY_PATH
16518  shlibpath_overrides_runpath=yes
16519  if test "$with_gnu_ld" = yes; then
16520    need_lib_prefix=no
16521  fi
16522  need_version=yes
16523  ;;
16524
16525sysv4 | sysv4.3*)
16526  version_type=linux
16527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528  soname_spec='${libname}${release}${shared_ext}$major'
16529  shlibpath_var=LD_LIBRARY_PATH
16530  case $host_vendor in
16531    sni)
16532      shlibpath_overrides_runpath=no
16533      need_lib_prefix=no
16534      export_dynamic_flag_spec='${wl}-Blargedynsym'
16535      runpath_var=LD_RUN_PATH
16536      ;;
16537    siemens)
16538      need_lib_prefix=no
16539      ;;
16540    motorola)
16541      need_lib_prefix=no
16542      need_version=no
16543      shlibpath_overrides_runpath=no
16544      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16545      ;;
16546  esac
16547  ;;
16548
16549sysv4*MP*)
16550  if test -d /usr/nec ;then
16551    version_type=linux
16552    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16553    soname_spec='$libname${shared_ext}.$major'
16554    shlibpath_var=LD_LIBRARY_PATH
16555  fi
16556  ;;
16557
16558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16559  version_type=freebsd-elf
16560  need_lib_prefix=no
16561  need_version=no
16562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16563  soname_spec='${libname}${release}${shared_ext}$major'
16564  shlibpath_var=LD_LIBRARY_PATH
16565  hardcode_into_libs=yes
16566  if test "$with_gnu_ld" = yes; then
16567    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16568    shlibpath_overrides_runpath=no
16569  else
16570    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16571    shlibpath_overrides_runpath=yes
16572    case $host_os in
16573      sco3.2v5*)
16574        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16575	;;
16576    esac
16577  fi
16578  sys_lib_dlsearch_path_spec='/usr/lib'
16579  ;;
16580
16581uts4*)
16582  version_type=linux
16583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584  soname_spec='${libname}${release}${shared_ext}$major'
16585  shlibpath_var=LD_LIBRARY_PATH
16586  ;;
16587
16588*)
16589  dynamic_linker=no
16590  ;;
16591esac
16592echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16593echo "${ECHO_T}$dynamic_linker" >&6
16594test "$dynamic_linker" = no && can_build_shared=no
16595
16596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16597if test "$GCC" = yes; then
16598  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16599fi
16600
16601echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16602echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16603hardcode_action_F77=
16604if test -n "$hardcode_libdir_flag_spec_F77" || \
16605   test -n "$runpath_var_F77" || \
16606   test "X$hardcode_automatic_F77" = "Xyes" ; then
16607
16608  # We can hardcode non-existant directories.
16609  if test "$hardcode_direct_F77" != no &&
16610     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16611     # have to relink, otherwise we might link with an installed library
16612     # when we should be linking with a yet-to-be-installed one
16613     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16614     test "$hardcode_minus_L_F77" != no; then
16615    # Linking always hardcodes the temporary library directory.
16616    hardcode_action_F77=relink
16617  else
16618    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16619    hardcode_action_F77=immediate
16620  fi
16621else
16622  # We cannot hardcode anything, or else we can only hardcode existing
16623  # directories.
16624  hardcode_action_F77=unsupported
16625fi
16626echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16627echo "${ECHO_T}$hardcode_action_F77" >&6
16628
16629if test "$hardcode_action_F77" = relink; then
16630  # Fast installation is not supported
16631  enable_fast_install=no
16632elif test "$shlibpath_overrides_runpath" = yes ||
16633     test "$enable_shared" = no; then
16634  # Fast installation is not necessary
16635  enable_fast_install=needless
16636fi
16637
16638
16639# The else clause should only fire when bootstrapping the
16640# libtool distribution, otherwise you forgot to ship ltmain.sh
16641# with your package, and you will get complaints that there are
16642# no rules to generate ltmain.sh.
16643if test -f "$ltmain"; then
16644  # See if we are running on zsh, and set the options which allow our commands through
16645  # without removal of \ escapes.
16646  if test -n "${ZSH_VERSION+set}" ; then
16647    setopt NO_GLOB_SUBST
16648  fi
16649  # Now quote all the things that may contain metacharacters while being
16650  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16651  # variables and quote the copies for generation of the libtool script.
16652  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16653    SED SHELL STRIP \
16654    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16655    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16656    deplibs_check_method reload_flag reload_cmds need_locks \
16657    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16658    lt_cv_sys_global_symbol_to_c_name_address \
16659    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16660    old_postinstall_cmds old_postuninstall_cmds \
16661    compiler_F77 \
16662    CC_F77 \
16663    LD_F77 \
16664    lt_prog_compiler_wl_F77 \
16665    lt_prog_compiler_pic_F77 \
16666    lt_prog_compiler_static_F77 \
16667    lt_prog_compiler_no_builtin_flag_F77 \
16668    export_dynamic_flag_spec_F77 \
16669    thread_safe_flag_spec_F77 \
16670    whole_archive_flag_spec_F77 \
16671    enable_shared_with_static_runtimes_F77 \
16672    old_archive_cmds_F77 \
16673    old_archive_from_new_cmds_F77 \
16674    predep_objects_F77 \
16675    postdep_objects_F77 \
16676    predeps_F77 \
16677    postdeps_F77 \
16678    compiler_lib_search_path_F77 \
16679    archive_cmds_F77 \
16680    archive_expsym_cmds_F77 \
16681    postinstall_cmds_F77 \
16682    postuninstall_cmds_F77 \
16683    old_archive_from_expsyms_cmds_F77 \
16684    allow_undefined_flag_F77 \
16685    no_undefined_flag_F77 \
16686    export_symbols_cmds_F77 \
16687    hardcode_libdir_flag_spec_F77 \
16688    hardcode_libdir_flag_spec_ld_F77 \
16689    hardcode_libdir_separator_F77 \
16690    hardcode_automatic_F77 \
16691    module_cmds_F77 \
16692    module_expsym_cmds_F77 \
16693    lt_cv_prog_compiler_c_o_F77 \
16694    exclude_expsyms_F77 \
16695    include_expsyms_F77; do
16696
16697    case $var in
16698    old_archive_cmds_F77 | \
16699    old_archive_from_new_cmds_F77 | \
16700    archive_cmds_F77 | \
16701    archive_expsym_cmds_F77 | \
16702    module_cmds_F77 | \
16703    module_expsym_cmds_F77 | \
16704    old_archive_from_expsyms_cmds_F77 | \
16705    export_symbols_cmds_F77 | \
16706    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16707    postinstall_cmds | postuninstall_cmds | \
16708    old_postinstall_cmds | old_postuninstall_cmds | \
16709    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16710      # Double-quote double-evaled strings.
16711      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16712      ;;
16713    *)
16714      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16715      ;;
16716    esac
16717  done
16718
16719  case $lt_echo in
16720  *'\$0 --fallback-echo"')
16721    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16722    ;;
16723  esac
16724
16725cfgfile="$ofile"
16726
16727  cat <<__EOF__ >> "$cfgfile"
16728# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16729
16730# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16731
16732# Shell to use when invoking shell scripts.
16733SHELL=$lt_SHELL
16734
16735# Whether or not to build shared libraries.
16736build_libtool_libs=$enable_shared
16737
16738# Whether or not to build static libraries.
16739build_old_libs=$enable_static
16740
16741# Whether or not to add -lc for building shared libraries.
16742build_libtool_need_lc=$archive_cmds_need_lc_F77
16743
16744# Whether or not to disallow shared libs when runtime libs are static
16745allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16746
16747# Whether or not to optimize for fast installation.
16748fast_install=$enable_fast_install
16749
16750# The host system.
16751host_alias=$host_alias
16752host=$host
16753host_os=$host_os
16754
16755# The build system.
16756build_alias=$build_alias
16757build=$build
16758build_os=$build_os
16759
16760# An echo program that does not interpret backslashes.
16761echo=$lt_echo
16762
16763# The archiver.
16764AR=$lt_AR
16765AR_FLAGS=$lt_AR_FLAGS
16766
16767# A C compiler.
16768LTCC=$lt_LTCC
16769
16770# LTCC compiler flags.
16771LTCFLAGS=$lt_LTCFLAGS
16772
16773# A language-specific compiler.
16774CC=$lt_compiler_F77
16775
16776# Is the compiler the GNU C compiler?
16777with_gcc=$GCC_F77
16778
16779# An ERE matcher.
16780EGREP=$lt_EGREP
16781
16782# The linker used to build libraries.
16783LD=$lt_LD_F77
16784
16785# Whether we need hard or soft links.
16786LN_S=$lt_LN_S
16787
16788# A BSD-compatible nm program.
16789NM=$lt_NM
16790
16791# A symbol stripping program
16792STRIP=$lt_STRIP
16793
16794# Used to examine libraries when file_magic_cmd begins "file"
16795MAGIC_CMD=$MAGIC_CMD
16796
16797# Used on cygwin: DLL creation program.
16798DLLTOOL="$DLLTOOL"
16799
16800# Used on cygwin: object dumper.
16801OBJDUMP="$OBJDUMP"
16802
16803# Used on cygwin: assembler.
16804AS="$AS"
16805
16806# The name of the directory that contains temporary libtool files.
16807objdir=$objdir
16808
16809# How to create reloadable object files.
16810reload_flag=$lt_reload_flag
16811reload_cmds=$lt_reload_cmds
16812
16813# How to pass a linker flag through the compiler.
16814wl=$lt_lt_prog_compiler_wl_F77
16815
16816# Object file suffix (normally "o").
16817objext="$ac_objext"
16818
16819# Old archive suffix (normally "a").
16820libext="$libext"
16821
16822# Shared library suffix (normally ".so").
16823shrext_cmds='$shrext_cmds'
16824
16825# Executable file suffix (normally "").
16826exeext="$exeext"
16827
16828# Additional compiler flags for building library objects.
16829pic_flag=$lt_lt_prog_compiler_pic_F77
16830pic_mode=$pic_mode
16831
16832# What is the maximum length of a command?
16833max_cmd_len=$lt_cv_sys_max_cmd_len
16834
16835# Does compiler simultaneously support -c and -o options?
16836compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16837
16838# Must we lock files when doing compilation?
16839need_locks=$lt_need_locks
16840
16841# Do we need the lib prefix for modules?
16842need_lib_prefix=$need_lib_prefix
16843
16844# Do we need a version for libraries?
16845need_version=$need_version
16846
16847# Whether dlopen is supported.
16848dlopen_support=$enable_dlopen
16849
16850# Whether dlopen of programs is supported.
16851dlopen_self=$enable_dlopen_self
16852
16853# Whether dlopen of statically linked programs is supported.
16854dlopen_self_static=$enable_dlopen_self_static
16855
16856# Compiler flag to prevent dynamic linking.
16857link_static_flag=$lt_lt_prog_compiler_static_F77
16858
16859# Compiler flag to turn off builtin functions.
16860no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16861
16862# Compiler flag to allow reflexive dlopens.
16863export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16864
16865# Compiler flag to generate shared objects directly from archives.
16866whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16867
16868# Compiler flag to generate thread-safe objects.
16869thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16870
16871# Library versioning type.
16872version_type=$version_type
16873
16874# Format of library name prefix.
16875libname_spec=$lt_libname_spec
16876
16877# List of archive names.  First name is the real one, the rest are links.
16878# The last name is the one that the linker finds with -lNAME.
16879library_names_spec=$lt_library_names_spec
16880
16881# The coded name of the library, if different from the real name.
16882soname_spec=$lt_soname_spec
16883
16884# Commands used to build and install an old-style archive.
16885RANLIB=$lt_RANLIB
16886old_archive_cmds=$lt_old_archive_cmds_F77
16887old_postinstall_cmds=$lt_old_postinstall_cmds
16888old_postuninstall_cmds=$lt_old_postuninstall_cmds
16889
16890# Create an old-style archive from a shared archive.
16891old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16892
16893# Create a temporary old-style archive to link instead of a shared archive.
16894old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16895
16896# Commands used to build and install a shared archive.
16897archive_cmds=$lt_archive_cmds_F77
16898archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16899postinstall_cmds=$lt_postinstall_cmds
16900postuninstall_cmds=$lt_postuninstall_cmds
16901
16902# Commands used to build a loadable module (assumed same as above if empty)
16903module_cmds=$lt_module_cmds_F77
16904module_expsym_cmds=$lt_module_expsym_cmds_F77
16905
16906# Commands to strip libraries.
16907old_striplib=$lt_old_striplib
16908striplib=$lt_striplib
16909
16910# Dependencies to place before the objects being linked to create a
16911# shared library.
16912predep_objects=$lt_predep_objects_F77
16913
16914# Dependencies to place after the objects being linked to create a
16915# shared library.
16916postdep_objects=$lt_postdep_objects_F77
16917
16918# Dependencies to place before the objects being linked to create a
16919# shared library.
16920predeps=$lt_predeps_F77
16921
16922# Dependencies to place after the objects being linked to create a
16923# shared library.
16924postdeps=$lt_postdeps_F77
16925
16926# The library search path used internally by the compiler when linking
16927# a shared library.
16928compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16929
16930# Method to check whether dependent libraries are shared objects.
16931deplibs_check_method=$lt_deplibs_check_method
16932
16933# Command to use when deplibs_check_method == file_magic.
16934file_magic_cmd=$lt_file_magic_cmd
16935
16936# Flag that allows shared libraries with undefined symbols to be built.
16937allow_undefined_flag=$lt_allow_undefined_flag_F77
16938
16939# Flag that forces no undefined symbols.
16940no_undefined_flag=$lt_no_undefined_flag_F77
16941
16942# Commands used to finish a libtool library installation in a directory.
16943finish_cmds=$lt_finish_cmds
16944
16945# Same as above, but a single script fragment to be evaled but not shown.
16946finish_eval=$lt_finish_eval
16947
16948# Take the output of nm and produce a listing of raw symbols and C names.
16949global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16950
16951# Transform the output of nm in a proper C declaration
16952global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16953
16954# Transform the output of nm in a C name address pair
16955global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16956
16957# This is the shared library runtime path variable.
16958runpath_var=$runpath_var
16959
16960# This is the shared library path variable.
16961shlibpath_var=$shlibpath_var
16962
16963# Is shlibpath searched before the hard-coded library search path?
16964shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16965
16966# How to hardcode a shared library path into an executable.
16967hardcode_action=$hardcode_action_F77
16968
16969# Whether we should hardcode library paths into libraries.
16970hardcode_into_libs=$hardcode_into_libs
16971
16972# Flag to hardcode \$libdir into a binary during linking.
16973# This must work even if \$libdir does not exist.
16974hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16975
16976# If ld is used when linking, flag to hardcode \$libdir into
16977# a binary during linking. This must work even if \$libdir does
16978# not exist.
16979hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16980
16981# Whether we need a single -rpath flag with a separated argument.
16982hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16983
16984# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16985# resulting binary.
16986hardcode_direct=$hardcode_direct_F77
16987
16988# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16989# resulting binary.
16990hardcode_minus_L=$hardcode_minus_L_F77
16991
16992# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16993# the resulting binary.
16994hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16995
16996# Set to yes if building a shared library automatically hardcodes DIR into the library
16997# and all subsequent libraries and executables linked against it.
16998hardcode_automatic=$hardcode_automatic_F77
16999
17000# Variables whose values should be saved in libtool wrapper scripts and
17001# restored at relink time.
17002variables_saved_for_relink="$variables_saved_for_relink"
17003
17004# Whether libtool must link a program against all its dependency libraries.
17005link_all_deplibs=$link_all_deplibs_F77
17006
17007# Compile-time system search path for libraries
17008sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17009
17010# Run-time system search path for libraries
17011sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17012
17013# Fix the shell variable \$srcfile for the compiler.
17014fix_srcfile_path="$fix_srcfile_path_F77"
17015
17016# Set to yes if exported symbols are required.
17017always_export_symbols=$always_export_symbols_F77
17018
17019# The commands to list exported symbols.
17020export_symbols_cmds=$lt_export_symbols_cmds_F77
17021
17022# The commands to extract the exported symbol list from a shared archive.
17023extract_expsyms_cmds=$lt_extract_expsyms_cmds
17024
17025# Symbols that should not be listed in the preloaded symbols.
17026exclude_expsyms=$lt_exclude_expsyms_F77
17027
17028# Symbols that must always be exported.
17029include_expsyms=$lt_include_expsyms_F77
17030
17031# ### END LIBTOOL TAG CONFIG: $tagname
17032
17033__EOF__
17034
17035
17036else
17037  # If there is no Makefile yet, we rely on a make rule to execute
17038  # `config.status --recheck' to rerun these tests and create the
17039  # libtool script then.
17040  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17041  if test -f "$ltmain_in"; then
17042    test -f Makefile && make "$ltmain"
17043  fi
17044fi
17045
17046
17047ac_ext=c
17048ac_cpp='$CPP $CPPFLAGS'
17049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17051ac_compiler_gnu=$ac_cv_c_compiler_gnu
17052
17053CC="$lt_save_CC"
17054
17055	else
17056	  tagname=""
17057	fi
17058	;;
17059
17060      GCJ)
17061	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17062
17063
17064
17065# Source file extension for Java test sources.
17066ac_ext=java
17067
17068# Object file extension for compiled Java test sources.
17069objext=o
17070objext_GCJ=$objext
17071
17072# Code to be used in simple compile tests
17073lt_simple_compile_test_code="class foo {}\n"
17074
17075# Code to be used in simple link tests
17076lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17077
17078# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17079
17080# If no C compiler was specified, use CC.
17081LTCC=${LTCC-"$CC"}
17082
17083# If no C compiler flags were specified, use CFLAGS.
17084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17085
17086# Allow CC to be a program name with arguments.
17087compiler=$CC
17088
17089
17090# save warnings/boilerplate of simple test code
17091ac_outfile=conftest.$ac_objext
17092printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17094_lt_compiler_boilerplate=`cat conftest.err`
17095$rm conftest*
17096
17097ac_outfile=conftest.$ac_objext
17098printf "$lt_simple_link_test_code" >conftest.$ac_ext
17099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17100_lt_linker_boilerplate=`cat conftest.err`
17101$rm conftest*
17102
17103
17104# Allow CC to be a program name with arguments.
17105lt_save_CC="$CC"
17106CC=${GCJ-"gcj"}
17107compiler=$CC
17108compiler_GCJ=$CC
17109for cc_temp in $compiler""; do
17110  case $cc_temp in
17111    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17112    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17113    \-*) ;;
17114    *) break;;
17115  esac
17116done
17117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17118
17119
17120# GCJ did not exist at the time GCC didn't implicitly link libc in.
17121archive_cmds_need_lc_GCJ=no
17122
17123old_archive_cmds_GCJ=$old_archive_cmds
17124
17125## CAVEAT EMPTOR:
17126## There is no encapsulation within the following macros, do not change
17127## the running order or otherwise move them around unless you know exactly
17128## what you are doing...
17129
17130lt_prog_compiler_no_builtin_flag_GCJ=
17131
17132if test "$GCC" = yes; then
17133  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17134
17135
17136echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17137echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17138if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17139  echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141  lt_cv_prog_compiler_rtti_exceptions=no
17142  ac_outfile=conftest.$ac_objext
17143   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17144   lt_compiler_flag="-fno-rtti -fno-exceptions"
17145   # Insert the option either (1) after the last *FLAGS variable, or
17146   # (2) before a word containing "conftest.", or (3) at the end.
17147   # Note that $ac_compile itself does not contain backslashes and begins
17148   # with a dollar sign (not a hyphen), so the echo should work correctly.
17149   # The option is referenced via a variable to avoid confusing sed.
17150   lt_compile=`echo "$ac_compile" | $SED \
17151   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17153   -e 's:$: $lt_compiler_flag:'`
17154   (eval echo "\"\$as_me:17154: $lt_compile\"" >&5)
17155   (eval "$lt_compile" 2>conftest.err)
17156   ac_status=$?
17157   cat conftest.err >&5
17158   echo "$as_me:17158: \$? = $ac_status" >&5
17159   if (exit $ac_status) && test -s "$ac_outfile"; then
17160     # The compiler can only warn and ignore the option if not recognized
17161     # So say no if there are warnings other than the usual output.
17162     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17163     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17164     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17165       lt_cv_prog_compiler_rtti_exceptions=yes
17166     fi
17167   fi
17168   $rm conftest*
17169
17170fi
17171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17172echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17173
17174if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17175    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17176else
17177    :
17178fi
17179
17180fi
17181
17182lt_prog_compiler_wl_GCJ=
17183lt_prog_compiler_pic_GCJ=
17184lt_prog_compiler_static_GCJ=
17185
17186echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17188
17189  if test "$GCC" = yes; then
17190    lt_prog_compiler_wl_GCJ='-Wl,'
17191    lt_prog_compiler_static_GCJ='-static'
17192
17193    case $host_os in
17194      aix*)
17195      # All AIX code is PIC.
17196      if test "$host_cpu" = ia64; then
17197	# AIX 5 now supports IA64 processor
17198	lt_prog_compiler_static_GCJ='-Bstatic'
17199      fi
17200      ;;
17201
17202    amigaos*)
17203      # FIXME: we need at least 68020 code to build shared libraries, but
17204      # adding the `-m68020' flag to GCC prevents building anything better,
17205      # like `-m68040'.
17206      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17207      ;;
17208
17209    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17210      # PIC is the default for these OSes.
17211      ;;
17212
17213    mingw* | pw32* | os2*)
17214      # This hack is so that the source file can tell whether it is being
17215      # built for inclusion in a dll (and should export symbols for example).
17216      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17217      ;;
17218
17219    darwin* | rhapsody*)
17220      # PIC is the default on this platform
17221      # Common symbols not allowed in MH_DYLIB files
17222      lt_prog_compiler_pic_GCJ='-fno-common'
17223      ;;
17224
17225    interix3*)
17226      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17227      # Instead, we relocate shared libraries at runtime.
17228      ;;
17229
17230    msdosdjgpp*)
17231      # Just because we use GCC doesn't mean we suddenly get shared libraries
17232      # on systems that don't support them.
17233      lt_prog_compiler_can_build_shared_GCJ=no
17234      enable_shared=no
17235      ;;
17236
17237    sysv4*MP*)
17238      if test -d /usr/nec; then
17239	lt_prog_compiler_pic_GCJ=-Kconform_pic
17240      fi
17241      ;;
17242
17243    hpux*)
17244      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17245      # not for PA HP-UX.
17246      case $host_cpu in
17247      hppa*64*|ia64*)
17248	# +Z the default
17249	;;
17250      *)
17251	lt_prog_compiler_pic_GCJ='-fPIC'
17252	;;
17253      esac
17254      ;;
17255
17256    *)
17257      lt_prog_compiler_pic_GCJ='-fPIC'
17258      ;;
17259    esac
17260  else
17261    # PORTME Check for flag to pass linker flags through the system compiler.
17262    case $host_os in
17263    aix*)
17264      lt_prog_compiler_wl_GCJ='-Wl,'
17265      if test "$host_cpu" = ia64; then
17266	# AIX 5 now supports IA64 processor
17267	lt_prog_compiler_static_GCJ='-Bstatic'
17268      else
17269	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17270      fi
17271      ;;
17272      darwin*)
17273        # PIC is the default on this platform
17274        # Common symbols not allowed in MH_DYLIB files
17275       case $cc_basename in
17276         xlc*)
17277         lt_prog_compiler_pic_GCJ='-qnocommon'
17278         lt_prog_compiler_wl_GCJ='-Wl,'
17279         ;;
17280       esac
17281       ;;
17282
17283    mingw* | pw32* | os2*)
17284      # This hack is so that the source file can tell whether it is being
17285      # built for inclusion in a dll (and should export symbols for example).
17286      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17287      ;;
17288
17289    hpux9* | hpux10* | hpux11*)
17290      lt_prog_compiler_wl_GCJ='-Wl,'
17291      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17292      # not for PA HP-UX.
17293      case $host_cpu in
17294      hppa*64*|ia64*)
17295	# +Z the default
17296	;;
17297      *)
17298	lt_prog_compiler_pic_GCJ='+Z'
17299	;;
17300      esac
17301      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17302      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17303      ;;
17304
17305    irix5* | irix6* | nonstopux*)
17306      lt_prog_compiler_wl_GCJ='-Wl,'
17307      # PIC (with -KPIC) is the default.
17308      lt_prog_compiler_static_GCJ='-non_shared'
17309      ;;
17310
17311    newsos6)
17312      lt_prog_compiler_pic_GCJ='-KPIC'
17313      lt_prog_compiler_static_GCJ='-Bstatic'
17314      ;;
17315
17316    linux*)
17317      case $cc_basename in
17318      icc* | ecc*)
17319	lt_prog_compiler_wl_GCJ='-Wl,'
17320	lt_prog_compiler_pic_GCJ='-KPIC'
17321	lt_prog_compiler_static_GCJ='-static'
17322        ;;
17323      pgcc* | pgf77* | pgf90* | pgf95*)
17324        # Portland Group compilers (*not* the Pentium gcc compiler,
17325	# which looks to be a dead project)
17326	lt_prog_compiler_wl_GCJ='-Wl,'
17327	lt_prog_compiler_pic_GCJ='-fpic'
17328	lt_prog_compiler_static_GCJ='-Bstatic'
17329        ;;
17330      ccc*)
17331        lt_prog_compiler_wl_GCJ='-Wl,'
17332        # All Alpha code is PIC.
17333        lt_prog_compiler_static_GCJ='-non_shared'
17334        ;;
17335      esac
17336      ;;
17337
17338    osf3* | osf4* | osf5*)
17339      lt_prog_compiler_wl_GCJ='-Wl,'
17340      # All OSF/1 code is PIC.
17341      lt_prog_compiler_static_GCJ='-non_shared'
17342      ;;
17343
17344    solaris*)
17345      lt_prog_compiler_pic_GCJ='-KPIC'
17346      lt_prog_compiler_static_GCJ='-Bstatic'
17347      case $cc_basename in
17348      f77* | f90* | f95*)
17349	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17350      *)
17351	lt_prog_compiler_wl_GCJ='-Wl,';;
17352      esac
17353      ;;
17354
17355    sunos4*)
17356      lt_prog_compiler_wl_GCJ='-Qoption ld '
17357      lt_prog_compiler_pic_GCJ='-PIC'
17358      lt_prog_compiler_static_GCJ='-Bstatic'
17359      ;;
17360
17361    sysv4 | sysv4.2uw2* | sysv4.3*)
17362      lt_prog_compiler_wl_GCJ='-Wl,'
17363      lt_prog_compiler_pic_GCJ='-KPIC'
17364      lt_prog_compiler_static_GCJ='-Bstatic'
17365      ;;
17366
17367    sysv4*MP*)
17368      if test -d /usr/nec ;then
17369	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17370	lt_prog_compiler_static_GCJ='-Bstatic'
17371      fi
17372      ;;
17373
17374    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17375      lt_prog_compiler_wl_GCJ='-Wl,'
17376      lt_prog_compiler_pic_GCJ='-KPIC'
17377      lt_prog_compiler_static_GCJ='-Bstatic'
17378      ;;
17379
17380    unicos*)
17381      lt_prog_compiler_wl_GCJ='-Wl,'
17382      lt_prog_compiler_can_build_shared_GCJ=no
17383      ;;
17384
17385    uts4*)
17386      lt_prog_compiler_pic_GCJ='-pic'
17387      lt_prog_compiler_static_GCJ='-Bstatic'
17388      ;;
17389
17390    *)
17391      lt_prog_compiler_can_build_shared_GCJ=no
17392      ;;
17393    esac
17394  fi
17395
17396echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17397echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17398
17399#
17400# Check to make sure the PIC flag actually works.
17401#
17402if test -n "$lt_prog_compiler_pic_GCJ"; then
17403
17404echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17405echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17406if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17407  echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409  lt_prog_compiler_pic_works_GCJ=no
17410  ac_outfile=conftest.$ac_objext
17411   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17412   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17413   # Insert the option either (1) after the last *FLAGS variable, or
17414   # (2) before a word containing "conftest.", or (3) at the end.
17415   # Note that $ac_compile itself does not contain backslashes and begins
17416   # with a dollar sign (not a hyphen), so the echo should work correctly.
17417   # The option is referenced via a variable to avoid confusing sed.
17418   lt_compile=`echo "$ac_compile" | $SED \
17419   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17421   -e 's:$: $lt_compiler_flag:'`
17422   (eval echo "\"\$as_me:17422: $lt_compile\"" >&5)
17423   (eval "$lt_compile" 2>conftest.err)
17424   ac_status=$?
17425   cat conftest.err >&5
17426   echo "$as_me:17426: \$? = $ac_status" >&5
17427   if (exit $ac_status) && test -s "$ac_outfile"; then
17428     # The compiler can only warn and ignore the option if not recognized
17429     # So say no if there are warnings other than the usual output.
17430     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17431     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17432     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17433       lt_prog_compiler_pic_works_GCJ=yes
17434     fi
17435   fi
17436   $rm conftest*
17437
17438fi
17439echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17440echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17441
17442if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17443    case $lt_prog_compiler_pic_GCJ in
17444     "" | " "*) ;;
17445     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17446     esac
17447else
17448    lt_prog_compiler_pic_GCJ=
17449     lt_prog_compiler_can_build_shared_GCJ=no
17450fi
17451
17452fi
17453case $host_os in
17454  # For platforms which do not support PIC, -DPIC is meaningless:
17455  *djgpp*)
17456    lt_prog_compiler_pic_GCJ=
17457    ;;
17458  *)
17459    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17460    ;;
17461esac
17462
17463#
17464# Check to make sure the static flag actually works.
17465#
17466wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17467echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17468echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17469if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17470  echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472  lt_prog_compiler_static_works_GCJ=no
17473   save_LDFLAGS="$LDFLAGS"
17474   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17475   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17476   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17477     # The linker can only warn and ignore the option if not recognized
17478     # So say no if there are warnings
17479     if test -s conftest.err; then
17480       # Append any errors to the config.log.
17481       cat conftest.err 1>&5
17482       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17483       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17484       if diff conftest.exp conftest.er2 >/dev/null; then
17485         lt_prog_compiler_static_works_GCJ=yes
17486       fi
17487     else
17488       lt_prog_compiler_static_works_GCJ=yes
17489     fi
17490   fi
17491   $rm conftest*
17492   LDFLAGS="$save_LDFLAGS"
17493
17494fi
17495echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17496echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17497
17498if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17499    :
17500else
17501    lt_prog_compiler_static_GCJ=
17502fi
17503
17504
17505echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17506echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17507if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17508  echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510  lt_cv_prog_compiler_c_o_GCJ=no
17511   $rm -r conftest 2>/dev/null
17512   mkdir conftest
17513   cd conftest
17514   mkdir out
17515   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17516
17517   lt_compiler_flag="-o out/conftest2.$ac_objext"
17518   # Insert the option either (1) after the last *FLAGS variable, or
17519   # (2) before a word containing "conftest.", or (3) at the end.
17520   # Note that $ac_compile itself does not contain backslashes and begins
17521   # with a dollar sign (not a hyphen), so the echo should work correctly.
17522   lt_compile=`echo "$ac_compile" | $SED \
17523   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17525   -e 's:$: $lt_compiler_flag:'`
17526   (eval echo "\"\$as_me:17526: $lt_compile\"" >&5)
17527   (eval "$lt_compile" 2>out/conftest.err)
17528   ac_status=$?
17529   cat out/conftest.err >&5
17530   echo "$as_me:17530: \$? = $ac_status" >&5
17531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17532   then
17533     # The compiler can only warn and ignore the option if not recognized
17534     # So say no if there are warnings
17535     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17536     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17537     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17538       lt_cv_prog_compiler_c_o_GCJ=yes
17539     fi
17540   fi
17541   chmod u+w . 2>&5
17542   $rm conftest*
17543   # SGI C++ compiler will create directory out/ii_files/ for
17544   # template instantiation
17545   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17546   $rm out/* && rmdir out
17547   cd ..
17548   rmdir conftest
17549   $rm conftest*
17550
17551fi
17552echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17553echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17554
17555
17556hard_links="nottested"
17557if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17558  # do not overwrite the value of need_locks provided by the user
17559  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17560echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17561  hard_links=yes
17562  $rm conftest*
17563  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17564  touch conftest.a
17565  ln conftest.a conftest.b 2>&5 || hard_links=no
17566  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17567  echo "$as_me:$LINENO: result: $hard_links" >&5
17568echo "${ECHO_T}$hard_links" >&6
17569  if test "$hard_links" = no; then
17570    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17571echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17572    need_locks=warn
17573  fi
17574else
17575  need_locks=no
17576fi
17577
17578echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17579echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17580
17581  runpath_var=
17582  allow_undefined_flag_GCJ=
17583  enable_shared_with_static_runtimes_GCJ=no
17584  archive_cmds_GCJ=
17585  archive_expsym_cmds_GCJ=
17586  old_archive_From_new_cmds_GCJ=
17587  old_archive_from_expsyms_cmds_GCJ=
17588  export_dynamic_flag_spec_GCJ=
17589  whole_archive_flag_spec_GCJ=
17590  thread_safe_flag_spec_GCJ=
17591  hardcode_libdir_flag_spec_GCJ=
17592  hardcode_libdir_flag_spec_ld_GCJ=
17593  hardcode_libdir_separator_GCJ=
17594  hardcode_direct_GCJ=no
17595  hardcode_minus_L_GCJ=no
17596  hardcode_shlibpath_var_GCJ=unsupported
17597  link_all_deplibs_GCJ=unknown
17598  hardcode_automatic_GCJ=no
17599  module_cmds_GCJ=
17600  module_expsym_cmds_GCJ=
17601  always_export_symbols_GCJ=no
17602  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17603  # include_expsyms should be a list of space-separated symbols to be *always*
17604  # included in the symbol list
17605  include_expsyms_GCJ=
17606  # exclude_expsyms can be an extended regexp of symbols to exclude
17607  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17608  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17609  # as well as any symbol that contains `d'.
17610  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17611  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17612  # platforms (ab)use it in PIC code, but their linkers get confused if
17613  # the symbol is explicitly referenced.  Since portable code cannot
17614  # rely on this symbol name, it's probably fine to never include it in
17615  # preloaded symbol tables.
17616  extract_expsyms_cmds=
17617  # Just being paranoid about ensuring that cc_basename is set.
17618  for cc_temp in $compiler""; do
17619  case $cc_temp in
17620    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17621    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17622    \-*) ;;
17623    *) break;;
17624  esac
17625done
17626cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17627
17628  case $host_os in
17629  cygwin* | mingw* | pw32*)
17630    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17631    # When not using gcc, we currently assume that we are using
17632    # Microsoft Visual C++.
17633    if test "$GCC" != yes; then
17634      with_gnu_ld=no
17635    fi
17636    ;;
17637  interix*)
17638    # we just hope/assume this is gcc and not c89 (= MSVC++)
17639    with_gnu_ld=yes
17640    ;;
17641  openbsd*)
17642    with_gnu_ld=no
17643    ;;
17644  esac
17645
17646  ld_shlibs_GCJ=yes
17647  if test "$with_gnu_ld" = yes; then
17648    # If archive_cmds runs LD, not CC, wlarc should be empty
17649    wlarc='${wl}'
17650
17651    # Set some defaults for GNU ld with shared library support. These
17652    # are reset later if shared libraries are not supported. Putting them
17653    # here allows them to be overridden if necessary.
17654    runpath_var=LD_RUN_PATH
17655    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17656    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17657    # ancient GNU ld didn't support --whole-archive et. al.
17658    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17659	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17660      else
17661  	whole_archive_flag_spec_GCJ=
17662    fi
17663    supports_anon_versioning=no
17664    case `$LD -v 2>/dev/null` in
17665      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17666      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17667      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17668      *\ 2.11.*) ;; # other 2.11 versions
17669      *) supports_anon_versioning=yes ;;
17670    esac
17671
17672    # See if GNU ld supports shared libraries.
17673    case $host_os in
17674    aix3* | aix4* | aix5*)
17675      # On AIX/PPC, the GNU linker is very broken
17676      if test "$host_cpu" != ia64; then
17677	ld_shlibs_GCJ=no
17678	cat <<EOF 1>&2
17679
17680*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17681*** to be unable to reliably create shared libraries on AIX.
17682*** Therefore, libtool is disabling shared libraries support.  If you
17683*** really care for shared libraries, you may want to modify your PATH
17684*** so that a non-GNU linker is found, and then restart.
17685
17686EOF
17687      fi
17688      ;;
17689
17690    amigaos*)
17691      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)'
17692      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693      hardcode_minus_L_GCJ=yes
17694
17695      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17696      # that the semantics of dynamic libraries on AmigaOS, at least up
17697      # to version 4, is to share data among multiple programs linked
17698      # with the same dynamic library.  Since this doesn't match the
17699      # behavior of shared libraries on other platforms, we can't use
17700      # them.
17701      ld_shlibs_GCJ=no
17702      ;;
17703
17704    beos*)
17705      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17706	allow_undefined_flag_GCJ=unsupported
17707	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17708	# support --undefined.  This deserves some investigation.  FIXME
17709	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17710      else
17711	ld_shlibs_GCJ=no
17712      fi
17713      ;;
17714
17715    cygwin* | mingw* | pw32*)
17716      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17717      # as there is no search path for DLLs.
17718      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719      allow_undefined_flag_GCJ=unsupported
17720      always_export_symbols_GCJ=no
17721      enable_shared_with_static_runtimes_GCJ=yes
17722      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17723
17724      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17725        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17726	# If the export-symbols file already is a .def file (1st line
17727	# is EXPORTS), use it as is; otherwise, prepend...
17728	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17729	  cp $export_symbols $output_objdir/$soname.def;
17730	else
17731	  echo EXPORTS > $output_objdir/$soname.def;
17732	  cat $export_symbols >> $output_objdir/$soname.def;
17733	fi~
17734	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17735      else
17736	ld_shlibs_GCJ=no
17737      fi
17738      ;;
17739
17740    interix3*)
17741      hardcode_direct_GCJ=no
17742      hardcode_shlibpath_var_GCJ=no
17743      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17744      export_dynamic_flag_spec_GCJ='${wl}-E'
17745      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17746      # Instead, shared libraries are loaded at an image base (0x10000000 by
17747      # default) and relocated if they conflict, which is a slow very memory
17748      # consuming and fragmenting process.  To avoid this, we pick a random,
17749      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17750      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17751      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'
17752      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'
17753      ;;
17754
17755    linux*)
17756      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17757	tmp_addflag=
17758	case $cc_basename,$host_cpu in
17759	pgcc*)				# Portland Group C compiler
17760	  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'
17761	  tmp_addflag=' $pic_flag'
17762	  ;;
17763	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17764	  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'
17765	  tmp_addflag=' $pic_flag -Mnomain' ;;
17766	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17767	  tmp_addflag=' -i_dynamic' ;;
17768	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17769	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17770	ifc* | ifort*)			# Intel Fortran compiler
17771	  tmp_addflag=' -nofor_main' ;;
17772	esac
17773	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17774
17775	if test $supports_anon_versioning = yes; then
17776	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17777  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17778  $echo "local: *; };" >> $output_objdir/$libname.ver~
17779	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17780	fi
17781      else
17782	ld_shlibs_GCJ=no
17783      fi
17784      ;;
17785
17786    netbsd*)
17787      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17788	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17789	wlarc=
17790      else
17791	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793      fi
17794      ;;
17795
17796    solaris*)
17797      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17798	ld_shlibs_GCJ=no
17799	cat <<EOF 1>&2
17800
17801*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17802*** create shared libraries on Solaris systems.  Therefore, libtool
17803*** is disabling shared libraries support.  We urge you to upgrade GNU
17804*** binutils to release 2.9.1 or newer.  Another option is to modify
17805*** your PATH or compiler configuration so that the native linker is
17806*** used, and then restart.
17807
17808EOF
17809      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17810	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17811	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17812      else
17813	ld_shlibs_GCJ=no
17814      fi
17815      ;;
17816
17817    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17818      case `$LD -v 2>&1` in
17819        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17820	ld_shlibs_GCJ=no
17821	cat <<_LT_EOF 1>&2
17822
17823*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17824*** reliably create shared libraries on SCO systems.  Therefore, libtool
17825*** is disabling shared libraries support.  We urge you to upgrade GNU
17826*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17827*** your PATH or compiler configuration so that the native linker is
17828*** used, and then restart.
17829
17830_LT_EOF
17831	;;
17832	*)
17833	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17834	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17835	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17836	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17837	  else
17838	    ld_shlibs_GCJ=no
17839	  fi
17840	;;
17841      esac
17842      ;;
17843
17844    sunos4*)
17845      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17846      wlarc=
17847      hardcode_direct_GCJ=yes
17848      hardcode_shlibpath_var_GCJ=no
17849      ;;
17850
17851    *)
17852      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17853	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17854	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17855      else
17856	ld_shlibs_GCJ=no
17857      fi
17858      ;;
17859    esac
17860
17861    if test "$ld_shlibs_GCJ" = no; then
17862      runpath_var=
17863      hardcode_libdir_flag_spec_GCJ=
17864      export_dynamic_flag_spec_GCJ=
17865      whole_archive_flag_spec_GCJ=
17866    fi
17867  else
17868    # PORTME fill in a description of your system's linker (not GNU ld)
17869    case $host_os in
17870    aix3*)
17871      allow_undefined_flag_GCJ=unsupported
17872      always_export_symbols_GCJ=yes
17873      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'
17874      # Note: this linker hardcodes the directories in LIBPATH if there
17875      # are no directories specified by -L.
17876      hardcode_minus_L_GCJ=yes
17877      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17878	# Neither direct hardcoding nor static linking is supported with a
17879	# broken collect2.
17880	hardcode_direct_GCJ=unsupported
17881      fi
17882      ;;
17883
17884    aix4* | aix5*)
17885      if test "$host_cpu" = ia64; then
17886	# On IA64, the linker does run time linking by default, so we don't
17887	# have to do anything special.
17888	aix_use_runtimelinking=no
17889	exp_sym_flag='-Bexport'
17890	no_entry_flag=""
17891      else
17892	# If we're using GNU nm, then we don't want the "-C" option.
17893	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17894	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17895	  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'
17896	else
17897	  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'
17898	fi
17899	aix_use_runtimelinking=no
17900
17901	# Test if we are trying to use run time linking or normal
17902	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17903	# need to do runtime linking.
17904	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17905	  for ld_flag in $LDFLAGS; do
17906  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17907  	    aix_use_runtimelinking=yes
17908  	    break
17909  	  fi
17910	  done
17911	  ;;
17912	esac
17913
17914	exp_sym_flag='-bexport'
17915	no_entry_flag='-bnoentry'
17916      fi
17917
17918      # When large executables or shared objects are built, AIX ld can
17919      # have problems creating the table of contents.  If linking a library
17920      # or program results in "error TOC overflow" add -mminimal-toc to
17921      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17922      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17923
17924      archive_cmds_GCJ=''
17925      hardcode_direct_GCJ=yes
17926      hardcode_libdir_separator_GCJ=':'
17927      link_all_deplibs_GCJ=yes
17928
17929      if test "$GCC" = yes; then
17930	case $host_os in aix4.[012]|aix4.[012].*)
17931	# We only want to do this on AIX 4.2 and lower, the check
17932	# below for broken collect2 doesn't work under 4.3+
17933	  collect2name=`${CC} -print-prog-name=collect2`
17934	  if test -f "$collect2name" && \
17935  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17936	  then
17937  	  # We have reworked collect2
17938  	  hardcode_direct_GCJ=yes
17939	  else
17940  	  # We have old collect2
17941  	  hardcode_direct_GCJ=unsupported
17942  	  # It fails to find uninstalled libraries when the uninstalled
17943  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17944  	  # to unsupported forces relinking
17945  	  hardcode_minus_L_GCJ=yes
17946  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17947  	  hardcode_libdir_separator_GCJ=
17948	  fi
17949	  ;;
17950	esac
17951	shared_flag='-shared'
17952	if test "$aix_use_runtimelinking" = yes; then
17953	  shared_flag="$shared_flag "'${wl}-G'
17954	fi
17955      else
17956	# not using gcc
17957	if test "$host_cpu" = ia64; then
17958  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17959  	# chokes on -Wl,-G. The following line is correct:
17960	  shared_flag='-G'
17961	else
17962	  if test "$aix_use_runtimelinking" = yes; then
17963	    shared_flag='${wl}-G'
17964	  else
17965	    shared_flag='${wl}-bM:SRE'
17966	  fi
17967	fi
17968      fi
17969
17970      # It seems that -bexpall does not export symbols beginning with
17971      # underscore (_), so it is better to generate a list of symbols to export.
17972      always_export_symbols_GCJ=yes
17973      if test "$aix_use_runtimelinking" = yes; then
17974	# Warning - without using the other runtime loading flags (-brtl),
17975	# -berok will link without error, but may produce a broken library.
17976	allow_undefined_flag_GCJ='-berok'
17977       # Determine the default libpath from the value encoded in an empty executable.
17978       cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h.  */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h.  */
17984
17985int
17986main ()
17987{
17988
17989  ;
17990  return 0;
17991}
17992_ACEOF
17993rm -f conftest.$ac_objext conftest$ac_exeext
17994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995  (eval $ac_link) 2>conftest.er1
17996  ac_status=$?
17997  grep -v '^ *+' conftest.er1 >conftest.err
17998  rm -f conftest.er1
17999  cat conftest.err >&5
18000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001  (exit $ac_status); } &&
18002	 { ac_try='test -z "$ac_c_werror_flag"
18003			 || test ! -s conftest.err'
18004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005  (eval $ac_try) 2>&5
18006  ac_status=$?
18007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008  (exit $ac_status); }; } &&
18009	 { ac_try='test -s conftest$ac_exeext'
18010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011  (eval $ac_try) 2>&5
18012  ac_status=$?
18013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014  (exit $ac_status); }; }; then
18015
18016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18017}'`
18018# Check for a 64-bit object if we didn't find anything.
18019if 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; }
18020}'`; fi
18021else
18022  echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025fi
18026rm -f conftest.err conftest.$ac_objext \
18027      conftest$ac_exeext conftest.$ac_ext
18028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18029
18030       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18031	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"
18032       else
18033	if test "$host_cpu" = ia64; then
18034	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18035	  allow_undefined_flag_GCJ="-z nodefs"
18036	  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"
18037	else
18038	 # Determine the default libpath from the value encoded in an empty executable.
18039	 cat >conftest.$ac_ext <<_ACEOF
18040/* confdefs.h.  */
18041_ACEOF
18042cat confdefs.h >>conftest.$ac_ext
18043cat >>conftest.$ac_ext <<_ACEOF
18044/* end confdefs.h.  */
18045
18046int
18047main ()
18048{
18049
18050  ;
18051  return 0;
18052}
18053_ACEOF
18054rm -f conftest.$ac_objext conftest$ac_exeext
18055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18056  (eval $ac_link) 2>conftest.er1
18057  ac_status=$?
18058  grep -v '^ *+' conftest.er1 >conftest.err
18059  rm -f conftest.er1
18060  cat conftest.err >&5
18061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062  (exit $ac_status); } &&
18063	 { ac_try='test -z "$ac_c_werror_flag"
18064			 || test ! -s conftest.err'
18065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066  (eval $ac_try) 2>&5
18067  ac_status=$?
18068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069  (exit $ac_status); }; } &&
18070	 { ac_try='test -s conftest$ac_exeext'
18071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072  (eval $ac_try) 2>&5
18073  ac_status=$?
18074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075  (exit $ac_status); }; }; then
18076
18077aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18078}'`
18079# Check for a 64-bit object if we didn't find anything.
18080if 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; }
18081}'`; fi
18082else
18083  echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086fi
18087rm -f conftest.err conftest.$ac_objext \
18088      conftest$ac_exeext conftest.$ac_ext
18089if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18090
18091	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18092	  # Warning - without using the other run time loading flags,
18093	  # -berok will link without error, but may produce a broken library.
18094	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18095	  allow_undefined_flag_GCJ=' ${wl}-berok'
18096	  # Exported symbols can be pulled into shared objects from archives
18097	  whole_archive_flag_spec_GCJ='$convenience'
18098	  archive_cmds_need_lc_GCJ=yes
18099	  # This is similar to how AIX traditionally builds its shared libraries.
18100	  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'
18101	fi
18102      fi
18103      ;;
18104
18105    amigaos*)
18106      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)'
18107      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108      hardcode_minus_L_GCJ=yes
18109      # see comment about different semantics on the GNU ld section
18110      ld_shlibs_GCJ=no
18111      ;;
18112
18113    bsdi[45]*)
18114      export_dynamic_flag_spec_GCJ=-rdynamic
18115      ;;
18116
18117    cygwin* | mingw* | pw32*)
18118      # When not using gcc, we currently assume that we are using
18119      # Microsoft Visual C++.
18120      # hardcode_libdir_flag_spec is actually meaningless, as there is
18121      # no search path for DLLs.
18122      hardcode_libdir_flag_spec_GCJ=' '
18123      allow_undefined_flag_GCJ=unsupported
18124      # Tell ltmain to make .lib files, not .a files.
18125      libext=lib
18126      # Tell ltmain to make .dll files, not .so files.
18127      shrext_cmds=".dll"
18128      # FIXME: Setting linknames here is a bad hack.
18129      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18130      # The linker will automatically build a .lib file if we build a DLL.
18131      old_archive_From_new_cmds_GCJ='true'
18132      # FIXME: Should let the user specify the lib program.
18133      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18134      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18135      enable_shared_with_static_runtimes_GCJ=yes
18136      ;;
18137
18138    darwin* | rhapsody*)
18139      case $host_os in
18140        rhapsody* | darwin1.[012])
18141         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18142         ;;
18143       *) # Darwin 1.3 on
18144         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18145           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18146         else
18147           case ${MACOSX_DEPLOYMENT_TARGET} in
18148             10.[012])
18149               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18150               ;;
18151             10.*)
18152               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18153               ;;
18154           esac
18155         fi
18156         ;;
18157      esac
18158      archive_cmds_need_lc_GCJ=no
18159      hardcode_direct_GCJ=no
18160      hardcode_automatic_GCJ=yes
18161      hardcode_shlibpath_var_GCJ=unsupported
18162      whole_archive_flag_spec_GCJ=''
18163      link_all_deplibs_GCJ=yes
18164    if test "$GCC" = yes ; then
18165    	output_verbose_link_cmd='echo'
18166        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18167      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18168      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18169      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}'
18170      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}'
18171    else
18172      case $cc_basename in
18173        xlc*)
18174         output_verbose_link_cmd='echo'
18175         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18176         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18177          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18178         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}'
18179          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}'
18180          ;;
18181       *)
18182         ld_shlibs_GCJ=no
18183          ;;
18184      esac
18185    fi
18186      ;;
18187
18188    dgux*)
18189      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18190      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191      hardcode_shlibpath_var_GCJ=no
18192      ;;
18193
18194    freebsd1*)
18195      ld_shlibs_GCJ=no
18196      ;;
18197
18198    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18199    # support.  Future versions do this automatically, but an explicit c++rt0.o
18200    # does not break anything, and helps significantly (at the cost of a little
18201    # extra space).
18202    freebsd2.2*)
18203      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18204      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18205      hardcode_direct_GCJ=yes
18206      hardcode_shlibpath_var_GCJ=no
18207      ;;
18208
18209    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18210    freebsd2*)
18211      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18212      hardcode_direct_GCJ=yes
18213      hardcode_minus_L_GCJ=yes
18214      hardcode_shlibpath_var_GCJ=no
18215      ;;
18216
18217    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18218    freebsd* | kfreebsd*-gnu | dragonfly*)
18219      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18220      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18221      hardcode_direct_GCJ=yes
18222      hardcode_shlibpath_var_GCJ=no
18223      ;;
18224
18225    hpux9*)
18226      if test "$GCC" = yes; then
18227	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'
18228      else
18229	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'
18230      fi
18231      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18232      hardcode_libdir_separator_GCJ=:
18233      hardcode_direct_GCJ=yes
18234
18235      # hardcode_minus_L: Not really in the search PATH,
18236      # but as the default location of the library.
18237      hardcode_minus_L_GCJ=yes
18238      export_dynamic_flag_spec_GCJ='${wl}-E'
18239      ;;
18240
18241    hpux10*)
18242      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18243	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18244      else
18245	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18246      fi
18247      if test "$with_gnu_ld" = no; then
18248	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18249	hardcode_libdir_separator_GCJ=:
18250
18251	hardcode_direct_GCJ=yes
18252	export_dynamic_flag_spec_GCJ='${wl}-E'
18253
18254	# hardcode_minus_L: Not really in the search PATH,
18255	# but as the default location of the library.
18256	hardcode_minus_L_GCJ=yes
18257      fi
18258      ;;
18259
18260    hpux11*)
18261      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18262	case $host_cpu in
18263	hppa*64*)
18264	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18265	  ;;
18266	ia64*)
18267	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18268	  ;;
18269	*)
18270	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18271	  ;;
18272	esac
18273      else
18274	case $host_cpu in
18275	hppa*64*)
18276	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18277	  ;;
18278	ia64*)
18279	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18280	  ;;
18281	*)
18282	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18283	  ;;
18284	esac
18285      fi
18286      if test "$with_gnu_ld" = no; then
18287	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18288	hardcode_libdir_separator_GCJ=:
18289
18290	case $host_cpu in
18291	hppa*64*|ia64*)
18292	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18293	  hardcode_direct_GCJ=no
18294	  hardcode_shlibpath_var_GCJ=no
18295	  ;;
18296	*)
18297	  hardcode_direct_GCJ=yes
18298	  export_dynamic_flag_spec_GCJ='${wl}-E'
18299
18300	  # hardcode_minus_L: Not really in the search PATH,
18301	  # but as the default location of the library.
18302	  hardcode_minus_L_GCJ=yes
18303	  ;;
18304	esac
18305      fi
18306      ;;
18307
18308    irix5* | irix6* | nonstopux*)
18309      if test "$GCC" = yes; then
18310	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'
18311      else
18312	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'
18313	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18314      fi
18315      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18316      hardcode_libdir_separator_GCJ=:
18317      link_all_deplibs_GCJ=yes
18318      ;;
18319
18320    netbsd*)
18321      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18322	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18323      else
18324	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18325      fi
18326      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18327      hardcode_direct_GCJ=yes
18328      hardcode_shlibpath_var_GCJ=no
18329      ;;
18330
18331    newsos6)
18332      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18333      hardcode_direct_GCJ=yes
18334      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18335      hardcode_libdir_separator_GCJ=:
18336      hardcode_shlibpath_var_GCJ=no
18337      ;;
18338
18339    openbsd*)
18340      hardcode_direct_GCJ=yes
18341      hardcode_shlibpath_var_GCJ=no
18342      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18343	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18344	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18345	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18346	export_dynamic_flag_spec_GCJ='${wl}-E'
18347      else
18348       case $host_os in
18349	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18350	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18351	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18352	   ;;
18353	 *)
18354	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18355	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18356	   ;;
18357       esac
18358      fi
18359      ;;
18360
18361    os2*)
18362      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18363      hardcode_minus_L_GCJ=yes
18364      allow_undefined_flag_GCJ=unsupported
18365      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'
18366      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18367      ;;
18368
18369    osf3*)
18370      if test "$GCC" = yes; then
18371	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18372	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'
18373      else
18374	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18375	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'
18376      fi
18377      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18378      hardcode_libdir_separator_GCJ=:
18379      ;;
18380
18381    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18382      if test "$GCC" = yes; then
18383	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18384	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'
18385	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18386      else
18387	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18388	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'
18389	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~
18390	$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'
18391
18392	# Both c and cxx compiler support -rpath directly
18393	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18394      fi
18395      hardcode_libdir_separator_GCJ=:
18396      ;;
18397
18398    solaris*)
18399      no_undefined_flag_GCJ=' -z text'
18400      if test "$GCC" = yes; then
18401	wlarc='${wl}'
18402	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18404	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18405      else
18406	wlarc=''
18407	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18409  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18410      fi
18411      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18412      hardcode_shlibpath_var_GCJ=no
18413      case $host_os in
18414      solaris2.[0-5] | solaris2.[0-5].*) ;;
18415      *)
18416 	# The compiler driver will combine linker options so we
18417 	# cannot just pass the convience library names through
18418 	# without $wl, iff we do not link with $LD.
18419 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18420 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18421 	case $wlarc in
18422 	'')
18423 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18424 	*)
18425 	  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' ;;
18426 	esac ;;
18427      esac
18428      link_all_deplibs_GCJ=yes
18429      ;;
18430
18431    sunos4*)
18432      if test "x$host_vendor" = xsequent; then
18433	# Use $CC to link under sequent, because it throws in some extra .o
18434	# files that make .init and .fini sections work.
18435	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18436      else
18437	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18438      fi
18439      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18440      hardcode_direct_GCJ=yes
18441      hardcode_minus_L_GCJ=yes
18442      hardcode_shlibpath_var_GCJ=no
18443      ;;
18444
18445    sysv4)
18446      case $host_vendor in
18447	sni)
18448	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18449	  hardcode_direct_GCJ=yes # is this really true???
18450	;;
18451	siemens)
18452	  ## LD is ld it makes a PLAMLIB
18453	  ## CC just makes a GrossModule.
18454	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18455	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18456	  hardcode_direct_GCJ=no
18457        ;;
18458	motorola)
18459	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18460	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18461	;;
18462      esac
18463      runpath_var='LD_RUN_PATH'
18464      hardcode_shlibpath_var_GCJ=no
18465      ;;
18466
18467    sysv4.3*)
18468      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18469      hardcode_shlibpath_var_GCJ=no
18470      export_dynamic_flag_spec_GCJ='-Bexport'
18471      ;;
18472
18473    sysv4*MP*)
18474      if test -d /usr/nec; then
18475	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18476	hardcode_shlibpath_var_GCJ=no
18477	runpath_var=LD_RUN_PATH
18478	hardcode_runpath_var=yes
18479	ld_shlibs_GCJ=yes
18480      fi
18481      ;;
18482
18483    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18484      no_undefined_flag_GCJ='${wl}-z,text'
18485      archive_cmds_need_lc_GCJ=no
18486      hardcode_shlibpath_var_GCJ=no
18487      runpath_var='LD_RUN_PATH'
18488
18489      if test "$GCC" = yes; then
18490	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18491	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18492      else
18493	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18494	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18495      fi
18496      ;;
18497
18498    sysv5* | sco3.2v5* | sco5v6*)
18499      # Note: We can NOT use -z defs as we might desire, because we do not
18500      # link with -lc, and that would cause any symbols used from libc to
18501      # always be unresolved, which means just about no library would
18502      # ever link correctly.  If we're not using GNU ld we use -z text
18503      # though, which does catch some bad symbols but isn't as heavy-handed
18504      # as -z defs.
18505      no_undefined_flag_GCJ='${wl}-z,text'
18506      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18507      archive_cmds_need_lc_GCJ=no
18508      hardcode_shlibpath_var_GCJ=no
18509      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18510      hardcode_libdir_separator_GCJ=':'
18511      link_all_deplibs_GCJ=yes
18512      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18513      runpath_var='LD_RUN_PATH'
18514
18515      if test "$GCC" = yes; then
18516	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18517	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18518      else
18519	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18521      fi
18522      ;;
18523
18524    uts4*)
18525      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18527      hardcode_shlibpath_var_GCJ=no
18528      ;;
18529
18530    *)
18531      ld_shlibs_GCJ=no
18532      ;;
18533    esac
18534  fi
18535
18536echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18537echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18538test "$ld_shlibs_GCJ" = no && can_build_shared=no
18539
18540#
18541# Do we need to explicitly link libc?
18542#
18543case "x$archive_cmds_need_lc_GCJ" in
18544x|xyes)
18545  # Assume -lc should be added
18546  archive_cmds_need_lc_GCJ=yes
18547
18548  if test "$enable_shared" = yes && test "$GCC" = yes; then
18549    case $archive_cmds_GCJ in
18550    *'~'*)
18551      # FIXME: we may have to deal with multi-command sequences.
18552      ;;
18553    '$CC '*)
18554      # Test whether the compiler implicitly links with -lc since on some
18555      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18556      # to ld, don't add -lc before -lgcc.
18557      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18558echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18559      $rm conftest*
18560      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18561
18562      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18563  (eval $ac_compile) 2>&5
18564  ac_status=$?
18565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566  (exit $ac_status); } 2>conftest.err; then
18567        soname=conftest
18568        lib=conftest
18569        libobjs=conftest.$ac_objext
18570        deplibs=
18571        wl=$lt_prog_compiler_wl_GCJ
18572	pic_flag=$lt_prog_compiler_pic_GCJ
18573        compiler_flags=-v
18574        linker_flags=-v
18575        verstring=
18576        output_objdir=.
18577        libname=conftest
18578        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18579        allow_undefined_flag_GCJ=
18580        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18581  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18582  ac_status=$?
18583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584  (exit $ac_status); }
18585        then
18586	  archive_cmds_need_lc_GCJ=no
18587        else
18588	  archive_cmds_need_lc_GCJ=yes
18589        fi
18590        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18591      else
18592        cat conftest.err 1>&5
18593      fi
18594      $rm conftest*
18595      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18596echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18597      ;;
18598    esac
18599  fi
18600  ;;
18601esac
18602
18603echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18604echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18605library_names_spec=
18606libname_spec='lib$name'
18607soname_spec=
18608shrext_cmds=".so"
18609postinstall_cmds=
18610postuninstall_cmds=
18611finish_cmds=
18612finish_eval=
18613shlibpath_var=
18614shlibpath_overrides_runpath=unknown
18615version_type=none
18616dynamic_linker="$host_os ld.so"
18617sys_lib_dlsearch_path_spec="/lib /usr/lib"
18618if test "$GCC" = yes; then
18619  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18620  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18621    # if the path contains ";" then we assume it to be the separator
18622    # otherwise default to the standard path separator (i.e. ":") - it is
18623    # assumed that no part of a normal pathname contains ";" but that should
18624    # okay in the real world where ";" in dirpaths is itself problematic.
18625    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18626  else
18627    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18628  fi
18629else
18630  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18631fi
18632need_lib_prefix=unknown
18633hardcode_into_libs=no
18634
18635# when you set need_version to no, make sure it does not cause -set_version
18636# flags to be left without arguments
18637need_version=unknown
18638
18639case $host_os in
18640aix3*)
18641  version_type=linux
18642  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18643  shlibpath_var=LIBPATH
18644
18645  # AIX 3 has no versioning support, so we append a major version to the name.
18646  soname_spec='${libname}${release}${shared_ext}$major'
18647  ;;
18648
18649aix4* | aix5*)
18650  version_type=linux
18651  need_lib_prefix=no
18652  need_version=no
18653  hardcode_into_libs=yes
18654  if test "$host_cpu" = ia64; then
18655    # AIX 5 supports IA64
18656    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18657    shlibpath_var=LD_LIBRARY_PATH
18658  else
18659    # With GCC up to 2.95.x, collect2 would create an import file
18660    # for dependence libraries.  The import file would start with
18661    # the line `#! .'.  This would cause the generated library to
18662    # depend on `.', always an invalid library.  This was fixed in
18663    # development snapshots of GCC prior to 3.0.
18664    case $host_os in
18665      aix4 | aix4.[01] | aix4.[01].*)
18666      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18667	   echo ' yes '
18668	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18669	:
18670      else
18671	can_build_shared=no
18672      fi
18673      ;;
18674    esac
18675    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18676    # soname into executable. Probably we can add versioning support to
18677    # collect2, so additional links can be useful in future.
18678    if test "$aix_use_runtimelinking" = yes; then
18679      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18680      # instead of lib<name>.a to let people know that these are not
18681      # typical AIX shared libraries.
18682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683    else
18684      # We preserve .a as extension for shared libraries through AIX4.2
18685      # and later when we are not doing run time linking.
18686      library_names_spec='${libname}${release}.a $libname.a'
18687      soname_spec='${libname}${release}${shared_ext}$major'
18688    fi
18689    shlibpath_var=LIBPATH
18690  fi
18691  ;;
18692
18693amigaos*)
18694  library_names_spec='$libname.ixlibrary $libname.a'
18695  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18696  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'
18697  ;;
18698
18699beos*)
18700  library_names_spec='${libname}${shared_ext}'
18701  dynamic_linker="$host_os ld.so"
18702  shlibpath_var=LIBRARY_PATH
18703  ;;
18704
18705bsdi[45]*)
18706  version_type=linux
18707  need_version=no
18708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709  soname_spec='${libname}${release}${shared_ext}$major'
18710  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18711  shlibpath_var=LD_LIBRARY_PATH
18712  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18713  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18714  # the default ld.so.conf also contains /usr/contrib/lib and
18715  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18716  # libtool to hard-code these into programs
18717  ;;
18718
18719cygwin* | mingw* | pw32*)
18720  version_type=windows
18721  shrext_cmds=".dll"
18722  need_version=no
18723  need_lib_prefix=no
18724
18725  case $GCC,$host_os in
18726  yes,cygwin* | yes,mingw* | yes,pw32*)
18727    library_names_spec='$libname.dll.a'
18728    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18729    postinstall_cmds='base_file=`basename \${file}`~
18730      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18731      dldir=$destdir/`dirname \$dlpath`~
18732      test -d \$dldir || mkdir -p \$dldir~
18733      $install_prog $dir/$dlname \$dldir/$dlname~
18734      chmod a+x \$dldir/$dlname'
18735    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18736      dlpath=$dir/\$dldll~
18737       $rm \$dlpath'
18738    shlibpath_overrides_runpath=yes
18739
18740    case $host_os in
18741    cygwin*)
18742      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18743      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18744      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18745      ;;
18746    mingw*)
18747      # MinGW DLLs use traditional 'lib' prefix
18748      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18749      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18750      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18751        # It is most probably a Windows format PATH printed by
18752        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18753        # path with ; separators, and with drive letters. We can handle the
18754        # drive letters (cygwin fileutils understands them), so leave them,
18755        # especially as we might pass files found there to a mingw objdump,
18756        # which wouldn't understand a cygwinified path. Ahh.
18757        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18758      else
18759        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18760      fi
18761      ;;
18762    pw32*)
18763      # pw32 DLLs use 'pw' prefix rather than 'lib'
18764      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18765      ;;
18766    esac
18767    ;;
18768
18769  *)
18770    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18771    ;;
18772  esac
18773  dynamic_linker='Win32 ld.exe'
18774  # FIXME: first we should search . and the directory the executable is in
18775  shlibpath_var=PATH
18776  ;;
18777
18778darwin* | rhapsody*)
18779  dynamic_linker="$host_os dyld"
18780  version_type=darwin
18781  need_lib_prefix=no
18782  need_version=no
18783  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18784  soname_spec='${libname}${release}${major}$shared_ext'
18785  shlibpath_overrides_runpath=yes
18786  shlibpath_var=DYLD_LIBRARY_PATH
18787  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18788  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18789  if test "$GCC" = yes; then
18790    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"`
18791  else
18792    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18793  fi
18794  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18795  ;;
18796
18797dgux*)
18798  version_type=linux
18799  need_lib_prefix=no
18800  need_version=no
18801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18802  soname_spec='${libname}${release}${shared_ext}$major'
18803  shlibpath_var=LD_LIBRARY_PATH
18804  ;;
18805
18806freebsd1*)
18807  dynamic_linker=no
18808  ;;
18809
18810kfreebsd*-gnu)
18811  version_type=linux
18812  need_lib_prefix=no
18813  need_version=no
18814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18815  soname_spec='${libname}${release}${shared_ext}$major'
18816  shlibpath_var=LD_LIBRARY_PATH
18817  shlibpath_overrides_runpath=no
18818  hardcode_into_libs=yes
18819  dynamic_linker='GNU ld.so'
18820  ;;
18821
18822freebsd* | dragonfly*)
18823  # DragonFly does not have aout.  When/if they implement a new
18824  # versioning mechanism, adjust this.
18825  if test -x /usr/bin/objformat; then
18826    objformat=`/usr/bin/objformat`
18827  else
18828    case $host_os in
18829    freebsd[123]*) objformat=aout ;;
18830    *) objformat=elf ;;
18831    esac
18832  fi
18833  version_type=freebsd-$objformat
18834  case $version_type in
18835    freebsd-elf*)
18836      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18837      need_version=no
18838      need_lib_prefix=no
18839      ;;
18840    freebsd-*)
18841      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18842      need_version=yes
18843      ;;
18844  esac
18845  shlibpath_var=LD_LIBRARY_PATH
18846  case $host_os in
18847  freebsd2*)
18848    shlibpath_overrides_runpath=yes
18849    ;;
18850  freebsd3.[01]* | freebsdelf3.[01]*)
18851    shlibpath_overrides_runpath=yes
18852    hardcode_into_libs=yes
18853    ;;
18854  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18855  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18856    shlibpath_overrides_runpath=no
18857    hardcode_into_libs=yes
18858    ;;
18859  freebsd*) # from 4.6 on
18860    shlibpath_overrides_runpath=yes
18861    hardcode_into_libs=yes
18862    ;;
18863  esac
18864  ;;
18865
18866gnu*)
18867  version_type=linux
18868  need_lib_prefix=no
18869  need_version=no
18870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18871  soname_spec='${libname}${release}${shared_ext}$major'
18872  shlibpath_var=LD_LIBRARY_PATH
18873  hardcode_into_libs=yes
18874  ;;
18875
18876hpux9* | hpux10* | hpux11*)
18877  # Give a soname corresponding to the major version so that dld.sl refuses to
18878  # link against other versions.
18879  version_type=sunos
18880  need_lib_prefix=no
18881  need_version=no
18882  case $host_cpu in
18883  ia64*)
18884    shrext_cmds='.so'
18885    hardcode_into_libs=yes
18886    dynamic_linker="$host_os dld.so"
18887    shlibpath_var=LD_LIBRARY_PATH
18888    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890    soname_spec='${libname}${release}${shared_ext}$major'
18891    if test "X$HPUX_IA64_MODE" = X32; then
18892      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18893    else
18894      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18895    fi
18896    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18897    ;;
18898   hppa*64*)
18899     shrext_cmds='.sl'
18900     hardcode_into_libs=yes
18901     dynamic_linker="$host_os dld.sl"
18902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905     soname_spec='${libname}${release}${shared_ext}$major'
18906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18908     ;;
18909   *)
18910    shrext_cmds='.sl'
18911    dynamic_linker="$host_os dld.sl"
18912    shlibpath_var=SHLIB_PATH
18913    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915    soname_spec='${libname}${release}${shared_ext}$major'
18916    ;;
18917  esac
18918  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18919  postinstall_cmds='chmod 555 $lib'
18920  ;;
18921
18922interix3*)
18923  version_type=linux
18924  need_lib_prefix=no
18925  need_version=no
18926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18927  soname_spec='${libname}${release}${shared_ext}$major'
18928  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18929  shlibpath_var=LD_LIBRARY_PATH
18930  shlibpath_overrides_runpath=no
18931  hardcode_into_libs=yes
18932  ;;
18933
18934irix5* | irix6* | nonstopux*)
18935  case $host_os in
18936    nonstopux*) version_type=nonstopux ;;
18937    *)
18938	if test "$lt_cv_prog_gnu_ld" = yes; then
18939		version_type=linux
18940	else
18941		version_type=irix
18942	fi ;;
18943  esac
18944  need_lib_prefix=no
18945  need_version=no
18946  soname_spec='${libname}${release}${shared_ext}$major'
18947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18948  case $host_os in
18949  irix5* | nonstopux*)
18950    libsuff= shlibsuff=
18951    ;;
18952  *)
18953    case $LD in # libtool.m4 will add one of these switches to LD
18954    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18955      libsuff= shlibsuff= libmagic=32-bit;;
18956    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18957      libsuff=32 shlibsuff=N32 libmagic=N32;;
18958    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18959      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18960    *) libsuff= shlibsuff= libmagic=never-match;;
18961    esac
18962    ;;
18963  esac
18964  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18965  shlibpath_overrides_runpath=no
18966  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18967  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18968  hardcode_into_libs=yes
18969  ;;
18970
18971# No shared lib support for Linux oldld, aout, or coff.
18972linux*oldld* | linux*aout* | linux*coff*)
18973  dynamic_linker=no
18974  ;;
18975
18976# This must be Linux ELF.
18977linux*)
18978  version_type=linux
18979  need_lib_prefix=no
18980  need_version=no
18981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18982  soname_spec='${libname}${release}${shared_ext}$major'
18983  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18984  shlibpath_var=LD_LIBRARY_PATH
18985  shlibpath_overrides_runpath=no
18986  # This implies no fast_install, which is unacceptable.
18987  # Some rework will be needed to allow for fast_install
18988  # before this can be enabled.
18989  hardcode_into_libs=yes
18990
18991  # Append ld.so.conf contents to the search path
18992  if test -f /etc/ld.so.conf; then
18993    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' ' '`
18994    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18995  fi
18996
18997  # We used to test for /lib/ld.so.1 and disable shared libraries on
18998  # powerpc, because MkLinux only supported shared libraries with the
18999  # GNU dynamic linker.  Since this was broken with cross compilers,
19000  # most powerpc-linux boxes support dynamic linking these days and
19001  # people can always --disable-shared, the test was removed, and we
19002  # assume the GNU/Linux dynamic linker is in use.
19003  dynamic_linker='GNU/Linux ld.so'
19004  ;;
19005
19006knetbsd*-gnu)
19007  version_type=linux
19008  need_lib_prefix=no
19009  need_version=no
19010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19011  soname_spec='${libname}${release}${shared_ext}$major'
19012  shlibpath_var=LD_LIBRARY_PATH
19013  shlibpath_overrides_runpath=no
19014  hardcode_into_libs=yes
19015  dynamic_linker='GNU ld.so'
19016  ;;
19017
19018netbsd*)
19019  version_type=sunos
19020  need_lib_prefix=no
19021  need_version=no
19022  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19023    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19024    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19025    dynamic_linker='NetBSD (a.out) ld.so'
19026  else
19027    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19028    soname_spec='${libname}${release}${shared_ext}$major'
19029    dynamic_linker='NetBSD ld.elf_so'
19030  fi
19031  shlibpath_var=LD_LIBRARY_PATH
19032  shlibpath_overrides_runpath=yes
19033  hardcode_into_libs=yes
19034  ;;
19035
19036newsos6)
19037  version_type=linux
19038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039  shlibpath_var=LD_LIBRARY_PATH
19040  shlibpath_overrides_runpath=yes
19041  ;;
19042
19043nto-qnx*)
19044  version_type=linux
19045  need_lib_prefix=no
19046  need_version=no
19047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048  soname_spec='${libname}${release}${shared_ext}$major'
19049  shlibpath_var=LD_LIBRARY_PATH
19050  shlibpath_overrides_runpath=yes
19051  ;;
19052
19053openbsd*)
19054  version_type=sunos
19055  sys_lib_dlsearch_path_spec="/usr/lib"
19056  need_lib_prefix=no
19057  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19058  case $host_os in
19059    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19060    *)                         need_version=no  ;;
19061  esac
19062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19063  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19064  shlibpath_var=LD_LIBRARY_PATH
19065  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19066    case $host_os in
19067      openbsd2.[89] | openbsd2.[89].*)
19068	shlibpath_overrides_runpath=no
19069	;;
19070      *)
19071	shlibpath_overrides_runpath=yes
19072	;;
19073      esac
19074  else
19075    shlibpath_overrides_runpath=yes
19076  fi
19077  ;;
19078
19079os2*)
19080  libname_spec='$name'
19081  shrext_cmds=".dll"
19082  need_lib_prefix=no
19083  library_names_spec='$libname${shared_ext} $libname.a'
19084  dynamic_linker='OS/2 ld.exe'
19085  shlibpath_var=LIBPATH
19086  ;;
19087
19088osf3* | osf4* | osf5*)
19089  version_type=osf
19090  need_lib_prefix=no
19091  need_version=no
19092  soname_spec='${libname}${release}${shared_ext}$major'
19093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094  shlibpath_var=LD_LIBRARY_PATH
19095  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19096  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19097  ;;
19098
19099solaris*)
19100  version_type=linux
19101  need_lib_prefix=no
19102  need_version=no
19103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19104  soname_spec='${libname}${release}${shared_ext}$major'
19105  shlibpath_var=LD_LIBRARY_PATH
19106  shlibpath_overrides_runpath=yes
19107  hardcode_into_libs=yes
19108  # ldd complains unless libraries are executable
19109  postinstall_cmds='chmod +x $lib'
19110  ;;
19111
19112sunos4*)
19113  version_type=sunos
19114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19115  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19116  shlibpath_var=LD_LIBRARY_PATH
19117  shlibpath_overrides_runpath=yes
19118  if test "$with_gnu_ld" = yes; then
19119    need_lib_prefix=no
19120  fi
19121  need_version=yes
19122  ;;
19123
19124sysv4 | sysv4.3*)
19125  version_type=linux
19126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19127  soname_spec='${libname}${release}${shared_ext}$major'
19128  shlibpath_var=LD_LIBRARY_PATH
19129  case $host_vendor in
19130    sni)
19131      shlibpath_overrides_runpath=no
19132      need_lib_prefix=no
19133      export_dynamic_flag_spec='${wl}-Blargedynsym'
19134      runpath_var=LD_RUN_PATH
19135      ;;
19136    siemens)
19137      need_lib_prefix=no
19138      ;;
19139    motorola)
19140      need_lib_prefix=no
19141      need_version=no
19142      shlibpath_overrides_runpath=no
19143      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19144      ;;
19145  esac
19146  ;;
19147
19148sysv4*MP*)
19149  if test -d /usr/nec ;then
19150    version_type=linux
19151    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19152    soname_spec='$libname${shared_ext}.$major'
19153    shlibpath_var=LD_LIBRARY_PATH
19154  fi
19155  ;;
19156
19157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19158  version_type=freebsd-elf
19159  need_lib_prefix=no
19160  need_version=no
19161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19162  soname_spec='${libname}${release}${shared_ext}$major'
19163  shlibpath_var=LD_LIBRARY_PATH
19164  hardcode_into_libs=yes
19165  if test "$with_gnu_ld" = yes; then
19166    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19167    shlibpath_overrides_runpath=no
19168  else
19169    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19170    shlibpath_overrides_runpath=yes
19171    case $host_os in
19172      sco3.2v5*)
19173        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19174	;;
19175    esac
19176  fi
19177  sys_lib_dlsearch_path_spec='/usr/lib'
19178  ;;
19179
19180uts4*)
19181  version_type=linux
19182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19183  soname_spec='${libname}${release}${shared_ext}$major'
19184  shlibpath_var=LD_LIBRARY_PATH
19185  ;;
19186
19187*)
19188  dynamic_linker=no
19189  ;;
19190esac
19191echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19192echo "${ECHO_T}$dynamic_linker" >&6
19193test "$dynamic_linker" = no && can_build_shared=no
19194
19195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19196if test "$GCC" = yes; then
19197  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19198fi
19199
19200echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19201echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19202hardcode_action_GCJ=
19203if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19204   test -n "$runpath_var_GCJ" || \
19205   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19206
19207  # We can hardcode non-existant directories.
19208  if test "$hardcode_direct_GCJ" != no &&
19209     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19210     # have to relink, otherwise we might link with an installed library
19211     # when we should be linking with a yet-to-be-installed one
19212     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19213     test "$hardcode_minus_L_GCJ" != no; then
19214    # Linking always hardcodes the temporary library directory.
19215    hardcode_action_GCJ=relink
19216  else
19217    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19218    hardcode_action_GCJ=immediate
19219  fi
19220else
19221  # We cannot hardcode anything, or else we can only hardcode existing
19222  # directories.
19223  hardcode_action_GCJ=unsupported
19224fi
19225echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19226echo "${ECHO_T}$hardcode_action_GCJ" >&6
19227
19228if test "$hardcode_action_GCJ" = relink; then
19229  # Fast installation is not supported
19230  enable_fast_install=no
19231elif test "$shlibpath_overrides_runpath" = yes ||
19232     test "$enable_shared" = no; then
19233  # Fast installation is not necessary
19234  enable_fast_install=needless
19235fi
19236
19237
19238# The else clause should only fire when bootstrapping the
19239# libtool distribution, otherwise you forgot to ship ltmain.sh
19240# with your package, and you will get complaints that there are
19241# no rules to generate ltmain.sh.
19242if test -f "$ltmain"; then
19243  # See if we are running on zsh, and set the options which allow our commands through
19244  # without removal of \ escapes.
19245  if test -n "${ZSH_VERSION+set}" ; then
19246    setopt NO_GLOB_SUBST
19247  fi
19248  # Now quote all the things that may contain metacharacters while being
19249  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19250  # variables and quote the copies for generation of the libtool script.
19251  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19252    SED SHELL STRIP \
19253    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19254    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19255    deplibs_check_method reload_flag reload_cmds need_locks \
19256    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19257    lt_cv_sys_global_symbol_to_c_name_address \
19258    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19259    old_postinstall_cmds old_postuninstall_cmds \
19260    compiler_GCJ \
19261    CC_GCJ \
19262    LD_GCJ \
19263    lt_prog_compiler_wl_GCJ \
19264    lt_prog_compiler_pic_GCJ \
19265    lt_prog_compiler_static_GCJ \
19266    lt_prog_compiler_no_builtin_flag_GCJ \
19267    export_dynamic_flag_spec_GCJ \
19268    thread_safe_flag_spec_GCJ \
19269    whole_archive_flag_spec_GCJ \
19270    enable_shared_with_static_runtimes_GCJ \
19271    old_archive_cmds_GCJ \
19272    old_archive_from_new_cmds_GCJ \
19273    predep_objects_GCJ \
19274    postdep_objects_GCJ \
19275    predeps_GCJ \
19276    postdeps_GCJ \
19277    compiler_lib_search_path_GCJ \
19278    archive_cmds_GCJ \
19279    archive_expsym_cmds_GCJ \
19280    postinstall_cmds_GCJ \
19281    postuninstall_cmds_GCJ \
19282    old_archive_from_expsyms_cmds_GCJ \
19283    allow_undefined_flag_GCJ \
19284    no_undefined_flag_GCJ \
19285    export_symbols_cmds_GCJ \
19286    hardcode_libdir_flag_spec_GCJ \
19287    hardcode_libdir_flag_spec_ld_GCJ \
19288    hardcode_libdir_separator_GCJ \
19289    hardcode_automatic_GCJ \
19290    module_cmds_GCJ \
19291    module_expsym_cmds_GCJ \
19292    lt_cv_prog_compiler_c_o_GCJ \
19293    exclude_expsyms_GCJ \
19294    include_expsyms_GCJ; do
19295
19296    case $var in
19297    old_archive_cmds_GCJ | \
19298    old_archive_from_new_cmds_GCJ | \
19299    archive_cmds_GCJ | \
19300    archive_expsym_cmds_GCJ | \
19301    module_cmds_GCJ | \
19302    module_expsym_cmds_GCJ | \
19303    old_archive_from_expsyms_cmds_GCJ | \
19304    export_symbols_cmds_GCJ | \
19305    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19306    postinstall_cmds | postuninstall_cmds | \
19307    old_postinstall_cmds | old_postuninstall_cmds | \
19308    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19309      # Double-quote double-evaled strings.
19310      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19311      ;;
19312    *)
19313      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19314      ;;
19315    esac
19316  done
19317
19318  case $lt_echo in
19319  *'\$0 --fallback-echo"')
19320    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19321    ;;
19322  esac
19323
19324cfgfile="$ofile"
19325
19326  cat <<__EOF__ >> "$cfgfile"
19327# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19328
19329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19330
19331# Shell to use when invoking shell scripts.
19332SHELL=$lt_SHELL
19333
19334# Whether or not to build shared libraries.
19335build_libtool_libs=$enable_shared
19336
19337# Whether or not to build static libraries.
19338build_old_libs=$enable_static
19339
19340# Whether or not to add -lc for building shared libraries.
19341build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19342
19343# Whether or not to disallow shared libs when runtime libs are static
19344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19345
19346# Whether or not to optimize for fast installation.
19347fast_install=$enable_fast_install
19348
19349# The host system.
19350host_alias=$host_alias
19351host=$host
19352host_os=$host_os
19353
19354# The build system.
19355build_alias=$build_alias
19356build=$build
19357build_os=$build_os
19358
19359# An echo program that does not interpret backslashes.
19360echo=$lt_echo
19361
19362# The archiver.
19363AR=$lt_AR
19364AR_FLAGS=$lt_AR_FLAGS
19365
19366# A C compiler.
19367LTCC=$lt_LTCC
19368
19369# LTCC compiler flags.
19370LTCFLAGS=$lt_LTCFLAGS
19371
19372# A language-specific compiler.
19373CC=$lt_compiler_GCJ
19374
19375# Is the compiler the GNU C compiler?
19376with_gcc=$GCC_GCJ
19377
19378# An ERE matcher.
19379EGREP=$lt_EGREP
19380
19381# The linker used to build libraries.
19382LD=$lt_LD_GCJ
19383
19384# Whether we need hard or soft links.
19385LN_S=$lt_LN_S
19386
19387# A BSD-compatible nm program.
19388NM=$lt_NM
19389
19390# A symbol stripping program
19391STRIP=$lt_STRIP
19392
19393# Used to examine libraries when file_magic_cmd begins "file"
19394MAGIC_CMD=$MAGIC_CMD
19395
19396# Used on cygwin: DLL creation program.
19397DLLTOOL="$DLLTOOL"
19398
19399# Used on cygwin: object dumper.
19400OBJDUMP="$OBJDUMP"
19401
19402# Used on cygwin: assembler.
19403AS="$AS"
19404
19405# The name of the directory that contains temporary libtool files.
19406objdir=$objdir
19407
19408# How to create reloadable object files.
19409reload_flag=$lt_reload_flag
19410reload_cmds=$lt_reload_cmds
19411
19412# How to pass a linker flag through the compiler.
19413wl=$lt_lt_prog_compiler_wl_GCJ
19414
19415# Object file suffix (normally "o").
19416objext="$ac_objext"
19417
19418# Old archive suffix (normally "a").
19419libext="$libext"
19420
19421# Shared library suffix (normally ".so").
19422shrext_cmds='$shrext_cmds'
19423
19424# Executable file suffix (normally "").
19425exeext="$exeext"
19426
19427# Additional compiler flags for building library objects.
19428pic_flag=$lt_lt_prog_compiler_pic_GCJ
19429pic_mode=$pic_mode
19430
19431# What is the maximum length of a command?
19432max_cmd_len=$lt_cv_sys_max_cmd_len
19433
19434# Does compiler simultaneously support -c and -o options?
19435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19436
19437# Must we lock files when doing compilation?
19438need_locks=$lt_need_locks
19439
19440# Do we need the lib prefix for modules?
19441need_lib_prefix=$need_lib_prefix
19442
19443# Do we need a version for libraries?
19444need_version=$need_version
19445
19446# Whether dlopen is supported.
19447dlopen_support=$enable_dlopen
19448
19449# Whether dlopen of programs is supported.
19450dlopen_self=$enable_dlopen_self
19451
19452# Whether dlopen of statically linked programs is supported.
19453dlopen_self_static=$enable_dlopen_self_static
19454
19455# Compiler flag to prevent dynamic linking.
19456link_static_flag=$lt_lt_prog_compiler_static_GCJ
19457
19458# Compiler flag to turn off builtin functions.
19459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19460
19461# Compiler flag to allow reflexive dlopens.
19462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19463
19464# Compiler flag to generate shared objects directly from archives.
19465whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19466
19467# Compiler flag to generate thread-safe objects.
19468thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19469
19470# Library versioning type.
19471version_type=$version_type
19472
19473# Format of library name prefix.
19474libname_spec=$lt_libname_spec
19475
19476# List of archive names.  First name is the real one, the rest are links.
19477# The last name is the one that the linker finds with -lNAME.
19478library_names_spec=$lt_library_names_spec
19479
19480# The coded name of the library, if different from the real name.
19481soname_spec=$lt_soname_spec
19482
19483# Commands used to build and install an old-style archive.
19484RANLIB=$lt_RANLIB
19485old_archive_cmds=$lt_old_archive_cmds_GCJ
19486old_postinstall_cmds=$lt_old_postinstall_cmds
19487old_postuninstall_cmds=$lt_old_postuninstall_cmds
19488
19489# Create an old-style archive from a shared archive.
19490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19491
19492# Create a temporary old-style archive to link instead of a shared archive.
19493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19494
19495# Commands used to build and install a shared archive.
19496archive_cmds=$lt_archive_cmds_GCJ
19497archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19498postinstall_cmds=$lt_postinstall_cmds
19499postuninstall_cmds=$lt_postuninstall_cmds
19500
19501# Commands used to build a loadable module (assumed same as above if empty)
19502module_cmds=$lt_module_cmds_GCJ
19503module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19504
19505# Commands to strip libraries.
19506old_striplib=$lt_old_striplib
19507striplib=$lt_striplib
19508
19509# Dependencies to place before the objects being linked to create a
19510# shared library.
19511predep_objects=$lt_predep_objects_GCJ
19512
19513# Dependencies to place after the objects being linked to create a
19514# shared library.
19515postdep_objects=$lt_postdep_objects_GCJ
19516
19517# Dependencies to place before the objects being linked to create a
19518# shared library.
19519predeps=$lt_predeps_GCJ
19520
19521# Dependencies to place after the objects being linked to create a
19522# shared library.
19523postdeps=$lt_postdeps_GCJ
19524
19525# The library search path used internally by the compiler when linking
19526# a shared library.
19527compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19528
19529# Method to check whether dependent libraries are shared objects.
19530deplibs_check_method=$lt_deplibs_check_method
19531
19532# Command to use when deplibs_check_method == file_magic.
19533file_magic_cmd=$lt_file_magic_cmd
19534
19535# Flag that allows shared libraries with undefined symbols to be built.
19536allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19537
19538# Flag that forces no undefined symbols.
19539no_undefined_flag=$lt_no_undefined_flag_GCJ
19540
19541# Commands used to finish a libtool library installation in a directory.
19542finish_cmds=$lt_finish_cmds
19543
19544# Same as above, but a single script fragment to be evaled but not shown.
19545finish_eval=$lt_finish_eval
19546
19547# Take the output of nm and produce a listing of raw symbols and C names.
19548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19549
19550# Transform the output of nm in a proper C declaration
19551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19552
19553# Transform the output of nm in a C name address pair
19554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19555
19556# This is the shared library runtime path variable.
19557runpath_var=$runpath_var
19558
19559# This is the shared library path variable.
19560shlibpath_var=$shlibpath_var
19561
19562# Is shlibpath searched before the hard-coded library search path?
19563shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19564
19565# How to hardcode a shared library path into an executable.
19566hardcode_action=$hardcode_action_GCJ
19567
19568# Whether we should hardcode library paths into libraries.
19569hardcode_into_libs=$hardcode_into_libs
19570
19571# Flag to hardcode \$libdir into a binary during linking.
19572# This must work even if \$libdir does not exist.
19573hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19574
19575# If ld is used when linking, flag to hardcode \$libdir into
19576# a binary during linking. This must work even if \$libdir does
19577# not exist.
19578hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19579
19580# Whether we need a single -rpath flag with a separated argument.
19581hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19582
19583# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19584# resulting binary.
19585hardcode_direct=$hardcode_direct_GCJ
19586
19587# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19588# resulting binary.
19589hardcode_minus_L=$hardcode_minus_L_GCJ
19590
19591# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19592# the resulting binary.
19593hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19594
19595# Set to yes if building a shared library automatically hardcodes DIR into the library
19596# and all subsequent libraries and executables linked against it.
19597hardcode_automatic=$hardcode_automatic_GCJ
19598
19599# Variables whose values should be saved in libtool wrapper scripts and
19600# restored at relink time.
19601variables_saved_for_relink="$variables_saved_for_relink"
19602
19603# Whether libtool must link a program against all its dependency libraries.
19604link_all_deplibs=$link_all_deplibs_GCJ
19605
19606# Compile-time system search path for libraries
19607sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19608
19609# Run-time system search path for libraries
19610sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19611
19612# Fix the shell variable \$srcfile for the compiler.
19613fix_srcfile_path="$fix_srcfile_path_GCJ"
19614
19615# Set to yes if exported symbols are required.
19616always_export_symbols=$always_export_symbols_GCJ
19617
19618# The commands to list exported symbols.
19619export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19620
19621# The commands to extract the exported symbol list from a shared archive.
19622extract_expsyms_cmds=$lt_extract_expsyms_cmds
19623
19624# Symbols that should not be listed in the preloaded symbols.
19625exclude_expsyms=$lt_exclude_expsyms_GCJ
19626
19627# Symbols that must always be exported.
19628include_expsyms=$lt_include_expsyms_GCJ
19629
19630# ### END LIBTOOL TAG CONFIG: $tagname
19631
19632__EOF__
19633
19634
19635else
19636  # If there is no Makefile yet, we rely on a make rule to execute
19637  # `config.status --recheck' to rerun these tests and create the
19638  # libtool script then.
19639  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19640  if test -f "$ltmain_in"; then
19641    test -f Makefile && make "$ltmain"
19642  fi
19643fi
19644
19645
19646ac_ext=c
19647ac_cpp='$CPP $CPPFLAGS'
19648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650ac_compiler_gnu=$ac_cv_c_compiler_gnu
19651
19652CC="$lt_save_CC"
19653
19654	else
19655	  tagname=""
19656	fi
19657	;;
19658
19659      RC)
19660
19661
19662
19663# Source file extension for RC test sources.
19664ac_ext=rc
19665
19666# Object file extension for compiled RC test sources.
19667objext=o
19668objext_RC=$objext
19669
19670# Code to be used in simple compile tests
19671lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19672
19673# Code to be used in simple link tests
19674lt_simple_link_test_code="$lt_simple_compile_test_code"
19675
19676# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19677
19678# If no C compiler was specified, use CC.
19679LTCC=${LTCC-"$CC"}
19680
19681# If no C compiler flags were specified, use CFLAGS.
19682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19683
19684# Allow CC to be a program name with arguments.
19685compiler=$CC
19686
19687
19688# save warnings/boilerplate of simple test code
19689ac_outfile=conftest.$ac_objext
19690printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19692_lt_compiler_boilerplate=`cat conftest.err`
19693$rm conftest*
19694
19695ac_outfile=conftest.$ac_objext
19696printf "$lt_simple_link_test_code" >conftest.$ac_ext
19697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19698_lt_linker_boilerplate=`cat conftest.err`
19699$rm conftest*
19700
19701
19702# Allow CC to be a program name with arguments.
19703lt_save_CC="$CC"
19704CC=${RC-"windres"}
19705compiler=$CC
19706compiler_RC=$CC
19707for cc_temp in $compiler""; do
19708  case $cc_temp in
19709    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19710    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19711    \-*) ;;
19712    *) break;;
19713  esac
19714done
19715cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19716
19717lt_cv_prog_compiler_c_o_RC=yes
19718
19719# The else clause should only fire when bootstrapping the
19720# libtool distribution, otherwise you forgot to ship ltmain.sh
19721# with your package, and you will get complaints that there are
19722# no rules to generate ltmain.sh.
19723if test -f "$ltmain"; then
19724  # See if we are running on zsh, and set the options which allow our commands through
19725  # without removal of \ escapes.
19726  if test -n "${ZSH_VERSION+set}" ; then
19727    setopt NO_GLOB_SUBST
19728  fi
19729  # Now quote all the things that may contain metacharacters while being
19730  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19731  # variables and quote the copies for generation of the libtool script.
19732  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19733    SED SHELL STRIP \
19734    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19735    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19736    deplibs_check_method reload_flag reload_cmds need_locks \
19737    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19738    lt_cv_sys_global_symbol_to_c_name_address \
19739    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19740    old_postinstall_cmds old_postuninstall_cmds \
19741    compiler_RC \
19742    CC_RC \
19743    LD_RC \
19744    lt_prog_compiler_wl_RC \
19745    lt_prog_compiler_pic_RC \
19746    lt_prog_compiler_static_RC \
19747    lt_prog_compiler_no_builtin_flag_RC \
19748    export_dynamic_flag_spec_RC \
19749    thread_safe_flag_spec_RC \
19750    whole_archive_flag_spec_RC \
19751    enable_shared_with_static_runtimes_RC \
19752    old_archive_cmds_RC \
19753    old_archive_from_new_cmds_RC \
19754    predep_objects_RC \
19755    postdep_objects_RC \
19756    predeps_RC \
19757    postdeps_RC \
19758    compiler_lib_search_path_RC \
19759    archive_cmds_RC \
19760    archive_expsym_cmds_RC \
19761    postinstall_cmds_RC \
19762    postuninstall_cmds_RC \
19763    old_archive_from_expsyms_cmds_RC \
19764    allow_undefined_flag_RC \
19765    no_undefined_flag_RC \
19766    export_symbols_cmds_RC \
19767    hardcode_libdir_flag_spec_RC \
19768    hardcode_libdir_flag_spec_ld_RC \
19769    hardcode_libdir_separator_RC \
19770    hardcode_automatic_RC \
19771    module_cmds_RC \
19772    module_expsym_cmds_RC \
19773    lt_cv_prog_compiler_c_o_RC \
19774    exclude_expsyms_RC \
19775    include_expsyms_RC; do
19776
19777    case $var in
19778    old_archive_cmds_RC | \
19779    old_archive_from_new_cmds_RC | \
19780    archive_cmds_RC | \
19781    archive_expsym_cmds_RC | \
19782    module_cmds_RC | \
19783    module_expsym_cmds_RC | \
19784    old_archive_from_expsyms_cmds_RC | \
19785    export_symbols_cmds_RC | \
19786    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19787    postinstall_cmds | postuninstall_cmds | \
19788    old_postinstall_cmds | old_postuninstall_cmds | \
19789    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19790      # Double-quote double-evaled strings.
19791      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19792      ;;
19793    *)
19794      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19795      ;;
19796    esac
19797  done
19798
19799  case $lt_echo in
19800  *'\$0 --fallback-echo"')
19801    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19802    ;;
19803  esac
19804
19805cfgfile="$ofile"
19806
19807  cat <<__EOF__ >> "$cfgfile"
19808# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19809
19810# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19811
19812# Shell to use when invoking shell scripts.
19813SHELL=$lt_SHELL
19814
19815# Whether or not to build shared libraries.
19816build_libtool_libs=$enable_shared
19817
19818# Whether or not to build static libraries.
19819build_old_libs=$enable_static
19820
19821# Whether or not to add -lc for building shared libraries.
19822build_libtool_need_lc=$archive_cmds_need_lc_RC
19823
19824# Whether or not to disallow shared libs when runtime libs are static
19825allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19826
19827# Whether or not to optimize for fast installation.
19828fast_install=$enable_fast_install
19829
19830# The host system.
19831host_alias=$host_alias
19832host=$host
19833host_os=$host_os
19834
19835# The build system.
19836build_alias=$build_alias
19837build=$build
19838build_os=$build_os
19839
19840# An echo program that does not interpret backslashes.
19841echo=$lt_echo
19842
19843# The archiver.
19844AR=$lt_AR
19845AR_FLAGS=$lt_AR_FLAGS
19846
19847# A C compiler.
19848LTCC=$lt_LTCC
19849
19850# LTCC compiler flags.
19851LTCFLAGS=$lt_LTCFLAGS
19852
19853# A language-specific compiler.
19854CC=$lt_compiler_RC
19855
19856# Is the compiler the GNU C compiler?
19857with_gcc=$GCC_RC
19858
19859# An ERE matcher.
19860EGREP=$lt_EGREP
19861
19862# The linker used to build libraries.
19863LD=$lt_LD_RC
19864
19865# Whether we need hard or soft links.
19866LN_S=$lt_LN_S
19867
19868# A BSD-compatible nm program.
19869NM=$lt_NM
19870
19871# A symbol stripping program
19872STRIP=$lt_STRIP
19873
19874# Used to examine libraries when file_magic_cmd begins "file"
19875MAGIC_CMD=$MAGIC_CMD
19876
19877# Used on cygwin: DLL creation program.
19878DLLTOOL="$DLLTOOL"
19879
19880# Used on cygwin: object dumper.
19881OBJDUMP="$OBJDUMP"
19882
19883# Used on cygwin: assembler.
19884AS="$AS"
19885
19886# The name of the directory that contains temporary libtool files.
19887objdir=$objdir
19888
19889# How to create reloadable object files.
19890reload_flag=$lt_reload_flag
19891reload_cmds=$lt_reload_cmds
19892
19893# How to pass a linker flag through the compiler.
19894wl=$lt_lt_prog_compiler_wl_RC
19895
19896# Object file suffix (normally "o").
19897objext="$ac_objext"
19898
19899# Old archive suffix (normally "a").
19900libext="$libext"
19901
19902# Shared library suffix (normally ".so").
19903shrext_cmds='$shrext_cmds'
19904
19905# Executable file suffix (normally "").
19906exeext="$exeext"
19907
19908# Additional compiler flags for building library objects.
19909pic_flag=$lt_lt_prog_compiler_pic_RC
19910pic_mode=$pic_mode
19911
19912# What is the maximum length of a command?
19913max_cmd_len=$lt_cv_sys_max_cmd_len
19914
19915# Does compiler simultaneously support -c and -o options?
19916compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19917
19918# Must we lock files when doing compilation?
19919need_locks=$lt_need_locks
19920
19921# Do we need the lib prefix for modules?
19922need_lib_prefix=$need_lib_prefix
19923
19924# Do we need a version for libraries?
19925need_version=$need_version
19926
19927# Whether dlopen is supported.
19928dlopen_support=$enable_dlopen
19929
19930# Whether dlopen of programs is supported.
19931dlopen_self=$enable_dlopen_self
19932
19933# Whether dlopen of statically linked programs is supported.
19934dlopen_self_static=$enable_dlopen_self_static
19935
19936# Compiler flag to prevent dynamic linking.
19937link_static_flag=$lt_lt_prog_compiler_static_RC
19938
19939# Compiler flag to turn off builtin functions.
19940no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19941
19942# Compiler flag to allow reflexive dlopens.
19943export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19944
19945# Compiler flag to generate shared objects directly from archives.
19946whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19947
19948# Compiler flag to generate thread-safe objects.
19949thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19950
19951# Library versioning type.
19952version_type=$version_type
19953
19954# Format of library name prefix.
19955libname_spec=$lt_libname_spec
19956
19957# List of archive names.  First name is the real one, the rest are links.
19958# The last name is the one that the linker finds with -lNAME.
19959library_names_spec=$lt_library_names_spec
19960
19961# The coded name of the library, if different from the real name.
19962soname_spec=$lt_soname_spec
19963
19964# Commands used to build and install an old-style archive.
19965RANLIB=$lt_RANLIB
19966old_archive_cmds=$lt_old_archive_cmds_RC
19967old_postinstall_cmds=$lt_old_postinstall_cmds
19968old_postuninstall_cmds=$lt_old_postuninstall_cmds
19969
19970# Create an old-style archive from a shared archive.
19971old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19972
19973# Create a temporary old-style archive to link instead of a shared archive.
19974old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19975
19976# Commands used to build and install a shared archive.
19977archive_cmds=$lt_archive_cmds_RC
19978archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19979postinstall_cmds=$lt_postinstall_cmds
19980postuninstall_cmds=$lt_postuninstall_cmds
19981
19982# Commands used to build a loadable module (assumed same as above if empty)
19983module_cmds=$lt_module_cmds_RC
19984module_expsym_cmds=$lt_module_expsym_cmds_RC
19985
19986# Commands to strip libraries.
19987old_striplib=$lt_old_striplib
19988striplib=$lt_striplib
19989
19990# Dependencies to place before the objects being linked to create a
19991# shared library.
19992predep_objects=$lt_predep_objects_RC
19993
19994# Dependencies to place after the objects being linked to create a
19995# shared library.
19996postdep_objects=$lt_postdep_objects_RC
19997
19998# Dependencies to place before the objects being linked to create a
19999# shared library.
20000predeps=$lt_predeps_RC
20001
20002# Dependencies to place after the objects being linked to create a
20003# shared library.
20004postdeps=$lt_postdeps_RC
20005
20006# The library search path used internally by the compiler when linking
20007# a shared library.
20008compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20009
20010# Method to check whether dependent libraries are shared objects.
20011deplibs_check_method=$lt_deplibs_check_method
20012
20013# Command to use when deplibs_check_method == file_magic.
20014file_magic_cmd=$lt_file_magic_cmd
20015
20016# Flag that allows shared libraries with undefined symbols to be built.
20017allow_undefined_flag=$lt_allow_undefined_flag_RC
20018
20019# Flag that forces no undefined symbols.
20020no_undefined_flag=$lt_no_undefined_flag_RC
20021
20022# Commands used to finish a libtool library installation in a directory.
20023finish_cmds=$lt_finish_cmds
20024
20025# Same as above, but a single script fragment to be evaled but not shown.
20026finish_eval=$lt_finish_eval
20027
20028# Take the output of nm and produce a listing of raw symbols and C names.
20029global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20030
20031# Transform the output of nm in a proper C declaration
20032global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20033
20034# Transform the output of nm in a C name address pair
20035global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20036
20037# This is the shared library runtime path variable.
20038runpath_var=$runpath_var
20039
20040# This is the shared library path variable.
20041shlibpath_var=$shlibpath_var
20042
20043# Is shlibpath searched before the hard-coded library search path?
20044shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20045
20046# How to hardcode a shared library path into an executable.
20047hardcode_action=$hardcode_action_RC
20048
20049# Whether we should hardcode library paths into libraries.
20050hardcode_into_libs=$hardcode_into_libs
20051
20052# Flag to hardcode \$libdir into a binary during linking.
20053# This must work even if \$libdir does not exist.
20054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20055
20056# If ld is used when linking, flag to hardcode \$libdir into
20057# a binary during linking. This must work even if \$libdir does
20058# not exist.
20059hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20060
20061# Whether we need a single -rpath flag with a separated argument.
20062hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20063
20064# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20065# resulting binary.
20066hardcode_direct=$hardcode_direct_RC
20067
20068# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20069# resulting binary.
20070hardcode_minus_L=$hardcode_minus_L_RC
20071
20072# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20073# the resulting binary.
20074hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20075
20076# Set to yes if building a shared library automatically hardcodes DIR into the library
20077# and all subsequent libraries and executables linked against it.
20078hardcode_automatic=$hardcode_automatic_RC
20079
20080# Variables whose values should be saved in libtool wrapper scripts and
20081# restored at relink time.
20082variables_saved_for_relink="$variables_saved_for_relink"
20083
20084# Whether libtool must link a program against all its dependency libraries.
20085link_all_deplibs=$link_all_deplibs_RC
20086
20087# Compile-time system search path for libraries
20088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20089
20090# Run-time system search path for libraries
20091sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20092
20093# Fix the shell variable \$srcfile for the compiler.
20094fix_srcfile_path="$fix_srcfile_path_RC"
20095
20096# Set to yes if exported symbols are required.
20097always_export_symbols=$always_export_symbols_RC
20098
20099# The commands to list exported symbols.
20100export_symbols_cmds=$lt_export_symbols_cmds_RC
20101
20102# The commands to extract the exported symbol list from a shared archive.
20103extract_expsyms_cmds=$lt_extract_expsyms_cmds
20104
20105# Symbols that should not be listed in the preloaded symbols.
20106exclude_expsyms=$lt_exclude_expsyms_RC
20107
20108# Symbols that must always be exported.
20109include_expsyms=$lt_include_expsyms_RC
20110
20111# ### END LIBTOOL TAG CONFIG: $tagname
20112
20113__EOF__
20114
20115
20116else
20117  # If there is no Makefile yet, we rely on a make rule to execute
20118  # `config.status --recheck' to rerun these tests and create the
20119  # libtool script then.
20120  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20121  if test -f "$ltmain_in"; then
20122    test -f Makefile && make "$ltmain"
20123  fi
20124fi
20125
20126
20127ac_ext=c
20128ac_cpp='$CPP $CPPFLAGS'
20129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20131ac_compiler_gnu=$ac_cv_c_compiler_gnu
20132
20133CC="$lt_save_CC"
20134
20135	;;
20136
20137      *)
20138	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20139echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20140   { (exit 1); exit 1; }; }
20141	;;
20142      esac
20143
20144      # Append the new tag name to the list of available tags.
20145      if test -n "$tagname" ; then
20146      available_tags="$available_tags $tagname"
20147    fi
20148    fi
20149  done
20150  IFS="$lt_save_ifs"
20151
20152  # Now substitute the updated list of available tags.
20153  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20154    mv "${ofile}T" "$ofile"
20155    chmod +x "$ofile"
20156  else
20157    rm -f "${ofile}T"
20158    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20159echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20160   { (exit 1); exit 1; }; }
20161  fi
20162fi
20163
20164
20165
20166# This can be used to rebuild libtool when needed
20167LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20168
20169# Always use our own libtool.
20170LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20171
20172# Prevent multiple expansion
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20185 # AC_REQUIRE([AC_COIN_DLFCN_H])
20186
20187# NEW: If libtool exists in the directory higher up, we use that one
20188#      instead of creating a new one
20189
20190# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20191# out in front of this macro body. You'll notice that LIBTOOL is already
20192# defined here.  We'll have to count on this macro not being called if libtool
20193# already exists, or at least move the libtool fixes outside the conditional.
20194# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20195# This test is therefore removed.  -- lh, 061214 --
20196# if test "x$LIBTOOL" = x; then
20197
20198# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20209
20210
20211
20212  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20213echo "$as_me: Build is \"$build\"." >&6;}
20214  mydos2unix='| dos2unix'
20215  case $build in
20216    *-mingw*)
20217      CYGPATH_W=echo
20218      ;;
20219  esac
20220
20221  case $build in
20222    # Here we need to check if -m32 is specified.  If so, we need to correct
20223    # sys_lib_search_path_spec
20224    *-cygwin* | *-mingw*)
20225       case "$CXX" in
20226    clang* )
20227      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20228      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20229echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20230      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20231	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20232	  -e 's|libext="lib"|libext="a"|' \
20233      libtool > conftest.bla
20234      ;;
20235    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20236      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20237echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20238      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20239	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20240	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20241	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20242	  -e 's%lib /OUT:%lib -OUT:%' \
20243	  -e "s%cygpath -w%$CYGPATH_W%" \
20244	  -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%' \
20245	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20246	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20247	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20248	  -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"%' \
20249      libtool > conftest.bla
20250      ;;
20251    *)
20252      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20253echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20254      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20255	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20256	  -e 's|libext="lib"|libext="a"|' \
20257      libtool > conftest.bla
20258      ;;
20259  esac
20260  mv conftest.bla libtool
20261  chmod 755 libtool
20262
20263      ;;
20264    *x86_64-*)
20265      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20266        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20267echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20268        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20269        mv conftest.bla libtool
20270        chmod 755 libtool
20271      fi
20272      ;;
20273
20274    *-solaris*)
20275       if test "$GCC" = yes && \
20276     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20277    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20278    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20279      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20280echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20281      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20282      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20283      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20284	# AC_MSG_NOTICE(Compensating for broken gcc)
20285	for lib in $fixlibtmp ; do
20286	  if test -d "${lib}${hdwisa}" ; then
20287	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20288	  fi
20289	done
20290	syslibpath64="${syslibpath64} ${fixlibtmp}"
20291      else
20292	syslibpath64="$fixlibtmp"
20293      fi
20294      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20295      mv conftest.bla libtool
20296      chmod 755 libtool
20297    fi
20298    # AC_MSG_NOTICE(Result is )
20299    # $EGREP 'sys_lib_search_path_spec=' libtool
20300  fi
20301      ;;
20302    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20303    *-darwin*)
20304      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20305echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20306      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"/' \
20307        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20308      libtool > conftest.bla
20309
20310      mv conftest.bla libtool
20311      chmod 755 libtool
20312      ;;
20313  esac
20314# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20315# the macro. -- lh, 061214 --
20316# fi
20317
20318# AC_MSG_NOTICE([End libtool initialisation.])
20319
20320# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20321  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20322  # of the shared objects
20323  RPATH_FLAGS=
20324
20325if test $enable_shared = yes; then
20326  case $build in
20327    *-linux-*)
20328      if test "$GXX" = "yes"; then
20329        RPATH_FLAGS=
20330        for dir in $abs_lib_dir; do
20331          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20332        done
20333      fi ;;
20334    *-darwin*)
20335        RPATH_FLAGS=nothing ;;
20336    *-ibm-*)
20337      case "$CXX" in
20338      xlC* | */xlC* | mpxlC* | */mpxlC*)
20339        RPATH_FLAGS=nothing ;;
20340      esac ;;
20341    *-hp-*)
20342        RPATH_FLAGS=nothing ;;
20343    *-mingw32)
20344        RPATH_FLAGS=nothing ;;
20345    *-*-solaris*)
20346        RPATH_FLAGS=
20347        for dir in $abs_lib_dir; do
20348          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20349        done
20350  esac
20351
20352  if test "$RPATH_FLAGS" = ""; then
20353    { 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
20354echo "$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;}
20355  fi
20356  if test "$RPATH_FLAGS" = "nothing"; then
20357    RPATH_FLAGS=
20358  fi
20359fi
20360
20361
20362
20363
20364else
20365
20366  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20367echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20368  # get all missing information from the config.log file
20369
20370  # output variables and defines
20371  as_save_IFS=$IFS
20372  IFS='
20373'
20374  for oneline in `cat $coin_config_dir/config.status`; do
20375    case "$oneline" in
20376         # First some automake conditionals
20377      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20378      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20379      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20380      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20381        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20382#        echo "$command"
20383        eval "$command"
20384        ;;
20385      s,@DEFS@* )
20386        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20387#        echo "$command"
20388        eval "$command"
20389        ;;
20390    esac
20391  done
20392  IFS=$as_save_IFS
20393
20394  # And some defines (assuming here that the packages base dir
20395  # doesn't have a config.h file
20396  for word in $defsline; do
20397#    echo word $word
20398    case $word in
20399      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20400        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20401#        echo dd $i
20402        echo $i >>confdefs.h
20403        ;;
20404    esac
20405  done
20406fi
20407
20408# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20409
20410# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20411if test "${enable_dependency_linking+set}" = set; then
20412  enableval="$enable_dependency_linking"
20413  dependency_linking="$enableval"
20414else
20415  dependency_linking=auto
20416fi;
20417
20418if test "$dependency_linking" = auto; then
20419  # On Cygwin and AIX, building DLLs doesn't work
20420  dependency_linking=no
20421  if test x"$coin_disable_shared" = xno; then
20422    case $build in
20423      *-cygwin* | *-mingw*)
20424        case "$CC" in
20425          clang* )
20426            dependency_linking=yes
20427            ;;
20428          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20429            dependency_linking=no
20430            ;;
20431          *gcc*)
20432            dependency_linking=yes
20433            ;;
20434          *)
20435            dependency_linking=yes
20436            ;;
20437        esac
20438        ;;
20439      *)
20440        dependency_linking=yes
20441        ;;
20442    esac
20443  fi
20444fi
20445
20446if test "$dependency_linking" = yes ;
20447then
20448  LT_LDFLAGS="-no-undefined"
20449else
20450  LT_LDFLAGS=
20451fi
20452
20453
20454
20455if test "$dependency_linking" = yes; then
20456  DEPENDENCY_LINKING_TRUE=
20457  DEPENDENCY_LINKING_FALSE='#'
20458else
20459  DEPENDENCY_LINKING_TRUE='#'
20460  DEPENDENCY_LINKING_FALSE=
20461fi
20462
20463
20464# Check if we want to set the library version
20465echo "$as_me:$LINENO: checking if library version is set" >&5
20466echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20467if test x"$coin_libversion" != x; then
20468  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20469  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20470echo "${ECHO_T}$coin_libversion" >&6
20471else
20472  echo "$as_me:$LINENO: result: no" >&5
20473echo "${ECHO_T}no" >&6
20474fi
20475
20476
20477
20478#END
20479}
20480
20481#############################################################################
20482#                              COIN components                              #
20483#############################################################################
20484
20485
20486
20487# Check whether --enable-pkg-config or --disable-pkg-config was given.
20488if test "${enable_pkg_config+set}" = set; then
20489  enableval="$enable_pkg_config"
20490  use_pkgconfig="$enableval"
20491else
20492  if test x$coin_cc_is_cl = xtrue; then
20493     use_pkgconfig=no
20494   else
20495     use_pkgconfig=yes
20496   fi
20497fi;
20498
20499if test $use_pkgconfig = yes ; then
20500  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20501    if test -n "$ac_tool_prefix"; then
20502  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20503set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20504echo "$as_me:$LINENO: checking for $ac_word" >&5
20505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20506if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20507  echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509  if test -n "$PKG_CONFIG"; then
20510  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20511else
20512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513for as_dir in $PATH
20514do
20515  IFS=$as_save_IFS
20516  test -z "$as_dir" && as_dir=.
20517  for ac_exec_ext in '' $ac_executable_extensions; do
20518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20519    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20521    break 2
20522  fi
20523done
20524done
20525
20526fi
20527fi
20528PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20529if test -n "$PKG_CONFIG"; then
20530  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20531echo "${ECHO_T}$PKG_CONFIG" >&6
20532else
20533  echo "$as_me:$LINENO: result: no" >&5
20534echo "${ECHO_T}no" >&6
20535fi
20536
20537fi
20538if test -z "$ac_cv_prog_PKG_CONFIG"; then
20539  ac_ct_PKG_CONFIG=$PKG_CONFIG
20540  # Extract the first word of "pkg-config", so it can be a program name with args.
20541set dummy pkg-config; ac_word=$2
20542echo "$as_me:$LINENO: checking for $ac_word" >&5
20543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20544if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20545  echo $ECHO_N "(cached) $ECHO_C" >&6
20546else
20547  if test -n "$ac_ct_PKG_CONFIG"; then
20548  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20549else
20550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20551for as_dir in $PATH
20552do
20553  IFS=$as_save_IFS
20554  test -z "$as_dir" && as_dir=.
20555  for ac_exec_ext in '' $ac_executable_extensions; do
20556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20557    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20559    break 2
20560  fi
20561done
20562done
20563
20564fi
20565fi
20566ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20567if test -n "$ac_ct_PKG_CONFIG"; then
20568  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20569echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20570else
20571  echo "$as_me:$LINENO: result: no" >&5
20572echo "${ECHO_T}no" >&6
20573fi
20574
20575  PKG_CONFIG=$ac_ct_PKG_CONFIG
20576else
20577  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20578fi
20579
20580  fi
20581  if test -n "$PKG_CONFIG"; then
20582    _pkg_min_version=0.16.0
20583    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20584echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20585    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20586      echo "$as_me:$LINENO: result: yes" >&5
20587echo "${ECHO_T}yes" >&6
20588    else
20589      echo "$as_me:$LINENO: result: no" >&5
20590echo "${ECHO_T}no" >&6
20591      PKG_CONFIG=""
20592    fi
20593  fi
20594
20595  # check if pkg-config supports the short-errors flag
20596  if test -n "$PKG_CONFIG" && \
20597    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20598    pkg_short_errors=" --short-errors "
20599  else
20600    pkg_short_errors=""
20601  fi
20602fi
20603
20604
20605
20606if test -n "$PKG_CONFIG"; then
20607  COIN_HAS_PKGCONFIG_TRUE=
20608  COIN_HAS_PKGCONFIG_FALSE='#'
20609else
20610  COIN_HAS_PKGCONFIG_TRUE='#'
20611  COIN_HAS_PKGCONFIG_FALSE=
20612fi
20613
20614
20615
20616# assemble pkg-config search path for installed projects
20617COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20618
20619# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20620# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20621# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20622if test "x${prefix}" = xNONE ; then
20623  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20624else
20625  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20626fi
20627
20628
20629# Check whether --with-coin-instdir or --without-coin-instdir was given.
20630if test "${with_coin_instdir+set}" = set; then
20631  withval="$with_coin_instdir"
20632  if test -d "$withval"; then : ; else
20633     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20634echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20635   { (exit 1); exit 1; }; }
20636   fi
20637   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20638
20639fi;
20640
20641
20642
20643# assemble additional pkg-config search paths for uninstalled projects
20644if test x$coin_projectdir = xyes ; then
20645  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20646  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20647  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20648  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20649  COIN_PKG_CONFIG_PATH_UNINSTALLED=
20650  if test -f ../coin_subdirs.txt ; then
20651    for i in `cat ../coin_subdirs.txt` ; do
20652      if test -d ../$i ; then
20653        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20654      fi
20655      if test -d ../$i/pkgconfig ; then
20656        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20657      fi
20658    done
20659  fi
20660
20661  if test -f ../../coin_subdirs.txt ; then
20662    for i in `cat ../../coin_subdirs.txt` ; do
20663      if test -d ../../$i ; then
20664        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20665      fi
20666      if test -d ../../$i/pkgconfig ; then
20667        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20668      fi
20669    done
20670  fi
20671
20672  if test -f ../../../coin_subdirs.txt ; then
20673    for i in `cat ../../../coin_subdirs.txt` ; do
20674      if test -d ../../../$i ; then
20675        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20676      fi
20677      if test -d ../../../$i/pkgconfig ; then
20678        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20679      fi
20680    done
20681  fi
20682
20683
20684fi
20685
20686if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20687  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20688echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20689fi
20690
20691
20692
20693echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
20694echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
20695
20696coin_has_osi=notGiven
20697
20698# check if user wants to skip package in any case
20699if test x"$COIN_SKIP_PROJECTS" != x; then
20700  for dir in $COIN_SKIP_PROJECTS; do
20701    if test $dir = "Osi"; then
20702      coin_has_osi=skipping
20703    fi
20704  done
20705fi
20706
20707if test "$coin_has_osi" != skipping; then
20708
20709# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
20710if test "${with_osi+set}" = set; then
20711  withval="$with_osi"
20712  if test "$withval" = no ; then
20713       coin_has_osi=skipping
20714     fi
20715
20716fi;
20717fi
20718
20719OSI_LIBS=
20720OSI_CFLAGS=
20721OSI_DATA=
20722OSI_DEPENDENCIES=
20723OSI_PCLIBS=
20724OSI_PCREQUIRES=
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20743if test $coin_has_osi != skipping; then
20744
20745# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
20746if test "${with_osi_lib+set}" = set; then
20747  withval="$with_osi_lib"
20748  if test "$withval" = no ; then
20749       coin_has_osi=skipping
20750     else
20751       coin_has_osi=yes
20752       OSI_LIBS="$withval"
20753       OSI_PCLIBS="$withval"
20754
20755         FLOPCPP_PCLIBS="$withval $FLOPCPP_PCLIBS"
20756         FLOPCPP_LIBS="$withval $FLOPCPP_LIBS"
20757
20758       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20759       if test -z "$PKG_CONFIG" ; then
20760         OSI_LIBS_INSTALLED="$withval"
20761         FLOPCPP_LIBS_INSTALLED="$withval $FLOPCPP_LIBS_INSTALLED"
20762       fi
20763     fi
20764
20765fi;
20766fi
20767
20768if test $coin_has_osi != skipping; then
20769
20770# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
20771if test "${with_osi_incdir+set}" = set; then
20772  withval="$with_osi_incdir"
20773  if test "$withval" = no ; then
20774       coin_has_osi=skipping
20775     else
20776       coin_has_osi=yes
20777       OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
20778       FLOPCPP_CFLAGS="-I`${CYGPATH_W} $withval` $FLOPCPP_CFLAGS"
20779       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20780       if test -z "$PKG_CONFIG" ; then
20781         OSI_CFLAGS_INSTALLED="$OSI_CFLAGS"
20782         FLOPCPP_CFLAGS_INSTALLED="$OSI_CFLAGS $FLOPCPP_CFLAGS_INSTALLED"
20783       fi
20784     fi
20785
20786fi;
20787fi
20788
20789if test $coin_has_osi != skipping; then
20790
20791# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
20792if test "${with_osi_datadir+set}" = set; then
20793  withval="$with_osi_datadir"
20794  if test "$withval" = no ; then
20795       coin_has_osi=skipping
20796     else
20797       coin_has_osi=yes
20798       OSI_DATA="$withval"
20799       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20800       if test -z "$PKG_CONFIG" ; then
20801         OSI_DATA_INSTALLED="$withval"
20802       fi
20803     fi
20804
20805fi;
20806fi
20807
20808if test $coin_has_osi = notGiven; then
20809  if test -n "$PKG_CONFIG" ; then
20810    # set search path for pkg-config
20811    # need to export variable to be sure that the following pkg-config gets these values
20812    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20813    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20814    export PKG_CONFIG_PATH
20815
20816    # let pkg-config do it's magic
20817
20818
20819
20820if test -n "$PKG_CONFIG" ; then
20821  if $PKG_CONFIG --exists "osi"; then
20822    OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`
20823     cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
20824    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20825	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20826	# but only do this if is not trivial
20827    if test "$CYGPATH_W" != "echo" ; then
20828      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20829      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20830    fi
20831    OSI_CFLAGS="$cflags"
20832    OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
20833    OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
20834     coin_has_osi=yes
20835        echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
20836echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
20837
20838        # adjust linker flags for (i)cl compiler
20839        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
20840        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20841        then
20842          OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20843        fi
20844        OSI_PCREQUIRES="osi"
20845
20846        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in FlopCpp
20847
20848          FLOPCPP_PCREQUIRES="osi $FLOPCPP_PCREQUIRES"
20849          FLOPCPP_CFLAGS="$OSI_CFLAGS $FLOPCPP_CFLAGS"
20850          FLOPCPP_LIBS="$OSI_LIBS $FLOPCPP_LIBS"
20851
20852
20853
20854  else
20855    OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
20856      coin_has_osi=notGiven
20857        echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
20858echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
20859
20860  fi
20861else
20862  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
20863echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
20864   { (exit 1); exit 1; }; }
20865fi
20866
20867
20868
20869
20870    # reset PKG_CONFIG_PATH variable
20871    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20872    export PKG_CONFIG_PATH
20873
20874  else
20875    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20876echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20877
20878echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
20879echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
20880
20881coin_has_osi=notGiven
20882OSI_LIBS=
20883OSI_LIBS_INSTALLED=
20884OSI_CFLAGS=
20885OSI_CFLAGS_INSTALLED=
20886OSI_DATA=
20887OSI_DATA_INSTALLED=
20888OSI_PCLIBS=
20889OSI_PCREQUIRES=
20890
20891# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20892projtoprocess="osi"
20893
20894# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20895# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20896# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20897# also, we setup the DATA variable
20898allproj=""
20899allpcfiles=""
20900allpcifiles=""
20901while test "x$projtoprocess" != x ; do
20902
20903  for proj in $projtoprocess ; do
20904    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20905    pcfile=""
20906    save_IFS="$IFS"
20907    IFS=":"
20908    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20909      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
20910      if test -r "$dir/${proj}-uninstalled.pc" ; then
20911        pcfile="$dir/$proj-uninstalled.pc"
20912        if test -r "$dir/${proj}.pc" ; then
20913          pcifile="$dir/${proj}.pc"
20914        else
20915          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20916echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20917          pcifile=
20918        fi
20919        break
20920      fi
20921    done
20922    IFS="$save_IFS"
20923
20924    if test "x$pcfile" != x ; then
20925      # read dependencies from $pcfile and filter it
20926      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
20927
20928      # add projrequires to the front of the list of projects that have to be processed next
20929      # at the same time, remove $proj from this list
20930      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20931
20932      # read DATA from $pcfile, if _DATA is still empty
20933      if test "x$OSI_DATA" = x ; then
20934        projdatadir=
20935        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
20936        eval `sh -c "$pcfilemod"`
20937        OSI_DATA="$projdatadir"
20938      fi
20939
20940      allproj="$allproj $proj"
20941      allpcfiles="$pcfile:$allpcfiles"
20942
20943    else
20944      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
20945echo "${ECHO_T}no, dependency $proj not available" >&6
20946      allproj=fail
20947      break 2
20948    fi
20949
20950    if test "x$pcifile" != x ; then
20951      allpcifiles="$pcifile:$allpcifiles"
20952
20953      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
20954      if test "x$OSI_DATA_INSTALLED" = x ; then
20955        projdatadir=
20956        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
20957        eval `sh -c "$pcifilemod"`
20958        if test "${CYGPATH_W}" != "echo"; then
20959          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
20960        fi
20961        OSI_DATA_INSTALLED="$projdatadir"
20962      fi
20963
20964    fi
20965
20966    break
20967  done
20968
20969  # remove spaces on begin of $projtoprocess
20970  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
20971
20972done
20973
20974if test "$allproj" != fail ; then
20975
20976  # now go through the list of .pc files and assemble compiler and linker flags
20977  # important is here to obey the reverse order that has been setup before,
20978  # since then libraries that are required by several others should be after these other libraries
20979  pcfilesprocessed=""
20980
20981  save_IFS="$IFS"
20982  IFS=":"
20983  for pcfile in $allpcfiles ; do
20984
20985    # if $pcfile has been processed already, skip this round
20986    if test "x$pcfilesprocessed" != x ; then
20987      for pcfiledone in $pcfilesprocessed ; do
20988        if test "$pcfiledone" = "$pcfile" ; then
20989          continue 2
20990        fi
20991      done
20992    fi
20993
20994    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
20995    #   replace "Libs:" by "echo projlibs="
20996    #   replace "Cflags:" by "echo projcflags="
20997    #   remove every line starting with <some word>:
20998    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
20999
21000    # set projcflags and projlibs variables by running $pcfilemod
21001    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21002    projcflags=
21003    projlibs=
21004    IFS="$save_IFS"
21005    eval `sh -c "$pcfilemod"`
21006    IFS=":"
21007
21008    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21009    if test "${CYGPATH_W}" != "echo"; then
21010      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21011    fi
21012    OSI_CFLAGS="$projcflags $OSI_CFLAGS"
21013
21014    # set LIBS variable
21015    OSI_LIBS="$projlibs $OSI_LIBS"
21016
21017    # remember that we have processed $pcfile
21018    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21019
21020  done
21021  IFS="$save_IFS"
21022
21023
21024  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21025  # important is here again to obey the reverse order that has been setup before,
21026  # since then libraries that are required by several others should be after these other libraries
21027  pcfilesprocessed=""
21028
21029  save_IFS="$IFS"
21030  IFS=":"
21031  for pcfile in $allpcifiles ; do
21032
21033    # if $pcfile has been processed already, skip this round
21034    if test "x$pcfilesprocessed" != x ; then
21035      for pcfiledone in $pcfilesprocessed ; do
21036        if test "$pcfiledone" = "$pcfile" ; then
21037          continue 2
21038        fi
21039      done
21040    fi
21041
21042    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21043    #   replace "Libs:" by "echo projlibs="
21044    #   replace "Cflags:" by "echo projcflags="
21045    #   remove every line starting with <some word>:
21046    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21047
21048    # set projcflags and projlibs variables by running $pcfilemod
21049    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21050    projcflags=
21051    projlibs=
21052    IFS="$save_IFS"
21053    eval `sh -c "$pcfilemod"`
21054    IFS=":"
21055
21056    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21057    if test "${CYGPATH_W}" != "echo"; then
21058      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21059    fi
21060    OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
21061
21062    # set LIBS variable
21063    OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
21064
21065    # remember that we have processed $pcfile
21066    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21067
21068  done
21069  IFS="$save_IFS"
21070
21071
21072  # finish up
21073  coin_has_osi=yes
21074  echo "$as_me:$LINENO: result: yes" >&5
21075echo "${ECHO_T}yes" >&6
21076
21077cat >>confdefs.h <<\_ACEOF
21078#define COIN_HAS_OSI 1
21079_ACEOF
21080
21081
21082  # adjust linker flags for (i)cl compiler
21083  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21084  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21085  #    everything of the form "-lname" by "libname.lib", and
21086  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21087  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21088  then
21089    OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21090    OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21091  fi
21092
21093  OSI_PCREQUIRES="osi"
21094
21095    FLOPCPP_PCREQUIRES="osi $FLOPCPP_PCREQUIRES"
21096    FLOPCPP_CFLAGS="$OSI_CFLAGS $FLOPCPP_CFLAGS"
21097    FLOPCPP_LIBS="$OSI_LIBS $FLOPCPP_LIBS"
21098    FLOPCPP_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $FLOPCPP_CFLAGS_INSTALLED"
21099    FLOPCPP_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $FLOPCPP_LIBS_INSTALLED"
21100
21101
21102fi
21103
21104
21105
21106if test $coin_has_osi != notGiven &&
21107                test $coin_has_osi != skipping; then
21108  COIN_HAS_OSI_TRUE=
21109  COIN_HAS_OSI_FALSE='#'
21110else
21111  COIN_HAS_OSI_TRUE='#'
21112  COIN_HAS_OSI_FALSE=
21113fi
21114
21115
21116
21117  fi
21118
21119else
21120  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21121echo "${ECHO_T}$coin_has_osi" >&6
21122fi
21123
21124if test $coin_has_osi != skipping &&
21125   test $coin_has_osi != notGiven ; then
21126
21127cat >>confdefs.h <<\_ACEOF
21128#define COIN_HAS_OSI 1
21129_ACEOF
21130
21131
21132  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21133if test "${enable_interpackage_dependencies+set}" = set; then
21134  enableval="$enable_interpackage_dependencies"
21135
21136else
21137  enable_interpackage_dependencies=yes
21138fi;
21139
21140  if test $enable_interpackage_dependencies = yes ; then
21141     # construct dependencies variables from LIBS variables
21142     # we add an extra space in LIBS so we can substitute out everything starting with " -"
21143     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21144     # then remove everything of the form -xxx
21145     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21146     OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21147
21148       FLOPCPP_DEPENDENCIES=`echo " $FLOPCPP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21149
21150  fi
21151
21152  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
21153    if test -n "$OSI_CFLAGS" ; then
21154      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
21155echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
21156    fi
21157    if test -n "$OSI_LIBS" ; then
21158      { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
21159echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
21160    fi
21161    if test -n "$OSI_DEPENDENCIES" ; then
21162      { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
21163echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
21164    fi
21165    if test -n "$OSI_DATA" ; then
21166      { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
21167echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
21168    fi
21169    if test -n "$OSI_PCLIBS" ; then
21170      { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5
21171echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;}
21172    fi
21173    if test -n "$OSI_PCREQUIRES" ; then
21174      { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5
21175echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;}
21176    fi
21177
21178      { echo "$as_me:$LINENO: FlopCpp CFLAGS are $FLOPCPP_CFLAGS" >&5
21179echo "$as_me: FlopCpp CFLAGS are $FLOPCPP_CFLAGS" >&6;}
21180      { echo "$as_me:$LINENO: FlopCpp LIBS   are $FLOPCPP_LIBS" >&5
21181echo "$as_me: FlopCpp LIBS   are $FLOPCPP_LIBS" >&6;}
21182      { echo "$as_me:$LINENO: FlopCpp DEPENDENCIES are $FLOPCPP_DEPENDENCIES" >&5
21183echo "$as_me: FlopCpp DEPENDENCIES are $FLOPCPP_DEPENDENCIES" >&6;}
21184
21185  fi
21186fi
21187
21188# Define the Makefile conditional
21189
21190
21191if test $coin_has_osi != notGiven &&
21192                test $coin_has_osi != skipping; then
21193  COIN_HAS_OSI_TRUE=
21194  COIN_HAS_OSI_FALSE='#'
21195else
21196  COIN_HAS_OSI_TRUE='#'
21197  COIN_HAS_OSI_FALSE=
21198fi
21199
21200
21201
21202if test $coin_has_osi != yes ; then
21203  { { echo "$as_me:$LINENO: error: Required package Osi not available." >&5
21204echo "$as_me: error: Required package Osi not available." >&2;}
21205   { (exit 1); exit 1; }; }
21206fi
21207
21208echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
21209echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
21210
21211coin_has_cbc=notGiven
21212
21213# check if user wants to skip package in any case
21214if test x"$COIN_SKIP_PROJECTS" != x; then
21215  for dir in $COIN_SKIP_PROJECTS; do
21216    if test $dir = "Cbc"; then
21217      coin_has_cbc=skipping
21218    fi
21219  done
21220fi
21221
21222if test "$coin_has_cbc" != skipping; then
21223
21224# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
21225if test "${with_cbc+set}" = set; then
21226  withval="$with_cbc"
21227  if test "$withval" = no ; then
21228       coin_has_cbc=skipping
21229     fi
21230
21231fi;
21232fi
21233
21234CBC_LIBS=
21235CBC_CFLAGS=
21236CBC_DATA=
21237CBC_DEPENDENCIES=
21238CBC_PCLIBS=
21239CBC_PCREQUIRES=
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21250if test $coin_has_cbc != skipping; then
21251
21252# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
21253if test "${with_cbc_lib+set}" = set; then
21254  withval="$with_cbc_lib"
21255  if test "$withval" = no ; then
21256       coin_has_cbc=skipping
21257     else
21258       coin_has_cbc=yes
21259       CBC_LIBS="$withval"
21260       CBC_PCLIBS="$withval"
21261
21262       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21263       if test -z "$PKG_CONFIG" ; then
21264         CBC_LIBS_INSTALLED="$withval"
21265
21266       fi
21267     fi
21268
21269fi;
21270fi
21271
21272if test $coin_has_cbc != skipping; then
21273
21274# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
21275if test "${with_cbc_incdir+set}" = set; then
21276  withval="$with_cbc_incdir"
21277  if test "$withval" = no ; then
21278       coin_has_cbc=skipping
21279     else
21280       coin_has_cbc=yes
21281       CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
21282
21283       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21284       if test -z "$PKG_CONFIG" ; then
21285         CBC_CFLAGS_INSTALLED="$CBC_CFLAGS"
21286
21287       fi
21288     fi
21289
21290fi;
21291fi
21292
21293if test $coin_has_cbc != skipping; then
21294
21295# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
21296if test "${with_cbc_datadir+set}" = set; then
21297  withval="$with_cbc_datadir"
21298  if test "$withval" = no ; then
21299       coin_has_cbc=skipping
21300     else
21301       coin_has_cbc=yes
21302       CBC_DATA="$withval"
21303       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21304       if test -z "$PKG_CONFIG" ; then
21305         CBC_DATA_INSTALLED="$withval"
21306       fi
21307     fi
21308
21309fi;
21310fi
21311
21312if test $coin_has_cbc = notGiven; then
21313  if test -n "$PKG_CONFIG" ; then
21314    # set search path for pkg-config
21315    # need to export variable to be sure that the following pkg-config gets these values
21316    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21317    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21318    export PKG_CONFIG_PATH
21319
21320    # let pkg-config do it's magic
21321
21322
21323
21324if test -n "$PKG_CONFIG" ; then
21325  if $PKG_CONFIG --exists "osi-cbc"; then
21326    CBC_VERSIONS=`$PKG_CONFIG --modversion "osi-cbc" 2>/dev/null | tr '\n' ' '`
21327     cflags=`$PKG_CONFIG --cflags "osi-cbc" 2>/dev/null`
21328    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21329	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21330	# but only do this if is not trivial
21331    if test "$CYGPATH_W" != "echo" ; then
21332      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21333      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21334    fi
21335    CBC_CFLAGS="$cflags"
21336    CBC_LIBS=`$PKG_CONFIG --libs "osi-cbc" 2>/dev/null`
21337    CBC_DATA=`$PKG_CONFIG --variable=datadir "osi-cbc" 2>/dev/null`
21338     coin_has_cbc=yes
21339        echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
21340echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
21341
21342        # adjust linker flags for (i)cl compiler
21343        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21344        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21345        then
21346          CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21347        fi
21348        CBC_PCREQUIRES="osi-cbc"
21349
21350        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
21351
21352
21353
21354  else
21355    CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cbc"`
21356      coin_has_cbc=notGiven
21357        echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
21358echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
21359
21360  fi
21361else
21362  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
21363echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
21364   { (exit 1); exit 1; }; }
21365fi
21366
21367
21368
21369
21370    # reset PKG_CONFIG_PATH variable
21371    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21372    export PKG_CONFIG_PATH
21373
21374  else
21375    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21376echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21377
21378echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
21379echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
21380
21381coin_has_cbc=notGiven
21382CBC_LIBS=
21383CBC_LIBS_INSTALLED=
21384CBC_CFLAGS=
21385CBC_CFLAGS_INSTALLED=
21386CBC_DATA=
21387CBC_DATA_INSTALLED=
21388CBC_PCLIBS=
21389CBC_PCREQUIRES=
21390
21391# initial list of dependencies is "osi-cbc", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21392projtoprocess="osi-cbc"
21393
21394# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21395# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21396# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21397# also, we setup the DATA variable
21398allproj=""
21399allpcfiles=""
21400allpcifiles=""
21401while test "x$projtoprocess" != x ; do
21402
21403  for proj in $projtoprocess ; do
21404    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21405    pcfile=""
21406    save_IFS="$IFS"
21407    IFS=":"
21408    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21409      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21410      if test -r "$dir/${proj}-uninstalled.pc" ; then
21411        pcfile="$dir/$proj-uninstalled.pc"
21412        if test -r "$dir/${proj}.pc" ; then
21413          pcifile="$dir/${proj}.pc"
21414        else
21415          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21416echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21417          pcifile=
21418        fi
21419        break
21420      fi
21421    done
21422    IFS="$save_IFS"
21423
21424    if test "x$pcfile" != x ; then
21425      # read dependencies from $pcfile and filter it
21426      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21427
21428      # add projrequires to the front of the list of projects that have to be processed next
21429      # at the same time, remove $proj from this list
21430      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21431
21432      # read DATA from $pcfile, if _DATA is still empty
21433      if test "x$CBC_DATA" = x ; then
21434        projdatadir=
21435        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21436        eval `sh -c "$pcfilemod"`
21437        CBC_DATA="$projdatadir"
21438      fi
21439
21440      allproj="$allproj $proj"
21441      allpcfiles="$pcfile:$allpcfiles"
21442
21443    else
21444      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21445echo "${ECHO_T}no, dependency $proj not available" >&6
21446      allproj=fail
21447      break 2
21448    fi
21449
21450    if test "x$pcifile" != x ; then
21451      allpcifiles="$pcifile:$allpcifiles"
21452
21453      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21454      if test "x$CBC_DATA_INSTALLED" = x ; then
21455        projdatadir=
21456        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21457        eval `sh -c "$pcifilemod"`
21458        if test "${CYGPATH_W}" != "echo"; then
21459          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21460        fi
21461        CBC_DATA_INSTALLED="$projdatadir"
21462      fi
21463
21464    fi
21465
21466    break
21467  done
21468
21469  # remove spaces on begin of $projtoprocess
21470  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21471
21472done
21473
21474if test "$allproj" != fail ; then
21475
21476  # now go through the list of .pc files and assemble compiler and linker flags
21477  # important is here to obey the reverse order that has been setup before,
21478  # since then libraries that are required by several others should be after these other libraries
21479  pcfilesprocessed=""
21480
21481  save_IFS="$IFS"
21482  IFS=":"
21483  for pcfile in $allpcfiles ; do
21484
21485    # if $pcfile has been processed already, skip this round
21486    if test "x$pcfilesprocessed" != x ; then
21487      for pcfiledone in $pcfilesprocessed ; do
21488        if test "$pcfiledone" = "$pcfile" ; then
21489          continue 2
21490        fi
21491      done
21492    fi
21493
21494    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21495    #   replace "Libs:" by "echo projlibs="
21496    #   replace "Cflags:" by "echo projcflags="
21497    #   remove every line starting with <some word>:
21498    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21499
21500    # set projcflags and projlibs variables by running $pcfilemod
21501    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21502    projcflags=
21503    projlibs=
21504    IFS="$save_IFS"
21505    eval `sh -c "$pcfilemod"`
21506    IFS=":"
21507
21508    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21509    if test "${CYGPATH_W}" != "echo"; then
21510      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21511    fi
21512    CBC_CFLAGS="$projcflags $CBC_CFLAGS"
21513
21514    # set LIBS variable
21515    CBC_LIBS="$projlibs $CBC_LIBS"
21516
21517    # remember that we have processed $pcfile
21518    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21519
21520  done
21521  IFS="$save_IFS"
21522
21523
21524  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21525  # important is here again to obey the reverse order that has been setup before,
21526  # since then libraries that are required by several others should be after these other libraries
21527  pcfilesprocessed=""
21528
21529  save_IFS="$IFS"
21530  IFS=":"
21531  for pcfile in $allpcifiles ; do
21532
21533    # if $pcfile has been processed already, skip this round
21534    if test "x$pcfilesprocessed" != x ; then
21535      for pcfiledone in $pcfilesprocessed ; do
21536        if test "$pcfiledone" = "$pcfile" ; then
21537          continue 2
21538        fi
21539      done
21540    fi
21541
21542    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21543    #   replace "Libs:" by "echo projlibs="
21544    #   replace "Cflags:" by "echo projcflags="
21545    #   remove every line starting with <some word>:
21546    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21547
21548    # set projcflags and projlibs variables by running $pcfilemod
21549    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21550    projcflags=
21551    projlibs=
21552    IFS="$save_IFS"
21553    eval `sh -c "$pcfilemod"`
21554    IFS=":"
21555
21556    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21557    if test "${CYGPATH_W}" != "echo"; then
21558      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21559    fi
21560    CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED"
21561
21562    # set LIBS variable
21563    CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED"
21564
21565    # remember that we have processed $pcfile
21566    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21567
21568  done
21569  IFS="$save_IFS"
21570
21571
21572  # finish up
21573  coin_has_cbc=yes
21574  echo "$as_me:$LINENO: result: yes" >&5
21575echo "${ECHO_T}yes" >&6
21576
21577cat >>confdefs.h <<\_ACEOF
21578#define COIN_HAS_CBC 1
21579_ACEOF
21580
21581
21582  # adjust linker flags for (i)cl compiler
21583  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21584  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21585  #    everything of the form "-lname" by "libname.lib", and
21586  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21587  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21588  then
21589    CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21590    CBC_LIBS_INSTALLED=`echo " $CBC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21591  fi
21592
21593  CBC_PCREQUIRES="osi-cbc"
21594
21595
21596fi
21597
21598
21599
21600if test $coin_has_cbc != notGiven &&
21601                test $coin_has_cbc != skipping; then
21602  COIN_HAS_CBC_TRUE=
21603  COIN_HAS_CBC_FALSE='#'
21604else
21605  COIN_HAS_CBC_TRUE='#'
21606  COIN_HAS_CBC_FALSE=
21607fi
21608
21609
21610
21611  fi
21612
21613else
21614  echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
21615echo "${ECHO_T}$coin_has_cbc" >&6
21616fi
21617
21618if test $coin_has_cbc != skipping &&
21619   test $coin_has_cbc != notGiven ; then
21620
21621cat >>confdefs.h <<\_ACEOF
21622#define COIN_HAS_CBC 1
21623_ACEOF
21624
21625
21626  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21627if test "${enable_interpackage_dependencies+set}" = set; then
21628  enableval="$enable_interpackage_dependencies"
21629
21630else
21631  enable_interpackage_dependencies=yes
21632fi;
21633
21634  if test $enable_interpackage_dependencies = yes ; then
21635     # construct dependencies variables from LIBS variables
21636     # we add an extra space in LIBS so we can substitute out everything starting with " -"
21637     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21638     # then remove everything of the form -xxx
21639     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21640     CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21641
21642  fi
21643
21644  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
21645    if test -n "$CBC_CFLAGS" ; then
21646      { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5
21647echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;}
21648    fi
21649    if test -n "$CBC_LIBS" ; then
21650      { echo "$as_me:$LINENO: Cbc LIBS   are $CBC_LIBS" >&5
21651echo "$as_me: Cbc LIBS   are $CBC_LIBS" >&6;}
21652    fi
21653    if test -n "$CBC_DEPENDENCIES" ; then
21654      { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5
21655echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;}
21656    fi
21657    if test -n "$CBC_DATA" ; then
21658      { echo "$as_me:$LINENO: Cbc DATA   is  $CBC_DATA" >&5
21659echo "$as_me: Cbc DATA   is  $CBC_DATA" >&6;}
21660    fi
21661    if test -n "$CBC_PCLIBS" ; then
21662      { echo "$as_me:$LINENO: Cbc PCLIBS are $CBC_PCLIBS" >&5
21663echo "$as_me: Cbc PCLIBS are $CBC_PCLIBS" >&6;}
21664    fi
21665    if test -n "$CBC_PCREQUIRES" ; then
21666      { echo "$as_me:$LINENO: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&5
21667echo "$as_me: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&6;}
21668    fi
21669
21670  fi
21671fi
21672
21673# Define the Makefile conditional
21674
21675
21676if test $coin_has_cbc != notGiven &&
21677                test $coin_has_cbc != skipping; then
21678  COIN_HAS_CBC_TRUE=
21679  COIN_HAS_CBC_FALSE='#'
21680else
21681  COIN_HAS_CBC_TRUE='#'
21682  COIN_HAS_CBC_FALSE=
21683fi
21684
21685
21686
21687
21688echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
21689echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
21690
21691coin_has_clp=notGiven
21692
21693# check if user wants to skip package in any case
21694if test x"$COIN_SKIP_PROJECTS" != x; then
21695  for dir in $COIN_SKIP_PROJECTS; do
21696    if test $dir = "Clp"; then
21697      coin_has_clp=skipping
21698    fi
21699  done
21700fi
21701
21702if test "$coin_has_clp" != skipping; then
21703
21704# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
21705if test "${with_clp+set}" = set; then
21706  withval="$with_clp"
21707  if test "$withval" = no ; then
21708       coin_has_clp=skipping
21709     fi
21710
21711fi;
21712fi
21713
21714CLP_LIBS=
21715CLP_CFLAGS=
21716CLP_DATA=
21717CLP_DEPENDENCIES=
21718CLP_PCLIBS=
21719CLP_PCREQUIRES=
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21730if test $coin_has_clp != skipping; then
21731
21732# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
21733if test "${with_clp_lib+set}" = set; then
21734  withval="$with_clp_lib"
21735  if test "$withval" = no ; then
21736       coin_has_clp=skipping
21737     else
21738       coin_has_clp=yes
21739       CLP_LIBS="$withval"
21740       CLP_PCLIBS="$withval"
21741
21742       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21743       if test -z "$PKG_CONFIG" ; then
21744         CLP_LIBS_INSTALLED="$withval"
21745
21746       fi
21747     fi
21748
21749fi;
21750fi
21751
21752if test $coin_has_clp != skipping; then
21753
21754# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
21755if test "${with_clp_incdir+set}" = set; then
21756  withval="$with_clp_incdir"
21757  if test "$withval" = no ; then
21758       coin_has_clp=skipping
21759     else
21760       coin_has_clp=yes
21761       CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
21762
21763       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21764       if test -z "$PKG_CONFIG" ; then
21765         CLP_CFLAGS_INSTALLED="$CLP_CFLAGS"
21766
21767       fi
21768     fi
21769
21770fi;
21771fi
21772
21773if test $coin_has_clp != skipping; then
21774
21775# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
21776if test "${with_clp_datadir+set}" = set; then
21777  withval="$with_clp_datadir"
21778  if test "$withval" = no ; then
21779       coin_has_clp=skipping
21780     else
21781       coin_has_clp=yes
21782       CLP_DATA="$withval"
21783       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21784       if test -z "$PKG_CONFIG" ; then
21785         CLP_DATA_INSTALLED="$withval"
21786       fi
21787     fi
21788
21789fi;
21790fi
21791
21792if test $coin_has_clp = notGiven; then
21793  if test -n "$PKG_CONFIG" ; then
21794    # set search path for pkg-config
21795    # need to export variable to be sure that the following pkg-config gets these values
21796    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21797    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21798    export PKG_CONFIG_PATH
21799
21800    # let pkg-config do it's magic
21801
21802
21803
21804if test -n "$PKG_CONFIG" ; then
21805  if $PKG_CONFIG --exists "osi-clp"; then
21806    CLP_VERSIONS=`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`
21807     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
21808    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21809	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21810	# but only do this if is not trivial
21811    if test "$CYGPATH_W" != "echo" ; then
21812      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21813      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21814    fi
21815    CLP_CFLAGS="$cflags"
21816    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
21817    CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
21818     coin_has_clp=yes
21819        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
21820echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
21821
21822        # adjust linker flags for (i)cl compiler
21823        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21824        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21825        then
21826          CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21827        fi
21828        CLP_PCREQUIRES="osi-clp"
21829
21830        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
21831
21832
21833
21834  else
21835    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
21836      coin_has_clp=notGiven
21837        echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
21838echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
21839
21840  fi
21841else
21842  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
21843echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
21844   { (exit 1); exit 1; }; }
21845fi
21846
21847
21848
21849
21850    # reset PKG_CONFIG_PATH variable
21851    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21852    export PKG_CONFIG_PATH
21853
21854  else
21855    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21856echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21857
21858echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
21859echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
21860
21861coin_has_clp=notGiven
21862CLP_LIBS=
21863CLP_LIBS_INSTALLED=
21864CLP_CFLAGS=
21865CLP_CFLAGS_INSTALLED=
21866CLP_DATA=
21867CLP_DATA_INSTALLED=
21868CLP_PCLIBS=
21869CLP_PCREQUIRES=
21870
21871# initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21872projtoprocess="osi-clp"
21873
21874# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21875# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21876# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21877# also, we setup the DATA variable
21878allproj=""
21879allpcfiles=""
21880allpcifiles=""
21881while test "x$projtoprocess" != x ; do
21882
21883  for proj in $projtoprocess ; do
21884    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21885    pcfile=""
21886    save_IFS="$IFS"
21887    IFS=":"
21888    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21889      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21890      if test -r "$dir/${proj}-uninstalled.pc" ; then
21891        pcfile="$dir/$proj-uninstalled.pc"
21892        if test -r "$dir/${proj}.pc" ; then
21893          pcifile="$dir/${proj}.pc"
21894        else
21895          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21896echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21897          pcifile=
21898        fi
21899        break
21900      fi
21901    done
21902    IFS="$save_IFS"
21903
21904    if test "x$pcfile" != x ; then
21905      # read dependencies from $pcfile and filter it
21906      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21907
21908      # add projrequires to the front of the list of projects that have to be processed next
21909      # at the same time, remove $proj from this list
21910      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21911
21912      # read DATA from $pcfile, if _DATA is still empty
21913      if test "x$CLP_DATA" = x ; then
21914        projdatadir=
21915        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21916        eval `sh -c "$pcfilemod"`
21917        CLP_DATA="$projdatadir"
21918      fi
21919
21920      allproj="$allproj $proj"
21921      allpcfiles="$pcfile:$allpcfiles"
21922
21923    else
21924      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21925echo "${ECHO_T}no, dependency $proj not available" >&6
21926      allproj=fail
21927      break 2
21928    fi
21929
21930    if test "x$pcifile" != x ; then
21931      allpcifiles="$pcifile:$allpcifiles"
21932
21933      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21934      if test "x$CLP_DATA_INSTALLED" = x ; then
21935        projdatadir=
21936        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21937        eval `sh -c "$pcifilemod"`
21938        if test "${CYGPATH_W}" != "echo"; then
21939          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21940        fi
21941        CLP_DATA_INSTALLED="$projdatadir"
21942      fi
21943
21944    fi
21945
21946    break
21947  done
21948
21949  # remove spaces on begin of $projtoprocess
21950  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21951
21952done
21953
21954if test "$allproj" != fail ; then
21955
21956  # now go through the list of .pc files and assemble compiler and linker flags
21957  # important is here to obey the reverse order that has been setup before,
21958  # since then libraries that are required by several others should be after these other libraries
21959  pcfilesprocessed=""
21960
21961  save_IFS="$IFS"
21962  IFS=":"
21963  for pcfile in $allpcfiles ; do
21964
21965    # if $pcfile has been processed already, skip this round
21966    if test "x$pcfilesprocessed" != x ; then
21967      for pcfiledone in $pcfilesprocessed ; do
21968        if test "$pcfiledone" = "$pcfile" ; then
21969          continue 2
21970        fi
21971      done
21972    fi
21973
21974    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21975    #   replace "Libs:" by "echo projlibs="
21976    #   replace "Cflags:" by "echo projcflags="
21977    #   remove every line starting with <some word>:
21978    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21979
21980    # set projcflags and projlibs variables by running $pcfilemod
21981    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21982    projcflags=
21983    projlibs=
21984    IFS="$save_IFS"
21985    eval `sh -c "$pcfilemod"`
21986    IFS=":"
21987
21988    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21989    if test "${CYGPATH_W}" != "echo"; then
21990      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21991    fi
21992    CLP_CFLAGS="$projcflags $CLP_CFLAGS"
21993
21994    # set LIBS variable
21995    CLP_LIBS="$projlibs $CLP_LIBS"
21996
21997    # remember that we have processed $pcfile
21998    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21999
22000  done
22001  IFS="$save_IFS"
22002
22003
22004  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22005  # important is here again to obey the reverse order that has been setup before,
22006  # since then libraries that are required by several others should be after these other libraries
22007  pcfilesprocessed=""
22008
22009  save_IFS="$IFS"
22010  IFS=":"
22011  for pcfile in $allpcifiles ; do
22012
22013    # if $pcfile has been processed already, skip this round
22014    if test "x$pcfilesprocessed" != x ; then
22015      for pcfiledone in $pcfilesprocessed ; do
22016        if test "$pcfiledone" = "$pcfile" ; then
22017          continue 2
22018        fi
22019      done
22020    fi
22021
22022    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22023    #   replace "Libs:" by "echo projlibs="
22024    #   replace "Cflags:" by "echo projcflags="
22025    #   remove every line starting with <some word>:
22026    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22027
22028    # set projcflags and projlibs variables by running $pcfilemod
22029    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22030    projcflags=
22031    projlibs=
22032    IFS="$save_IFS"
22033    eval `sh -c "$pcfilemod"`
22034    IFS=":"
22035
22036    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22037    if test "${CYGPATH_W}" != "echo"; then
22038      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22039    fi
22040    CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
22041
22042    # set LIBS variable
22043    CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
22044
22045    # remember that we have processed $pcfile
22046    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22047
22048  done
22049  IFS="$save_IFS"
22050
22051
22052  # finish up
22053  coin_has_clp=yes
22054  echo "$as_me:$LINENO: result: yes" >&5
22055echo "${ECHO_T}yes" >&6
22056
22057cat >>confdefs.h <<\_ACEOF
22058#define COIN_HAS_CLP 1
22059_ACEOF
22060
22061
22062  # adjust linker flags for (i)cl compiler
22063  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22064  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22065  #    everything of the form "-lname" by "libname.lib", and
22066  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22067  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22068  then
22069    CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22070    CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22071  fi
22072
22073  CLP_PCREQUIRES="osi-clp"
22074
22075
22076fi
22077
22078
22079
22080if test $coin_has_clp != notGiven &&
22081                test $coin_has_clp != skipping; then
22082  COIN_HAS_CLP_TRUE=
22083  COIN_HAS_CLP_FALSE='#'
22084else
22085  COIN_HAS_CLP_TRUE='#'
22086  COIN_HAS_CLP_FALSE=
22087fi
22088
22089
22090
22091  fi
22092
22093else
22094  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
22095echo "${ECHO_T}$coin_has_clp" >&6
22096fi
22097
22098if test $coin_has_clp != skipping &&
22099   test $coin_has_clp != notGiven ; then
22100
22101cat >>confdefs.h <<\_ACEOF
22102#define COIN_HAS_CLP 1
22103_ACEOF
22104
22105
22106  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22107if test "${enable_interpackage_dependencies+set}" = set; then
22108  enableval="$enable_interpackage_dependencies"
22109
22110else
22111  enable_interpackage_dependencies=yes
22112fi;
22113
22114  if test $enable_interpackage_dependencies = yes ; then
22115     # construct dependencies variables from LIBS variables
22116     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22117     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22118     # then remove everything of the form -xxx
22119     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22120     CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22121
22122  fi
22123
22124  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22125    if test -n "$CLP_CFLAGS" ; then
22126      { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
22127echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
22128    fi
22129    if test -n "$CLP_LIBS" ; then
22130      { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
22131echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
22132    fi
22133    if test -n "$CLP_DEPENDENCIES" ; then
22134      { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
22135echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
22136    fi
22137    if test -n "$CLP_DATA" ; then
22138      { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
22139echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
22140    fi
22141    if test -n "$CLP_PCLIBS" ; then
22142      { echo "$as_me:$LINENO: Clp PCLIBS are $CLP_PCLIBS" >&5
22143echo "$as_me: Clp PCLIBS are $CLP_PCLIBS" >&6;}
22144    fi
22145    if test -n "$CLP_PCREQUIRES" ; then
22146      { echo "$as_me:$LINENO: Clp PCREQUIRES are $CLP_PCREQUIRES" >&5
22147echo "$as_me: Clp PCREQUIRES are $CLP_PCREQUIRES" >&6;}
22148    fi
22149
22150  fi
22151fi
22152
22153# Define the Makefile conditional
22154
22155
22156if test $coin_has_clp != notGiven &&
22157                test $coin_has_clp != skipping; then
22158  COIN_HAS_CLP_TRUE=
22159  COIN_HAS_CLP_FALSE='#'
22160else
22161  COIN_HAS_CLP_TRUE='#'
22162  COIN_HAS_CLP_FALSE=
22163fi
22164
22165
22166
22167
22168##############################################################################
22169#                   VPATH links for example input files                      #
22170##############################################################################
22171
22172# In case this is a VPATH configuration we need to make sure that the
22173# input files for the examples are available in the VPATH directory.
22174
22175
22176echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
22177echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
22178if test `cd $srcdir; pwd` != `pwd`; then
22179  coin_vpath_config=yes;
22180else
22181  coin_vpath_config=no;
22182fi
22183echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
22184echo "${ECHO_T}$coin_vpath_config" >&6
22185
22186
22187
22188# Allow for newlines in the parameter
22189if test $coin_vpath_config = yes; then
22190  cvl_tmp="examples/fixed.dat"
22191  for file in $cvl_tmp ; do
22192    coin_vpath_link_files="$coin_vpath_link_files $file"
22193  done
22194fi
22195
22196
22197
22198# Allow for newlines in the parameter
22199if test $coin_vpath_config = yes; then
22200  cvl_tmp="examples/train.dat"
22201  for file in $cvl_tmp ; do
22202    coin_vpath_link_files="$coin_vpath_link_files $file"
22203  done
22204fi
22205
22206
22207
22208# Allow for newlines in the parameter
22209if test $coin_vpath_config = yes; then
22210  cvl_tmp="examples/aircraft.cpp"
22211  for file in $cvl_tmp ; do
22212    coin_vpath_link_files="$coin_vpath_link_files $file"
22213  done
22214fi
22215
22216
22217
22218# Allow for newlines in the parameter
22219if test $coin_vpath_config = yes; then
22220  cvl_tmp="examples/ampl.cpp"
22221  for file in $cvl_tmp ; do
22222    coin_vpath_link_files="$coin_vpath_link_files $file"
22223  done
22224fi
22225
22226
22227
22228# Allow for newlines in the parameter
22229if test $coin_vpath_config = yes; then
22230  cvl_tmp="examples/bid.cpp"
22231  for file in $cvl_tmp ; do
22232    coin_vpath_link_files="$coin_vpath_link_files $file"
22233  done
22234fi
22235
22236
22237
22238# Allow for newlines in the parameter
22239if test $coin_vpath_config = yes; then
22240  cvl_tmp="examples/CEPFlopCppModel.cpp"
22241  for file in $cvl_tmp ; do
22242    coin_vpath_link_files="$coin_vpath_link_files $file"
22243  done
22244fi
22245
22246
22247
22248# Allow for newlines in the parameter
22249if test $coin_vpath_config = yes; then
22250  cvl_tmp="examples/coex.cpp"
22251  for file in $cvl_tmp ; do
22252    coin_vpath_link_files="$coin_vpath_link_files $file"
22253  done
22254fi
22255
22256
22257
22258# Allow for newlines in the parameter
22259if test $coin_vpath_config = yes; then
22260  cvl_tmp="examples/coexx.cpp"
22261  for file in $cvl_tmp ; do
22262    coin_vpath_link_files="$coin_vpath_link_files $file"
22263  done
22264fi
22265
22266
22267
22268# Allow for newlines in the parameter
22269if test $coin_vpath_config = yes; then
22270  cvl_tmp="examples/cross.cpp"
22271  for file in $cvl_tmp ; do
22272    coin_vpath_link_files="$coin_vpath_link_files $file"
22273  done
22274fi
22275
22276
22277
22278# Allow for newlines in the parameter
22279if test $coin_vpath_config = yes; then
22280  cvl_tmp="examples/cuttingStock.cpp"
22281  for file in $cvl_tmp ; do
22282    coin_vpath_link_files="$coin_vpath_link_files $file"
22283  done
22284fi
22285
22286
22287
22288# Allow for newlines in the parameter
22289if test $coin_vpath_config = yes; then
22290  cvl_tmp="examples/gapmin.cpp"
22291  for file in $cvl_tmp ; do
22292    coin_vpath_link_files="$coin_vpath_link_files $file"
22293  done
22294fi
22295
22296
22297
22298# Allow for newlines in the parameter
22299if test $coin_vpath_config = yes; then
22300  cvl_tmp="examples/magic.cpp"
22301  for file in $cvl_tmp ; do
22302    coin_vpath_link_files="$coin_vpath_link_files $file"
22303  done
22304fi
22305
22306
22307
22308# Allow for newlines in the parameter
22309if test $coin_vpath_config = yes; then
22310  cvl_tmp="examples/mine.cpp"
22311  for file in $cvl_tmp ; do
22312    coin_vpath_link_files="$coin_vpath_link_files $file"
22313  done
22314fi
22315
22316
22317
22318# Allow for newlines in the parameter
22319if test $coin_vpath_config = yes; then
22320  cvl_tmp="examples/multiProduct.cpp"
22321  for file in $cvl_tmp ; do
22322    coin_vpath_link_files="$coin_vpath_link_files $file"
22323  done
22324fi
22325
22326
22327
22328# Allow for newlines in the parameter
22329if test $coin_vpath_config = yes; then
22330  cvl_tmp="examples/stampl2.cpp"
22331  for file in $cvl_tmp ; do
22332    coin_vpath_link_files="$coin_vpath_link_files $file"
22333  done
22334fi
22335
22336
22337
22338# Allow for newlines in the parameter
22339if test $coin_vpath_config = yes; then
22340  cvl_tmp="examples/stampl.cpp"
22341  for file in $cvl_tmp ; do
22342    coin_vpath_link_files="$coin_vpath_link_files $file"
22343  done
22344fi
22345
22346
22347
22348# Allow for newlines in the parameter
22349if test $coin_vpath_config = yes; then
22350  cvl_tmp="examples/stochbenders.cpp"
22351  for file in $cvl_tmp ; do
22352    coin_vpath_link_files="$coin_vpath_link_files $file"
22353  done
22354fi
22355
22356
22357
22358# Allow for newlines in the parameter
22359if test $coin_vpath_config = yes; then
22360  cvl_tmp="examples/sudoku.cpp"
22361  for file in $cvl_tmp ; do
22362    coin_vpath_link_files="$coin_vpath_link_files $file"
22363  done
22364fi
22365
22366
22367
22368# Allow for newlines in the parameter
22369if test $coin_vpath_config = yes; then
22370  cvl_tmp="examples/tap.cpp"
22371  for file in $cvl_tmp ; do
22372    coin_vpath_link_files="$coin_vpath_link_files $file"
22373  done
22374fi
22375
22376
22377
22378# Allow for newlines in the parameter
22379if test $coin_vpath_config = yes; then
22380  cvl_tmp="examples/train.cpp"
22381  for file in $cvl_tmp ; do
22382    coin_vpath_link_files="$coin_vpath_link_files $file"
22383  done
22384fi
22385
22386
22387
22388# Allow for newlines in the parameter
22389if test $coin_vpath_config = yes; then
22390  cvl_tmp="examples/transport.cpp"
22391  for file in $cvl_tmp ; do
22392    coin_vpath_link_files="$coin_vpath_link_files $file"
22393  done
22394fi
22395
22396
22397
22398# Allow for newlines in the parameter
22399if test $coin_vpath_config = yes; then
22400  cvl_tmp="examples/xbsl.cpp"
22401  for file in $cvl_tmp ; do
22402    coin_vpath_link_files="$coin_vpath_link_files $file"
22403  done
22404fi
22405
22406
22407
22408# Allow for newlines in the parameter
22409if test $coin_vpath_config = yes; then
22410  cvl_tmp="examples/runall"
22411  for file in $cvl_tmp ; do
22412    coin_vpath_link_files="$coin_vpath_link_files $file"
22413  done
22414fi
22415
22416
22417
22418# Allow for newlines in the parameter
22419if test $coin_vpath_config = yes; then
22420  cvl_tmp="examples/runone"
22421  for file in $cvl_tmp ; do
22422    coin_vpath_link_files="$coin_vpath_link_files $file"
22423  done
22424fi
22425
22426
22427#############################################################################
22428#                  Check for doxygen                                        #
22429#############################################################################
22430
22431
22432
22433{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
22434echo "$as_me: configuring doxygen documentation options" >&6;}
22435
22436# Check to see if doxygen is available.
22437
22438# Extract the first word of "doxygen", so it can be a program name with args.
22439set dummy doxygen; ac_word=$2
22440echo "$as_me:$LINENO: checking for $ac_word" >&5
22441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22442if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
22443  echo $ECHO_N "(cached) $ECHO_C" >&6
22444else
22445  if test -n "$coin_have_doxygen"; then
22446  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
22447else
22448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449for as_dir in $PATH
22450do
22451  IFS=$as_save_IFS
22452  test -z "$as_dir" && as_dir=.
22453  for ac_exec_ext in '' $ac_executable_extensions; do
22454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22455    ac_cv_prog_coin_have_doxygen="yes"
22456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22457    break 2
22458  fi
22459done
22460done
22461
22462  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
22463fi
22464fi
22465coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
22466if test -n "$coin_have_doxygen"; then
22467  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
22468echo "${ECHO_T}$coin_have_doxygen" >&6
22469else
22470  echo "$as_me:$LINENO: result: no" >&5
22471echo "${ECHO_T}no" >&6
22472fi
22473
22474# Extract the first word of "latex", so it can be a program name with args.
22475set dummy latex; ac_word=$2
22476echo "$as_me:$LINENO: checking for $ac_word" >&5
22477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22478if test "${ac_cv_prog_coin_have_latex+set}" = set; then
22479  echo $ECHO_N "(cached) $ECHO_C" >&6
22480else
22481  if test -n "$coin_have_latex"; then
22482  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
22483else
22484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22485for as_dir in $PATH
22486do
22487  IFS=$as_save_IFS
22488  test -z "$as_dir" && as_dir=.
22489  for ac_exec_ext in '' $ac_executable_extensions; do
22490  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22491    ac_cv_prog_coin_have_latex="yes"
22492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22493    break 2
22494  fi
22495done
22496done
22497
22498  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
22499fi
22500fi
22501coin_have_latex=$ac_cv_prog_coin_have_latex
22502if test -n "$coin_have_latex"; then
22503  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
22504echo "${ECHO_T}$coin_have_latex" >&6
22505else
22506  echo "$as_me:$LINENO: result: no" >&5
22507echo "${ECHO_T}no" >&6
22508fi
22509
22510
22511# Look for the dot tool from the graphviz package, unless the user has
22512# disabled it.
22513
22514
22515# Check whether --with-dot or --without-dot was given.
22516if test "${with_dot+set}" = set; then
22517  withval="$with_dot"
22518
22519else
22520  withval=yes
22521fi;
22522if test x"$withval" = xno ; then
22523  coin_doxy_usedot=NO
22524  echo "$as_me:$LINENO: checking for dot " >&5
22525echo $ECHO_N "checking for dot ... $ECHO_C" >&6
22526  echo "$as_me:$LINENO: result: disabled" >&5
22527echo "${ECHO_T}disabled" >&6
22528else
22529  # Extract the first word of "dot", so it can be a program name with args.
22530set dummy dot; ac_word=$2
22531echo "$as_me:$LINENO: checking for $ac_word" >&5
22532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22533if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
22534  echo $ECHO_N "(cached) $ECHO_C" >&6
22535else
22536  if test -n "$coin_doxy_usedot"; then
22537  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
22538else
22539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22540for as_dir in $PATH
22541do
22542  IFS=$as_save_IFS
22543  test -z "$as_dir" && as_dir=.
22544  for ac_exec_ext in '' $ac_executable_extensions; do
22545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22546    ac_cv_prog_coin_doxy_usedot="YES"
22547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22548    break 2
22549  fi
22550done
22551done
22552
22553  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
22554fi
22555fi
22556coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
22557if test -n "$coin_doxy_usedot"; then
22558  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
22559echo "${ECHO_T}$coin_doxy_usedot" >&6
22560else
22561  echo "$as_me:$LINENO: result: no" >&5
22562echo "${ECHO_T}no" >&6
22563fi
22564
22565fi
22566
22567# Generate a tag file name and a log file name
22568
22569coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
22570
22571coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
22572
22573
22574
22575if test $coin_have_doxygen = yes; then
22576  COIN_HAS_DOXYGEN_TRUE=
22577  COIN_HAS_DOXYGEN_FALSE='#'
22578else
22579  COIN_HAS_DOXYGEN_TRUE='#'
22580  COIN_HAS_DOXYGEN_FALSE=
22581fi
22582
22583
22584
22585if test $coin_have_latex = yes; then
22586  COIN_HAS_LATEX_TRUE=
22587  COIN_HAS_LATEX_FALSE='#'
22588else
22589  COIN_HAS_LATEX_TRUE='#'
22590  COIN_HAS_LATEX_FALSE=
22591fi
22592
22593
22594# Process the list of project names and massage them into possible doxygen
22595# doc'n directories. Prefer 1) classic external, source processed using
22596# a project-specific doxygen.conf, we use the tag file; 2) classic
22597# external, source processed using package doxygen.conf; 3) installed
22598# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
22599# configured, which we can't know unless this is the package base configure,
22600# since coin_subdirs is only set there. Hence it's sufficient to check for
22601# membership. If we use a tag file from a classic external, exclude the
22602# source from doxygen processing when doxygen runs in the base directory.
22603
22604coin_doxy_tagfiles=
22605coin_doxy_excludes=
22606tmp="CoinUtils Osi Clp Cgl Cbc"
22607for proj in $tmp ; do
22608  lc_proj=`echo $proj | tr [A-Z] [a-z]`
22609  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
22610echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
22611  doxytag=${lc_proj}_doxy.tag
22612  doxyfound=no
22613  # proj will be configured, hence doxydoc present in build tree
22614  doxysrcdir="${srcdir}/../${proj}"
22615  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
22616  if test -d "$doxysrcdir" ; then
22617    # with a doxydoc directory?
22618    doxydir="$doxysrcdir/doxydoc"
22619    # AC_MSG_NOTICE([Considering $doxydir (base)])
22620    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22621    if test -d "$doxydir" ; then
22622      # use tag file; don't process source
22623      doxydir="../${proj}/doxydoc"
22624      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
22625      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22626echo "${ECHO_T}$doxydir (tag)" >&6
22627      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
22628    else
22629      # will process the source -- nothing further to be done here
22630      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
22631echo "${ECHO_T}$doxysrcdir (src)" >&6
22632    fi
22633    doxyfound=yes
22634  fi
22635  # Not built, fall back to installed tag file
22636  if test $doxyfound = no ; then
22637    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
22638    # AC_MSG_NOTICE([Considering $doxydir (install)])
22639    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
22640    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
22641    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
22642echo "${ECHO_T}$doxydir (tag)" >&6
22643  fi
22644done
22645
22646
22647
22648
22649
22650##############################################################################
22651#                   Finishing up by writing all the output                   #
22652##############################################################################
22653
22654# Here list all the files that configure should create (except for the
22655# configuration header file)
22656                                                                                ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile test/Makefile unittest/Makefile flopcpp.pc flopcpp-uninstalled.pc doxydoc/doxygen.conf"
22657
22658
22659# Here put the location and name of the configuration header file
22660                    ac_config_headers="$ac_config_headers src/config.h src/config_flopcpp.h"
22661
22662
22663# Finally, we let configure write all the output...
22664
22665
22666
22667
22668echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
22669echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
22670coin_link_input_cmd="$LN_S"
22671case "$CC" in
22672  clang* ) ;;
22673  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22674    coin_link_input_cmd=cp ;;
22675esac
22676echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
22677echo "${ECHO_T}$coin_link_input_cmd" >&6
22678
22679
22680
22681if test x$coin_skip_ac_output != xyes; then
22682
22683  # library extension
22684
22685  case "$CC" in
22686    clang* )
22687         LIBEXT=a ;;
22688    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
22689         LIBEXT=lib ;;
22690      *) LIBEXT=a ;;
22691  esac
22692
22693  # Define VPATH_DISTCLEANFILES to be everything that needs to be
22694  # cleaned for distclean in a vpath configuration
22695
22696  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
22697
22698  # Take out subdirectories if their configuration concluded that they
22699  # don't need to be compiled
22700  if test x"$coin_ac_skip_subdirs" != x; then
22701    new_subdirs=
22702    for i in $subdirs; do
22703      skipme=no
22704      for j in $coin_ac_skip_subdirs; do
22705        if test $i = $j; then
22706          skipme=yes;
22707        fi
22708      done
22709      if test $skipme = no; then
22710        new_subdirs="$new_subdirs $i"
22711      fi
22712    done
22713    subdirs="$new_subdirs"
22714  fi
22715
22716  # need to come before AC_OUTPUT
22717  if test x$coin_projectdir != xyes; then
22718    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
22719    echo $coin_subdirs > coin_subdirs.txt
22720  else
22721    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
22722    ABSBUILDDIR="`pwd`"
22723
22724  fi
22725
22726  cat >confcache <<\_ACEOF
22727# This file is a shell script that caches the results of configure
22728# tests run on this system so they can be shared between configure
22729# scripts and configure runs, see configure's option --config-cache.
22730# It is not useful on other systems.  If it contains results you don't
22731# want to keep, you may remove or edit it.
22732#
22733# config.status only pays attention to the cache file if you give it
22734# the --recheck option to rerun configure.
22735#
22736# `ac_cv_env_foo' variables (set or unset) will be overridden when
22737# loading this file, other *unset* `ac_cv_foo' will be assigned the
22738# following values.
22739
22740_ACEOF
22741
22742# The following way of writing the cache mishandles newlines in values,
22743# but we know of no workaround that is simple, portable, and efficient.
22744# So, don't put newlines in cache variables' values.
22745# Ultrix sh set writes to stderr and can't be redirected directly,
22746# and sets the high bit in the cache file unless we assign to the vars.
22747{
22748  (set) 2>&1 |
22749    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22750    *ac_space=\ *)
22751      # `set' does not quote correctly, so add quotes (double-quote
22752      # substitution turns \\\\ into \\, and sed turns \\ into \).
22753      sed -n \
22754	"s/'/'\\\\''/g;
22755	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22756      ;;
22757    *)
22758      # `set' quotes correctly as required by POSIX, so do not add quotes.
22759      sed -n \
22760	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22761      ;;
22762    esac;
22763} |
22764  sed '
22765     t clear
22766     : clear
22767     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22768     t end
22769     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22770     : end' >>confcache
22771if diff $cache_file confcache >/dev/null 2>&1; then :; else
22772  if test -w $cache_file; then
22773    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22774    cat confcache >$cache_file
22775  else
22776    echo "not updating unwritable cache $cache_file"
22777  fi
22778fi
22779rm -f confcache
22780
22781test "x$prefix" = xNONE && prefix=$ac_default_prefix
22782# Let make expand exec_prefix.
22783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22784
22785# VPATH may cause trouble with some makes, so we remove $(srcdir),
22786# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22787# trailing colons and then remove the whole line if VPATH becomes empty
22788# (actually we leave an empty line to preserve line numbers).
22789if test "x$srcdir" = x.; then
22790  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22791s/:*\$(srcdir):*/:/;
22792s/:*\${srcdir}:*/:/;
22793s/:*@srcdir@:*/:/;
22794s/^\([^=]*=[	 ]*\):*/\1/;
22795s/:*$//;
22796s/^[^=]*=[	 ]*$//;
22797}'
22798fi
22799
22800DEFS=-DHAVE_CONFIG_H
22801
22802ac_libobjs=
22803ac_ltlibobjs=
22804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22805  # 1. Remove the extension, and $U if already installed.
22806  ac_i=`echo "$ac_i" |
22807	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22808  # 2. Add them.
22809  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22810  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22811done
22812LIBOBJS=$ac_libobjs
22813
22814LTLIBOBJS=$ac_ltlibobjs
22815
22816
22817if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
22818  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
22819Usually this means the macro was only invoked conditionally." >&5
22820echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
22821Usually this means the macro was only invoked conditionally." >&2;}
22822   { (exit 1); exit 1; }; }
22823fi
22824if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
22825  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
22826Usually this means the macro was only invoked conditionally." >&5
22827echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
22828Usually this means the macro was only invoked conditionally." >&2;}
22829   { (exit 1); exit 1; }; }
22830fi
22831if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
22832  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22833Usually this means the macro was only invoked conditionally." >&5
22834echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
22835Usually this means the macro was only invoked conditionally." >&2;}
22836   { (exit 1); exit 1; }; }
22837fi
22838if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22839  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22840Usually this means the macro was only invoked conditionally." >&5
22841echo "$as_me: error: conditional \"AMDEP\" was never defined.
22842Usually this means the macro was only invoked conditionally." >&2;}
22843   { (exit 1); exit 1; }; }
22844fi
22845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22846  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22847Usually this means the macro was only invoked conditionally." >&5
22848echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22849Usually this means the macro was only invoked conditionally." >&2;}
22850   { (exit 1); exit 1; }; }
22851fi
22852if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22853  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22854Usually this means the macro was only invoked conditionally." >&5
22855echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22856Usually this means the macro was only invoked conditionally." >&2;}
22857   { (exit 1); exit 1; }; }
22858fi
22859if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22860  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22861Usually this means the macro was only invoked conditionally." >&5
22862echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22863Usually this means the macro was only invoked conditionally." >&2;}
22864   { (exit 1); exit 1; }; }
22865fi
22866if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
22867  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
22868Usually this means the macro was only invoked conditionally." >&5
22869echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
22870Usually this means the macro was only invoked conditionally." >&2;}
22871   { (exit 1); exit 1; }; }
22872fi
22873if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
22874  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22875Usually this means the macro was only invoked conditionally." >&5
22876echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
22877Usually this means the macro was only invoked conditionally." >&2;}
22878   { (exit 1); exit 1; }; }
22879fi
22880if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
22881  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22882Usually this means the macro was only invoked conditionally." >&5
22883echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
22884Usually this means the macro was only invoked conditionally." >&2;}
22885   { (exit 1); exit 1; }; }
22886fi
22887if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
22888  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
22889Usually this means the macro was only invoked conditionally." >&5
22890echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
22891Usually this means the macro was only invoked conditionally." >&2;}
22892   { (exit 1); exit 1; }; }
22893fi
22894if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
22895  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
22896Usually this means the macro was only invoked conditionally." >&5
22897echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
22898Usually this means the macro was only invoked conditionally." >&2;}
22899   { (exit 1); exit 1; }; }
22900fi
22901if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
22902  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
22903Usually this means the macro was only invoked conditionally." >&5
22904echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
22905Usually this means the macro was only invoked conditionally." >&2;}
22906   { (exit 1); exit 1; }; }
22907fi
22908if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
22909  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
22910Usually this means the macro was only invoked conditionally." >&5
22911echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
22912Usually this means the macro was only invoked conditionally." >&2;}
22913   { (exit 1); exit 1; }; }
22914fi
22915if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
22916  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
22917Usually this means the macro was only invoked conditionally." >&5
22918echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
22919Usually this means the macro was only invoked conditionally." >&2;}
22920   { (exit 1); exit 1; }; }
22921fi
22922if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
22923  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
22924Usually this means the macro was only invoked conditionally." >&5
22925echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
22926Usually this means the macro was only invoked conditionally." >&2;}
22927   { (exit 1); exit 1; }; }
22928fi
22929if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
22930  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22931Usually this means the macro was only invoked conditionally." >&5
22932echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
22933Usually this means the macro was only invoked conditionally." >&2;}
22934   { (exit 1); exit 1; }; }
22935fi
22936if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
22937  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
22938Usually this means the macro was only invoked conditionally." >&5
22939echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
22940Usually this means the macro was only invoked conditionally." >&2;}
22941   { (exit 1); exit 1; }; }
22942fi
22943
22944: ${CONFIG_STATUS=./config.status}
22945ac_clean_files_save=$ac_clean_files
22946ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22947{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22948echo "$as_me: creating $CONFIG_STATUS" >&6;}
22949cat >$CONFIG_STATUS <<_ACEOF
22950#! $SHELL
22951# Generated by $as_me.
22952# Run this file to recreate the current configuration.
22953# Compiler output produced by configure, useful for debugging
22954# configure, is in config.log if it exists.
22955
22956debug=false
22957ac_cs_recheck=false
22958ac_cs_silent=false
22959SHELL=\${CONFIG_SHELL-$SHELL}
22960_ACEOF
22961
22962cat >>$CONFIG_STATUS <<\_ACEOF
22963## --------------------- ##
22964## M4sh Initialization.  ##
22965## --------------------- ##
22966
22967# Be Bourne compatible
22968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22969  emulate sh
22970  NULLCMD=:
22971  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22972  # is contrary to our usage.  Disable this feature.
22973  alias -g '${1+"$@"}'='"$@"'
22974elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22975  set -o posix
22976fi
22977DUALCASE=1; export DUALCASE # for MKS sh
22978
22979# Support unset when possible.
22980if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22981  as_unset=unset
22982else
22983  as_unset=false
22984fi
22985
22986
22987# Work around bugs in pre-3.0 UWIN ksh.
22988$as_unset ENV MAIL MAILPATH
22989PS1='$ '
22990PS2='> '
22991PS4='+ '
22992
22993# NLS nuisances.
22994for as_var in \
22995  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22996  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22997  LC_TELEPHONE LC_TIME
22998do
22999  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23000    eval $as_var=C; export $as_var
23001  else
23002    $as_unset $as_var
23003  fi
23004done
23005
23006# Required to use basename.
23007if expr a : '\(a\)' >/dev/null 2>&1; then
23008  as_expr=expr
23009else
23010  as_expr=false
23011fi
23012
23013if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23014  as_basename=basename
23015else
23016  as_basename=false
23017fi
23018
23019
23020# Name of the executable.
23021as_me=`$as_basename "$0" ||
23022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23023	 X"$0" : 'X\(//\)$' \| \
23024	 X"$0" : 'X\(/\)$' \| \
23025	 .     : '\(.\)' 2>/dev/null ||
23026echo X/"$0" |
23027    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23028  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23029  	  /^X\/\(\/\).*/{ s//\1/; q; }
23030  	  s/.*/./; q'`
23031
23032
23033# PATH needs CR, and LINENO needs CR and PATH.
23034# Avoid depending upon Character Ranges.
23035as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23036as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23037as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23038as_cr_digits='0123456789'
23039as_cr_alnum=$as_cr_Letters$as_cr_digits
23040
23041# The user is always right.
23042if test "${PATH_SEPARATOR+set}" != set; then
23043  echo "#! /bin/sh" >conf$$.sh
23044  echo  "exit 0"   >>conf$$.sh
23045  chmod +x conf$$.sh
23046  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23047    PATH_SEPARATOR=';'
23048  else
23049    PATH_SEPARATOR=:
23050  fi
23051  rm -f conf$$.sh
23052fi
23053
23054
23055  as_lineno_1=$LINENO
23056  as_lineno_2=$LINENO
23057  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23058  test "x$as_lineno_1" != "x$as_lineno_2" &&
23059  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23060  # Find who we are.  Look in the path if we contain no path at all
23061  # relative or not.
23062  case $0 in
23063    *[\\/]* ) as_myself=$0 ;;
23064    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23065for as_dir in $PATH
23066do
23067  IFS=$as_save_IFS
23068  test -z "$as_dir" && as_dir=.
23069  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23070done
23071
23072       ;;
23073  esac
23074  # We did not find ourselves, most probably we were run as `sh COMMAND'
23075  # in which case we are not to be found in the path.
23076  if test "x$as_myself" = x; then
23077    as_myself=$0
23078  fi
23079  if test ! -f "$as_myself"; then
23080    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23081echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23082   { (exit 1); exit 1; }; }
23083  fi
23084  case $CONFIG_SHELL in
23085  '')
23086    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23087for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23088do
23089  IFS=$as_save_IFS
23090  test -z "$as_dir" && as_dir=.
23091  for as_base in sh bash ksh sh5; do
23092	 case $as_dir in
23093	 /*)
23094	   if ("$as_dir/$as_base" -c '
23095  as_lineno_1=$LINENO
23096  as_lineno_2=$LINENO
23097  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23098  test "x$as_lineno_1" != "x$as_lineno_2" &&
23099  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23100	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23101	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23102	     CONFIG_SHELL=$as_dir/$as_base
23103	     export CONFIG_SHELL
23104	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23105	   fi;;
23106	 esac
23107       done
23108done
23109;;
23110  esac
23111
23112  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23113  # uniformly replaced by the line number.  The first 'sed' inserts a
23114  # line-number line before each line; the second 'sed' does the real
23115  # work.  The second script uses 'N' to pair each line-number line
23116  # with the numbered line, and appends trailing '-' during
23117  # substitution so that $LINENO is not a special case at line end.
23118  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23119  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23120  sed '=' <$as_myself |
23121    sed '
23122      N
23123      s,$,-,
23124      : loop
23125      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23126      t loop
23127      s,-$,,
23128      s,^['$as_cr_digits']*\n,,
23129    ' >$as_me.lineno &&
23130  chmod +x $as_me.lineno ||
23131    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23132echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23133   { (exit 1); exit 1; }; }
23134
23135  # Don't try to exec as it changes $[0], causing all sort of problems
23136  # (the dirname of $[0] is not the place where we might find the
23137  # original and so on.  Autoconf is especially sensible to this).
23138  . ./$as_me.lineno
23139  # Exit status is that of the last command.
23140  exit
23141}
23142
23143
23144case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23145  *c*,-n*) ECHO_N= ECHO_C='
23146' ECHO_T='	' ;;
23147  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23148  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23149esac
23150
23151if expr a : '\(a\)' >/dev/null 2>&1; then
23152  as_expr=expr
23153else
23154  as_expr=false
23155fi
23156
23157rm -f conf$$ conf$$.exe conf$$.file
23158echo >conf$$.file
23159if ln -s conf$$.file conf$$ 2>/dev/null; then
23160  # We could just check for DJGPP; but this test a) works b) is more generic
23161  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23162  if test -f conf$$.exe; then
23163    # Don't use ln at all; we don't have any links
23164    as_ln_s='cp -p'
23165  else
23166    as_ln_s='ln -s'
23167  fi
23168elif ln conf$$.file conf$$ 2>/dev/null; then
23169  as_ln_s=ln
23170else
23171  as_ln_s='cp -p'
23172fi
23173rm -f conf$$ conf$$.exe conf$$.file
23174
23175if mkdir -p . 2>/dev/null; then
23176  as_mkdir_p=:
23177else
23178  test -d ./-p && rmdir ./-p
23179  as_mkdir_p=false
23180fi
23181
23182as_executable_p="test -f"
23183
23184# Sed expression to map a string onto a valid CPP name.
23185as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23186
23187# Sed expression to map a string onto a valid variable name.
23188as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23189
23190
23191# IFS
23192# We need space, tab and new line, in precisely that order.
23193as_nl='
23194'
23195IFS=" 	$as_nl"
23196
23197# CDPATH.
23198$as_unset CDPATH
23199
23200exec 6>&1
23201
23202# Open the log real soon, to keep \$[0] and so on meaningful, and to
23203# report actual input values of CONFIG_FILES etc. instead of their
23204# values after options handling.  Logging --version etc. is OK.
23205exec 5>>config.log
23206{
23207  echo
23208  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23209## Running $as_me. ##
23210_ASBOX
23211} >&5
23212cat >&5 <<_CSEOF
23213
23214This file was extended by FlopCpp $as_me trunk, which was
23215generated by GNU Autoconf 2.59.  Invocation command line was
23216
23217  CONFIG_FILES    = $CONFIG_FILES
23218  CONFIG_HEADERS  = $CONFIG_HEADERS
23219  CONFIG_LINKS    = $CONFIG_LINKS
23220  CONFIG_COMMANDS = $CONFIG_COMMANDS
23221  $ $0 $@
23222
23223_CSEOF
23224echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23225echo >&5
23226_ACEOF
23227
23228# Files that config.status was made for.
23229if test -n "$ac_config_files"; then
23230  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23231fi
23232
23233if test -n "$ac_config_headers"; then
23234  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23235fi
23236
23237if test -n "$ac_config_links"; then
23238  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23239fi
23240
23241if test -n "$ac_config_commands"; then
23242  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23243fi
23244
23245cat >>$CONFIG_STATUS <<\_ACEOF
23246
23247ac_cs_usage="\
23248\`$as_me' instantiates files from templates according to the
23249current configuration.
23250
23251Usage: $0 [OPTIONS] [FILE]...
23252
23253  -h, --help       print this help, then exit
23254  -V, --version    print version number, then exit
23255  -q, --quiet      do not print progress messages
23256  -d, --debug      don't remove temporary files
23257      --recheck    update $as_me by reconfiguring in the same conditions
23258  --file=FILE[:TEMPLATE]
23259		   instantiate the configuration file FILE
23260  --header=FILE[:TEMPLATE]
23261		   instantiate the configuration header FILE
23262
23263Configuration files:
23264$config_files
23265
23266Configuration headers:
23267$config_headers
23268
23269Configuration commands:
23270$config_commands
23271
23272Report bugs to <bug-autoconf@gnu.org>."
23273_ACEOF
23274
23275cat >>$CONFIG_STATUS <<_ACEOF
23276ac_cs_version="\\
23277FlopCpp config.status trunk
23278configured by $0, generated by GNU Autoconf 2.59,
23279  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23280
23281Copyright (C) 2003 Free Software Foundation, Inc.
23282This config.status script is free software; the Free Software Foundation
23283gives unlimited permission to copy, distribute and modify it."
23284srcdir=$srcdir
23285INSTALL="$INSTALL"
23286_ACEOF
23287
23288cat >>$CONFIG_STATUS <<\_ACEOF
23289# If no file are specified by the user, then we need to provide default
23290# value.  By we need to know if files were specified by the user.
23291ac_need_defaults=:
23292while test $# != 0
23293do
23294  case $1 in
23295  --*=*)
23296    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23297    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23298    ac_shift=:
23299    ;;
23300  -*)
23301    ac_option=$1
23302    ac_optarg=$2
23303    ac_shift=shift
23304    ;;
23305  *) # This is not an option, so the user has probably given explicit
23306     # arguments.
23307     ac_option=$1
23308     ac_need_defaults=false;;
23309  esac
23310
23311  case $ac_option in
23312  # Handling of the options.
23313_ACEOF
23314cat >>$CONFIG_STATUS <<\_ACEOF
23315  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23316    ac_cs_recheck=: ;;
23317  --version | --vers* | -V )
23318    echo "$ac_cs_version"; exit 0 ;;
23319  --he | --h)
23320    # Conflict between --help and --header
23321    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23322Try \`$0 --help' for more information." >&5
23323echo "$as_me: error: ambiguous option: $1
23324Try \`$0 --help' for more information." >&2;}
23325   { (exit 1); exit 1; }; };;
23326  --help | --hel | -h )
23327    echo "$ac_cs_usage"; exit 0 ;;
23328  --debug | --d* | -d )
23329    debug=: ;;
23330  --file | --fil | --fi | --f )
23331    $ac_shift
23332    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23333    ac_need_defaults=false;;
23334  --header | --heade | --head | --hea )
23335    $ac_shift
23336    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23337    ac_need_defaults=false;;
23338  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23339  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23340    ac_cs_silent=: ;;
23341
23342  # This is an error.
23343  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23344Try \`$0 --help' for more information." >&5
23345echo "$as_me: error: unrecognized option: $1
23346Try \`$0 --help' for more information." >&2;}
23347   { (exit 1); exit 1; }; } ;;
23348
23349  *) ac_config_targets="$ac_config_targets $1" ;;
23350
23351  esac
23352  shift
23353done
23354
23355ac_configure_extra_args=
23356
23357if $ac_cs_silent; then
23358  exec 6>/dev/null
23359  ac_configure_extra_args="$ac_configure_extra_args --silent"
23360fi
23361
23362_ACEOF
23363cat >>$CONFIG_STATUS <<_ACEOF
23364if \$ac_cs_recheck; then
23365  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23366  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23367fi
23368
23369_ACEOF
23370
23371cat >>$CONFIG_STATUS <<_ACEOF
23372#
23373# INIT-COMMANDS section.
23374#
23375
23376AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23377
23378_ACEOF
23379
23380
23381
23382cat >>$CONFIG_STATUS <<\_ACEOF
23383for ac_config_target in $ac_config_targets
23384do
23385  case "$ac_config_target" in
23386  # Handling of arguments.
23387  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23388  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23389  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23390  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23391  "unittest/Makefile" ) CONFIG_FILES="$CONFIG_FILES unittest/Makefile" ;;
23392  "flopcpp.pc" ) CONFIG_FILES="$CONFIG_FILES flopcpp.pc" ;;
23393  "flopcpp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES flopcpp-uninstalled.pc" ;;
23394  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
23395  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23396  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23397  "src/config_flopcpp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_flopcpp.h" ;;
23398  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23399echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23400   { (exit 1); exit 1; }; };;
23401  esac
23402done
23403
23404# If the user did not use the arguments to specify the items to instantiate,
23405# then the envvar interface is used.  Set only those that are not.
23406# We use the long form for the default assignment because of an extremely
23407# bizarre bug on SunOS 4.1.3.
23408if $ac_need_defaults; then
23409  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23410  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23411  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23412fi
23413
23414# Have a temporary directory for convenience.  Make it in the build tree
23415# simply because there is no reason to put it here, and in addition,
23416# creating and moving files from /tmp can sometimes cause problems.
23417# Create a temporary directory, and hook for its removal unless debugging.
23418$debug ||
23419{
23420  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23421  trap '{ (exit 1); exit 1; }' 1 2 13 15
23422}
23423
23424# Create a (secure) tmp directory for tmp files.
23425
23426{
23427  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23428  test -n "$tmp" && test -d "$tmp"
23429}  ||
23430{
23431  tmp=./confstat$$-$RANDOM
23432  (umask 077 && mkdir $tmp)
23433} ||
23434{
23435   echo "$me: cannot create a temporary directory in ." >&2
23436   { (exit 1); exit 1; }
23437}
23438
23439_ACEOF
23440
23441cat >>$CONFIG_STATUS <<_ACEOF
23442
23443#
23444# CONFIG_FILES section.
23445#
23446
23447# No need to generate the scripts if there are no CONFIG_FILES.
23448# This happens for instance when ./config.status config.h
23449if test -n "\$CONFIG_FILES"; then
23450  # Protect against being on the right side of a sed subst in config.status.
23451  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23452   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23453s,@SHELL@,$SHELL,;t t
23454s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23455s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23456s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23457s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23458s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23459s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23460s,@exec_prefix@,$exec_prefix,;t t
23461s,@prefix@,$prefix,;t t
23462s,@program_transform_name@,$program_transform_name,;t t
23463s,@bindir@,$bindir,;t t
23464s,@sbindir@,$sbindir,;t t
23465s,@libexecdir@,$libexecdir,;t t
23466s,@datadir@,$datadir,;t t
23467s,@sysconfdir@,$sysconfdir,;t t
23468s,@sharedstatedir@,$sharedstatedir,;t t
23469s,@localstatedir@,$localstatedir,;t t
23470s,@libdir@,$libdir,;t t
23471s,@includedir@,$includedir,;t t
23472s,@oldincludedir@,$oldincludedir,;t t
23473s,@infodir@,$infodir,;t t
23474s,@mandir@,$mandir,;t t
23475s,@build_alias@,$build_alias,;t t
23476s,@host_alias@,$host_alias,;t t
23477s,@target_alias@,$target_alias,;t t
23478s,@DEFS@,$DEFS,;t t
23479s,@ECHO_C@,$ECHO_C,;t t
23480s,@ECHO_N@,$ECHO_N,;t t
23481s,@ECHO_T@,$ECHO_T,;t t
23482s,@LIBS@,$LIBS,;t t
23483s,@build@,$build,;t t
23484s,@build_cpu@,$build_cpu,;t t
23485s,@build_vendor@,$build_vendor,;t t
23486s,@build_os@,$build_os,;t t
23487s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
23488s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
23489s,@have_svnversion@,$have_svnversion,;t t
23490s,@FLOPCPP_SVN_REV@,$FLOPCPP_SVN_REV,;t t
23491s,@CDEFS@,$CDEFS,;t t
23492s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
23493s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
23494s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
23495s,@sol_cc_compiler@,$sol_cc_compiler,;t t
23496s,@CC@,$CC,;t t
23497s,@CFLAGS@,$CFLAGS,;t t
23498s,@LDFLAGS@,$LDFLAGS,;t t
23499s,@CPPFLAGS@,$CPPFLAGS,;t t
23500s,@ac_ct_CC@,$ac_ct_CC,;t t
23501s,@EXEEXT@,$EXEEXT,;t t
23502s,@OBJEXT@,$OBJEXT,;t t
23503s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
23504s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
23505s,@MPICC@,$MPICC,;t t
23506s,@CXXDEFS@,$CXXDEFS,;t t
23507s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
23508s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
23509s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
23510s,@CXX@,$CXX,;t t
23511s,@CXXFLAGS@,$CXXFLAGS,;t t
23512s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23513s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
23514s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
23515s,@MPICXX@,$MPICXX,;t t
23516s,@EGREP@,$EGREP,;t t
23517s,@LN_S@,$LN_S,;t t
23518s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23519s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23520s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23521s,@CYGPATH_W@,$CYGPATH_W,;t t
23522s,@PACKAGE@,$PACKAGE,;t t
23523s,@VERSION@,$VERSION,;t t
23524s,@ACLOCAL@,$ACLOCAL,;t t
23525s,@AUTOCONF@,$AUTOCONF,;t t
23526s,@AUTOMAKE@,$AUTOMAKE,;t t
23527s,@AUTOHEADER@,$AUTOHEADER,;t t
23528s,@MAKEINFO@,$MAKEINFO,;t t
23529s,@install_sh@,$install_sh,;t t
23530s,@STRIP@,$STRIP,;t t
23531s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23532s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23533s,@mkdir_p@,$mkdir_p,;t t
23534s,@AWK@,$AWK,;t t
23535s,@SET_MAKE@,$SET_MAKE,;t t
23536s,@am__leading_dot@,$am__leading_dot,;t t
23537s,@AMTAR@,$AMTAR,;t t
23538s,@am__tar@,$am__tar,;t t
23539s,@am__untar@,$am__untar,;t t
23540s,@DEPDIR@,$DEPDIR,;t t
23541s,@am__include@,$am__include,;t t
23542s,@am__quote@,$am__quote,;t t
23543s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23544s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23545s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23546s,@CCDEPMODE@,$CCDEPMODE,;t t
23547s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23548s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23549s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23550s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23551s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23552s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23553s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23554s,@MAINT@,$MAINT,;t t
23555s,@LIBTOOLM4@,$LIBTOOLM4,;t t
23556s,@have_autoconf@,$have_autoconf,;t t
23557s,@have_automake@,$have_automake,;t t
23558s,@have_svn@,$have_svn,;t t
23559s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
23560s,@AUX_DIR@,$AUX_DIR,;t t
23561s,@abs_source_dir@,$abs_source_dir,;t t
23562s,@abs_lib_dir@,$abs_lib_dir,;t t
23563s,@abs_include_dir@,$abs_include_dir,;t t
23564s,@abs_bin_dir@,$abs_bin_dir,;t t
23565s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
23566s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
23567s,@host@,$host,;t t
23568s,@host_cpu@,$host_cpu,;t t
23569s,@host_vendor@,$host_vendor,;t t
23570s,@host_os@,$host_os,;t t
23571s,@ECHO@,$ECHO,;t t
23572s,@AR@,$AR,;t t
23573s,@ac_ct_AR@,$ac_ct_AR,;t t
23574s,@RANLIB@,$RANLIB,;t t
23575s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23576s,@CPP@,$CPP,;t t
23577s,@CXXCPP@,$CXXCPP,;t t
23578s,@F77@,$F77,;t t
23579s,@FFLAGS@,$FFLAGS,;t t
23580s,@ac_ct_F77@,$ac_ct_F77,;t t
23581s,@LIBTOOL@,$LIBTOOL,;t t
23582s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
23583s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
23584s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
23585s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
23586s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
23587s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
23588s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23589s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
23590s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
23591s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
23592s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
23593s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
23594s,@OSI_LIBS@,$OSI_LIBS,;t t
23595s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t
23596s,@OSI_DATA@,$OSI_DATA,;t t
23597s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t
23598s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t
23599s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t
23600s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t
23601s,@FLOPCPP_CFLAGS@,$FLOPCPP_CFLAGS,;t t
23602s,@FLOPCPP_LIBS@,$FLOPCPP_LIBS,;t t
23603s,@FLOPCPP_PCLIBS@,$FLOPCPP_PCLIBS,;t t
23604s,@FLOPCPP_PCREQUIRES@,$FLOPCPP_PCREQUIRES,;t t
23605s,@FLOPCPP_DEPENDENCIES@,$FLOPCPP_DEPENDENCIES,;t t
23606s,@FLOPCPP_CFLAGS_INSTALLED@,$FLOPCPP_CFLAGS_INSTALLED,;t t
23607s,@FLOPCPP_LIBS_INSTALLED@,$FLOPCPP_LIBS_INSTALLED,;t t
23608s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
23609s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
23610s,@CBC_LIBS@,$CBC_LIBS,;t t
23611s,@CBC_CFLAGS@,$CBC_CFLAGS,;t t
23612s,@CBC_DATA@,$CBC_DATA,;t t
23613s,@CBC_DEPENDENCIES@,$CBC_DEPENDENCIES,;t t
23614s,@CBC_LIBS_INSTALLED@,$CBC_LIBS_INSTALLED,;t t
23615s,@CBC_CFLAGS_INSTALLED@,$CBC_CFLAGS_INSTALLED,;t t
23616s,@CBC_DATA_INSTALLED@,$CBC_DATA_INSTALLED,;t t
23617s,@COIN_HAS_CBC_TRUE@,$COIN_HAS_CBC_TRUE,;t t
23618s,@COIN_HAS_CBC_FALSE@,$COIN_HAS_CBC_FALSE,;t t
23619s,@CLP_LIBS@,$CLP_LIBS,;t t
23620s,@CLP_CFLAGS@,$CLP_CFLAGS,;t t
23621s,@CLP_DATA@,$CLP_DATA,;t t
23622s,@CLP_DEPENDENCIES@,$CLP_DEPENDENCIES,;t t
23623s,@CLP_LIBS_INSTALLED@,$CLP_LIBS_INSTALLED,;t t
23624s,@CLP_CFLAGS_INSTALLED@,$CLP_CFLAGS_INSTALLED,;t t
23625s,@CLP_DATA_INSTALLED@,$CLP_DATA_INSTALLED,;t t
23626s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
23627s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
23628s,@coin_have_doxygen@,$coin_have_doxygen,;t t
23629s,@coin_have_latex@,$coin_have_latex,;t t
23630s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
23631s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
23632s,@coin_doxy_logname@,$coin_doxy_logname,;t t
23633s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
23634s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
23635s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
23636s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
23637s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
23638s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
23639s,@LIBEXT@,$LIBEXT,;t t
23640s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
23641s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
23642s,@LIBOBJS@,$LIBOBJS,;t t
23643s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23644CEOF
23645
23646_ACEOF
23647
23648  cat >>$CONFIG_STATUS <<\_ACEOF
23649  # Split the substitutions into bite-sized pieces for seds with
23650  # small command number limits, like on Digital OSF/1 and HP-UX.
23651  ac_max_sed_lines=48
23652  ac_sed_frag=1 # Number of current file.
23653  ac_beg=1 # First line for current file.
23654  ac_end=$ac_max_sed_lines # Line after last line for current file.
23655  ac_more_lines=:
23656  ac_sed_cmds=
23657  while $ac_more_lines; do
23658    if test $ac_beg -gt 1; then
23659      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23660    else
23661      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23662    fi
23663    if test ! -s $tmp/subs.frag; then
23664      ac_more_lines=false
23665    else
23666      # The purpose of the label and of the branching condition is to
23667      # speed up the sed processing (if there are no `@' at all, there
23668      # is no need to browse any of the substitutions).
23669      # These are the two extra sed commands mentioned above.
23670      (echo ':t
23671  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23672      if test -z "$ac_sed_cmds"; then
23673	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23674      else
23675	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23676      fi
23677      ac_sed_frag=`expr $ac_sed_frag + 1`
23678      ac_beg=$ac_end
23679      ac_end=`expr $ac_end + $ac_max_sed_lines`
23680    fi
23681  done
23682  if test -z "$ac_sed_cmds"; then
23683    ac_sed_cmds=cat
23684  fi
23685fi # test -n "$CONFIG_FILES"
23686
23687_ACEOF
23688cat >>$CONFIG_STATUS <<\_ACEOF
23689for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23690  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23691  case $ac_file in
23692  - | *:- | *:-:* ) # input from stdin
23693	cat >$tmp/stdin
23694	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23695	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23696  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23697	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23698  * )   ac_file_in=$ac_file.in ;;
23699  esac
23700
23701  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23702  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23703$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23704	 X"$ac_file" : 'X\(//\)[^/]' \| \
23705	 X"$ac_file" : 'X\(//\)$' \| \
23706	 X"$ac_file" : 'X\(/\)' \| \
23707	 .     : '\(.\)' 2>/dev/null ||
23708echo X"$ac_file" |
23709    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23710  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23711  	  /^X\(\/\/\)$/{ s//\1/; q; }
23712  	  /^X\(\/\).*/{ s//\1/; q; }
23713  	  s/.*/./; q'`
23714  { if $as_mkdir_p; then
23715    mkdir -p "$ac_dir"
23716  else
23717    as_dir="$ac_dir"
23718    as_dirs=
23719    while test ! -d "$as_dir"; do
23720      as_dirs="$as_dir $as_dirs"
23721      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23722$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723	 X"$as_dir" : 'X\(//\)[^/]' \| \
23724	 X"$as_dir" : 'X\(//\)$' \| \
23725	 X"$as_dir" : 'X\(/\)' \| \
23726	 .     : '\(.\)' 2>/dev/null ||
23727echo X"$as_dir" |
23728    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730  	  /^X\(\/\/\)$/{ s//\1/; q; }
23731  	  /^X\(\/\).*/{ s//\1/; q; }
23732  	  s/.*/./; q'`
23733    done
23734    test ! -n "$as_dirs" || mkdir $as_dirs
23735  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23736echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23737   { (exit 1); exit 1; }; }; }
23738
23739  ac_builddir=.
23740
23741if test "$ac_dir" != .; then
23742  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23743  # A "../" for each directory in $ac_dir_suffix.
23744  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23745else
23746  ac_dir_suffix= ac_top_builddir=
23747fi
23748
23749case $srcdir in
23750  .)  # No --srcdir option.  We are building in place.
23751    ac_srcdir=.
23752    if test -z "$ac_top_builddir"; then
23753       ac_top_srcdir=.
23754    else
23755       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23756    fi ;;
23757  [\\/]* | ?:[\\/]* )  # Absolute path.
23758    ac_srcdir=$srcdir$ac_dir_suffix;
23759    ac_top_srcdir=$srcdir ;;
23760  *) # Relative path.
23761    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23762    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23763esac
23764
23765# Do not use `cd foo && pwd` to compute absolute paths, because
23766# the directories may not exist.
23767case `pwd` in
23768.) ac_abs_builddir="$ac_dir";;
23769*)
23770  case "$ac_dir" in
23771  .) ac_abs_builddir=`pwd`;;
23772  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23773  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23774  esac;;
23775esac
23776case $ac_abs_builddir in
23777.) ac_abs_top_builddir=${ac_top_builddir}.;;
23778*)
23779  case ${ac_top_builddir}. in
23780  .) ac_abs_top_builddir=$ac_abs_builddir;;
23781  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23782  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23783  esac;;
23784esac
23785case $ac_abs_builddir in
23786.) ac_abs_srcdir=$ac_srcdir;;
23787*)
23788  case $ac_srcdir in
23789  .) ac_abs_srcdir=$ac_abs_builddir;;
23790  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23791  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23792  esac;;
23793esac
23794case $ac_abs_builddir in
23795.) ac_abs_top_srcdir=$ac_top_srcdir;;
23796*)
23797  case $ac_top_srcdir in
23798  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23799  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23800  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23801  esac;;
23802esac
23803
23804
23805  case $INSTALL in
23806  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23807  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23808  esac
23809
23810  if test x"$ac_file" != x-; then
23811    { echo "$as_me:$LINENO: creating $ac_file" >&5
23812echo "$as_me: creating $ac_file" >&6;}
23813    rm -f "$ac_file"
23814  fi
23815  # Let's still pretend it is `configure' which instantiates (i.e., don't
23816  # use $as_me), people would be surprised to read:
23817  #    /* config.h.  Generated by config.status.  */
23818  if test x"$ac_file" = x-; then
23819    configure_input=
23820  else
23821    configure_input="$ac_file.  "
23822  fi
23823  configure_input=$configure_input"Generated from `echo $ac_file_in |
23824				     sed 's,.*/,,'` by configure."
23825
23826  # First look for the input files in the build tree, otherwise in the
23827  # src tree.
23828  ac_file_inputs=`IFS=:
23829    for f in $ac_file_in; do
23830      case $f in
23831      -) echo $tmp/stdin ;;
23832      [\\/$]*)
23833	 # Absolute (can't be DOS-style, as IFS=:)
23834	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23835echo "$as_me: error: cannot find input file: $f" >&2;}
23836   { (exit 1); exit 1; }; }
23837	 echo "$f";;
23838      *) # Relative
23839	 if test -f "$f"; then
23840	   # Build tree
23841	   echo "$f"
23842	 elif test -f "$srcdir/$f"; then
23843	   # Source tree
23844	   echo "$srcdir/$f"
23845	 else
23846	   # /dev/null tree
23847	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23848echo "$as_me: error: cannot find input file: $f" >&2;}
23849   { (exit 1); exit 1; }; }
23850	 fi;;
23851      esac
23852    done` || { (exit 1); exit 1; }
23853_ACEOF
23854cat >>$CONFIG_STATUS <<_ACEOF
23855  sed "$ac_vpsub
23856$extrasub
23857_ACEOF
23858cat >>$CONFIG_STATUS <<\_ACEOF
23859:t
23860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23861s,@configure_input@,$configure_input,;t t
23862s,@srcdir@,$ac_srcdir,;t t
23863s,@abs_srcdir@,$ac_abs_srcdir,;t t
23864s,@top_srcdir@,$ac_top_srcdir,;t t
23865s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23866s,@builddir@,$ac_builddir,;t t
23867s,@abs_builddir@,$ac_abs_builddir,;t t
23868s,@top_builddir@,$ac_top_builddir,;t t
23869s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23870s,@INSTALL@,$ac_INSTALL,;t t
23871" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23872  rm -f $tmp/stdin
23873  if test x"$ac_file" != x-; then
23874    mv $tmp/out $ac_file
23875  else
23876    cat $tmp/out
23877    rm -f $tmp/out
23878  fi
23879
23880done
23881_ACEOF
23882cat >>$CONFIG_STATUS <<\_ACEOF
23883
23884#
23885# CONFIG_HEADER section.
23886#
23887
23888# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23889# NAME is the cpp macro being defined and VALUE is the value it is being given.
23890#
23891# ac_d sets the value in "#define NAME VALUE" lines.
23892ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23893ac_dB='[	 ].*$,\1#\2'
23894ac_dC=' '
23895ac_dD=',;t'
23896# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23897ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23898ac_uB='$,\1#\2define\3'
23899ac_uC=' '
23900ac_uD=',;t'
23901
23902for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23903  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23904  case $ac_file in
23905  - | *:- | *:-:* ) # input from stdin
23906	cat >$tmp/stdin
23907	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23908	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23909  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23910	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23911  * )   ac_file_in=$ac_file.in ;;
23912  esac
23913
23914  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23915echo "$as_me: creating $ac_file" >&6;}
23916
23917  # First look for the input files in the build tree, otherwise in the
23918  # src tree.
23919  ac_file_inputs=`IFS=:
23920    for f in $ac_file_in; do
23921      case $f in
23922      -) echo $tmp/stdin ;;
23923      [\\/$]*)
23924	 # Absolute (can't be DOS-style, as IFS=:)
23925	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23926echo "$as_me: error: cannot find input file: $f" >&2;}
23927   { (exit 1); exit 1; }; }
23928	 # Do quote $f, to prevent DOS paths from being IFS'd.
23929	 echo "$f";;
23930      *) # Relative
23931	 if test -f "$f"; then
23932	   # Build tree
23933	   echo "$f"
23934	 elif test -f "$srcdir/$f"; then
23935	   # Source tree
23936	   echo "$srcdir/$f"
23937	 else
23938	   # /dev/null tree
23939	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23940echo "$as_me: error: cannot find input file: $f" >&2;}
23941   { (exit 1); exit 1; }; }
23942	 fi;;
23943      esac
23944    done` || { (exit 1); exit 1; }
23945  # Remove the trailing spaces.
23946  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23947
23948_ACEOF
23949
23950# Transform confdefs.h into two sed scripts, `conftest.defines' and
23951# `conftest.undefs', that substitutes the proper values into
23952# config.h.in to produce config.h.  The first handles `#define'
23953# templates, and the second `#undef' templates.
23954# And first: Protect against being on the right side of a sed subst in
23955# config.status.  Protect against being in an unquoted here document
23956# in config.status.
23957rm -f conftest.defines conftest.undefs
23958# Using a here document instead of a string reduces the quoting nightmare.
23959# Putting comments in sed scripts is not portable.
23960#
23961# `end' is used to avoid that the second main sed command (meant for
23962# 0-ary CPP macros) applies to n-ary macro definitions.
23963# See the Autoconf documentation for `clear'.
23964cat >confdef2sed.sed <<\_ACEOF
23965s/[\\&,]/\\&/g
23966s,[\\$`],\\&,g
23967t clear
23968: clear
23969s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23970t end
23971s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23972: end
23973_ACEOF
23974# If some macros were called several times there might be several times
23975# the same #defines, which is useless.  Nevertheless, we may not want to
23976# sort them, since we want the *last* AC-DEFINE to be honored.
23977uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23978sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23979rm -f confdef2sed.sed
23980
23981# This sed command replaces #undef with comments.  This is necessary, for
23982# example, in the case of _POSIX_SOURCE, which is predefined and required
23983# on some systems where configure will not decide to define it.
23984cat >>conftest.undefs <<\_ACEOF
23985s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23986_ACEOF
23987
23988# Break up conftest.defines because some shells have a limit on the size
23989# of here documents, and old seds have small limits too (100 cmds).
23990echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23991echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23992echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23993echo '  :' >>$CONFIG_STATUS
23994rm -f conftest.tail
23995while grep . conftest.defines >/dev/null
23996do
23997  # Write a limited-size here document to $tmp/defines.sed.
23998  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23999  # Speed up: don't consider the non `#define' lines.
24000  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24001  # Work around the forget-to-reset-the-flag bug.
24002  echo 't clr' >>$CONFIG_STATUS
24003  echo ': clr' >>$CONFIG_STATUS
24004  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24005  echo 'CEOF
24006  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24007  rm -f $tmp/in
24008  mv $tmp/out $tmp/in
24009' >>$CONFIG_STATUS
24010  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24011  rm -f conftest.defines
24012  mv conftest.tail conftest.defines
24013done
24014rm -f conftest.defines
24015echo '  fi # grep' >>$CONFIG_STATUS
24016echo >>$CONFIG_STATUS
24017
24018# Break up conftest.undefs because some shells have a limit on the size
24019# of here documents, and old seds have small limits too (100 cmds).
24020echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24021rm -f conftest.tail
24022while grep . conftest.undefs >/dev/null
24023do
24024  # Write a limited-size here document to $tmp/undefs.sed.
24025  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24026  # Speed up: don't consider the non `#undef'
24027  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24028  # Work around the forget-to-reset-the-flag bug.
24029  echo 't clr' >>$CONFIG_STATUS
24030  echo ': clr' >>$CONFIG_STATUS
24031  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24032  echo 'CEOF
24033  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24034  rm -f $tmp/in
24035  mv $tmp/out $tmp/in
24036' >>$CONFIG_STATUS
24037  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24038  rm -f conftest.undefs
24039  mv conftest.tail conftest.undefs
24040done
24041rm -f conftest.undefs
24042
24043cat >>$CONFIG_STATUS <<\_ACEOF
24044  # Let's still pretend it is `configure' which instantiates (i.e., don't
24045  # use $as_me), people would be surprised to read:
24046  #    /* config.h.  Generated by config.status.  */
24047  if test x"$ac_file" = x-; then
24048    echo "/* Generated by configure.  */" >$tmp/config.h
24049  else
24050    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24051  fi
24052  cat $tmp/in >>$tmp/config.h
24053  rm -f $tmp/in
24054  if test x"$ac_file" != x-; then
24055    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24056      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24057echo "$as_me: $ac_file is unchanged" >&6;}
24058    else
24059      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24061	 X"$ac_file" : 'X\(//\)[^/]' \| \
24062	 X"$ac_file" : 'X\(//\)$' \| \
24063	 X"$ac_file" : 'X\(/\)' \| \
24064	 .     : '\(.\)' 2>/dev/null ||
24065echo X"$ac_file" |
24066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24067  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24068  	  /^X\(\/\/\)$/{ s//\1/; q; }
24069  	  /^X\(\/\).*/{ s//\1/; q; }
24070  	  s/.*/./; q'`
24071      { if $as_mkdir_p; then
24072    mkdir -p "$ac_dir"
24073  else
24074    as_dir="$ac_dir"
24075    as_dirs=
24076    while test ! -d "$as_dir"; do
24077      as_dirs="$as_dir $as_dirs"
24078      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080	 X"$as_dir" : 'X\(//\)[^/]' \| \
24081	 X"$as_dir" : 'X\(//\)$' \| \
24082	 X"$as_dir" : 'X\(/\)' \| \
24083	 .     : '\(.\)' 2>/dev/null ||
24084echo X"$as_dir" |
24085    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087  	  /^X\(\/\/\)$/{ s//\1/; q; }
24088  	  /^X\(\/\).*/{ s//\1/; q; }
24089  	  s/.*/./; q'`
24090    done
24091    test ! -n "$as_dirs" || mkdir $as_dirs
24092  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24094   { (exit 1); exit 1; }; }; }
24095
24096      rm -f $ac_file
24097      mv $tmp/config.h $ac_file
24098    fi
24099  else
24100    cat $tmp/config.h
24101    rm -f $tmp/config.h
24102  fi
24103# Compute $ac_file's index in $config_headers.
24104_am_stamp_count=1
24105for _am_header in $config_headers :; do
24106  case $_am_header in
24107    $ac_file | $ac_file:* )
24108      break ;;
24109    * )
24110      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24111  esac
24112done
24113echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24114$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24115	 X$ac_file : 'X\(//\)[^/]' \| \
24116	 X$ac_file : 'X\(//\)$' \| \
24117	 X$ac_file : 'X\(/\)' \| \
24118	 .     : '\(.\)' 2>/dev/null ||
24119echo X$ac_file |
24120    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24121  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24122  	  /^X\(\/\/\)$/{ s//\1/; q; }
24123  	  /^X\(\/\).*/{ s//\1/; q; }
24124  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24125done
24126_ACEOF
24127cat >>$CONFIG_STATUS <<\_ACEOF
24128
24129#
24130# CONFIG_COMMANDS section.
24131#
24132for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24133  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24134  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24135  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24136$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24137	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24138	 X"$ac_dest" : 'X\(//\)$' \| \
24139	 X"$ac_dest" : 'X\(/\)' \| \
24140	 .     : '\(.\)' 2>/dev/null ||
24141echo X"$ac_dest" |
24142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24143  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24144  	  /^X\(\/\/\)$/{ s//\1/; q; }
24145  	  /^X\(\/\).*/{ s//\1/; q; }
24146  	  s/.*/./; q'`
24147  { if $as_mkdir_p; then
24148    mkdir -p "$ac_dir"
24149  else
24150    as_dir="$ac_dir"
24151    as_dirs=
24152    while test ! -d "$as_dir"; do
24153      as_dirs="$as_dir $as_dirs"
24154      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24156	 X"$as_dir" : 'X\(//\)[^/]' \| \
24157	 X"$as_dir" : 'X\(//\)$' \| \
24158	 X"$as_dir" : 'X\(/\)' \| \
24159	 .     : '\(.\)' 2>/dev/null ||
24160echo X"$as_dir" |
24161    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24162  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24163  	  /^X\(\/\/\)$/{ s//\1/; q; }
24164  	  /^X\(\/\).*/{ s//\1/; q; }
24165  	  s/.*/./; q'`
24166    done
24167    test ! -n "$as_dirs" || mkdir $as_dirs
24168  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24169echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24170   { (exit 1); exit 1; }; }; }
24171
24172  ac_builddir=.
24173
24174if test "$ac_dir" != .; then
24175  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24176  # A "../" for each directory in $ac_dir_suffix.
24177  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24178else
24179  ac_dir_suffix= ac_top_builddir=
24180fi
24181
24182case $srcdir in
24183  .)  # No --srcdir option.  We are building in place.
24184    ac_srcdir=.
24185    if test -z "$ac_top_builddir"; then
24186       ac_top_srcdir=.
24187    else
24188       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24189    fi ;;
24190  [\\/]* | ?:[\\/]* )  # Absolute path.
24191    ac_srcdir=$srcdir$ac_dir_suffix;
24192    ac_top_srcdir=$srcdir ;;
24193  *) # Relative path.
24194    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24195    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24196esac
24197
24198# Do not use `cd foo && pwd` to compute absolute paths, because
24199# the directories may not exist.
24200case `pwd` in
24201.) ac_abs_builddir="$ac_dir";;
24202*)
24203  case "$ac_dir" in
24204  .) ac_abs_builddir=`pwd`;;
24205  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24206  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24207  esac;;
24208esac
24209case $ac_abs_builddir in
24210.) ac_abs_top_builddir=${ac_top_builddir}.;;
24211*)
24212  case ${ac_top_builddir}. in
24213  .) ac_abs_top_builddir=$ac_abs_builddir;;
24214  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24215  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24216  esac;;
24217esac
24218case $ac_abs_builddir in
24219.) ac_abs_srcdir=$ac_srcdir;;
24220*)
24221  case $ac_srcdir in
24222  .) ac_abs_srcdir=$ac_abs_builddir;;
24223  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24224  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24225  esac;;
24226esac
24227case $ac_abs_builddir in
24228.) ac_abs_top_srcdir=$ac_top_srcdir;;
24229*)
24230  case $ac_top_srcdir in
24231  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24232  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24233  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24234  esac;;
24235esac
24236
24237
24238  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24239echo "$as_me: executing $ac_dest commands" >&6;}
24240  case $ac_dest in
24241    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24242  # Strip MF so we end up with the name of the file.
24243  mf=`echo "$mf" | sed -e 's/:.*$//'`
24244  # Check whether this is an Automake generated Makefile or not.
24245  # We used to match only the files named `Makefile.in', but
24246  # some people rename them; so instead we look at the file content.
24247  # Grep'ing the first line is not enough: some people post-process
24248  # each Makefile.in and add a new line on top of each file to say so.
24249  # So let's grep whole file.
24250  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24251    dirpart=`(dirname "$mf") 2>/dev/null ||
24252$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24253	 X"$mf" : 'X\(//\)[^/]' \| \
24254	 X"$mf" : 'X\(//\)$' \| \
24255	 X"$mf" : 'X\(/\)' \| \
24256	 .     : '\(.\)' 2>/dev/null ||
24257echo X"$mf" |
24258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24259  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24260  	  /^X\(\/\/\)$/{ s//\1/; q; }
24261  	  /^X\(\/\).*/{ s//\1/; q; }
24262  	  s/.*/./; q'`
24263  else
24264    continue
24265  fi
24266  # Extract the definition of DEPDIR, am__include, and am__quote
24267  # from the Makefile without running `make'.
24268  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24269  test -z "$DEPDIR" && continue
24270  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24271  test -z "am__include" && continue
24272  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24273  # When using ansi2knr, U may be empty or an underscore; expand it
24274  U=`sed -n 's/^U = //p' < "$mf"`
24275  # Find all dependency output files, they are included files with
24276  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24277  # simplest approach to changing $(DEPDIR) to its actual value in the
24278  # expansion.
24279  for file in `sed -n "
24280    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24281       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24282    # Make sure the directory exists.
24283    test -f "$dirpart/$file" && continue
24284    fdir=`(dirname "$file") 2>/dev/null ||
24285$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24286	 X"$file" : 'X\(//\)[^/]' \| \
24287	 X"$file" : 'X\(//\)$' \| \
24288	 X"$file" : 'X\(/\)' \| \
24289	 .     : '\(.\)' 2>/dev/null ||
24290echo X"$file" |
24291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24292  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24293  	  /^X\(\/\/\)$/{ s//\1/; q; }
24294  	  /^X\(\/\).*/{ s//\1/; q; }
24295  	  s/.*/./; q'`
24296    { if $as_mkdir_p; then
24297    mkdir -p $dirpart/$fdir
24298  else
24299    as_dir=$dirpart/$fdir
24300    as_dirs=
24301    while test ! -d "$as_dir"; do
24302      as_dirs="$as_dir $as_dirs"
24303      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24305	 X"$as_dir" : 'X\(//\)[^/]' \| \
24306	 X"$as_dir" : 'X\(//\)$' \| \
24307	 X"$as_dir" : 'X\(/\)' \| \
24308	 .     : '\(.\)' 2>/dev/null ||
24309echo X"$as_dir" |
24310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24311  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24312  	  /^X\(\/\/\)$/{ s//\1/; q; }
24313  	  /^X\(\/\).*/{ s//\1/; q; }
24314  	  s/.*/./; q'`
24315    done
24316    test ! -n "$as_dirs" || mkdir $as_dirs
24317  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24318echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24319   { (exit 1); exit 1; }; }; }
24320
24321    # echo "creating $dirpart/$file"
24322    echo '# dummy' > "$dirpart/$file"
24323  done
24324done
24325 ;;
24326  esac
24327done
24328_ACEOF
24329
24330cat >>$CONFIG_STATUS <<\_ACEOF
24331
24332{ (exit 0); exit 0; }
24333_ACEOF
24334chmod +x $CONFIG_STATUS
24335ac_clean_files=$ac_clean_files_save
24336
24337
24338# configure is writing to config.log, and then calls config.status.
24339# config.status does its own redirection, appending to config.log.
24340# Unfortunately, on DOS this fails, as config.log is still kept open
24341# by configure, so config.status won't be able to write to it; its
24342# output is simply discarded.  So we exec the FD to /dev/null,
24343# effectively closing config.log, so it can be properly (re)opened and
24344# appended to by config.status.  When coming back to configure, we
24345# need to make the FD available again.
24346if test "$no_create" != yes; then
24347  ac_cs_success=:
24348  ac_config_status_args=
24349  test "$silent" = yes &&
24350    ac_config_status_args="$ac_config_status_args --quiet"
24351  exec 5>/dev/null
24352  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24353  exec 5>>config.log
24354  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24355  # would make configure fail if this is the last instruction.
24356  $ac_cs_success || { (exit 1); exit 1; }
24357fi
24358
24359
24360  if test x"$coin_vpath_link_files" = x; then : ; else
24361    lnkcmd="$coin_link_input_cmd"
24362    if test "$lnkcmd" = cp; then
24363      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
24364echo "$as_me: Copying data files for VPATH configuration" >&6;}
24365    else
24366      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
24367echo "$as_me: Creating VPATH links for data files" >&6;}
24368    fi
24369    for file in $coin_vpath_link_files; do
24370      dir=`(dirname "./$file") 2>/dev/null ||
24371$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24372	 X"./$file" : 'X\(//\)[^/]' \| \
24373	 X"./$file" : 'X\(//\)$' \| \
24374	 X"./$file" : 'X\(/\)' \| \
24375	 .     : '\(.\)' 2>/dev/null ||
24376echo X"./$file" |
24377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24378  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24379  	  /^X\(\/\/\)$/{ s//\1/; q; }
24380  	  /^X\(\/\).*/{ s//\1/; q; }
24381  	  s/.*/./; q'`
24382      if test -d $dir; then : ; else
24383        { if $as_mkdir_p; then
24384    mkdir -p $dir
24385  else
24386    as_dir=$dir
24387    as_dirs=
24388    while test ! -d "$as_dir"; do
24389      as_dirs="$as_dir $as_dirs"
24390      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24392	 X"$as_dir" : 'X\(//\)[^/]' \| \
24393	 X"$as_dir" : 'X\(//\)$' \| \
24394	 X"$as_dir" : 'X\(/\)' \| \
24395	 .     : '\(.\)' 2>/dev/null ||
24396echo X"$as_dir" |
24397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24398  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24399  	  /^X\(\/\/\)$/{ s//\1/; q; }
24400  	  /^X\(\/\).*/{ s//\1/; q; }
24401  	  s/.*/./; q'`
24402    done
24403    test ! -n "$as_dirs" || mkdir $as_dirs
24404  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
24405echo "$as_me: error: cannot create directory $dir" >&2;}
24406   { (exit 1); exit 1; }; }; }
24407
24408      fi
24409      rm -f $file
24410      $lnkcmd $abs_source_dir/$file $file
24411    done
24412  fi
24413
24414  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
24415echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
24416  if test x$coin_projectdir = xyes; then
24417    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
24418echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
24419  else
24420    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
24421echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
24422  fi
24423else
24424  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
24425echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
24426fi
24427
24428
24429