source: stable/2.8/Cbc/configure @ 1964

Last change on this file since 1964 was 1964, checked in by tkr, 6 years ago

temporarily committing release candidate

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.5.
4#
5# Report bugs to <cbc@lists.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 Coin which is distributed
15# under the Eclipse 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='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8.5'
433PACKAGE_STRING='Cbc 2.8.5'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.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 CBC_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 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 COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_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 OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname 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 Cbc 2.8.5 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 Cbc 2.8.5:";;
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-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
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  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
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-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
1174  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1175                          cl/icl builds only)
1176  --with-pthreadsw32-incdir
1177                          specify the path of the pthreads win32 header file
1178                          (for cl/icl builds only)
1179  --with-osicbc-default-solver
1180                          specify underlying solver for OsiCbc (default clp)
1181  --with-dot              use dot (from graphviz) when creating documentation
1182                          with doxygen if available; --without-dot to disable
1183
1184Some influential environment variables:
1185  CDEFS       Additional -D flags to be used when compiling C code.
1186  ADD_CFLAGS  Additional C compiler options
1187  DBG_CFLAGS  Debug C compiler options
1188  OPT_CFLAGS  Optimize C compiler options
1189  CC          C compiler command
1190  CFLAGS      C compiler flags
1191  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1192              nonstandard directory <lib dir>
1193  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1194              headers in a nonstandard directory <include dir>
1195  MPICC       C MPI Compiler
1196  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1197  ADD_CXXFLAGS
1198              Additional C++ compiler options
1199  DBG_CXXFLAGS
1200              Debug C++ compiler options
1201  OPT_CXXFLAGS
1202              Optimize C++ compiler options
1203  CXX         C++ compiler command
1204  CXXFLAGS    C++ compiler flags
1205  MPICXX      C++ MPI Compiler
1206  CPP         C preprocessor
1207  CXXCPP      C++ preprocessor
1208  F77         Fortran 77 compiler command
1209  FFLAGS      Fortran 77 compiler flags
1210  PKG_CONFIG  path to pkg-config utility
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <cbc@lists.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298           test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311Cbc configure 2.8.5
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Eclipse Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by Cbc $as_me 2.8.5, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409        ac_must_keep_next=false # Got value, back to normal.
1410      else
1411        case $ac_arg in
1412          *=* | --config-cache | -C | -disable-* | --disable-* \
1413          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415          | -with-* | --with-* | -without-* | --without-* | --x)
1416            case "$ac_configure_args0 " in
1417              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418            esac
1419            ;;
1420          -* ) ac_must_keep_next=true ;;
1421        esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488        eval ac_val=$`echo $ac_var`
1489        echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611        ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747
1748# As backup, we make sure we don't loose an FLIBS if it has been set
1749# by the user
1750save_FLIBS="$FLIBS"
1751
1752# A useful makefile conditional that is always false
1753
1754
1755if false; then
1756  ALWAYS_FALSE_TRUE=
1757  ALWAYS_FALSE_FALSE='#'
1758else
1759  ALWAYS_FALSE_TRUE='#'
1760  ALWAYS_FALSE_FALSE=
1761fi
1762
1763
1764# We set the following variable so that we know later in AC_COIN_FINALIZE
1765# that we are in a project main directory
1766coin_projectdir=yes
1767
1768# Set the project's version numbers
1769
1770
1771cat >>confdefs.h <<_ACEOF
1772#define CBC_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
1775
1776  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1777  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1778  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1779  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1780  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1781  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MAJOR $coin_majorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_MINOR $coin_minorver
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CBC_VERSION_RELEASE $coin_releasever
1795_ACEOF
1796
1797
1798  # We use the following variable to have a string with the upper case
1799  # version of the project name
1800  COIN_PRJCT=CBC
1801
1802  # Set the project's SVN revision number. The complicated sed expression
1803  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1804  # as a single number.
1805  # Extract the first word of "svnversion", so it can be a program name with args.
1806set dummy svnversion; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_have_svnversion+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$have_svnversion"; then
1813  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_have_svnversion="yes"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1830fi
1831fi
1832have_svnversion=$ac_cv_prog_have_svnversion
1833if test -n "$have_svnversion"; then
1834  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1835echo "${ECHO_T}$have_svnversion" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  if test "x$have_svnversion" = xyes; then
1842
1843    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1844    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1845      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1846
1847cat >>confdefs.h <<_ACEOF
1848#define CBC_SVN_REV $CBC_SVN_REV
1849_ACEOF
1850
1851    fi
1852  fi
1853
1854
1855
1856# Capture libtool library version, if given.
1857 coin_libversion=11:5:8
1858
1859
1860
1861
1862# Check if user wants to produce debugging code
1863
1864echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1865echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1866
1867# Check whether --enable-debug or --disable-debug was given.
1868if test "${enable_debug+set}" = set; then
1869  enableval="$enable_debug"
1870  case "${enableval}" in
1871   yes) coin_debug_compile=true
1872        if test "${enable_shared+set}" = set; then :; else
1873          enable_shared=no
1874        fi
1875        ;;
1876   no)  coin_debug_compile=false
1877        ;;
1878   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1879echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1880   { (exit 1); exit 1; }; }
1881        ;;
1882esac
1883else
1884  coin_debug_compile=false
1885fi;
1886
1887# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1888if test "${enable_debug_cbc+set}" = set; then
1889  enableval="$enable_debug_cbc"
1890  case "${enableval}" in
1891    yes) coin_debug_compile=true
1892         ;;
1893    no)  coin_debug_compile=false
1894         ;;
1895    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1896echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1897   { (exit 1); exit 1; }; }
1898         ;;
1899 esac
1900else
1901  :
1902fi;
1903
1904 # m4_ifvaln([Cbc],
1905
1906if test $coin_debug_compile = true; then
1907  echo "$as_me:$LINENO: result: yes" >&5
1908echo "${ECHO_T}yes" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914
1915# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1916if test "${with_cbc_verbosity+set}" = set; then
1917  withval="$with_cbc_verbosity"
1918  if test "$withval" = yes; then
1919                withval=1
1920              fi
1921              coin_cbc_verbosity=$withval
1922else
1923  coin_cbc_verbosity=0
1924fi;
1925
1926cat >>confdefs.h <<_ACEOF
1927#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1928_ACEOF
1929
1930
1931
1932# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1933if test "${with_cbc_checklevel+set}" = set; then
1934  withval="$with_cbc_checklevel"
1935  if test "$withval" = yes; then
1936                withval=1
1937              fi
1938              coin_cbc_checklevel=$withval
1939else
1940  coin_cbc_checklevel=0
1941fi;
1942
1943cat >>confdefs.h <<_ACEOF
1944#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1945_ACEOF
1946
1947
1948 # m4_ifvaln([Cbc],
1949
1950
1951
1952# Get the name of the C++ compiler and appropriate compiler options
1953case $build in
1954  *-mingw*)
1955    if test "${LD+set}" = set; then :; else
1956      LD=link
1957    fi
1958    ;;
1959 esac
1960 case $enable_doscompile in
1961   msvc)
1962     if test "x${LD+set}" = xset; then :; else
1963       LD=link
1964     fi
1965     ;;
1966 esac
1967
1968
1969 # Check whether --enable-doscompile or --disable-doscompile was given.
1970if test "${enable_doscompile+set}" = set; then
1971  enableval="$enable_doscompile"
1972  if test "$enable_doscompile" != no; then
1973     case $build in
1974       *-cygwin* | *-mingw*) ;;
1975       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1976echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1977   { (exit 1); exit 1; }; } ;;
1978     esac
1979   fi
1980else
1981  enable_doscompile=no
1982fi;
1983 case "$enable_doscompile" in
1984   mingw)
1985     case $build in
1986       *-mingw*) enable_doscompile=no ;;
1987     esac
1988     ;;
1989   msvc|no) ;;
1990   yes) enable_doscompile=mingw ;;
1991   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1992                    Try configure --help=recursive." >&5
1993echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1994                    Try configure --help=recursive." >&2;}
1995   { (exit 1); exit 1; }; }
1996      ;;
1997  esac
1998  if test "$enable_doscompile" != no ; then
1999    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
2000echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
2001  fi
2002
2003
2004
2005
2006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013# For consistency, we set the C compiler to the same value of the C++
2014# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2015if test x"$CXX" != x; then
2016  case "$CXX" in
2017    clang* ) ;;
2018    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2019      if test x"$CC" = x; then
2020        CC="$CXX"
2021        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2022echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2023      fi
2024      ;;
2025  esac
2026fi
2027
2028
2029
2030
2031
2032
2033coin_has_cc=yes
2034
2035save_cflags="$CFLAGS"
2036
2037# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2038# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2039# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2040# compiler. In this case, put cc after gcc.
2041
2042case $build in
2043  *-cygwin* | *-mingw*)
2044             if test "$enable_doscompile" = msvc ; then
2045               comps="icl cl"
2046             else
2047               comps="gcc cl"
2048             fi ;;
2049  *-*-solaris*)
2050             # Extract the first word of "cc", so it can be a program name with args.
2051set dummy cc; ac_word=$2
2052echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$sol_cc_compiler"; then
2058  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2059else
2060  ac_prog_rejected=no
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066  for ac_exec_ext in '' $ac_executable_extensions; do
2067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069       ac_prog_rejected=yes
2070       continue
2071     fi
2072    ac_cv_prog_sol_cc_compiler="cc"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079if test $ac_prog_rejected = yes; then
2080  # We found a bogon in the path, so make sure we never use it.
2081  set dummy $ac_cv_prog_sol_cc_compiler
2082  shift
2083  if test $# != 0; then
2084    # We chose a different compiler from the bogus one.
2085    # However, it has the same basename, so the bogon will be chosen
2086    # first if we set sol_cc_compiler to just the basename; use the full file name.
2087    shift
2088    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2089  fi
2090fi
2091fi
2092fi
2093sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2094if test -n "$sol_cc_compiler"; then
2095  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2096echo "${ECHO_T}$sol_cc_compiler" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102             if test "$sol_cc_compiler" = "cc" ; then
2103               comps="cc xlc gcc pgcc icc"
2104             else
2105               comps="xlc gcc pgcc icc cc"
2106             fi
2107             ;;
2108  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2109  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2110  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2111esac
2112
2113# We delete the cached value, since the test might not have been
2114# performed with our choice of compilers earlier
2115$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2116# AC_MSG_NOTICE([C compiler candidates: $comps])
2117ac_ext=c
2118ac_cpp='$CPP $CPPFLAGS'
2119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122if test -n "$ac_tool_prefix"; then
2123  for ac_prog in $comps
2124  do
2125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_CC+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  if test -n "$CC"; then
2133  ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  for ac_exec_ext in '' $ac_executable_extensions; do
2141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144    break 2
2145  fi
2146done
2147done
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153  echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6
2155else
2156  echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160    test -n "$CC" && break
2161  done
2162fi
2163if test -z "$CC"; then
2164  ac_ct_CC=$CC
2165  for ac_prog in $comps
2166do
2167  # Extract the first word of "$ac_prog", so it can be a program name with args.
2168set dummy $ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test -n "$ac_ct_CC"; then
2175  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182  for ac_exec_ext in '' $ac_executable_extensions; do
2183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184    ac_cv_prog_ac_ct_CC="$ac_prog"
2185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186    break 2
2187  fi
2188done
2189done
2190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
2195  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6
2197else
2198  echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202  test -n "$ac_ct_CC" && break
2203done
2204
2205  CC=$ac_ct_CC
2206fi
2207
2208
2209test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: no acceptable C compiler found in \$PATH
2212See \`config.log' for more details." >&2;}
2213   { (exit 1); exit 1; }; }
2214
2215# Provide some information about the compiler.
2216echo "$as_me:$LINENO:" \
2217     "checking for C compiler version" >&5
2218ac_compiler=`set X $ac_compile; echo $2`
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220  (eval $ac_compiler --version </dev/null >&5) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }
2224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225  (eval $ac_compiler -v </dev/null >&5) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230  (eval $ac_compiler -V </dev/null >&5) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }
2234
2235cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h.  */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h.  */
2241
2242int
2243main ()
2244{
2245
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250ac_clean_files_save=$ac_clean_files
2251ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252# Try to create an executable without -o first, disregard a.out.
2253# It will help us diagnose broken compilers, and finding out an intuition
2254# of exeext.
2255echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259  (eval $ac_link_default) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  # Find the output, starting from the most likely.  This scheme is
2264# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2265# resort.
2266
2267# Be careful to initialize this variable, since it used to be cached.
2268# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269ac_cv_exeext=
2270# b.out is created by i960 compilers.
2271for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272do
2273  test -f "$ac_file" || continue
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2276        ;;
2277    conftest.$ac_ext )
2278        # This is the source file.
2279        ;;
2280    [ab].out )
2281        # We found the default executable, but exeext='' is most
2282        # certainly right.
2283        break;;
2284    *.* )
2285        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286        # FIXME: I believe we export ac_cv_exeext for Libtool,
2287        # but it would be cool to find out if it's true.  Does anybody
2288        # maintain Libtool? --akim.
2289        export ac_cv_exeext
2290        break;;
2291    * )
2292        break;;
2293  esac
2294done
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: C compiler cannot create executables
2302See \`config.log' for more details." >&2;}
2303   { (exit 77); exit 77; }; }
2304fi
2305
2306ac_exeext=$ac_cv_exeext
2307echo "$as_me:$LINENO: result: $ac_file" >&5
2308echo "${ECHO_T}$ac_file" >&6
2309
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315# If not cross compiling, check that we can run a simple program.
2316if test "$cross_compiling" != yes; then
2317  if { ac_try='./$ac_file'
2318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319  (eval $ac_try) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; }; then
2323    cross_compiling=no
2324  else
2325    if test "$cross_compiling" = maybe; then
2326        cross_compiling=yes
2327    else
2328        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329If you meant to cross compile, use \`--host'.
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot run C compiled programs.
2332If you meant to cross compile, use \`--host'.
2333See \`config.log' for more details." >&2;}
2334   { (exit 1); exit 1; }; }
2335    fi
2336  fi
2337fi
2338echo "$as_me:$LINENO: result: yes" >&5
2339echo "${ECHO_T}yes" >&6
2340
2341rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342ac_clean_files=$ac_clean_files_save
2343# Check the compiler produces executables we can run.  If not, either
2344# the compiler is broken, or we cross compile.
2345echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348echo "${ECHO_T}$cross_compiling" >&6
2349
2350echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353  (eval $ac_link) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; then
2357  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2359# work properly (i.e., refer to `conftest.exe'), while it won't with
2360# `rm'.
2361for ac_file in conftest.exe conftest conftest.*; do
2362  test -f "$ac_file" || continue
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366          export ac_cv_exeext
2367          break;;
2368    * ) break;;
2369  esac
2370done
2371else
2372  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373See \`config.log' for more details." >&5
2374echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375See \`config.log' for more details." >&2;}
2376   { (exit 1); exit 1; }; }
2377fi
2378
2379rm -f conftest$ac_cv_exeext
2380echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381echo "${ECHO_T}$ac_cv_exeext" >&6
2382
2383rm -f conftest.$ac_ext
2384EXEEXT=$ac_cv_exeext
2385ac_exeext=$EXEEXT
2386echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388if test "${ac_cv_objext+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401
2402  ;
2403  return 0;
2404}
2405_ACEOF
2406rm -f conftest.o conftest.obj
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408  (eval $ac_compile) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; then
2412  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413  case $ac_file in
2414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2416       break;;
2417  esac
2418done
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&2;}
2427   { (exit 1); exit 1; }; }
2428fi
2429
2430rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433echo "${ECHO_T}$ac_cv_objext" >&6
2434OBJEXT=$ac_cv_objext
2435ac_objext=$OBJEXT
2436echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451#ifndef __GNUC__
2452       choke me
2453#endif
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_compiler_gnu=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486ac_compiler_gnu=no
2487fi
2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494GCC=`test $ac_compiler_gnu = yes && echo yes`
2495ac_test_CFLAGS=${CFLAGS+set}
2496ac_save_CFLAGS=$CFLAGS
2497CFLAGS="-g"
2498echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500if test "${ac_cv_prog_cc_g+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509
2510int
2511main ()
2512{
2513
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520  (eval $ac_compile) 2>conftest.er1
2521  ac_status=$?
2522  grep -v '^ *+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); } &&
2527         { ac_try='test -z "$ac_c_werror_flag"
2528                         || test ! -s conftest.err'
2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530  (eval $ac_try) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }; } &&
2534         { ac_try='test -s conftest.$ac_objext'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; }; then
2540  ac_cv_prog_cc_g=yes
2541else
2542  echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545ac_cv_prog_cc_g=no
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551if test "$ac_test_CFLAGS" = set; then
2552  CFLAGS=$ac_save_CFLAGS
2553elif test $ac_cv_prog_cc_g = yes; then
2554  if test "$GCC" = yes; then
2555    CFLAGS="-g -O2"
2556  else
2557    CFLAGS="-g"
2558  fi
2559else
2560  if test "$GCC" = yes; then
2561    CFLAGS="-O2"
2562  else
2563    CFLAGS=
2564  fi
2565fi
2566echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569  echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571  ac_cv_prog_cc_stdc=no
2572ac_save_CC=$CC
2573cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579#include <stdarg.h>
2580#include <stdio.h>
2581#include <sys/types.h>
2582#include <sys/stat.h>
2583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2584struct buf { int x; };
2585FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586static char *e (p, i)
2587     char **p;
2588     int i;
2589{
2590  return p[i];
2591}
2592static char *f (char * (*g) (char **, int), char **p, ...)
2593{
2594  char *s;
2595  va_list v;
2596  va_start (v,p);
2597  s = g (p, va_arg (v,int));
2598  va_end (v);
2599  return s;
2600}
2601
2602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2603   function prototypes and stuff, but not '\xHH' hex character constants.
2604   These don't provoke an error unfortunately, instead are silently treated
2605   as 'x'.  The following induces an error, until -std1 is added to get
2606   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2607   array size at least.  It's necessary to write '\x00'==0 to get something
2608   that's true only with -std1.  */
2609int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610
2611int test (int i, double x);
2612struct s1 {int (*f) (int a);};
2613struct s2 {int (*f) (double a);};
2614int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615int argc;
2616char **argv;
2617int
2618main ()
2619{
2620return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625# Don't try gcc -ansi; that turns off useful extensions and
2626# breaks some systems' header files.
2627# AIX                   -qlanglvl=ansi
2628# Ultrix and OSF/1      -std1
2629# HP-UX 10.20 and later -Ae
2630# HP-UX older versions  -Aa -D_HPUX_SOURCE
2631# SVR4                  -Xc -D__EXTENSIONS__
2632for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633do
2634  CC="$ac_save_CC $ac_arg"
2635  rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644         { ac_try='test -z "$ac_c_werror_flag"
2645                         || test ! -s conftest.err'
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); }; } &&
2651         { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  ac_cv_prog_cc_stdc=$ac_arg
2658break
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663fi
2664rm -f conftest.err conftest.$ac_objext
2665done
2666rm -f conftest.$ac_ext conftest.$ac_objext
2667CC=$ac_save_CC
2668
2669fi
2670
2671case "x$ac_cv_prog_cc_stdc" in
2672  x|xno)
2673    echo "$as_me:$LINENO: result: none needed" >&5
2674echo "${ECHO_T}none needed" >&6 ;;
2675  *)
2676    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678    CC="$CC $ac_cv_prog_cc_stdc" ;;
2679esac
2680
2681# Some people use a C++ compiler to compile C.  Since we use `exit',
2682# in C++ we need to declare it.  In case someone uses the same compiler
2683# for both compiling C and C++ we need to have the C++ compiler decide
2684# the declaration of exit, since it's the most demanding environment.
2685cat >conftest.$ac_ext <<_ACEOF
2686#ifndef __cplusplus
2687  choke me
2688#endif
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692  (eval $ac_compile) 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } &&
2699         { ac_try='test -z "$ac_c_werror_flag"
2700                         || test ! -s conftest.err'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; } &&
2706         { ac_try='test -s conftest.$ac_objext'
2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708  (eval $ac_try) 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; }; then
2712  for ac_declaration in \
2713   '' \
2714   'extern "C" void std::exit (int) throw (); using std::exit;' \
2715   'extern "C" void std::exit (int); using std::exit;' \
2716   'extern "C" void exit (int) throw ();' \
2717   'extern "C" void exit (int);' \
2718   'void exit (int);'
2719do
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726$ac_declaration
2727#include <stdlib.h>
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  :
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763continue
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766  cat >conftest.$ac_ext <<_ACEOF
2767/* confdefs.h.  */
2768_ACEOF
2769cat confdefs.h >>conftest.$ac_ext
2770cat >>conftest.$ac_ext <<_ACEOF
2771/* end confdefs.h.  */
2772$ac_declaration
2773int
2774main ()
2775{
2776exit (42);
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783  (eval $ac_compile) 2>conftest.er1
2784  ac_status=$?
2785  grep -v '^ *+' conftest.er1 >conftest.err
2786  rm -f conftest.er1
2787  cat conftest.err >&5
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); } &&
2790         { ac_try='test -z "$ac_c_werror_flag"
2791                         || test ! -s conftest.err'
2792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793  (eval $ac_try) 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; } &&
2797         { ac_try='test -s conftest.$ac_objext'
2798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799  (eval $ac_try) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }; }; then
2803  break
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808fi
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811rm -f conftest*
2812if test -n "$ac_declaration"; then
2813  echo '#ifdef __cplusplus' >>confdefs.h
2814  echo $ac_declaration      >>confdefs.h
2815  echo '#endif'             >>confdefs.h
2816fi
2817
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830if test -z "$CC" ; then
2831  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2832echo "$as_me: error: Failed to find a C compiler!" >&2;}
2833   { (exit 1); exit 1; }; }
2834fi
2835# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2836case "$CC" in
2837  clang* ) ;;
2838  cl* | */cl* | CL* | */CL* )
2839    if test "$ac_cv_prog_cc_g" = yes ; then
2840      ac_cv_prog_cc_g=no
2841      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2842echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2843    fi ;;
2844  * )
2845    CYGPATH_W=echo
2846    ;;
2847esac
2848CFLAGS="$save_cflags"
2849
2850# add automake conditional so we can recognize cl compiler in makefile
2851coin_cc_is_cl=false
2852case "$CC" in
2853  clang* ) ;;
2854  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2855    coin_cc_is_cl=true
2856    ;;
2857esac
2858
2859
2860if test $coin_cc_is_cl = true; then
2861  COIN_CC_IS_CL_TRUE=
2862  COIN_CC_IS_CL_FALSE='#'
2863else
2864  COIN_CC_IS_CL_TRUE='#'
2865  COIN_CC_IS_CL_FALSE=
2866fi
2867
2868
2869# Check if a project specific CFLAGS variable has been set
2870if test x$COIN_PRJCT != x; then
2871  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2872  if test x$coin_tmp = xset; then
2873    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2874  fi
2875fi
2876
2877if test x"$CFLAGS" = x; then
2878
2879  coin_add_cflags=
2880  coin_opt_cflags=
2881  coin_dbg_cflags=
2882  coin_warn_cflags=
2883
2884  if test "$GCC" = "yes"; then
2885    case "$CC" in
2886      icc* | */icc*)
2887        ;;
2888      *)
2889        coin_opt_cflags="-O3"
2890        coin_add_cflags="-pipe"
2891        coin_dbg_cflags="-g -O0"
2892        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2893        case $build in
2894          *-darwin*)
2895            ;;
2896          *)
2897            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2898            ;;
2899        esac
2900        case $enable_doscompile in
2901          mingw)
2902            CFLAGS="-mno-cygwin"
2903            cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913int i=0; i++;
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext conftest$ac_exeext
2919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920  (eval $ac_link) 2>conftest.er1
2921  ac_status=$?
2922  grep -v '^ *+' conftest.er1 >conftest.err
2923  rm -f conftest.er1
2924  cat conftest.err >&5
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); } &&
2927         { ac_try='test -z "$ac_c_werror_flag"
2928                         || test ! -s conftest.err'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; } &&
2934         { ac_try='test -s conftest$ac_exeext'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; }; then
2940  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2941else
2942  echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945fi
2946rm -f conftest.err conftest.$ac_objext \
2947      conftest$ac_exeext conftest.$ac_ext
2948            CFLAGS=
2949          ;;
2950        esac
2951    esac
2952  fi
2953  if test -z "$coin_opt_cflags"; then
2954    case $build in
2955      *-cygwin* | *-mingw*)
2956        case "$CC" in
2957          clang* ) ;;
2958          cl* | */cl* | CL* | */CL*)
2959            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2960              coin_opt_cflags='-MD -O2'
2961              coin_dbg_cflags='-MDd'
2962            else
2963              coin_opt_cflags='-MT -O2'
2964              coin_dbg_cflags='-MTd'
2965            fi
2966            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2967            ;;
2968          icl* | */icl* | ICL* | */ICL*)
2969            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2970              coin_opt_cflags='-MD -Ox'
2971              coin_dbg_cflags='-MDd -debug'
2972            else
2973              coin_opt_cflags='-MT -Ox'
2974              coin_dbg_cflags='-MTd -debug'
2975            fi
2976            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2977            ;;
2978        esac
2979        ;;
2980      *-linux-*)
2981        case "$CC" in
2982          icc* | */icc*)
2983            coin_opt_cflags="-O3 -ip -mp1"
2984            coin_add_cflags=""
2985            coin_dbg_cflags="-g"
2986            # Check if -i_dynamic is necessary (for new glibc library)
2987            CFLAGS=
2988            cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994
2995int
2996main ()
2997{
2998int i=0; i++;
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext conftest$ac_exeext
3004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005  (eval $ac_link) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012         { ac_try='test -z "$ac_c_werror_flag"
3013                         || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019         { ac_try='test -s conftest$ac_exeext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  :
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030coin_add_cflags="-i_dynamic $coin_add_cflags"
3031fi
3032rm -f conftest.err conftest.$ac_objext \
3033      conftest$ac_exeext conftest.$ac_ext
3034            ;;
3035          pgcc* | */pgcc*)
3036            coin_opt_cflags="-fast"
3037            coin_add_cflags="-Kieee -pc 64"
3038            coin_dbg_cflags="-g"
3039            ;;
3040        esac
3041        ;;
3042      *-ibm-*)
3043        case "$CC" in
3044          xlc* | */xlc* | mpxlc* | */mpxlc*)
3045            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3046            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3047            coin_dbg_cflags="-g"
3048          ;;
3049        esac
3050        ;;
3051      *-hp-*)
3052        coin_opt_cflags="-O"
3053        coin_add_cflags="-Ae"
3054        coin_dbg_cflags="-g"
3055        ;;
3056      *-*-solaris*)
3057        coin_opt_cflags="-xO4"
3058        coin_dbg_cflags="-g"
3059        ;;
3060      *-sgi-*)
3061        coin_opt_cflags="-O -OPT:Olimit=0"
3062        coin_dbg_cflags="-g"
3063        ;;
3064    esac
3065  fi
3066
3067  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3068    coin_dbg_cflags="-g"
3069  fi
3070
3071  if test -z "$coin_opt_cflags"; then
3072    # Try if -O option works if nothing else is set
3073    CFLAGS="-O"
3074    cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h.  */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h.  */
3080
3081int
3082main ()
3083{
3084int i=0; i++;
3085  ;
3086  return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext conftest$ac_exeext
3090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3091  (eval $ac_link) 2>conftest.er1
3092  ac_status=$?
3093  grep -v '^ *+' conftest.er1 >conftest.err
3094  rm -f conftest.er1
3095  cat conftest.err >&5
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); } &&
3098         { ac_try='test -z "$ac_c_werror_flag"
3099                         || test ! -s conftest.err'
3100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101  (eval $ac_try) 2>&5
3102  ac_status=$?
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); }; } &&
3105         { ac_try='test -s conftest$ac_exeext'
3106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107  (eval $ac_try) 2>&5
3108  ac_status=$?
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); }; }; then
3111  coin_opt_cflags="-O"
3112else
3113  echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116fi
3117rm -f conftest.err conftest.$ac_objext \
3118      conftest$ac_exeext conftest.$ac_ext
3119  fi
3120
3121  # if PM doesn't want the warning messages, take them out
3122  if test x"$coin_skip_warn_cflags" = xyes; then
3123    coin_warn_cflags=
3124  fi
3125
3126  if test x${DBG_CFLAGS+set} != xset; then
3127    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3128  fi
3129  if test x${OPT_CFLAGS+set} != xset; then
3130    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3131  fi
3132
3133  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3134  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3135
3136  if test "$coin_debug_compile" = "true"; then
3137    CFLAGS="$DBG_CFLAGS"
3138  else
3139    CFLAGS="$OPT_CFLAGS"
3140  fi
3141else
3142  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3143  if test x${DBG_CFLAGS+set} != xset; then
3144    DBG_CFLAGS="$CFLAGS"
3145  fi
3146  if test x${OPT_CFLAGS+set} != xset; then
3147    OPT_CFLAGS="$CFLAGS"
3148  fi
3149fi
3150
3151# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3152
3153case "$CFLAGS" in
3154  *-mno-cygwin*)
3155    if test x${CPPFLAGS+set} != xset ; then
3156      CPPFLAGS="-mno-cygwin"
3157    else
3158      case "$CPPFLAGS" in
3159        *-mno-cygwin*)
3160          ;;
3161        *)
3162          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3163          ;;
3164      esac
3165    fi ;;
3166esac
3167
3168# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3169if test x$COIN_PRJCT != x; then
3170  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3171fi
3172
3173# Try if CFLAGS works
3174save_CFLAGS="$CFLAGS"
3175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185int i=0; i++;
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext conftest$ac_exeext
3191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3192  (eval $ac_link) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -z "$ac_c_werror_flag"
3200                         || test ! -s conftest.err'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; } &&
3206         { ac_try='test -s conftest$ac_exeext'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; }; then
3212  :
3213else
3214  echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217CFLAGS=
3218fi
3219rm -f conftest.err conftest.$ac_objext \
3220      conftest$ac_exeext conftest.$ac_ext
3221if test -z "$CFLAGS"; then
3222  { 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
3223echo "$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;}
3224  CFLAGS='-O'
3225  cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h.  */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h.  */
3231
3232int
3233main ()
3234{
3235int i=0; i++;
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240rm -f conftest.$ac_objext conftest$ac_exeext
3241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242  (eval $ac_link) 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } &&
3249         { ac_try='test -z "$ac_c_werror_flag"
3250                         || test ! -s conftest.err'
3251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252  (eval $ac_try) 2>&5
3253  ac_status=$?
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); }; } &&
3256         { ac_try='test -s conftest$ac_exeext'
3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258  (eval $ac_try) 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; }; then
3262  :
3263else
3264  echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267CFLAGS=
3268fi
3269rm -f conftest.err conftest.$ac_objext \
3270      conftest$ac_exeext conftest.$ac_ext
3271  if test -z "$CFLAGS"; then
3272    { 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
3273echo "$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;}
3274  fi
3275fi
3276
3277{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3278echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3279
3280
3281if test x"$MPICC" = x; then :; else
3282  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3283echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3284  CC="$MPICC"
3285fi
3286
3287# Correct the LD variable if we are using the MS or Intel-windows compiler
3288case "$CC" in
3289  clang* ) ;;
3290  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3291    case $build in
3292  *-mingw*)
3293    if test "${LD+set}" = set; then :; else
3294      LD=link
3295    fi
3296    ;;
3297 esac
3298 case $enable_doscompile in
3299   msvc)
3300     if test "x${LD+set}" = xset; then :; else
3301       LD=link
3302     fi
3303     ;;
3304 esac
3305
3306    ;;
3307esac
3308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315
3316
3317 #Let's try if that overcomes configuration problem with VC++ 6.0
3318
3319ac_ext=cc
3320ac_cpp='$CXXCPP $CPPFLAGS'
3321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3324
3325
3326
3327
3328
3329
3330
3331coin_has_cxx=yes
3332
3333save_cxxflags="$CXXFLAGS"
3334# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3335case $build in
3336  *-cygwin* | *-mingw*)
3337             if test "$enable_doscompile" = msvc ; then
3338               comps="icl cl"
3339             else
3340               comps="g++ cl"
3341             fi ;;
3342  *-*-solaris*)
3343             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3344  *-darwin*) comps="g++ c++ CC" ;;
3345  *-linux-gnu*)
3346             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3347          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3348esac
3349
3350# We delete the cached value, since the test might not have been
3351# performed with our choice of compilers earlier
3352$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3353# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3354ac_ext=cc
3355ac_cpp='$CXXCPP $CPPFLAGS'
3356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3359if test -n "$ac_tool_prefix"; then
3360  for ac_prog in $CCC $comps
3361  do
3362    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364echo "$as_me:$LINENO: checking for $ac_word" >&5
3365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366if test "${ac_cv_prog_CXX+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369  if test -n "$CXX"; then
3370  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377  for ac_exec_ext in '' $ac_executable_extensions; do
3378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384done
3385
3386fi
3387fi
3388CXX=$ac_cv_prog_CXX
3389if test -n "$CXX"; then
3390  echo "$as_me:$LINENO: result: $CXX" >&5
3391echo "${ECHO_T}$CXX" >&6
3392else
3393  echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
3395fi
3396
3397    test -n "$CXX" && break
3398  done
3399fi
3400if test -z "$CXX"; then
3401  ac_ct_CXX=$CXX
3402  for ac_prog in $CCC $comps
3403do
3404  # Extract the first word of "$ac_prog", so it can be a program name with args.
3405set dummy $ac_prog; ac_word=$2
3406echo "$as_me:$LINENO: checking for $ac_word" >&5
3407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  if test -n "$ac_ct_CXX"; then
3412  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417  IFS=$as_save_IFS
3418  test -z "$as_dir" && as_dir=.
3419  for ac_exec_ext in '' $ac_executable_extensions; do
3420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421    ac_cv_prog_ac_ct_CXX="$ac_prog"
3422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423    break 2
3424  fi
3425done
3426done
3427
3428fi
3429fi
3430ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3431if test -n "$ac_ct_CXX"; then
3432  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3433echo "${ECHO_T}$ac_ct_CXX" >&6
3434else
3435  echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437fi
3438
3439  test -n "$ac_ct_CXX" && break
3440done
3441test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3442
3443  CXX=$ac_ct_CXX
3444fi
3445
3446
3447# Provide some information about the compiler.
3448echo "$as_me:$LINENO:" \
3449     "checking for C++ compiler version" >&5
3450ac_compiler=`set X $ac_compile; echo $2`
3451{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3452  (eval $ac_compiler --version </dev/null >&5) 2>&5
3453  ac_status=$?
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); }
3456{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3457  (eval $ac_compiler -v </dev/null >&5) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }
3461{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3462  (eval $ac_compiler -V </dev/null >&5) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }
3466
3467echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3468echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3469if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482#ifndef __GNUC__
3483       choke me
3484#endif
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_cxx_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  ac_compiler_gnu=yes
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_compiler_gnu=no
3518fi
3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3521
3522fi
3523echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3524echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3525GXX=`test $ac_compiler_gnu = yes && echo yes`
3526ac_test_CXXFLAGS=${CXXFLAGS+set}
3527ac_save_CXXFLAGS=$CXXFLAGS
3528CXXFLAGS="-g"
3529echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3530echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3531if test "${ac_cv_prog_cxx_g+set}" = set; then
3532  echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534  cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h.  */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551  (eval $ac_compile) 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } &&
3558         { ac_try='test -z "$ac_cxx_werror_flag"
3559                         || test ! -s conftest.err'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; } &&
3565         { ac_try='test -s conftest.$ac_objext'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; }; then
3571  ac_cv_prog_cxx_g=yes
3572else
3573  echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576ac_cv_prog_cxx_g=no
3577fi
3578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579fi
3580echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3581echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3582if test "$ac_test_CXXFLAGS" = set; then
3583  CXXFLAGS=$ac_save_CXXFLAGS
3584elif test $ac_cv_prog_cxx_g = yes; then
3585  if test "$GXX" = yes; then
3586    CXXFLAGS="-g -O2"
3587  else
3588    CXXFLAGS="-g"
3589  fi
3590else
3591  if test "$GXX" = yes; then
3592    CXXFLAGS="-O2"
3593  else
3594    CXXFLAGS=
3595  fi
3596fi
3597for ac_declaration in \
3598   '' \
3599   'extern "C" void std::exit (int) throw (); using std::exit;' \
3600   'extern "C" void std::exit (int); using std::exit;' \
3601   'extern "C" void exit (int) throw ();' \
3602   'extern "C" void exit (int);' \
3603   'void exit (int);'
3604do
3605  cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h.  */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h.  */
3611$ac_declaration
3612#include <stdlib.h>
3613int
3614main ()
3615{
3616exit (42);
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext
3622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623  (eval $ac_compile) 2>conftest.er1
3624  ac_status=$?
3625  grep -v '^ *+' conftest.er1 >conftest.err
3626  rm -f conftest.er1
3627  cat conftest.err >&5
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); } &&
3630         { ac_try='test -z "$ac_cxx_werror_flag"
3631                         || test ! -s conftest.err'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; } &&
3637         { ac_try='test -s conftest.$ac_objext'
3638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639  (eval $ac_try) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); }; }; then
3643  :
3644else
3645  echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648continue
3649fi
3650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651  cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657$ac_declaration
3658int
3659main ()
3660{
3661exit (42);
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666rm -f conftest.$ac_objext
3667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668  (eval $ac_compile) 2>conftest.er1
3669  ac_status=$?
3670  grep -v '^ *+' conftest.er1 >conftest.err
3671  rm -f conftest.er1
3672  cat conftest.err >&5
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); } &&
3675         { ac_try='test -z "$ac_cxx_werror_flag"
3676                         || test ! -s conftest.err'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; } &&
3682         { ac_try='test -s conftest.$ac_objext'
3683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684  (eval $ac_try) 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; }; then
3688  break
3689else
3690  echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693fi
3694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695done
3696rm -f conftest*
3697if test -n "$ac_declaration"; then
3698  echo '#ifdef __cplusplus' >>confdefs.h
3699  echo $ac_declaration      >>confdefs.h
3700  echo '#endif'             >>confdefs.h
3701fi
3702
3703ac_ext=cc
3704ac_cpp='$CXXCPP $CPPFLAGS'
3705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3708
3709
3710#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3711#thus, we test here whether $CXX is actually working
3712ac_ext=cc
3713ac_cpp='$CXXCPP $CPPFLAGS'
3714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3717
3718echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3719echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3720cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726
3727int
3728main ()
3729{
3730int i=0;
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735rm -f conftest.$ac_objext
3736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737  (eval $ac_compile) 2>conftest.er1
3738  ac_status=$?
3739  grep -v '^ *+' conftest.er1 >conftest.err
3740  rm -f conftest.er1
3741  cat conftest.err >&5
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); } &&
3744         { ac_try='test -z "$ac_cxx_werror_flag"
3745                         || test ! -s conftest.err'
3746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747  (eval $ac_try) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }; } &&
3751         { ac_try='test -s conftest.$ac_objext'
3752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753  (eval $ac_try) 2>&5
3754  ac_status=$?
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); }; }; then
3757  echo "$as_me:$LINENO: result: yes" >&5
3758echo "${ECHO_T}yes" >&6
3759else
3760  echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3766echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3767   { (exit 1); exit 1; }; }
3768
3769fi
3770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771ac_ext=cc
3772ac_cpp='$CXXCPP $CPPFLAGS'
3773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3776
3777
3778coin_cxx_is_cl=false
3779# It seems that we need to cleanup something here for the Windows
3780case "$CXX" in
3781  clang* ) ;;
3782  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3783    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3784    mv confdefs.hh confdefs.h
3785    coin_cxx_is_cl=true
3786    ;;
3787esac
3788
3789# add automake conditional so we can recognize cl compiler in makefile
3790
3791
3792if test $coin_cxx_is_cl = true; then
3793  COIN_CXX_IS_CL_TRUE=
3794  COIN_CXX_IS_CL_FALSE='#'
3795else
3796  COIN_CXX_IS_CL_TRUE='#'
3797  COIN_CXX_IS_CL_FALSE=
3798fi
3799
3800
3801# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3802case "$CXX" in
3803  clang* ) ;;
3804  cl* | */cl* | CL* | */CL* )
3805    if test "$ac_cv_prog_cxx_g" = yes ; then
3806      ac_cv_prog_cxx_g=no
3807      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3808echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3809    fi ;;
3810  * )
3811    CYGPATH_W=echo
3812    ;;
3813esac
3814CXXFLAGS="$save_cxxflags"
3815
3816# Check if a project specific CXXFLAGS variable has been set
3817if test x$COIN_PRJCT != x; then
3818  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3819  if test x$coin_tmp = xset; then
3820    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3821  fi
3822fi
3823
3824if test x"$CXXFLAGS" = x; then
3825
3826# ToDo decide whether we want -DNDEBUG for optimization
3827  coin_add_cxxflags=
3828  coin_opt_cxxflags=
3829  coin_dbg_cxxflags=
3830  coin_warn_cxxflags=
3831
3832  if test "$GXX" = "yes"; then
3833    case "$CXX" in
3834      icpc* | */icpc*)
3835        ;;
3836      *)
3837# ToDo decide about unroll-loops
3838        coin_opt_cxxflags="-O3"
3839        coin_add_cxxflags="-pipe"
3840        coin_dbg_cxxflags="-g -O0"
3841        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3842        case $build in
3843          *-darwin*)
3844            ;;
3845          *)
3846            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3847            ;;
3848        esac
3849
3850        case $enable_doscompile in
3851          mingw)
3852            CXXFLAGS="-mno-cygwin"
3853            cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h.  */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h.  */
3859
3860int
3861main ()
3862{
3863int i=0; i++;
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868rm -f conftest.$ac_objext conftest$ac_exeext
3869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3870  (eval $ac_link) 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } &&
3877         { ac_try='test -z "$ac_cxx_werror_flag"
3878                         || test ! -s conftest.err'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; } &&
3884         { ac_try='test -s conftest$ac_exeext'
3885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886  (eval $ac_try) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; }; then
3890  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3891else
3892  echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895fi
3896rm -f conftest.err conftest.$ac_objext \
3897      conftest$ac_exeext conftest.$ac_ext
3898            CXXFLAGS=
3899          ;;
3900        esac
3901    esac
3902  fi
3903
3904# Note that we do not need to cover GCC in the following tests.
3905
3906  if test -z "$coin_opt_cxxflags"; then
3907    case $build in
3908      *-cygwin* | *-mingw*)
3909        case "$CXX" in
3910          clang* ) ;;
3911          cl* | */cl* | CL* | */CL*)
3912            # The MT and MTd options are mutually exclusive
3913            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3914               coin_opt_cxxflags='-MD -O2'
3915               coin_dbg_cxxflags='-MDd'
3916            else
3917               coin_opt_cxxflags='-MT -O2'
3918               coin_dbg_cxxflags='-MTd'
3919            fi
3920            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3921            ;;
3922          icl* | */icl* | ICL* | */ICL*)
3923          # The MT and MTd options are mutually exclusive
3924            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3925              coin_opt_cxxflags='-MD -Ox'
3926              coin_dbg_cxxflags='-MDd -debug'
3927            else
3928              coin_opt_cxxflags='-MT -Ox'
3929              coin_dbg_cxxflags='-MTd -debug'
3930            fi
3931            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3932            ;;
3933        esac
3934        ;;
3935      *-linux-*)
3936        case "$CXX" in
3937          icpc* | */icpc*)
3938            coin_opt_cxxflags="-O3 -ip -mp1"
3939            coin_add_cxxflags=""
3940            coin_dbg_cxxflags="-g"
3941            # Check if -i_dynamic is necessary (for new glibc library)
3942            CXXFLAGS=
3943            cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h.  */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953int i=0; i++;
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext conftest$ac_exeext
3959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960  (eval $ac_link) 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } &&
3967         { ac_try='test -z "$ac_cxx_werror_flag"
3968                         || test ! -s conftest.err'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974         { ac_try='test -s conftest$ac_exeext'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; }; then
3980  :
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3986fi
3987rm -f conftest.err conftest.$ac_objext \
3988      conftest$ac_exeext conftest.$ac_ext
3989            ;;
3990          pgCC* | */pgCC*)
3991            coin_opt_cxxflags="-fast"
3992            coin_add_cxxflags="-Kieee -pc 64"
3993            coin_dbg_cxxflags="-g"
3994            ;;
3995        esac
3996        ;;
3997      *-ibm-*)
3998        case "$CXX" in
3999          xlC* | */xlC* | mpxlC* | */mpxlC*)
4000            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4001            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
4002            coin_dbg_cxxflags="-g"
4003            ;;
4004        esac
4005        ;;
4006      *-hp-*)
4007        case "$CXX" in
4008          aCC* | */aCC* )
4009            coin_opt_cxxflags="-O"
4010            coin_add_cxxflags="-AA"
4011            coin_dbg_cxxflags="-g"
4012            ;;
4013        esac
4014        ;;
4015      *-*-solaris*)
4016          coin_opt_cxxflags="-O4"
4017          coin_dbg_cxxflags="-g"
4018        ;;
4019    esac
4020  fi
4021
4022# Generic flag settings. If these don't work, add a case above.
4023
4024  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
4025    coin_dbg_cxxflags="-g"
4026  fi
4027
4028  if test -z "$coin_opt_cxxflags"; then
4029    # Try if -O option works if nothing else is set
4030    CXXFLAGS=-O
4031    cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h.  */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h.  */
4037
4038int
4039main ()
4040{
4041int i=0; i++;
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046rm -f conftest.$ac_objext conftest$ac_exeext
4047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048  (eval $ac_link) 2>conftest.er1
4049  ac_status=$?
4050  grep -v '^ *+' conftest.er1 >conftest.err
4051  rm -f conftest.er1
4052  cat conftest.err >&5
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); } &&
4055         { ac_try='test -z "$ac_cxx_werror_flag"
4056                         || test ! -s conftest.err'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; } &&
4062         { ac_try='test -s conftest$ac_exeext'
4063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064  (eval $ac_try) 2>&5
4065  ac_status=$?
4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067  (exit $ac_status); }; }; then
4068  coin_opt_cxxflags="-O"
4069else
4070  echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073fi
4074rm -f conftest.err conftest.$ac_objext \
4075      conftest$ac_exeext conftest.$ac_ext
4076  fi
4077
4078  # if PM doesn't want the warning messages, take them out
4079  if test x"$coin_skip_warn_cxxflags" = xyes; then
4080    coin_warn_cxxflags=
4081  fi
4082
4083# Do final setup of flags based on values determined above.
4084
4085  if test x${DBG_CXXFLAGS+set} != xset; then
4086    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4087  fi
4088  if test x${OPT_CXXFLAGS+set} != xset; then
4089    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4090  fi
4091
4092  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4093  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4094
4095  if test "$coin_debug_compile" = "true"; then
4096    CXXFLAGS="$DBG_CXXFLAGS"
4097  else
4098    CXXFLAGS="$OPT_CXXFLAGS"
4099  fi
4100
4101# Handle the case where CXXFLAGS was set externally.
4102else
4103  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4104  if test x${DBG_CXXFLAGS+set} != xset; then
4105    DBG_CXXFLAGS="$CXXFLAGS"
4106  fi
4107  if test x${OPT_CXXFLAGS+set} != xset; then
4108    OPT_CXXFLAGS="$CXXFLAGS"
4109  fi
4110fi
4111
4112# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4113
4114case "$CXXFLAGS" in
4115  *-mno-cygwin*)
4116    if test x${CPPFLAGS+set} != xset ; then
4117      CPPFLAGS="-mno-cygwin"
4118    else
4119      case "$CPPFLAGS" in
4120        *-mno-cygwin*)
4121          ;;
4122        *)
4123          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4124          ;;
4125      esac
4126    fi ;;
4127esac
4128
4129# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4130if test x$COIN_PRJCT != x; then
4131  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4132fi
4133
4134# Try if CXXFLAGS works
4135save_CXXFLAGS="$CXXFLAGS"
4136cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h.  */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h.  */
4142
4143int
4144main ()
4145{
4146int i=0; i++;
4147  ;
4148  return 0;
4149}
4150_ACEOF
4151rm -f conftest.$ac_objext conftest$ac_exeext
4152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153  (eval $ac_link) 2>conftest.er1
4154  ac_status=$?
4155  grep -v '^ *+' conftest.er1 >conftest.err
4156  rm -f conftest.er1
4157  cat conftest.err >&5
4158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159  (exit $ac_status); } &&
4160         { ac_try='test -z "$ac_cxx_werror_flag"
4161                         || test ! -s conftest.err'
4162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163  (eval $ac_try) 2>&5
4164  ac_status=$?
4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166  (exit $ac_status); }; } &&
4167         { ac_try='test -s conftest$ac_exeext'
4168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169  (eval $ac_try) 2>&5
4170  ac_status=$?
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); }; }; then
4173  :
4174else
4175  echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178CXXFLAGS=
4179fi
4180rm -f conftest.err conftest.$ac_objext \
4181      conftest$ac_exeext conftest.$ac_ext
4182if test -z "$CXXFLAGS"; then
4183  { 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
4184echo "$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;}
4185  CXXFLAGS='-O'
4186  cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h.  */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h.  */
4192
4193int
4194main ()
4195{
4196int i=0; i++;
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext conftest$ac_exeext
4202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203  (eval $ac_link) 2>conftest.er1
4204  ac_status=$?
4205  grep -v '^ *+' conftest.er1 >conftest.err
4206  rm -f conftest.er1
4207  cat conftest.err >&5
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); } &&
4210         { ac_try='test -z "$ac_cxx_werror_flag"
4211                         || test ! -s conftest.err'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; } &&
4217         { ac_try='test -s conftest$ac_exeext'
4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219  (eval $ac_try) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }; }; then
4223  :
4224else
4225  echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228CXXFLAGS=
4229fi
4230rm -f conftest.err conftest.$ac_objext \
4231      conftest$ac_exeext conftest.$ac_ext
4232  if test -z "$CXXFLAGS"; then
4233    { 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
4234echo "$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;}
4235  fi
4236fi
4237
4238{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4239echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4240
4241
4242if test x"$MPICXX" = x; then :; else
4243  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4244echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4245  CXX="$MPICXX"
4246fi
4247
4248# correct the LD variable in a mingw build with MS or intel compiler
4249case "$CXX" in
4250  clang* ) ;;
4251  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4252    case $build in
4253  *-mingw*)
4254    if test "${LD+set}" = set; then :; else
4255      LD=link
4256    fi
4257    ;;
4258 esac
4259 case $enable_doscompile in
4260   msvc)
4261     if test "x${LD+set}" = xset; then :; else
4262       LD=link
4263     fi
4264     ;;
4265 esac
4266
4267    ;;
4268esac
4269
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277
4278# Initialize automake and libtool
4279{
4280
4281
4282
4283# START
4284
4285coin_disable_shared=no
4286# Test if force_shared has been set
4287if test "x" = xforce_shared; then
4288  if test x$enable_shared = xno; then
4289    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4290echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4291   { (exit 1); exit 1; }; }
4292  fi
4293  enable_shared=yes;
4294else
4295  # On Cygwin and AIX, building DLLs doesn't work
4296  case $build in
4297    *-cygwin* | *-mingw*)
4298      coin_disable_shared=yes
4299      if test x"$enable_shared" = xyes; then
4300        case "$CXX" in
4301          clang* )
4302            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4303echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4304            ;;
4305          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4306            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4307echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4308            ;;
4309          *)
4310            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4311echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4312            ;;
4313        esac
4314      fi
4315    ;;
4316    *-aix*)
4317      coin_disable_shared=yes
4318      platform=AIX
4319      if test x"$enable_shared" = xyes; then
4320        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4321echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4322      fi
4323    ;;
4324  esac
4325fi
4326if test x"$coin_disable_shared" = xyes; then
4327  if test x"$enable_shared" = xyes; then
4328    :
4329  else
4330    # we don't disable shared, because it was not selected anyway
4331    coin_disable_shared=no
4332  fi
4333  enable_shared=no
4334fi
4335# By default, we only want the shared objects to be compiled
4336# Check whether --enable-static or --disable-static was given.
4337if test "${enable_static+set}" = set; then
4338  enableval="$enable_static"
4339  p=${PACKAGE-default}
4340    case $enableval in
4341    yes) enable_static=yes ;;
4342    no) enable_static=no ;;
4343    *)
4344     enable_static=no
4345      # Look at the argument we got.  We use all the common list separators.
4346      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347      for pkg in $enableval; do
4348        IFS="$lt_save_ifs"
4349        if test "X$pkg" = "X$p"; then
4350          enable_static=yes
4351        fi
4352      done
4353      IFS="$lt_save_ifs"
4354      ;;
4355    esac
4356else
4357  enable_static=no
4358fi;
4359
4360
4361
4362
4363# Initialize automake
4364echo "$as_me:$LINENO: checking for egrep" >&5
4365echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4366if test "${ac_cv_prog_egrep+set}" = set; then
4367  echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4370    then ac_cv_prog_egrep='grep -E'
4371    else ac_cv_prog_egrep='egrep'
4372    fi
4373fi
4374echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4375echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4376 EGREP=$ac_cv_prog_egrep
4377
4378
4379echo "$as_me:$LINENO: checking whether ln -s works" >&5
4380echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4381LN_S=$as_ln_s
4382if test "$LN_S" = "ln -s"; then
4383  echo "$as_me:$LINENO: result: yes" >&5
4384echo "${ECHO_T}yes" >&6
4385else
4386  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4387echo "${ECHO_T}no, using $LN_S" >&6
4388fi
4389
4390am__api_version="1.9"
4391# Find a good install program.  We prefer a C program (faster),
4392# so one script is as good as another.  But avoid the broken or
4393# incompatible versions:
4394# SysV /etc/install, /usr/sbin/install
4395# SunOS /usr/etc/install
4396# IRIX /sbin/install
4397# AIX /bin/install
4398# AmigaOS /C/install, which installs bootblocks on floppy discs
4399# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4400# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4401# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4402# OS/2's system install, which has a completely different semantic
4403# ./install, which can be erroneously created by make from ./install.sh.
4404echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4405echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4406if test -z "$INSTALL"; then
4407if test "${ac_cv_path_install+set}" = set; then
4408  echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415  # Account for people who put trailing slashes in PATH elements.
4416case $as_dir/ in
4417  ./ | .// | /cC/* | \
4418  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4419  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4420  /usr/ucb/* ) ;;
4421  *)
4422    # OSF1 and SCO ODT 3.0 have their own names for install.
4423    # Don't use installbsd from OSF since it installs stuff as root
4424    # by default.
4425    for ac_prog in ginstall scoinst install; do
4426      for ac_exec_ext in '' $ac_executable_extensions; do
4427        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4428          if test $ac_prog = install &&
4429            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430            # AIX install.  It has an incompatible calling convention.
4431            :
4432          elif test $ac_prog = install &&
4433            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4434            # program-specific install script used by HP pwplus--don't use.
4435            :
4436          else
4437            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438            break 3
4439          fi
4440        fi
4441      done
4442    done
4443    ;;
4444esac
4445done
4446
4447
4448fi
4449  if test "${ac_cv_path_install+set}" = set; then
4450    INSTALL=$ac_cv_path_install
4451  else
4452    # As a last resort, use the slow shell script.  We don't cache a
4453    # path for INSTALL within a source directory, because that will
4454    # break other packages using the cache if that directory is
4455    # removed, or if the path is relative.
4456    INSTALL=$ac_install_sh
4457  fi
4458fi
4459echo "$as_me:$LINENO: result: $INSTALL" >&5
4460echo "${ECHO_T}$INSTALL" >&6
4461
4462# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4463# It thinks the first close brace ends the variable substitution.
4464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4465
4466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4467
4468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4469
4470echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4471echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4472# Just in case
4473sleep 1
4474echo timestamp > conftest.file
4475# Do `set' in a subshell so we don't clobber the current shell's
4476# arguments.  Must try -L first in case configure is actually a
4477# symlink; some systems play weird games with the mod time of symlinks
4478# (eg FreeBSD returns the mod time of the symlink's containing
4479# directory).
4480if (
4481   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4482   if test "$*" = "X"; then
4483      # -L didn't work.
4484      set X `ls -t $srcdir/configure conftest.file`
4485   fi
4486   rm -f conftest.file
4487   if test "$*" != "X $srcdir/configure conftest.file" \
4488      && test "$*" != "X conftest.file $srcdir/configure"; then
4489
4490      # If neither matched, then we have a broken ls.  This can happen
4491      # if, for instance, CONFIG_SHELL is bash and it inherits a
4492      # broken ls alias from the environment.  This has actually
4493      # happened.  Such a system could not be considered "sane".
4494      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4495alias in your environment" >&5
4496echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4497alias in your environment" >&2;}
4498   { (exit 1); exit 1; }; }
4499   fi
4500
4501   test "$2" = conftest.file
4502   )
4503then
4504   # Ok.
4505   :
4506else
4507   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4508Check your system clock" >&5
4509echo "$as_me: error: newly created file is older than distributed files!
4510Check your system clock" >&2;}
4511   { (exit 1); exit 1; }; }
4512fi
4513echo "$as_me:$LINENO: result: yes" >&5
4514echo "${ECHO_T}yes" >&6
4515test "$program_prefix" != NONE &&
4516  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4517# Use a double $ so make ignores it.
4518test "$program_suffix" != NONE &&
4519  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4520# Double any \ or $.  echo might interpret backslashes.
4521# By default was `s,x,x', remove it if useless.
4522cat <<\_ACEOF >conftest.sed
4523s/[\\$]/&&/g;s/;s,x,x,$//
4524_ACEOF
4525program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4526rm conftest.sed
4527
4528# expand $ac_aux_dir to an absolute path
4529am_aux_dir=`cd $ac_aux_dir && pwd`
4530
4531test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4532# Use eval to expand $SHELL
4533if eval "$MISSING --run true"; then
4534  am_missing_run="$MISSING --run "
4535else
4536  am_missing_run=
4537  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4538echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4539fi
4540
4541if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4542  # We used to keeping the `.' as first argument, in order to
4543  # allow $(mkdir_p) to be used without argument.  As in
4544  #   $(mkdir_p) $(somedir)
4545  # where $(somedir) is conditionally defined.  However this is wrong
4546  # for two reasons:
4547  #  1. if the package is installed by a user who cannot write `.'
4548  #     make install will fail,
4549  #  2. the above comment should most certainly read
4550  #     $(mkdir_p) $(DESTDIR)$(somedir)
4551  #     so it does not work when $(somedir) is undefined and
4552  #     $(DESTDIR) is not.
4553  #  To support the latter case, we have to write
4554  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4555  #  so the `.' trick is pointless.
4556  mkdir_p='mkdir -p --'
4557else
4558  # On NextStep and OpenStep, the `mkdir' command does not
4559  # recognize any option.  It will interpret all options as
4560  # directories to create, and then abort because `.' already
4561  # exists.
4562  for d in ./-p ./--version;
4563  do
4564    test -d $d && rmdir $d
4565  done
4566  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4567  if test -f "$ac_aux_dir/mkinstalldirs"; then
4568    mkdir_p='$(mkinstalldirs)'
4569  else
4570    mkdir_p='$(install_sh) -d'
4571  fi
4572fi
4573
4574for ac_prog in gawk mawk nawk awk
4575do
4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
4577set dummy $ac_prog; ac_word=$2
4578echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580if test "${ac_cv_prog_AWK+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  if test -n "$AWK"; then
4584  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for ac_exec_ext in '' $ac_executable_extensions; do
4592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593    ac_cv_prog_AWK="$ac_prog"
4594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597done
4598done
4599
4600fi
4601fi
4602AWK=$ac_cv_prog_AWK
4603if test -n "$AWK"; then
4604  echo "$as_me:$LINENO: result: $AWK" >&5
4605echo "${ECHO_T}$AWK" >&6
4606else
4607  echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609fi
4610
4611  test -n "$AWK" && break
4612done
4613
4614echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4616set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4617if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4618  echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620  cat >conftest.make <<\_ACEOF
4621all:
4622        @echo 'ac_maketemp="$(MAKE)"'
4623_ACEOF
4624# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4625eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4626if test -n "$ac_maketemp"; then
4627  eval ac_cv_prog_make_${ac_make}_set=yes
4628else
4629  eval ac_cv_prog_make_${ac_make}_set=no
4630fi
4631rm -f conftest.make
4632fi
4633if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4634  echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636  SET_MAKE=
4637else
4638  echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640  SET_MAKE="MAKE=${MAKE-make}"
4641fi
4642
4643rm -rf .tst 2>/dev/null
4644mkdir .tst 2>/dev/null
4645if test -d .tst; then
4646  am__leading_dot=.
4647else
4648  am__leading_dot=_
4649fi
4650rmdir .tst 2>/dev/null
4651
4652DEPDIR="${am__leading_dot}deps"
4653
4654          ac_config_commands="$ac_config_commands depfiles"
4655
4656
4657am_make=${MAKE-make}
4658cat > confinc << 'END'
4659am__doit:
4660        @echo done
4661.PHONY: am__doit
4662END
4663# If we don't find an include directive, just comment out the code.
4664echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4665echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4666am__include="#"
4667am__quote=
4668_am_result=none
4669# First try GNU make style include.
4670echo "include confinc" > confmf
4671# We grep out `Entering directory' and `Leaving directory'
4672# messages which can occur if `w' ends up in MAKEFLAGS.
4673# In particular we don't look at `^make:' because GNU make might
4674# be invoked under some other name (usually "gmake"), in which
4675# case it prints its new name instead of `make'.
4676if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4677   am__include=include
4678   am__quote=
4679   _am_result=GNU
4680fi
4681# Now try BSD make style include.
4682if test "$am__include" = "#"; then
4683   echo '.include "confinc"' > confmf
4684   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4685      am__include=.include
4686      am__quote="\""
4687      _am_result=BSD
4688   fi
4689fi
4690
4691
4692echo "$as_me:$LINENO: result: $_am_result" >&5
4693echo "${ECHO_T}$_am_result" >&6
4694rm -f confinc confmf
4695
4696# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4697if test "${enable_dependency_tracking+set}" = set; then
4698  enableval="$enable_dependency_tracking"
4699
4700fi;
4701if test "x$enable_dependency_tracking" != xno; then
4702  am_depcomp="$ac_aux_dir/depcomp"
4703  AMDEPBACKSLASH='\'
4704fi
4705
4706
4707if test "x$enable_dependency_tracking" != xno; then
4708  AMDEP_TRUE=
4709  AMDEP_FALSE='#'
4710else
4711  AMDEP_TRUE='#'
4712  AMDEP_FALSE=
4713fi
4714
4715
4716
4717
4718
4719
4720# AC_MSG_NOTICE([Beginning automake initialisation.])
4721# Stuff for automake
4722# test to see if srcdir already configured
4723if test "`cd $srcdir && pwd`" != "`pwd`" &&
4724   test -f $srcdir/config.status; then
4725  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4726echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4727   { (exit 1); exit 1; }; }
4728fi
4729
4730# test whether we have cygpath
4731if test -z "$CYGPATH_W"; then
4732  if (cygpath --version) >/dev/null 2>/dev/null; then
4733    CYGPATH_W='cygpath -w'
4734  else
4735    CYGPATH_W=echo
4736  fi
4737fi
4738
4739
4740# Define the identity of the package.
4741 PACKAGE='cbc'
4742 VERSION='2.8.5'
4743
4744
4745cat >>confdefs.h <<_ACEOF
4746#define PACKAGE "$PACKAGE"
4747_ACEOF
4748
4749
4750cat >>confdefs.h <<_ACEOF
4751#define VERSION "$VERSION"
4752_ACEOF
4753
4754# Some tools Automake needs.
4755
4756ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4757
4758
4759AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4760
4761
4762AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4763
4764
4765AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4766
4767
4768MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4769
4770install_sh=${install_sh-"$am_aux_dir/install-sh"}
4771
4772# Installed binaries are usually stripped using `strip' when the user
4773# run `make install-strip'.  However `strip' might not be the right
4774# tool to use in cross-compilation environments, therefore Automake
4775# will honor the `STRIP' environment variable to overrule this program.
4776if test "$cross_compiling" != no; then
4777  if test -n "$ac_tool_prefix"; then
4778  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4779set dummy ${ac_tool_prefix}strip; ac_word=$2
4780echo "$as_me:$LINENO: checking for $ac_word" >&5
4781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782if test "${ac_cv_prog_STRIP+set}" = set; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785  if test -n "$STRIP"; then
4786  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4787else
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791  IFS=$as_save_IFS
4792  test -z "$as_dir" && as_dir=.
4793  for ac_exec_ext in '' $ac_executable_extensions; do
4794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797    break 2
4798  fi
4799done
4800done
4801
4802fi
4803fi
4804STRIP=$ac_cv_prog_STRIP
4805if test -n "$STRIP"; then
4806  echo "$as_me:$LINENO: result: $STRIP" >&5
4807echo "${ECHO_T}$STRIP" >&6
4808else
4809  echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813fi
4814if test -z "$ac_cv_prog_STRIP"; then
4815  ac_ct_STRIP=$STRIP
4816  # Extract the first word of "strip", so it can be a program name with args.
4817set dummy strip; ac_word=$2
4818echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  if test -n "$ac_ct_STRIP"; then
4824  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  for ac_exec_ext in '' $ac_executable_extensions; do
4832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833    ac_cv_prog_ac_ct_STRIP="strip"
4834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835    break 2
4836  fi
4837done
4838done
4839
4840  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4841fi
4842fi
4843ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4844if test -n "$ac_ct_STRIP"; then
4845  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4846echo "${ECHO_T}$ac_ct_STRIP" >&6
4847else
4848  echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
4850fi
4851
4852  STRIP=$ac_ct_STRIP
4853else
4854  STRIP="$ac_cv_prog_STRIP"
4855fi
4856
4857fi
4858INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4859
4860# We need awk for the "check" target.  The system "awk" is bad on
4861# some platforms.
4862# Always define AMTAR for backward compatibility.
4863
4864AMTAR=${AMTAR-"${am_missing_run}tar"}
4865
4866am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4867
4868
4869
4870
4871depcc="$CC"   am_compiler_list=
4872
4873echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4874echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4875if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4876  echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4879  # We make a subdir and do the tests there.  Otherwise we can end up
4880  # making bogus files that we don't know about and never remove.  For
4881  # instance it was reported that on HP-UX the gcc test will end up
4882  # making a dummy file named `D' -- because `-MD' means `put the output
4883  # in D'.
4884  mkdir conftest.dir
4885  # Copy depcomp to subdir because otherwise we won't find it if we're
4886  # using a relative directory.
4887  cp "$am_depcomp" conftest.dir
4888  cd conftest.dir
4889  # We will build objects and dependencies in a subdirectory because
4890  # it helps to detect inapplicable dependency modes.  For instance
4891  # both Tru64's cc and ICC support -MD to output dependencies as a
4892  # side effect of compilation, but ICC will put the dependencies in
4893  # the current directory while Tru64 will put them in the object
4894  # directory.
4895  mkdir sub
4896
4897  am_cv_CC_dependencies_compiler_type=none
4898  if test "$am_compiler_list" = ""; then
4899     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4900  fi
4901  for depmode in $am_compiler_list; do
4902    # Setup a source with many dependencies, because some compilers
4903    # like to wrap large dependency lists on column 80 (with \), and
4904    # we should not choose a depcomp mode which is confused by this.
4905    #
4906    # We need to recreate these files for each test, as the compiler may
4907    # overwrite some of them when testing with obscure command lines.
4908    # This happens at least with the AIX C compiler.
4909    : > sub/conftest.c
4910    for i in 1 2 3 4 5 6; do
4911      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4912      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4913      # Solaris 8's {/usr,}/bin/sh.
4914      touch sub/conftst$i.h
4915    done
4916    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4917
4918    case $depmode in
4919    nosideeffect)
4920      # after this tag, mechanisms are not by side-effect, so they'll
4921      # only be used when explicitly requested
4922      if test "x$enable_dependency_tracking" = xyes; then
4923        continue
4924      else
4925        break
4926      fi
4927      ;;
4928    none) break ;;
4929    esac
4930    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4931    # mode.  It turns out that the SunPro C++ compiler does not properly
4932    # handle `-M -o', and we need to detect this.
4933    if depmode=$depmode \
4934       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4935       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4936       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4937         >/dev/null 2>conftest.err &&
4938       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4939       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4940       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4941      # icc doesn't choke on unknown options, it will just issue warnings
4942      # or remarks (even with -Werror).  So we grep stderr for any message
4943      # that says an option was ignored or not supported.
4944      # When given -MP, icc 7.0 and 7.1 complain thusly:
4945      #   icc: Command line warning: ignoring option '-M'; no argument required
4946      # The diagnosis changed in icc 8.0:
4947      #   icc: Command line remark: option '-MP' not supported
4948      if (grep 'ignoring option' conftest.err ||
4949          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4950        am_cv_CC_dependencies_compiler_type=$depmode
4951        break
4952      fi
4953    fi
4954  done
4955
4956  cd ..
4957  rm -rf conftest.dir
4958else
4959  am_cv_CC_dependencies_compiler_type=none
4960fi
4961
4962fi
4963echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4964echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4965CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4966
4967
4968
4969if
4970  test "x$enable_dependency_tracking" != xno \
4971  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4972  am__fastdepCC_TRUE=
4973  am__fastdepCC_FALSE='#'
4974else
4975  am__fastdepCC_TRUE='#'
4976  am__fastdepCC_FALSE=
4977fi
4978
4979
4980depcc="$CXX"  am_compiler_list=
4981
4982echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4983echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4984if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4988  # We make a subdir and do the tests there.  Otherwise we can end up
4989  # making bogus files that we don't know about and never remove.  For
4990  # instance it was reported that on HP-UX the gcc test will end up
4991  # making a dummy file named `D' -- because `-MD' means `put the output
4992  # in D'.
4993  mkdir conftest.dir
4994  # Copy depcomp to subdir because otherwise we won't find it if we're
4995  # using a relative directory.
4996  cp "$am_depcomp" conftest.dir
4997  cd conftest.dir
4998  # We will build objects and dependencies in a subdirectory because
4999  # it helps to detect inapplicable dependency modes.  For instance
5000  # both Tru64's cc and ICC support -MD to output dependencies as a
5001  # side effect of compilation, but ICC will put the dependencies in
5002  # the current directory while Tru64 will put them in the object
5003  # directory.
5004  mkdir sub
5005
5006  am_cv_CXX_dependencies_compiler_type=none
5007  if test "$am_compiler_list" = ""; then
5008     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5009  fi
5010  for depmode in $am_compiler_list; do
5011    # Setup a source with many dependencies, because some compilers
5012    # like to wrap large dependency lists on column 80 (with \), and
5013    # we should not choose a depcomp mode which is confused by this.
5014    #
5015    # We need to recreate these files for each test, as the compiler may
5016    # overwrite some of them when testing with obscure command lines.
5017    # This happens at least with the AIX C compiler.
5018    : > sub/conftest.c
5019    for i in 1 2 3 4 5 6; do
5020      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5021      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5022      # Solaris 8's {/usr,}/bin/sh.
5023      touch sub/conftst$i.h
5024    done
5025    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5026
5027    case $depmode in
5028    nosideeffect)
5029      # after this tag, mechanisms are not by side-effect, so they'll
5030      # only be used when explicitly requested
5031      if test "x$enable_dependency_tracking" = xyes; then
5032        continue
5033      else
5034        break
5035      fi
5036      ;;
5037    none) break ;;
5038    esac
5039    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5040    # mode.  It turns out that the SunPro C++ compiler does not properly
5041    # handle `-M -o', and we need to detect this.
5042    if depmode=$depmode \
5043       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5044       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5046         >/dev/null 2>conftest.err &&
5047       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5048       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5049       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5050      # icc doesn't choke on unknown options, it will just issue warnings
5051      # or remarks (even with -Werror).  So we grep stderr for any message
5052      # that says an option was ignored or not supported.
5053      # When given -MP, icc 7.0 and 7.1 complain thusly:
5054      #   icc: Command line warning: ignoring option '-M'; no argument required
5055      # The diagnosis changed in icc 8.0:
5056      #   icc: Command line remark: option '-MP' not supported
5057      if (grep 'ignoring option' conftest.err ||
5058          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5059        am_cv_CXX_dependencies_compiler_type=$depmode
5060        break
5061      fi
5062    fi
5063  done
5064
5065  cd ..
5066  rm -rf conftest.dir
5067else
5068  am_cv_CXX_dependencies_compiler_type=none
5069fi
5070
5071fi
5072echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5073echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5074CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5075
5076
5077
5078if
5079  test "x$enable_dependency_tracking" != xno \
5080  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5081  am__fastdepCXX_TRUE=
5082  am__fastdepCXX_FALSE='#'
5083else
5084  am__fastdepCXX_TRUE='#'
5085  am__fastdepCXX_FALSE=
5086fi
5087
5088
5089
5090echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5091echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5092    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5093if test "${enable_maintainer_mode+set}" = set; then
5094  enableval="$enable_maintainer_mode"
5095  USE_MAINTAINER_MODE=$enableval
5096else
5097  USE_MAINTAINER_MODE=no
5098fi;
5099  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5100echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5101
5102
5103if test $USE_MAINTAINER_MODE = yes; then
5104  MAINTAINER_MODE_TRUE=
5105  MAINTAINER_MODE_FALSE='#'
5106else
5107  MAINTAINER_MODE_TRUE='#'
5108  MAINTAINER_MODE_FALSE=
5109fi
5110
5111  MAINT=$MAINTAINER_MODE_TRUE
5112
5113
5114
5115coin_have_externals=no
5116if test "$enable_maintainer_mode" = yes; then
5117
5118  # If maintainer mode is chosen, we make sure that the correct versions
5119  # of the tools are used, and that we know where libtool.m4 is (to
5120  # recreate acinclude.m4)
5121
5122
5123  LIBTOOLM4=
5124  # Normally, $HOME
5125  AUTOTOOLS_DFLT=$HOME
5126
5127  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5128echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5129if test "${ac_cv_use_correct_autotools+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  ac_cv_use_correct_autotools=check
5133fi
5134echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5135echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5136
5137  if test $ac_cv_use_correct_autotools = check; then
5138    ac_cv_use_correct_autotools=yes
5139    # Check if we have autoconf
5140    # Extract the first word of "autoconf", so it can be a program name with args.
5141set dummy autoconf; ac_word=$2
5142echo "$as_me:$LINENO: checking for $ac_word" >&5
5143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144if test "${ac_cv_prog_have_autoconf+set}" = set; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  if test -n "$have_autoconf"; then
5148  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155  for ac_exec_ext in '' $ac_executable_extensions; do
5156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157    ac_cv_prog_have_autoconf="yes"
5158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162done
5163
5164  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5165fi
5166fi
5167have_autoconf=$ac_cv_prog_have_autoconf
5168if test -n "$have_autoconf"; then
5169  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5170echo "${ECHO_T}$have_autoconf" >&6
5171else
5172  echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
5176    if test $have_autoconf = no; then
5177      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5178echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5179   { (exit 1); exit 1; }; }
5180    fi
5181
5182    # Check whether autoconf is the correct version
5183    correct_version='2.59'
5184    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5185    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5186echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5187    autoconf --version > confauto.out 2>&1
5188    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5189      echo "$as_me:$LINENO: result: yes" >&5
5190echo "${ECHO_T}yes" >&6
5191    else
5192      rm -f confauto.out
5193      echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5196echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5197   { (exit 1); exit 1; }; }
5198    fi
5199    rm -f confauto.out
5200
5201    # Check if the executable autoconf is picked up from the correct location
5202    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5203echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5204    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5205    autoconf_dir=`cd $autoconf_dir; pwd`
5206    if test x$AUTOTOOLS_DIR = x; then
5207      want_dir=$AUTOTOOLS_DFLT/bin
5208    else
5209      want_dir=$AUTOTOOLS_DIR/bin
5210    fi
5211    if test $autoconf_dir = `cd $want_dir; pwd`; then
5212      echo "$as_me:$LINENO: result: yes" >&5
5213echo "${ECHO_T}yes" >&6
5214    else
5215      rm -f confauto.out
5216      echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5219echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5220   { (exit 1); exit 1; }; }
5221    fi
5222
5223    # Check if we have automake
5224    # Extract the first word of "automake", so it can be a program name with args.
5225set dummy automake; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_prog_have_automake+set}" = set; then
5229  echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231  if test -n "$have_automake"; then
5232  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239  for ac_exec_ext in '' $ac_executable_extensions; do
5240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241    ac_cv_prog_have_automake="yes"
5242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246done
5247
5248  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5249fi
5250fi
5251have_automake=$ac_cv_prog_have_automake
5252if test -n "$have_automake"; then
5253  echo "$as_me:$LINENO: result: $have_automake" >&5
5254echo "${ECHO_T}$have_automake" >&6
5255else
5256  echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258fi
5259
5260    if test $have_automake = no; then
5261      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5262echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5263   { (exit 1); exit 1; }; }
5264    fi
5265
5266    # Check whether automake is the correct version
5267    correct_version='1.9.6'
5268    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5269    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5270echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5271    automake --version > confauto.out 2>&1
5272    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5273      echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275    else
5276      rm -f confauto.out
5277      echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
5279      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5280echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5281   { (exit 1); exit 1; }; }
5282    fi
5283    rm -f confauto.out
5284
5285    # Check if the executable automake is picked up from the correct location
5286    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5287echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5288    automake_dir=`which automake | sed -e 's=/automake=='`
5289    automake_dir=`cd $automake_dir; pwd`
5290    if test x$AUTOTOOLS_DIR = x; then
5291      want_dir=$AUTOTOOLS_DFLT/bin
5292    else
5293      want_dir=$AUTOTOOLS_DIR/bin
5294    fi
5295    if test $automake_dir = `cd $want_dir; pwd`; then
5296      echo "$as_me:$LINENO: result: yes" >&5
5297echo "${ECHO_T}yes" >&6
5298    else
5299      rm -f confauto.out
5300      echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5303echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5304   { (exit 1); exit 1; }; }
5305    fi
5306
5307    # Check if this is the correct version of libtool (with escaped dots)
5308    if test x$AUTOTOOLS_DIR = x; then
5309      want_dir=$AUTOTOOLS_DFLT/share
5310    else
5311      want_dir=$AUTOTOOLS_DIR/share
5312    fi
5313    correct_version='1.5.22'
5314    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5315    if test -r $want_dir/libtool/ltmain.sh; then
5316  have_ltmain=yes
5317  :
5318else
5319  have_ltmain=no
5320  :
5321fi
5322
5323    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5324echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5325    if test $have_ltmain = yes; then
5326    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5327        echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
5329      else
5330        echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5333echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5334   { (exit 1); exit 1; }; }
5335      fi
5336    else
5337      echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
5339      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5340echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5341   { (exit 1); exit 1; }; }
5342    fi
5343  fi
5344
5345  # Check if we can find the libtool file
5346  if test x$AUTOTOOLS_DIR = x; then
5347    want_dir=$AUTOTOOLS_DFLT/share
5348  else
5349    want_dir=$AUTOTOOLS_DIR/share
5350  fi
5351  if test -r $want_dir/aclocal/libtool.m4; then
5352  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5353  :
5354else
5355  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5356echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5357   { (exit 1); exit 1; }; }
5358  :
5359fi
5360
5361
5362  # Check if we have an Dependencies file
5363  if test -r $srcdir/Dependencies; then
5364    coin_have_externals=yes
5365  fi
5366  # Check if subversion is installed and understands https
5367  # Extract the first word of "svn", so it can be a program name with args.
5368set dummy svn; ac_word=$2
5369echo "$as_me:$LINENO: checking for $ac_word" >&5
5370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371if test "${ac_cv_prog_have_svn+set}" = set; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  if test -n "$have_svn"; then
5375  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5376else
5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380  IFS=$as_save_IFS
5381  test -z "$as_dir" && as_dir=.
5382  for ac_exec_ext in '' $ac_executable_extensions; do
5383  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384    ac_cv_prog_have_svn="yes"
5385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386    break 2
5387  fi
5388done
5389done
5390
5391  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5392fi
5393fi
5394have_svn=$ac_cv_prog_have_svn
5395if test -n "$have_svn"; then
5396  echo "$as_me:$LINENO: result: $have_svn" >&5
5397echo "${ECHO_T}$have_svn" >&6
5398else
5399  echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401fi
5402
5403  if test x$have_svn = xyes; then
5404    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5405echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5406if test "${ac_cv_svn_understands_https+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  svn --version > confauto.out 2>&1
5410                    if $EGREP https confauto.out >/dev/null 2>&1; then
5411                      ac_cv_svn_understands_https=yes
5412                    else
5413                      ac_cv_svn_understands_https=no
5414                      have_svn=no
5415                      ac_cv_prog_have_svn=no
5416                    fi
5417                    rm -f confauto.out
5418fi
5419echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5420echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5421  fi
5422
5423  # Find the location of the BuildTools directory
5424  BUILDTOOLSDIR=
5425  if test -r $srcdir/BuildTools/coin.m4; then
5426    BUILDTOOLSDIR=$srcdir/BuildTools
5427  else
5428    if test -r $srcdir/../BuildTools/coin.m4; then
5429      BUILDTOOLSDIR=$srcdir/../BuildTools
5430    else
5431      if test -r $srcdir/../../BuildTools/coin.m4; then
5432        BUILDTOOLSDIR=$srcdir/../../BuildTools
5433      else
5434        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5435echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5436   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5437      fi
5438    fi
5439  fi
5440
5441
5442  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5443  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5444    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5445  fi
5446
5447  # The following variable is set to the name of the directory where
5448  # the autotool scripts are located
5449
5450  AUX_DIR=$ac_aux_dir
5451fi
5452
5453# helpful variable for the base directory of this package
5454abs_source_dir=`cd $srcdir; pwd`
5455
5456
5457# Stuff for example Makefiles
5458if test x$prefix = xNONE; then
5459  full_prefix=$ac_default_prefix
5460else
5461  full_prefix=$prefix
5462fi
5463full_prefix=`cd $full_prefix ; pwd`
5464
5465abs_lib_dir=$full_prefix/lib
5466
5467abs_include_dir=$full_prefix/include
5468
5469abs_bin_dir=$full_prefix/bin
5470
5471
5472
5473if test $coin_have_externals = yes && test x$have_svn = xyes; then
5474  HAVE_EXTERNALS_TRUE=
5475  HAVE_EXTERNALS_FALSE='#'
5476else
5477  HAVE_EXTERNALS_TRUE='#'
5478  HAVE_EXTERNALS_FALSE=
5479fi
5480
5481
5482# AC_MSG_NOTICE([End automake initialisation.])
5483
5484
5485
5486LIBTOOL=
5487if test -r ../libtool; then
5488  coin_config_dir=..
5489  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5490fi
5491if test "x$LIBTOOL" = x; then
5492  if test -r ../../libtool; then
5493    coin_config_dir=../..
5494    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5495  fi
5496fi
5497
5498if test "x$LIBTOOL" = x; then
5499# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5500  # Stuff for libtool
5501  # Check whether --enable-shared or --disable-shared was given.
5502if test "${enable_shared+set}" = set; then
5503  enableval="$enable_shared"
5504  p=${PACKAGE-default}
5505    case $enableval in
5506    yes) enable_shared=yes ;;
5507    no) enable_shared=no ;;
5508    *)
5509      enable_shared=no
5510      # Look at the argument we got.  We use all the common list separators.
5511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5512      for pkg in $enableval; do
5513        IFS="$lt_save_ifs"
5514        if test "X$pkg" = "X$p"; then
5515          enable_shared=yes
5516        fi
5517      done
5518      IFS="$lt_save_ifs"
5519      ;;
5520    esac
5521else
5522  enable_shared=yes
5523fi;
5524
5525# Check whether --enable-fast-install or --disable-fast-install was given.
5526if test "${enable_fast_install+set}" = set; then
5527  enableval="$enable_fast_install"
5528  p=${PACKAGE-default}
5529    case $enableval in
5530    yes) enable_fast_install=yes ;;
5531    no) enable_fast_install=no ;;
5532    *)
5533      enable_fast_install=no
5534      # Look at the argument we got.  We use all the common list separators.
5535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5536      for pkg in $enableval; do
5537        IFS="$lt_save_ifs"
5538        if test "X$pkg" = "X$p"; then
5539          enable_fast_install=yes
5540        fi
5541      done
5542      IFS="$lt_save_ifs"
5543      ;;
5544    esac
5545else
5546  enable_fast_install=yes
5547fi;
5548
5549echo "$as_me:$LINENO: checking host system type" >&5
5550echo $ECHO_N "checking host system type... $ECHO_C" >&6
5551if test "${ac_cv_host+set}" = set; then
5552  echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554  ac_cv_host_alias=$host_alias
5555test -z "$ac_cv_host_alias" &&
5556  ac_cv_host_alias=$ac_cv_build_alias
5557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5558  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5560   { (exit 1); exit 1; }; }
5561
5562fi
5563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5564echo "${ECHO_T}$ac_cv_host" >&6
5565host=$ac_cv_host
5566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5569
5570
5571echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5572echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5573if test "${lt_cv_path_SED+set}" = set; then
5574  echo $ECHO_N "(cached) $ECHO_C" >&6
5575else
5576  # Loop through the user's path and test for sed and gsed.
5577# Then use that list of sed's as ones to test for truncation.
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583  for lt_ac_prog in sed gsed; do
5584    for ac_exec_ext in '' $ac_executable_extensions; do
5585      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5586        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5587      fi
5588    done
5589  done
5590done
5591lt_ac_max=0
5592lt_ac_count=0
5593# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5594# along with /bin/sed that truncates output.
5595for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5596  test ! -f $lt_ac_sed && continue
5597  cat /dev/null > conftest.in
5598  lt_ac_count=0
5599  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5600  # Check for GNU sed and select it if it is found.
5601  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5602    lt_cv_path_SED=$lt_ac_sed
5603    break
5604  fi
5605  while true; do
5606    cat conftest.in conftest.in >conftest.tmp
5607    mv conftest.tmp conftest.in
5608    cp conftest.in conftest.nl
5609    echo >>conftest.nl
5610    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5611    cmp -s conftest.out conftest.nl || break
5612    # 10000 chars as input seems more than enough
5613    test $lt_ac_count -gt 10 && break
5614    lt_ac_count=`expr $lt_ac_count + 1`
5615    if test $lt_ac_count -gt $lt_ac_max; then
5616      lt_ac_max=$lt_ac_count
5617      lt_cv_path_SED=$lt_ac_sed
5618    fi
5619  done
5620done
5621
5622fi
5623
5624SED=$lt_cv_path_SED
5625echo "$as_me:$LINENO: result: $SED" >&5
5626echo "${ECHO_T}$SED" >&6
5627
5628
5629# Check whether --with-gnu-ld or --without-gnu-ld was given.
5630if test "${with_gnu_ld+set}" = set; then
5631  withval="$with_gnu_ld"
5632  test "$withval" = no || with_gnu_ld=yes
5633else
5634  with_gnu_ld=no
5635fi;
5636ac_prog=ld
5637if test "$GCC" = yes; then
5638  # Check if gcc -print-prog-name=ld gives a path.
5639  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5640echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5641  case $host in
5642  *-*-mingw*)
5643    # gcc leaves a trailing carriage return which upsets mingw
5644    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5645  *)
5646    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5647  esac
5648  case $ac_prog in
5649    # Accept absolute paths.
5650    [\\/]* | ?:[\\/]*)
5651      re_direlt='/[^/][^/]*/\.\./'
5652      # Canonicalize the pathname of ld
5653      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5654      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5655        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5656      done
5657      test -z "$LD" && LD="$ac_prog"
5658      ;;
5659  "")
5660    # If it fails, then pretend we aren't using GCC.
5661    ac_prog=ld
5662    ;;
5663  *)
5664    # If it is relative, then search for the first ld in PATH.
5665    with_gnu_ld=unknown
5666    ;;
5667  esac
5668elif test "$with_gnu_ld" = yes; then
5669  echo "$as_me:$LINENO: checking for GNU ld" >&5
5670echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5671else
5672  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5673echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5674fi
5675if test "${lt_cv_path_LD+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  if test -z "$LD"; then
5679  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680  for ac_dir in $PATH; do
5681    IFS="$lt_save_ifs"
5682    test -z "$ac_dir" && ac_dir=.
5683    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5684      lt_cv_path_LD="$ac_dir/$ac_prog"
5685      # Check to see if the program is GNU ld.  I'd rather use --version,
5686      # but apparently some variants of GNU ld only accept -v.
5687      # Break only if it was the GNU/non-GNU ld that we prefer.
5688      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5689      *GNU* | *'with BFD'*)
5690        test "$with_gnu_ld" != no && break
5691        ;;
5692      *)
5693        test "$with_gnu_ld" != yes && break
5694        ;;
5695      esac
5696    fi
5697  done
5698  IFS="$lt_save_ifs"
5699else
5700  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5701fi
5702fi
5703
5704LD="$lt_cv_path_LD"
5705if test -n "$LD"; then
5706  echo "$as_me:$LINENO: result: $LD" >&5
5707echo "${ECHO_T}$LD" >&6
5708else
5709  echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711fi
5712test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5713echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5714   { (exit 1); exit 1; }; }
5715echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5716echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5717if test "${lt_cv_prog_gnu_ld+set}" = set; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5721case `$LD -v 2>&1 </dev/null` in
5722*GNU* | *'with BFD'*)
5723  lt_cv_prog_gnu_ld=yes
5724  ;;
5725*)
5726  lt_cv_prog_gnu_ld=no
5727  ;;
5728esac
5729fi
5730echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5731echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5732with_gnu_ld=$lt_cv_prog_gnu_ld
5733
5734
5735echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5736echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5737if test "${lt_cv_ld_reload_flag+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  lt_cv_ld_reload_flag='-r'
5741fi
5742echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5743echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5744reload_flag=$lt_cv_ld_reload_flag
5745case $reload_flag in
5746"" | " "*) ;;
5747*) reload_flag=" $reload_flag" ;;
5748esac
5749reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750case $host_os in
5751  darwin*)
5752    if test "$GCC" = yes; then
5753      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5754    else
5755      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5756    fi
5757    ;;
5758esac
5759
5760echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5761echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5762if test "${lt_cv_path_NM+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765  if test -n "$NM"; then
5766  # Let the user override the test.
5767  lt_cv_path_NM="$NM"
5768else
5769  lt_nm_to_check="${ac_tool_prefix}nm"
5770  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771    lt_nm_to_check="$lt_nm_to_check nm"
5772  fi
5773  for lt_tmp_nm in $lt_nm_to_check; do
5774    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776      IFS="$lt_save_ifs"
5777      test -z "$ac_dir" && ac_dir=.
5778      tmp_nm="$ac_dir/$lt_tmp_nm"
5779      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5780        # Check to see if the nm accepts a BSD-compat flag.
5781        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5782        #   nm: unknown option "B" ignored
5783        # Tru64's nm complains that /dev/null is an invalid object file
5784        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5785        */dev/null* | *'Invalid file or object type'*)
5786          lt_cv_path_NM="$tmp_nm -B"
5787          break
5788          ;;
5789        *)
5790          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5791          */dev/null*)
5792            lt_cv_path_NM="$tmp_nm -p"
5793            break
5794            ;;
5795          *)
5796            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5797            continue # so that we can try to find one that supports BSD flags
5798            ;;
5799          esac
5800          ;;
5801        esac
5802      fi
5803    done
5804    IFS="$lt_save_ifs"
5805  done
5806  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5807fi
5808fi
5809echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5810echo "${ECHO_T}$lt_cv_path_NM" >&6
5811NM="$lt_cv_path_NM"
5812
5813echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5814echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5815if test "${lt_cv_deplibs_check_method+set}" = set; then
5816  echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818  lt_cv_file_magic_cmd='$MAGIC_CMD'
5819lt_cv_file_magic_test_file=
5820lt_cv_deplibs_check_method='unknown'
5821# Need to set the preceding variable on all platforms that support
5822# interlibrary dependencies.
5823# 'none' -- dependencies not supported.
5824# `unknown' -- same as none, but documents that we really don't know.
5825# 'pass_all' -- all dependencies passed with no checks.
5826# 'test_compile' -- check by making test program.
5827# 'file_magic [[regex]]' -- check by looking for files in library path
5828# which responds to the $file_magic_cmd with a given extended regex.
5829# If you have `file' or equivalent on your system and you're not sure
5830# whether `pass_all' will *always* work, you probably want this one.
5831
5832case $host_os in
5833aix4* | aix5*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837beos*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841bsdi[45]*)
5842  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5843  lt_cv_file_magic_cmd='/usr/bin/file -L'
5844  lt_cv_file_magic_test_file=/shlib/libc.so
5845  ;;
5846
5847cygwin*)
5848  # func_win32_libid is a shell function defined in ltmain.sh
5849  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5850  lt_cv_file_magic_cmd='func_win32_libid'
5851  ;;
5852
5853mingw* | pw32*)
5854  # Base MSYS/MinGW do not provide the 'file' command needed by
5855  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5856  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5857  lt_cv_file_magic_cmd='$OBJDUMP -f'
5858  ;;
5859
5860darwin* | rhapsody*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864freebsd* | kfreebsd*-gnu | dragonfly*)
5865  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5866    case $host_cpu in
5867    i*86 )
5868      # Not sure whether the presence of OpenBSD here was a mistake.
5869      # Let's accept both of them until this is cleared up.
5870      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5871      lt_cv_file_magic_cmd=/usr/bin/file
5872      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5873      ;;
5874    esac
5875  else
5876    lt_cv_deplibs_check_method=pass_all
5877  fi
5878  ;;
5879
5880gnu*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884hpux10.20* | hpux11*)
5885  lt_cv_file_magic_cmd=/usr/bin/file
5886  case $host_cpu in
5887  ia64*)
5888    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5889    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5890    ;;
5891  hppa*64*)
5892    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]'
5893    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5894    ;;
5895  *)
5896    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5897    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5898    ;;
5899  esac
5900  ;;
5901
5902interix3*)
5903  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5904  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5905  ;;
5906
5907irix5* | irix6* | nonstopux*)
5908  case $LD in
5909  *-32|*"-32 ") libmagic=32-bit;;
5910  *-n32|*"-n32 ") libmagic=N32;;
5911  *-64|*"-64 ") libmagic=64-bit;;
5912  *) libmagic=never-match;;
5913  esac
5914  lt_cv_deplibs_check_method=pass_all
5915  ;;
5916
5917# This must be Linux ELF.
5918linux*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921
5922netbsd*)
5923  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5924    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5925  else
5926    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5927  fi
5928  ;;
5929
5930newos6*)
5931  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5932  lt_cv_file_magic_cmd=/usr/bin/file
5933  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5934  ;;
5935
5936nto-qnx*)
5937  lt_cv_deplibs_check_method=unknown
5938  ;;
5939
5940openbsd*)
5941  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5942    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5943  else
5944    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5945  fi
5946  ;;
5947
5948osf3* | osf4* | osf5*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952solaris*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956sysv4 | sysv4.3*)
5957  case $host_vendor in
5958  motorola)
5959    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]'
5960    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5961    ;;
5962  ncr)
5963    lt_cv_deplibs_check_method=pass_all
5964    ;;
5965  sequent)
5966    lt_cv_file_magic_cmd='/bin/file'
5967    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5968    ;;
5969  sni)
5970    lt_cv_file_magic_cmd='/bin/file'
5971    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5972    lt_cv_file_magic_test_file=/lib/libc.so
5973    ;;
5974  siemens)
5975    lt_cv_deplibs_check_method=pass_all
5976    ;;
5977  pc)
5978    lt_cv_deplibs_check_method=pass_all
5979    ;;
5980  esac
5981  ;;
5982
5983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5984  lt_cv_deplibs_check_method=pass_all
5985  ;;
5986esac
5987
5988fi
5989echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5990echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5991file_magic_cmd=$lt_cv_file_magic_cmd
5992deplibs_check_method=$lt_cv_deplibs_check_method
5993test -z "$deplibs_check_method" && deplibs_check_method=unknown
5994
5995
5996
5997
5998# If no C compiler was specified, use CC.
5999LTCC=${LTCC-"$CC"}
6000
6001# If no C compiler flags were specified, use CFLAGS.
6002LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6003
6004# Allow CC to be a program name with arguments.
6005compiler=$CC
6006
6007# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6008if test "${enable_libtool_lock+set}" = set; then
6009  enableval="$enable_libtool_lock"
6010
6011fi;
6012test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6013
6014# Some flags need to be propagated to the compiler or linker for good
6015# libtool support.
6016case $host in
6017ia64-*-hpux*)
6018  # Find out which ABI we are using.
6019  echo 'int i;' > conftest.$ac_ext
6020  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }; then
6025    case `/usr/bin/file conftest.$ac_objext` in
6026    *ELF-32*)
6027      HPUX_IA64_MODE="32"
6028      ;;
6029    *ELF-64*)
6030      HPUX_IA64_MODE="64"
6031      ;;
6032    esac
6033  fi
6034  rm -rf conftest*
6035  ;;
6036*-*-irix6*)
6037  # Find out which ABI we are using.
6038  echo '#line 6038 "configure"' > conftest.$ac_ext
6039  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040  (eval $ac_compile) 2>&5
6041  ac_status=$?
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); }; then
6044   if test "$lt_cv_prog_gnu_ld" = yes; then
6045    case `/usr/bin/file conftest.$ac_objext` in
6046    *32-bit*)
6047      LD="${LD-ld} -melf32bsmip"
6048      ;;
6049    *N32*)
6050      LD="${LD-ld} -melf32bmipn32"
6051      ;;
6052    *64-bit*)
6053      LD="${LD-ld} -melf64bmip"
6054      ;;
6055    esac
6056   else
6057    case `/usr/bin/file conftest.$ac_objext` in
6058    *32-bit*)
6059      LD="${LD-ld} -32"
6060      ;;
6061    *N32*)
6062      LD="${LD-ld} -n32"
6063      ;;
6064    *64-bit*)
6065      LD="${LD-ld} -64"
6066      ;;
6067    esac
6068   fi
6069  fi
6070  rm -rf conftest*
6071  ;;
6072
6073x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6074  # Find out which ABI we are using.
6075  echo 'int i;' > conftest.$ac_ext
6076  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077  (eval $ac_compile) 2>&5
6078  ac_status=$?
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); }; then
6081    case `/usr/bin/file conftest.o` in
6082    *32-bit*)
6083      case $host in
6084        x86_64-*linux*)
6085          LD="${LD-ld} -m elf_i386"
6086          ;;
6087        ppc64-*linux*|powerpc64-*linux*)
6088          LD="${LD-ld} -m elf32ppclinux"
6089          ;;
6090        s390x-*linux*)
6091          LD="${LD-ld} -m elf_s390"
6092          ;;
6093        sparc64-*linux*)
6094          LD="${LD-ld} -m elf32_sparc"
6095          ;;
6096      esac
6097      ;;
6098    *64-bit*)
6099      case $host in
6100        x86_64-*linux*)
6101          LD="${LD-ld} -m elf_x86_64"
6102          ;;
6103        ppc*-*linux*|powerpc*-*linux*)
6104          LD="${LD-ld} -m elf64ppc"
6105          ;;
6106        s390*-*linux*)
6107          LD="${LD-ld} -m elf64_s390"
6108          ;;
6109        sparc*-*linux*)
6110          LD="${LD-ld} -m elf64_sparc"
6111          ;;
6112      esac
6113      ;;
6114    esac
6115  fi
6116  rm -rf conftest*
6117  ;;
6118
6119*-*-sco3.2v5*)
6120  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6121  SAVE_CFLAGS="$CFLAGS"
6122  CFLAGS="$CFLAGS -belf"
6123  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6124echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6125if test "${lt_cv_cc_needs_belf+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  ac_ext=c
6129ac_cpp='$CPP $CPPFLAGS'
6130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
6134     cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h.  */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h.  */
6140
6141int
6142main ()
6143{
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149rm -f conftest.$ac_objext conftest$ac_exeext
6150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151  (eval $ac_link) 2>conftest.er1
6152  ac_status=$?
6153  grep -v '^ *+' conftest.er1 >conftest.err
6154  rm -f conftest.er1
6155  cat conftest.err >&5
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); } &&
6158         { ac_try='test -z "$ac_c_werror_flag"
6159                         || test ! -s conftest.err'
6160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161  (eval $ac_try) 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }; } &&
6165         { ac_try='test -s conftest$ac_exeext'
6166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167  (eval $ac_try) 2>&5
6168  ac_status=$?
6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }; }; then
6171  lt_cv_cc_needs_belf=yes
6172else
6173  echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176lt_cv_cc_needs_belf=no
6177fi
6178rm -f conftest.err conftest.$ac_objext \
6179      conftest$ac_exeext conftest.$ac_ext
6180     ac_ext=c
6181ac_cpp='$CPP $CPPFLAGS'
6182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186fi
6187echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6188echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6189  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6190    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6191    CFLAGS="$SAVE_CFLAGS"
6192  fi
6193  ;;
6194sparc*-*solaris*)
6195  # Find out which ABI we are using.
6196  echo 'int i;' > conftest.$ac_ext
6197  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198  (eval $ac_compile) 2>&5
6199  ac_status=$?
6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); }; then
6202    case `/usr/bin/file conftest.o` in
6203    *64-bit*)
6204      case $lt_cv_prog_gnu_ld in
6205      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6206      *)    LD="${LD-ld} -64" ;;
6207      esac
6208      ;;
6209    esac
6210  fi
6211  rm -rf conftest*
6212  ;;
6213
6214
6215esac
6216
6217need_locks="$enable_libtool_lock"
6218
6219
6220ac_ext=c
6221ac_cpp='$CPP $CPPFLAGS'
6222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6226echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6227# On Suns, sometimes $CPP names a directory.
6228if test -n "$CPP" && test -d "$CPP"; then
6229  CPP=
6230fi
6231if test -z "$CPP"; then
6232  if test "${ac_cv_prog_CPP+set}" = set; then
6233  echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235      # Double quotes because CPP needs to be expanded
6236    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6237    do
6238      ac_preproc_ok=false
6239for ac_c_preproc_warn_flag in '' yes
6240do
6241  # Use a header file that comes with gcc, so configuring glibc
6242  # with a fresh cross-compiler works.
6243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244  # <limits.h> exists even on freestanding compilers.
6245  # On the NeXT, cc -E runs the code through the compiler's parser,
6246  # not just through cpp. "Syntax error" is here to catch this case.
6247  cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h.  */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h.  */
6253#ifdef __STDC__
6254# include <limits.h>
6255#else
6256# include <assert.h>
6257#endif
6258                     Syntax error
6259_ACEOF
6260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } >/dev/null; then
6268  if test -s conftest.err; then
6269    ac_cpp_err=$ac_c_preproc_warn_flag
6270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6271  else
6272    ac_cpp_err=
6273  fi
6274else
6275  ac_cpp_err=yes
6276fi
6277if test -z "$ac_cpp_err"; then
6278  :
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283  # Broken: fails on valid input.
6284continue
6285fi
6286rm -f conftest.err conftest.$ac_ext
6287
6288  # OK, works on sane cases.  Now check whether non-existent headers
6289  # can be detected and how.
6290  cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296#include <ac_nonexistent.h>
6297_ACEOF
6298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300  ac_status=$?
6301  grep -v '^ *+' conftest.er1 >conftest.err
6302  rm -f conftest.er1
6303  cat conftest.err >&5
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); } >/dev/null; then
6306  if test -s conftest.err; then
6307    ac_cpp_err=$ac_c_preproc_warn_flag
6308    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6309  else
6310    ac_cpp_err=
6311  fi
6312else
6313  ac_cpp_err=yes
6314fi
6315if test -z "$ac_cpp_err"; then
6316  # Broken: success on invalid input.
6317continue
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322  # Passes both tests.
6323ac_preproc_ok=:
6324break
6325fi
6326rm -f conftest.err conftest.$ac_ext
6327
6328done
6329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6330rm -f conftest.err conftest.$ac_ext
6331if $ac_preproc_ok; then
6332  break
6333fi
6334
6335    done
6336    ac_cv_prog_CPP=$CPP
6337
6338fi
6339  CPP=$ac_cv_prog_CPP
6340else
6341  ac_cv_prog_CPP=$CPP
6342fi
6343echo "$as_me:$LINENO: result: $CPP" >&5
6344echo "${ECHO_T}$CPP" >&6
6345ac_preproc_ok=false
6346for ac_c_preproc_warn_flag in '' yes
6347do
6348  # Use a header file that comes with gcc, so configuring glibc
6349  # with a fresh cross-compiler works.
6350  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351  # <limits.h> exists even on freestanding compilers.
6352  # On the NeXT, cc -E runs the code through the compiler's parser,
6353  # not just through cpp. "Syntax error" is here to catch this case.
6354  cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h.  */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h.  */
6360#ifdef __STDC__
6361# include <limits.h>
6362#else
6363# include <assert.h>
6364#endif
6365                     Syntax error
6366_ACEOF
6367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6369  ac_status=$?
6370  grep -v '^ *+' conftest.er1 >conftest.err
6371  rm -f conftest.er1
6372  cat conftest.err >&5
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } >/dev/null; then
6375  if test -s conftest.err; then
6376    ac_cpp_err=$ac_c_preproc_warn_flag
6377    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6378  else
6379    ac_cpp_err=
6380  fi
6381else
6382  ac_cpp_err=yes
6383fi
6384if test -z "$ac_cpp_err"; then
6385  :
6386else
6387  echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390  # Broken: fails on valid input.
6391continue
6392fi
6393rm -f conftest.err conftest.$ac_ext
6394
6395  # OK, works on sane cases.  Now check whether non-existent headers
6396  # can be detected and how.
6397  cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h.  */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h.  */
6403#include <ac_nonexistent.h>
6404_ACEOF
6405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6407  ac_status=$?
6408  grep -v '^ *+' conftest.er1 >conftest.err
6409  rm -f conftest.er1
6410  cat conftest.err >&5
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); } >/dev/null; then
6413  if test -s conftest.err; then
6414    ac_cpp_err=$ac_c_preproc_warn_flag
6415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6416  else
6417    ac_cpp_err=
6418  fi
6419else
6420  ac_cpp_err=yes
6421fi
6422if test -z "$ac_cpp_err"; then
6423  # Broken: success on invalid input.
6424continue
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429  # Passes both tests.
6430ac_preproc_ok=:
6431break
6432fi
6433rm -f conftest.err conftest.$ac_ext
6434
6435done
6436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6437rm -f conftest.err conftest.$ac_ext
6438if $ac_preproc_ok; then
6439  :
6440else
6441  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6442See \`config.log' for more details." >&5
6443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6444See \`config.log' for more details." >&2;}
6445   { (exit 1); exit 1; }; }
6446fi
6447
6448ac_ext=c
6449ac_cpp='$CPP $CPPFLAGS'
6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452ac_compiler_gnu=$ac_cv_c_compiler_gnu
6453
6454
6455echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6456echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6457if test "${ac_cv_header_stdc+set}" = set; then
6458  echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460  cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h.  */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h.  */
6466#include <stdlib.h>
6467#include <stdarg.h>
6468#include <string.h>
6469#include <float.h>
6470
6471int
6472main ()
6473{
6474
6475  ;
6476  return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481  (eval $ac_compile) 2>conftest.er1
6482  ac_status=$?
6483  grep -v '^ *+' conftest.er1 >conftest.err
6484  rm -f conftest.er1
6485  cat conftest.err >&5
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } &&
6488         { ac_try='test -z "$ac_c_werror_flag"
6489                         || test ! -s conftest.err'
6490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491  (eval $ac_try) 2>&5
6492  ac_status=$?
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); }; } &&
6495         { ac_try='test -s conftest.$ac_objext'
6496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497  (eval $ac_try) 2>&5
6498  ac_status=$?
6499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500  (exit $ac_status); }; }; then
6501  ac_cv_header_stdc=yes
6502else
6503  echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506ac_cv_header_stdc=no
6507fi
6508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509
6510if test $ac_cv_header_stdc = yes; then
6511  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518#include <string.h>
6519
6520_ACEOF
6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522  $EGREP "memchr" >/dev/null 2>&1; then
6523  :
6524else
6525  ac_cv_header_stdc=no
6526fi
6527rm -f conftest*
6528
6529fi
6530
6531if test $ac_cv_header_stdc = yes; then
6532  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6533  cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h.  */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h.  */
6539#include <stdlib.h>
6540
6541_ACEOF
6542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543  $EGREP "free" >/dev/null 2>&1; then
6544  :
6545else
6546  ac_cv_header_stdc=no
6547fi
6548rm -f conftest*
6549
6550fi
6551
6552if test $ac_cv_header_stdc = yes; then
6553  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6554  if test "$cross_compiling" = yes; then
6555  :
6556else
6557  cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563#include <ctype.h>
6564#if ((' ' & 0x0FF) == 0x020)
6565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6567#else
6568# define ISLOWER(c) \
6569                   (('a' <= (c) && (c) <= 'i') \
6570                     || ('j' <= (c) && (c) <= 'r') \
6571                     || ('s' <= (c) && (c) <= 'z'))
6572# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6573#endif
6574
6575#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6576int
6577main ()
6578{
6579  int i;
6580  for (i = 0; i < 256; i++)
6581    if (XOR (islower (i), ISLOWER (i))
6582        || toupper (i) != TOUPPER (i))
6583      exit(2);
6584  exit (0);
6585}
6586_ACEOF
6587rm -f conftest$ac_exeext
6588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589  (eval $ac_link) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594  (eval $ac_try) 2>&5
6595  ac_status=$?
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); }; }; then
6598  :
6599else
6600  echo "$as_me: program exited with status $ac_status" >&5
6601echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604( exit $ac_status )
6605ac_cv_header_stdc=no
6606fi
6607rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6608fi
6609fi
6610fi
6611echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6612echo "${ECHO_T}$ac_cv_header_stdc" >&6
6613if test $ac_cv_header_stdc = yes; then
6614
6615cat >>confdefs.h <<\_ACEOF
6616#define STDC_HEADERS 1
6617_ACEOF
6618
6619fi
6620
6621# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6632                  inttypes.h stdint.h unistd.h
6633do
6634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6635echo "$as_me:$LINENO: checking for $ac_header" >&5
6636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6637if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638  echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
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$ac_includes_default
6647
6648#include <$ac_header>
6649_ACEOF
6650rm -f conftest.$ac_objext
6651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652  (eval $ac_compile) 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } &&
6659         { ac_try='test -z "$ac_c_werror_flag"
6660                         || test ! -s conftest.err'
6661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662  (eval $ac_try) 2>&5
6663  ac_status=$?
6664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665  (exit $ac_status); }; } &&
6666         { ac_try='test -s conftest.$ac_objext'
6667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668  (eval $ac_try) 2>&5
6669  ac_status=$?
6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671  (exit $ac_status); }; }; then
6672  eval "$as_ac_Header=yes"
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677eval "$as_ac_Header=no"
6678fi
6679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680fi
6681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6683if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684  cat >>confdefs.h <<_ACEOF
6685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686_ACEOF
6687
6688fi
6689
6690done
6691
6692
6693
6694for ac_header in dlfcn.h
6695do
6696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698  echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702fi
6703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705else
6706  # Is the header compilable?
6707echo "$as_me:$LINENO: checking $ac_header usability" >&5
6708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6709cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h.  */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h.  */
6715$ac_includes_default
6716#include <$ac_header>
6717_ACEOF
6718rm -f conftest.$ac_objext
6719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720  (eval $ac_compile) 2>conftest.er1
6721  ac_status=$?
6722  grep -v '^ *+' conftest.er1 >conftest.err
6723  rm -f conftest.er1
6724  cat conftest.err >&5
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); } &&
6727         { ac_try='test -z "$ac_c_werror_flag"
6728                         || test ! -s conftest.err'
6729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730  (eval $ac_try) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); }; } &&
6734         { ac_try='test -s conftest.$ac_objext'
6735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736  (eval $ac_try) 2>&5
6737  ac_status=$?
6738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739  (exit $ac_status); }; }; then
6740  ac_header_compiler=yes
6741else
6742  echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745ac_header_compiler=no
6746fi
6747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6749echo "${ECHO_T}$ac_header_compiler" >&6
6750
6751# Is the header present?
6752echo "$as_me:$LINENO: checking $ac_header presence" >&5
6753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6754cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h.  */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h.  */
6760#include <$ac_header>
6761_ACEOF
6762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6763  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6764  ac_status=$?
6765  grep -v '^ *+' conftest.er1 >conftest.err
6766  rm -f conftest.er1
6767  cat conftest.err >&5
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); } >/dev/null; then
6770  if test -s conftest.err; then
6771    ac_cpp_err=$ac_c_preproc_warn_flag
6772    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6773  else
6774    ac_cpp_err=
6775  fi
6776else
6777  ac_cpp_err=yes
6778fi
6779if test -z "$ac_cpp_err"; then
6780  ac_header_preproc=yes
6781else
6782  echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785  ac_header_preproc=no
6786fi
6787rm -f conftest.err conftest.$ac_ext
6788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6789echo "${ECHO_T}$ac_header_preproc" >&6
6790
6791# So?  What about this header?
6792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6793  yes:no: )
6794    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6796    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6798    ac_header_preproc=yes
6799    ;;
6800  no:yes:* )
6801    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6803    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6804echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6808echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6809    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6811    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6813    (
6814      cat <<\_ASBOX
6815## ------------------------------------ ##
6816## Report this to cbc@lists.coin-or.org ##
6817## ------------------------------------ ##
6818_ASBOX
6819    ) |
6820      sed "s/^/$as_me: WARNING:     /" >&2
6821    ;;
6822esac
6823echo "$as_me:$LINENO: checking for $ac_header" >&5
6824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826  echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828  eval "$as_ac_Header=\$ac_header_preproc"
6829fi
6830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6832
6833fi
6834if test `eval echo '${'$as_ac_Header'}'` = yes; then
6835  cat >>confdefs.h <<_ACEOF
6836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837_ACEOF
6838
6839fi
6840
6841done
6842
6843
6844
6845if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6846    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6847    (test "X$CXX" != "Xg++"))) ; then
6848  ac_ext=cc
6849ac_cpp='$CXXCPP $CPPFLAGS'
6850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6853echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6854echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6855if test -z "$CXXCPP"; then
6856  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859      # Double quotes because CXXCPP needs to be expanded
6860    for CXXCPP in "$CXX -E" "/lib/cpp"
6861    do
6862      ac_preproc_ok=false
6863for ac_cxx_preproc_warn_flag in '' yes
6864do
6865  # Use a header file that comes with gcc, so configuring glibc
6866  # with a fresh cross-compiler works.
6867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868  # <limits.h> exists even on freestanding compilers.
6869  # On the NeXT, cc -E runs the code through the compiler's parser,
6870  # not just through cpp. "Syntax error" is here to catch this case.
6871  cat >conftest.$ac_ext <<_ACEOF
6872/* confdefs.h.  */
6873_ACEOF
6874cat confdefs.h >>conftest.$ac_ext
6875cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h.  */
6877#ifdef __STDC__
6878# include <limits.h>
6879#else
6880# include <assert.h>
6881#endif
6882                     Syntax error
6883_ACEOF
6884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6886  ac_status=$?
6887  grep -v '^ *+' conftest.er1 >conftest.err
6888  rm -f conftest.er1
6889  cat conftest.err >&5
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); } >/dev/null; then
6892  if test -s conftest.err; then
6893    ac_cpp_err=$ac_cxx_preproc_warn_flag
6894    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6895  else
6896    ac_cpp_err=
6897  fi
6898else
6899  ac_cpp_err=yes
6900fi
6901if test -z "$ac_cpp_err"; then
6902  :
6903else
6904  echo "$as_me: failed program was:" >&5
6905sed 's/^/| /' conftest.$ac_ext >&5
6906
6907  # Broken: fails on valid input.
6908continue
6909fi
6910rm -f conftest.err conftest.$ac_ext
6911
6912  # OK, works on sane cases.  Now check whether non-existent headers
6913  # can be detected and how.
6914  cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920#include <ac_nonexistent.h>
6921_ACEOF
6922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924  ac_status=$?
6925  grep -v '^ *+' conftest.er1 >conftest.err
6926  rm -f conftest.er1
6927  cat conftest.err >&5
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } >/dev/null; then
6930  if test -s conftest.err; then
6931    ac_cpp_err=$ac_cxx_preproc_warn_flag
6932    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6933  else
6934    ac_cpp_err=
6935  fi
6936else
6937  ac_cpp_err=yes
6938fi
6939if test -z "$ac_cpp_err"; then
6940  # Broken: success on invalid input.
6941continue
6942else
6943  echo "$as_me: failed program was:" >&5
6944sed 's/^/| /' conftest.$ac_ext >&5
6945
6946  # Passes both tests.
6947ac_preproc_ok=:
6948break
6949fi
6950rm -f conftest.err conftest.$ac_ext
6951
6952done
6953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6954rm -f conftest.err conftest.$ac_ext
6955if $ac_preproc_ok; then
6956  break
6957fi
6958
6959    done
6960    ac_cv_prog_CXXCPP=$CXXCPP
6961
6962fi
6963  CXXCPP=$ac_cv_prog_CXXCPP
6964else
6965  ac_cv_prog_CXXCPP=$CXXCPP
6966fi
6967echo "$as_me:$LINENO: result: $CXXCPP" >&5
6968echo "${ECHO_T}$CXXCPP" >&6
6969ac_preproc_ok=false
6970for ac_cxx_preproc_warn_flag in '' yes
6971do
6972  # Use a header file that comes with gcc, so configuring glibc
6973  # with a fresh cross-compiler works.
6974  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6975  # <limits.h> exists even on freestanding compilers.
6976  # On the NeXT, cc -E runs the code through the compiler's parser,
6977  # not just through cpp. "Syntax error" is here to catch this case.
6978  cat >conftest.$ac_ext <<_ACEOF
6979/* confdefs.h.  */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h.  */
6984#ifdef __STDC__
6985# include <limits.h>
6986#else
6987# include <assert.h>
6988#endif
6989                     Syntax error
6990_ACEOF
6991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6993  ac_status=$?
6994  grep -v '^ *+' conftest.er1 >conftest.err
6995  rm -f conftest.er1
6996  cat conftest.err >&5
6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998  (exit $ac_status); } >/dev/null; then
6999  if test -s conftest.err; then
7000    ac_cpp_err=$ac_cxx_preproc_warn_flag
7001    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7002  else
7003    ac_cpp_err=
7004  fi
7005else
7006  ac_cpp_err=yes
7007fi
7008if test -z "$ac_cpp_err"; then
7009  :
7010else
7011  echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014  # Broken: fails on valid input.
7015continue
7016fi
7017rm -f conftest.err conftest.$ac_ext
7018
7019  # OK, works on sane cases.  Now check whether non-existent headers
7020  # can be detected and how.
7021  cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h.  */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h.  */
7027#include <ac_nonexistent.h>
7028_ACEOF
7029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7030  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7037  if test -s conftest.err; then
7038    ac_cpp_err=$ac_cxx_preproc_warn_flag
7039    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7040  else
7041    ac_cpp_err=
7042  fi
7043else
7044  ac_cpp_err=yes
7045fi
7046if test -z "$ac_cpp_err"; then
7047  # Broken: success on invalid input.
7048continue
7049else
7050  echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
7052
7053  # Passes both tests.
7054ac_preproc_ok=:
7055break
7056fi
7057rm -f conftest.err conftest.$ac_ext
7058
7059done
7060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7061rm -f conftest.err conftest.$ac_ext
7062if $ac_preproc_ok; then
7063  :
7064else
7065  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7066See \`config.log' for more details." >&5
7067echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7068See \`config.log' for more details." >&2;}
7069   { (exit 1); exit 1; }; }
7070fi
7071
7072ac_ext=cc
7073ac_cpp='$CXXCPP $CPPFLAGS'
7074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7077
7078fi
7079
7080ac_ext=f
7081ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7082ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7084if test -n "$ac_tool_prefix"; then
7085  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7086  do
7087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7089echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091if test "${ac_cv_prog_F77+set}" = set; then
7092  echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094  if test -n "$F77"; then
7095  ac_cv_prog_F77="$F77" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102  for ac_exec_ext in '' $ac_executable_extensions; do
7103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109done
7110
7111fi
7112fi
7113F77=$ac_cv_prog_F77
7114if test -n "$F77"; then
7115  echo "$as_me:$LINENO: result: $F77" >&5
7116echo "${ECHO_T}$F77" >&6
7117else
7118  echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120fi
7121
7122    test -n "$F77" && break
7123  done
7124fi
7125if test -z "$F77"; then
7126  ac_ct_F77=$F77
7127  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7128do
7129  # Extract the first word of "$ac_prog", so it can be a program name with args.
7130set dummy $ac_prog; ac_word=$2
7131echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7134  echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136  if test -n "$ac_ct_F77"; then
7137  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142  IFS=$as_save_IFS
7143  test -z "$as_dir" && as_dir=.
7144  for ac_exec_ext in '' $ac_executable_extensions; do
7145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146    ac_cv_prog_ac_ct_F77="$ac_prog"
7147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148    break 2
7149  fi
7150done
7151done
7152
7153fi
7154fi
7155ac_ct_F77=$ac_cv_prog_ac_ct_F77
7156if test -n "$ac_ct_F77"; then
7157  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7158echo "${ECHO_T}$ac_ct_F77" >&6
7159else
7160  echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
7162fi
7163
7164  test -n "$ac_ct_F77" && break
7165done
7166
7167  F77=$ac_ct_F77
7168fi
7169
7170
7171# Provide some information about the compiler.
7172echo "$as_me:7172:" \
7173     "checking for Fortran 77 compiler version" >&5
7174ac_compiler=`set X $ac_compile; echo $2`
7175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7176  (eval $ac_compiler --version </dev/null >&5) 2>&5
7177  ac_status=$?
7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); }
7180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7181  (eval $ac_compiler -v </dev/null >&5) 2>&5
7182  ac_status=$?
7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184  (exit $ac_status); }
7185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7186  (eval $ac_compiler -V </dev/null >&5) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }
7190rm -f a.out
7191
7192# If we don't use `.F' as extension, the preprocessor is not run on the
7193# input file.  (Note that this only needs to work for GNU compilers.)
7194ac_save_ext=$ac_ext
7195ac_ext=F
7196echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7197echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7198if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7199  echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201  cat >conftest.$ac_ext <<_ACEOF
7202      program main
7203#ifndef __GNUC__
7204       choke me
7205#endif
7206
7207      end
7208_ACEOF
7209rm -f conftest.$ac_objext
7210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211  (eval $ac_compile) 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } &&
7218         { ac_try='test -z "$ac_f77_werror_flag"
7219                         || test ! -s conftest.err'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; } &&
7225         { ac_try='test -s conftest.$ac_objext'
7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227  (eval $ac_try) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; }; then
7231  ac_compiler_gnu=yes
7232else
7233  echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236ac_compiler_gnu=no
7237fi
7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7240
7241fi
7242echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7243echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7244ac_ext=$ac_save_ext
7245ac_test_FFLAGS=${FFLAGS+set}
7246ac_save_FFLAGS=$FFLAGS
7247FFLAGS=
7248echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7249echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7250if test "${ac_cv_prog_f77_g+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  FFLAGS=-g
7254cat >conftest.$ac_ext <<_ACEOF
7255      program main
7256
7257      end
7258_ACEOF
7259rm -f conftest.$ac_objext
7260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261  (eval $ac_compile) 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } &&
7268         { ac_try='test -z "$ac_f77_werror_flag"
7269                         || test ! -s conftest.err'
7270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271  (eval $ac_try) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }; } &&
7275         { ac_try='test -s conftest.$ac_objext'
7276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277  (eval $ac_try) 2>&5
7278  ac_status=$?
7279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280  (exit $ac_status); }; }; then
7281  ac_cv_prog_f77_g=yes
7282else
7283  echo "$as_me: failed program was:" >&5
7284sed 's/^/| /' conftest.$ac_ext >&5
7285
7286ac_cv_prog_f77_g=no
7287fi
7288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289
7290fi
7291echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7292echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7293if test "$ac_test_FFLAGS" = set; then
7294  FFLAGS=$ac_save_FFLAGS
7295elif test $ac_cv_prog_f77_g = yes; then
7296  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7297    FFLAGS="-g -O2"
7298  else
7299    FFLAGS="-g"
7300  fi
7301else
7302  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7303    FFLAGS="-O2"
7304  else
7305    FFLAGS=
7306  fi
7307fi
7308
7309G77=`test $ac_compiler_gnu = yes && echo yes`
7310ac_ext=c
7311ac_cpp='$CPP $CPPFLAGS'
7312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316
7317
7318# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7319
7320# find the maximum length of command line arguments
7321echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7322echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7323if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326    i=0
7327  teststring="ABCD"
7328
7329  case $build_os in
7330  msdosdjgpp*)
7331    # On DJGPP, this test can blow up pretty badly due to problems in libc
7332    # (any single argument exceeding 2000 bytes causes a buffer overrun
7333    # during glob expansion).  Even if it were fixed, the result of this
7334    # check would be larger than it should be.
7335    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7336    ;;
7337
7338  gnu*)
7339    # Under GNU Hurd, this test is not required because there is
7340    # no limit to the length of command line arguments.
7341    # Libtool will interpret -1 as no limit whatsoever
7342    lt_cv_sys_max_cmd_len=-1;
7343    ;;
7344
7345  cygwin* | mingw*)
7346    # On Win9x/ME, this test blows up -- it succeeds, but takes
7347    # about 5 minutes as the teststring grows exponentially.
7348    # Worse, since 9x/ME are not pre-emptively multitasking,
7349    # you end up with a "frozen" computer, even though with patience
7350    # the test eventually succeeds (with a max line length of 256k).
7351    # Instead, let's just punt: use the minimum linelength reported by
7352    # all of the supported platforms: 8192 (on NT/2K/XP).
7353    lt_cv_sys_max_cmd_len=8192;
7354    ;;
7355
7356  amigaos*)
7357    # On AmigaOS with pdksh, this test takes hours, literally.
7358    # So we just punt and use a minimum line length of 8192.
7359    lt_cv_sys_max_cmd_len=8192;
7360    ;;
7361
7362  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7363    # This has been around since 386BSD, at least.  Likely further.
7364    if test -x /sbin/sysctl; then
7365      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7366    elif test -x /usr/sbin/sysctl; then
7367      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7368    else
7369      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7370    fi
7371    # And add a safety zone
7372    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7373    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7374    ;;
7375
7376  interix*)
7377    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7378    lt_cv_sys_max_cmd_len=196608
7379    ;;
7380
7381  osf*)
7382    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7383    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7384    # nice to cause kernel panics so lets avoid the loop below.
7385    # First set a reasonable default.
7386    lt_cv_sys_max_cmd_len=16384
7387    #
7388    if test -x /sbin/sysconfig; then
7389      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7390        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7391      esac
7392    fi
7393    ;;
7394  sco3.2v5*)
7395    lt_cv_sys_max_cmd_len=102400
7396    ;;
7397  sysv5* | sco5v6* | sysv4.2uw2*)
7398    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7399    if test -n "$kargmax"; then
7400      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7401    else
7402      lt_cv_sys_max_cmd_len=32768
7403    fi
7404    ;;
7405  *)
7406    # If test is not a shell built-in, we'll probably end up computing a
7407    # maximum length that is only half of the actual maximum length, but
7408    # we can't tell.
7409    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7410    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7411               = "XX$teststring") >/dev/null 2>&1 &&
7412            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7413            lt_cv_sys_max_cmd_len=$new_result &&
7414            test $i != 17 # 1/2 MB should be enough
7415    do
7416      i=`expr $i + 1`
7417      teststring=$teststring$teststring
7418    done
7419    teststring=
7420    # Add a significant safety factor because C++ compilers can tack on massive
7421    # amounts of additional arguments before passing them to the linker.
7422    # It appears as though 1/2 is a usable value.
7423    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7424    ;;
7425  esac
7426
7427fi
7428
7429if test -n $lt_cv_sys_max_cmd_len ; then
7430  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7431echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7432else
7433  echo "$as_me:$LINENO: result: none" >&5
7434echo "${ECHO_T}none" >&6
7435fi
7436
7437
7438
7439
7440# Check for command to grab the raw symbol name followed by C symbol from nm.
7441echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7442echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7443if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7444  echo $ECHO_N "(cached) $ECHO_C" >&6
7445else
7446
7447# These are sane defaults that work on at least a few old systems.
7448# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7449
7450# Character class describing NM global symbol codes.
7451symcode='[BCDEGRST]'
7452
7453# Regexp to match symbols that can be accessed directly from C.
7454sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7455
7456# Transform an extracted symbol line into a proper C declaration
7457lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7458
7459# Transform an extracted symbol line into symbol name and symbol address
7460lt_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'"
7461
7462# Define system-specific variables.
7463case $host_os in
7464aix*)
7465  symcode='[BCDT]'
7466  ;;
7467cygwin* | mingw* | pw32*)
7468  symcode='[ABCDGISTW]'
7469  ;;
7470hpux*) # Its linker distinguishes data from code symbols
7471  if test "$host_cpu" = ia64; then
7472    symcode='[ABCDEGRST]'
7473  fi
7474  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475  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'"
7476  ;;
7477linux*)
7478  if test "$host_cpu" = ia64; then
7479    symcode='[ABCDGIRSTW]'
7480    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7481    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'"
7482  fi
7483  ;;
7484irix* | nonstopux*)
7485  symcode='[BCDEGRST]'
7486  ;;
7487osf*)
7488  symcode='[BCDEGQRST]'
7489  ;;
7490solaris*)
7491  symcode='[BDRT]'
7492  ;;
7493sco3.2v5*)
7494  symcode='[DT]'
7495  ;;
7496sysv4.2uw2*)
7497  symcode='[DT]'
7498  ;;
7499sysv5* | sco5v6* | unixware* | OpenUNIX*)
7500  symcode='[ABDT]'
7501  ;;
7502sysv4)
7503  symcode='[DFNSTU]'
7504  ;;
7505esac
7506
7507# Handle CRLF in mingw tool chain
7508opt_cr=
7509case $build_os in
7510mingw*)
7511  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7512  ;;
7513esac
7514
7515# If we're using GNU nm, then use its standard symbol codes.
7516case `$NM -V 2>&1` in
7517*GNU* | *'with BFD'*)
7518  symcode='[ABCDGIRSTW]' ;;
7519esac
7520
7521# Try without a prefix undercore, then with it.
7522for ac_symprfx in "" "_"; do
7523
7524  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7525  symxfrm="\\1 $ac_symprfx\\2 \\2"
7526
7527  # Write the raw and C identifiers.
7528  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7529
7530  # Check to see that the pipe works correctly.
7531  pipe_works=no
7532
7533  rm -f conftest*
7534  cat > conftest.$ac_ext <<EOF
7535#ifdef __cplusplus
7536extern "C" {
7537#endif
7538char nm_test_var;
7539void nm_test_func(){}
7540#ifdef __cplusplus
7541}
7542#endif
7543int main(){nm_test_var='a';nm_test_func();return(0);}
7544EOF
7545
7546  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547  (eval $ac_compile) 2>&5
7548  ac_status=$?
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); }; then
7551    # Now try to grab the symbols.
7552    nlist=conftest.nm
7553    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7554  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7555  ac_status=$?
7556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557  (exit $ac_status); } && test -s "$nlist"; then
7558      # Try sorting and uniquifying the output.
7559      if sort "$nlist" | uniq > "$nlist"T; then
7560        mv -f "$nlist"T "$nlist"
7561      else
7562        rm -f "$nlist"T
7563      fi
7564
7565      # Make sure that we snagged all the symbols we need.
7566      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7567        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7568          cat <<EOF > conftest.$ac_ext
7569#ifdef __cplusplus
7570extern "C" {
7571#endif
7572
7573EOF
7574          # Now generate the symbol file.
7575          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7576
7577          cat <<EOF >> conftest.$ac_ext
7578#if defined (__STDC__) && __STDC__
7579# define lt_ptr_t void *
7580#else
7581# define lt_ptr_t char *
7582# define const
7583#endif
7584
7585/* The mapping between symbol names and symbols. */
7586const struct {
7587  const char *name;
7588  lt_ptr_t address;
7589}
7590lt_preloaded_symbols[] =
7591{
7592EOF
7593          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7594          cat <<\EOF >> conftest.$ac_ext
7595  {0, (lt_ptr_t) 0}
7596};
7597
7598#ifdef __cplusplus
7599}
7600#endif
7601EOF
7602          # Now try linking the two files.
7603          mv conftest.$ac_objext conftstm.$ac_objext
7604          lt_save_LIBS="$LIBS"
7605          lt_save_CFLAGS="$CFLAGS"
7606          LIBS="conftstm.$ac_objext"
7607          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7608          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609  (eval $ac_link) 2>&5
7610  ac_status=$?
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7613            pipe_works=yes
7614          fi
7615          LIBS="$lt_save_LIBS"
7616          CFLAGS="$lt_save_CFLAGS"
7617        else
7618          echo "cannot find nm_test_func in $nlist" >&5
7619        fi
7620      else
7621        echo "cannot find nm_test_var in $nlist" >&5
7622      fi
7623    else
7624      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7625    fi
7626  else
7627    echo "$progname: failed program was:" >&5
7628    cat conftest.$ac_ext >&5
7629  fi
7630  rm -f conftest* conftst*
7631
7632  # Do not use the global_symbol_pipe unless it works.
7633  if test "$pipe_works" = yes; then
7634    break
7635  else
7636    lt_cv_sys_global_symbol_pipe=
7637  fi
7638done
7639
7640fi
7641
7642if test -z "$lt_cv_sys_global_symbol_pipe"; then
7643  lt_cv_sys_global_symbol_to_cdecl=
7644fi
7645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7646  echo "$as_me:$LINENO: result: failed" >&5
7647echo "${ECHO_T}failed" >&6
7648else
7649  echo "$as_me:$LINENO: result: ok" >&5
7650echo "${ECHO_T}ok" >&6
7651fi
7652
7653echo "$as_me:$LINENO: checking for objdir" >&5
7654echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7655if test "${lt_cv_objdir+set}" = set; then
7656  echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658  rm -f .libs 2>/dev/null
7659mkdir .libs 2>/dev/null
7660if test -d .libs; then
7661  lt_cv_objdir=.libs
7662else
7663  # MS-DOS does not allow filenames that begin with a dot.
7664  lt_cv_objdir=_libs
7665fi
7666rmdir .libs 2>/dev/null
7667fi
7668echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7669echo "${ECHO_T}$lt_cv_objdir" >&6
7670objdir=$lt_cv_objdir
7671
7672
7673
7674
7675
7676case $host_os in
7677aix3*)
7678  # AIX sometimes has problems with the GCC collect2 program.  For some
7679  # reason, if we set the COLLECT_NAMES environment variable, the problems
7680  # vanish in a puff of smoke.
7681  if test "X${COLLECT_NAMES+set}" != Xset; then
7682    COLLECT_NAMES=
7683    export COLLECT_NAMES
7684  fi
7685  ;;
7686esac
7687
7688# Sed substitution that helps us do robust quoting.  It backslashifies
7689# metacharacters that are still active within double-quoted strings.
7690Xsed='sed -e 1s/^X//'
7691sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7692
7693# Same as above, but do not quote variable references.
7694double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7695
7696# Sed substitution to delay expansion of an escaped shell variable in a
7697# double_quote_subst'ed string.
7698delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7699
7700# Sed substitution to avoid accidental globbing in evaled expressions
7701no_glob_subst='s/\*/\\\*/g'
7702
7703# Constants:
7704rm="rm -f"
7705
7706# Global variables:
7707default_ofile=libtool
7708can_build_shared=yes
7709
7710# All known linkers require a `.a' archive for static linking (except MSVC,
7711# which needs '.lib').
7712libext=a
7713ltmain="$ac_aux_dir/ltmain.sh"
7714ofile="$default_ofile"
7715with_gnu_ld="$lt_cv_prog_gnu_ld"
7716
7717if test -n "$ac_tool_prefix"; then
7718  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7719set dummy ${ac_tool_prefix}ar; ac_word=$2
7720echo "$as_me:$LINENO: checking for $ac_word" >&5
7721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7722if test "${ac_cv_prog_AR+set}" = set; then
7723  echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725  if test -n "$AR"; then
7726  ac_cv_prog_AR="$AR" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731  IFS=$as_save_IFS
7732  test -z "$as_dir" && as_dir=.
7733  for ac_exec_ext in '' $ac_executable_extensions; do
7734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735    ac_cv_prog_AR="${ac_tool_prefix}ar"
7736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737    break 2
7738  fi
7739done
7740done
7741
7742fi
7743fi
7744AR=$ac_cv_prog_AR
7745if test -n "$AR"; then
7746  echo "$as_me:$LINENO: result: $AR" >&5
7747echo "${ECHO_T}$AR" >&6
7748else
7749  echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
7751fi
7752
7753fi
7754if test -z "$ac_cv_prog_AR"; then
7755  ac_ct_AR=$AR
7756  # Extract the first word of "ar", so it can be a program name with args.
7757set dummy ar; ac_word=$2
7758echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7761  echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763  if test -n "$ac_ct_AR"; then
7764  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769  IFS=$as_save_IFS
7770  test -z "$as_dir" && as_dir=.
7771  for ac_exec_ext in '' $ac_executable_extensions; do
7772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773    ac_cv_prog_ac_ct_AR="ar"
7774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775    break 2
7776  fi
7777done
7778done
7779
7780  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7781fi
7782fi
7783ac_ct_AR=$ac_cv_prog_ac_ct_AR
7784if test -n "$ac_ct_AR"; then
7785  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7786echo "${ECHO_T}$ac_ct_AR" >&6
7787else
7788  echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790fi
7791
7792  AR=$ac_ct_AR
7793else
7794  AR="$ac_cv_prog_AR"
7795fi
7796
7797if test -n "$ac_tool_prefix"; then
7798  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7800echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802if test "${ac_cv_prog_RANLIB+set}" = set; then
7803  echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805  if test -n "$RANLIB"; then
7806  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813  for ac_exec_ext in '' $ac_executable_extensions; do
7814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820done
7821
7822fi
7823fi
7824RANLIB=$ac_cv_prog_RANLIB
7825if test -n "$RANLIB"; then
7826  echo "$as_me:$LINENO: result: $RANLIB" >&5
7827echo "${ECHO_T}$RANLIB" >&6
7828else
7829  echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831fi
7832
7833fi
7834if test -z "$ac_cv_prog_RANLIB"; then
7835  ac_ct_RANLIB=$RANLIB
7836  # Extract the first word of "ranlib", so it can be a program name with args.
7837set dummy ranlib; ac_word=$2
7838echo "$as_me:$LINENO: checking for $ac_word" >&5
7839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7840if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7841  echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843  if test -n "$ac_ct_RANLIB"; then
7844  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849  IFS=$as_save_IFS
7850  test -z "$as_dir" && as_dir=.
7851  for ac_exec_ext in '' $ac_executable_extensions; do
7852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853    ac_cv_prog_ac_ct_RANLIB="ranlib"
7854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855    break 2
7856  fi
7857done
7858done
7859
7860  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7861fi
7862fi
7863ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7864if test -n "$ac_ct_RANLIB"; then
7865  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7866echo "${ECHO_T}$ac_ct_RANLIB" >&6
7867else
7868  echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870fi
7871
7872  RANLIB=$ac_ct_RANLIB
7873else
7874  RANLIB="$ac_cv_prog_RANLIB"
7875fi
7876
7877if test -n "$ac_tool_prefix"; then
7878  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7879set dummy ${ac_tool_prefix}strip; ac_word=$2
7880echo "$as_me:$LINENO: checking for $ac_word" >&5
7881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7882if test "${ac_cv_prog_STRIP+set}" = set; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885  if test -n "$STRIP"; then
7886  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893  for ac_exec_ext in '' $ac_executable_extensions; do
7894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900done
7901
7902fi
7903fi
7904STRIP=$ac_cv_prog_STRIP
7905if test -n "$STRIP"; then
7906  echo "$as_me:$LINENO: result: $STRIP" >&5
7907echo "${ECHO_T}$STRIP" >&6
7908else
7909  echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911fi
7912
7913fi
7914if test -z "$ac_cv_prog_STRIP"; then
7915  ac_ct_STRIP=$STRIP
7916  # Extract the first word of "strip", so it can be a program name with args.
7917set dummy strip; ac_word=$2
7918echo "$as_me:$LINENO: checking for $ac_word" >&5
7919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7920if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923  if test -n "$ac_ct_STRIP"; then
7924  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7925else
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929  IFS=$as_save_IFS
7930  test -z "$as_dir" && as_dir=.
7931  for ac_exec_ext in '' $ac_executable_extensions; do
7932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933    ac_cv_prog_ac_ct_STRIP="strip"
7934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7935    break 2
7936  fi
7937done
7938done
7939
7940  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7941fi
7942fi
7943ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7944if test -n "$ac_ct_STRIP"; then
7945  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7946echo "${ECHO_T}$ac_ct_STRIP" >&6
7947else
7948  echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950fi
7951
7952  STRIP=$ac_ct_STRIP
7953else
7954  STRIP="$ac_cv_prog_STRIP"
7955fi
7956
7957
7958old_CC="$CC"
7959old_CFLAGS="$CFLAGS"
7960
7961# Set sane defaults for various variables
7962test -z "$AR" && AR=ar
7963test -z "$AR_FLAGS" && AR_FLAGS=cru
7964test -z "$AS" && AS=as
7965test -z "$CC" && CC=cc
7966test -z "$LTCC" && LTCC=$CC
7967test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7968test -z "$DLLTOOL" && DLLTOOL=dlltool
7969test -z "$LD" && LD=ld
7970test -z "$LN_S" && LN_S="ln -s"
7971test -z "$MAGIC_CMD" && MAGIC_CMD=file
7972test -z "$NM" && NM=nm
7973test -z "$SED" && SED=sed
7974test -z "$OBJDUMP" && OBJDUMP=objdump
7975test -z "$RANLIB" && RANLIB=:
7976test -z "$STRIP" && STRIP=:
7977test -z "$ac_objext" && ac_objext=o
7978
7979# Determine commands to create old-style static archives.
7980old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7981old_postinstall_cmds='chmod 644 $oldlib'
7982old_postuninstall_cmds=
7983
7984if test -n "$RANLIB"; then
7985  case $host_os in
7986  openbsd*)
7987    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7988    ;;
7989  *)
7990    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7991    ;;
7992  esac
7993  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7994fi
7995
7996for cc_temp in $compiler""; do
7997  case $cc_temp in
7998    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7999    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8000    \-*) ;;
8001    *) break;;
8002  esac
8003done
8004cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8005
8006
8007# Only perform the check for file, if the check method requires it
8008case $deplibs_check_method in
8009file_magic*)
8010  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8011    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8012echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8013if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8014  echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016  case $MAGIC_CMD in
8017[\\/*] |  ?:[\\/]*)
8018  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8019  ;;
8020*)
8021  lt_save_MAGIC_CMD="$MAGIC_CMD"
8022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8023  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8024  for ac_dir in $ac_dummy; do
8025    IFS="$lt_save_ifs"
8026    test -z "$ac_dir" && ac_dir=.
8027    if test -f $ac_dir/${ac_tool_prefix}file; then
8028      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8029      if test -n "$file_magic_test_file"; then
8030        case $deplibs_check_method in
8031        "file_magic "*)
8032          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8033          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8035            $EGREP "$file_magic_regex" > /dev/null; then
8036            :
8037          else
8038            cat <<EOF 1>&2
8039
8040*** Warning: the command libtool uses to detect shared libraries,
8041*** $file_magic_cmd, produces output that libtool cannot recognize.
8042*** The result is that libtool may fail to recognize shared libraries
8043*** as such.  This will affect the creation of libtool libraries that
8044*** depend on shared libraries, but programs linked with such libtool
8045*** libraries will work regardless of this problem.  Nevertheless, you
8046*** may want to report the problem to your system manager and/or to
8047*** bug-libtool@gnu.org
8048
8049EOF
8050          fi ;;
8051        esac
8052      fi
8053      break
8054    fi
8055  done
8056  IFS="$lt_save_ifs"
8057  MAGIC_CMD="$lt_save_MAGIC_CMD"
8058  ;;
8059esac
8060fi
8061
8062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8063if test -n "$MAGIC_CMD"; then
8064  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8065echo "${ECHO_T}$MAGIC_CMD" >&6
8066else
8067  echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069fi
8070
8071if test -z "$lt_cv_path_MAGIC_CMD"; then
8072  if test -n "$ac_tool_prefix"; then
8073    echo "$as_me:$LINENO: checking for file" >&5
8074echo $ECHO_N "checking for file... $ECHO_C" >&6
8075if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8076  echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078  case $MAGIC_CMD in
8079[\\/*] |  ?:[\\/]*)
8080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8081  ;;
8082*)
8083  lt_save_MAGIC_CMD="$MAGIC_CMD"
8084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8086  for ac_dir in $ac_dummy; do
8087    IFS="$lt_save_ifs"
8088    test -z "$ac_dir" && ac_dir=.
8089    if test -f $ac_dir/file; then
8090      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8091      if test -n "$file_magic_test_file"; then
8092        case $deplibs_check_method in
8093        "file_magic "*)
8094          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8095          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8096          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8097            $EGREP "$file_magic_regex" > /dev/null; then
8098            :
8099          else
8100            cat <<EOF 1>&2
8101
8102*** Warning: the command libtool uses to detect shared libraries,
8103*** $file_magic_cmd, produces output that libtool cannot recognize.
8104*** The result is that libtool may fail to recognize shared libraries
8105*** as such.  This will affect the creation of libtool libraries that
8106*** depend on shared libraries, but programs linked with such libtool
8107*** libraries will work regardless of this problem.  Nevertheless, you
8108*** may want to report the problem to your system manager and/or to
8109*** bug-libtool@gnu.org
8110
8111EOF
8112          fi ;;
8113        esac
8114      fi
8115      break
8116    fi
8117  done
8118  IFS="$lt_save_ifs"
8119  MAGIC_CMD="$lt_save_MAGIC_CMD"
8120  ;;
8121esac
8122fi
8123
8124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125if test -n "$MAGIC_CMD"; then
8126  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8127echo "${ECHO_T}$MAGIC_CMD" >&6
8128else
8129  echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131fi
8132
8133  else
8134    MAGIC_CMD=:
8135  fi
8136fi
8137
8138  fi
8139  ;;
8140esac
8141
8142enable_dlopen=no
8143enable_win32_dll=no
8144
8145# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8146if test "${enable_libtool_lock+set}" = set; then
8147  enableval="$enable_libtool_lock"
8148
8149fi;
8150test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8151
8152
8153# Check whether --with-pic or --without-pic was given.
8154if test "${with_pic+set}" = set; then
8155  withval="$with_pic"
8156  pic_mode="$withval"
8157else
8158  pic_mode=default
8159fi;
8160test -z "$pic_mode" && pic_mode=default
8161
8162# Use C for the default configuration in the libtool script
8163tagname=
8164lt_save_CC="$CC"
8165ac_ext=c
8166ac_cpp='$CPP $CPPFLAGS'
8167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8169ac_compiler_gnu=$ac_cv_c_compiler_gnu
8170
8171
8172# Source file extension for C test sources.
8173ac_ext=c
8174
8175# Object file extension for compiled C test sources.
8176objext=o
8177objext=$objext
8178
8179# Code to be used in simple compile tests
8180lt_simple_compile_test_code="int some_variable = 0;\n"
8181
8182# Code to be used in simple link tests
8183lt_simple_link_test_code='int main(){return(0);}\n'
8184
8185
8186# If no C compiler was specified, use CC.
8187LTCC=${LTCC-"$CC"}
8188
8189# If no C compiler flags were specified, use CFLAGS.
8190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8191
8192# Allow CC to be a program name with arguments.
8193compiler=$CC
8194
8195
8196# save warnings/boilerplate of simple test code
8197ac_outfile=conftest.$ac_objext
8198printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8200_lt_compiler_boilerplate=`cat conftest.err`
8201$rm conftest*
8202
8203ac_outfile=conftest.$ac_objext
8204printf "$lt_simple_link_test_code" >conftest.$ac_ext
8205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8206_lt_linker_boilerplate=`cat conftest.err`
8207$rm conftest*
8208
8209
8210## CAVEAT EMPTOR:
8211## There is no encapsulation within the following macros, do not change
8212## the running order or otherwise move them around unless you know exactly
8213## what you are doing...
8214
8215lt_prog_compiler_no_builtin_flag=
8216
8217if test "$GCC" = yes; then
8218  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8219
8220
8221echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8222echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8223if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  lt_cv_prog_compiler_rtti_exceptions=no
8227  ac_outfile=conftest.$ac_objext
8228   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8229   lt_compiler_flag="-fno-rtti -fno-exceptions"
8230   # Insert the option either (1) after the last *FLAGS variable, or
8231   # (2) before a word containing "conftest.", or (3) at the end.
8232   # Note that $ac_compile itself does not contain backslashes and begins
8233   # with a dollar sign (not a hyphen), so the echo should work correctly.
8234   # The option is referenced via a variable to avoid confusing sed.
8235   lt_compile=`echo "$ac_compile" | $SED \
8236   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8238   -e 's:$: $lt_compiler_flag:'`
8239   (eval echo "\"\$as_me:8239: $lt_compile\"" >&5)
8240   (eval "$lt_compile" 2>conftest.err)
8241   ac_status=$?
8242   cat conftest.err >&5
8243   echo "$as_me:8243: \$? = $ac_status" >&5
8244   if (exit $ac_status) && test -s "$ac_outfile"; then
8245     # The compiler can only warn and ignore the option if not recognized
8246     # So say no if there are warnings other than the usual output.
8247     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8248     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8249     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8250       lt_cv_prog_compiler_rtti_exceptions=yes
8251     fi
8252   fi
8253   $rm conftest*
8254
8255fi
8256echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8257echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8258
8259if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8260    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8261else
8262    :
8263fi
8264
8265fi
8266
8267lt_prog_compiler_wl=
8268lt_prog_compiler_pic=
8269lt_prog_compiler_static=
8270
8271echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8272echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8273
8274  if test "$GCC" = yes; then
8275    lt_prog_compiler_wl='-Wl,'
8276    lt_prog_compiler_static='-static'
8277
8278    case $host_os in
8279      aix*)
8280      # All AIX code is PIC.
8281      if test "$host_cpu" = ia64; then
8282        # AIX 5 now supports IA64 processor
8283        lt_prog_compiler_static='-Bstatic'
8284      fi
8285      ;;
8286
8287    amigaos*)
8288      # FIXME: we need at least 68020 code to build shared libraries, but
8289      # adding the `-m68020' flag to GCC prevents building anything better,
8290      # like `-m68040'.
8291      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8292      ;;
8293
8294    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8295      # PIC is the default for these OSes.
8296      ;;
8297
8298    mingw* | pw32* | os2*)
8299      # This hack is so that the source file can tell whether it is being
8300      # built for inclusion in a dll (and should export symbols for example).
8301      lt_prog_compiler_pic='-DDLL_EXPORT'
8302      ;;
8303
8304    darwin* | rhapsody*)
8305      # PIC is the default on this platform
8306      # Common symbols not allowed in MH_DYLIB files
8307      lt_prog_compiler_pic='-fno-common'
8308      ;;
8309
8310    interix3*)
8311      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8312      # Instead, we relocate shared libraries at runtime.
8313      ;;
8314
8315    msdosdjgpp*)
8316      # Just because we use GCC doesn't mean we suddenly get shared libraries
8317      # on systems that don't support them.
8318      lt_prog_compiler_can_build_shared=no
8319      enable_shared=no
8320      ;;
8321
8322    sysv4*MP*)
8323      if test -d /usr/nec; then
8324        lt_prog_compiler_pic=-Kconform_pic
8325      fi
8326      ;;
8327
8328    hpux*)
8329      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8330      # not for PA HP-UX.
8331      case $host_cpu in
8332      hppa*64*|ia64*)
8333        # +Z the default
8334        ;;
8335      *)
8336        lt_prog_compiler_pic='-fPIC'
8337        ;;
8338      esac
8339      ;;
8340
8341    *)
8342      lt_prog_compiler_pic='-fPIC'
8343      ;;
8344    esac
8345  else
8346    # PORTME Check for flag to pass linker flags through the system compiler.
8347    case $host_os in
8348    aix*)
8349      lt_prog_compiler_wl='-Wl,'
8350      if test "$host_cpu" = ia64; then
8351        # AIX 5 now supports IA64 processor
8352        lt_prog_compiler_static='-Bstatic'
8353      else
8354        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8355      fi
8356      ;;
8357      darwin*)
8358        # PIC is the default on this platform
8359        # Common symbols not allowed in MH_DYLIB files
8360       case $cc_basename in
8361         xlc*)
8362         lt_prog_compiler_pic='-qnocommon'
8363         lt_prog_compiler_wl='-Wl,'
8364         ;;
8365       esac
8366       ;;
8367
8368    mingw* | pw32* | os2*)
8369      # This hack is so that the source file can tell whether it is being
8370      # built for inclusion in a dll (and should export symbols for example).
8371      lt_prog_compiler_pic='-DDLL_EXPORT'
8372      ;;
8373
8374    hpux9* | hpux10* | hpux11*)
8375      lt_prog_compiler_wl='-Wl,'
8376      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8377      # not for PA HP-UX.
8378      case $host_cpu in
8379      hppa*64*|ia64*)
8380        # +Z the default
8381        ;;
8382      *)
8383        lt_prog_compiler_pic='+Z'
8384        ;;
8385      esac
8386      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8387      lt_prog_compiler_static='${wl}-a ${wl}archive'
8388      ;;
8389
8390    irix5* | irix6* | nonstopux*)
8391      lt_prog_compiler_wl='-Wl,'
8392      # PIC (with -KPIC) is the default.
8393      lt_prog_compiler_static='-non_shared'
8394      ;;
8395
8396    newsos6)
8397      lt_prog_compiler_pic='-KPIC'
8398      lt_prog_compiler_static='-Bstatic'
8399      ;;
8400
8401    linux*)
8402      case $cc_basename in
8403      icc* | ecc*)
8404        lt_prog_compiler_wl='-Wl,'
8405        lt_prog_compiler_pic='-KPIC'
8406        lt_prog_compiler_static='-static'
8407        ;;
8408      pgcc* | pgf77* | pgf90* | pgf95*)
8409        # Portland Group compilers (*not* the Pentium gcc compiler,
8410        # which looks to be a dead project)
8411        lt_prog_compiler_wl='-Wl,'
8412        lt_prog_compiler_pic='-fpic'
8413        lt_prog_compiler_static='-Bstatic'
8414        ;;
8415      ccc*)
8416        lt_prog_compiler_wl='-Wl,'
8417        # All Alpha code is PIC.
8418        lt_prog_compiler_static='-non_shared'
8419        ;;
8420      esac
8421      ;;
8422
8423    osf3* | osf4* | osf5*)
8424      lt_prog_compiler_wl='-Wl,'
8425      # All OSF/1 code is PIC.
8426      lt_prog_compiler_static='-non_shared'
8427      ;;
8428
8429    solaris*)
8430      lt_prog_compiler_pic='-KPIC'
8431      lt_prog_compiler_static='-Bstatic'
8432      case $cc_basename in
8433      f77* | f90* | f95*)
8434        lt_prog_compiler_wl='-Qoption ld ';;
8435      *)
8436        lt_prog_compiler_wl='-Wl,';;
8437      esac
8438      ;;
8439
8440    sunos4*)
8441      lt_prog_compiler_wl='-Qoption ld '
8442      lt_prog_compiler_pic='-PIC'
8443      lt_prog_compiler_static='-Bstatic'
8444      ;;
8445
8446    sysv4 | sysv4.2uw2* | sysv4.3*)
8447      lt_prog_compiler_wl='-Wl,'
8448      lt_prog_compiler_pic='-KPIC'
8449      lt_prog_compiler_static='-Bstatic'
8450      ;;
8451
8452    sysv4*MP*)
8453      if test -d /usr/nec ;then
8454        lt_prog_compiler_pic='-Kconform_pic'
8455        lt_prog_compiler_static='-Bstatic'
8456      fi
8457      ;;
8458
8459    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8460      lt_prog_compiler_wl='-Wl,'
8461      lt_prog_compiler_pic='-KPIC'
8462      lt_prog_compiler_static='-Bstatic'
8463      ;;
8464
8465    unicos*)
8466      lt_prog_compiler_wl='-Wl,'
8467      lt_prog_compiler_can_build_shared=no
8468      ;;
8469
8470    uts4*)
8471      lt_prog_compiler_pic='-pic'
8472      lt_prog_compiler_static='-Bstatic'
8473      ;;
8474
8475    *)
8476      lt_prog_compiler_can_build_shared=no
8477      ;;
8478    esac
8479  fi
8480
8481echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8482echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8483
8484#
8485# Check to make sure the PIC flag actually works.
8486#
8487if test -n "$lt_prog_compiler_pic"; then
8488
8489echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8490echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8491if test "${lt_prog_compiler_pic_works+set}" = set; then
8492  echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494  lt_prog_compiler_pic_works=no
8495  ac_outfile=conftest.$ac_objext
8496   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8497   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8498   # Insert the option either (1) after the last *FLAGS variable, or
8499   # (2) before a word containing "conftest.", or (3) at the end.
8500   # Note that $ac_compile itself does not contain backslashes and begins
8501   # with a dollar sign (not a hyphen), so the echo should work correctly.
8502   # The option is referenced via a variable to avoid confusing sed.
8503   lt_compile=`echo "$ac_compile" | $SED \
8504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8506   -e 's:$: $lt_compiler_flag:'`
8507   (eval echo "\"\$as_me:8507: $lt_compile\"" >&5)
8508   (eval "$lt_compile" 2>conftest.err)
8509   ac_status=$?
8510   cat conftest.err >&5
8511   echo "$as_me:8511: \$? = $ac_status" >&5
8512   if (exit $ac_status) && test -s "$ac_outfile"; then
8513     # The compiler can only warn and ignore the option if not recognized
8514     # So say no if there are warnings other than the usual output.
8515     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8516     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8518       lt_prog_compiler_pic_works=yes
8519     fi
8520   fi
8521   $rm conftest*
8522
8523fi
8524echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8525echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8526
8527if test x"$lt_prog_compiler_pic_works" = xyes; then
8528    case $lt_prog_compiler_pic in
8529     "" | " "*) ;;
8530     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8531     esac
8532else
8533    lt_prog_compiler_pic=
8534     lt_prog_compiler_can_build_shared=no
8535fi
8536
8537fi
8538case $host_os in
8539  # For platforms which do not support PIC, -DPIC is meaningless:
8540  *djgpp*)
8541    lt_prog_compiler_pic=
8542    ;;
8543  *)
8544    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8545    ;;
8546esac
8547
8548#
8549# Check to make sure the static flag actually works.
8550#
8551wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8552echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8553echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8554if test "${lt_prog_compiler_static_works+set}" = set; then
8555  echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557  lt_prog_compiler_static_works=no
8558   save_LDFLAGS="$LDFLAGS"
8559   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8560   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8561   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8562     # The linker can only warn and ignore the option if not recognized
8563     # So say no if there are warnings
8564     if test -s conftest.err; then
8565       # Append any errors to the config.log.
8566       cat conftest.err 1>&5
8567       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8568       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569       if diff conftest.exp conftest.er2 >/dev/null; then
8570         lt_prog_compiler_static_works=yes
8571       fi
8572     else
8573       lt_prog_compiler_static_works=yes
8574     fi
8575   fi
8576   $rm conftest*
8577   LDFLAGS="$save_LDFLAGS"
8578
8579fi
8580echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8581echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8582
8583if test x"$lt_prog_compiler_static_works" = xyes; then
8584    :
8585else
8586    lt_prog_compiler_static=
8587fi
8588
8589
8590echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8591echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8592if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  lt_cv_prog_compiler_c_o=no
8596   $rm -r conftest 2>/dev/null
8597   mkdir conftest
8598   cd conftest
8599   mkdir out
8600   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8601
8602   lt_compiler_flag="-o out/conftest2.$ac_objext"
8603   # Insert the option either (1) after the last *FLAGS variable, or
8604   # (2) before a word containing "conftest.", or (3) at the end.
8605   # Note that $ac_compile itself does not contain backslashes and begins
8606   # with a dollar sign (not a hyphen), so the echo should work correctly.
8607   lt_compile=`echo "$ac_compile" | $SED \
8608   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8610   -e 's:$: $lt_compiler_flag:'`
8611   (eval echo "\"\$as_me:8611: $lt_compile\"" >&5)
8612   (eval "$lt_compile" 2>out/conftest.err)
8613   ac_status=$?
8614   cat out/conftest.err >&5
8615   echo "$as_me:8615: \$? = $ac_status" >&5
8616   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8617   then
8618     # The compiler can only warn and ignore the option if not recognized
8619     # So say no if there are warnings
8620     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8621     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8622     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8623       lt_cv_prog_compiler_c_o=yes
8624     fi
8625   fi
8626   chmod u+w . 2>&5
8627   $rm conftest*
8628   # SGI C++ compiler will create directory out/ii_files/ for
8629   # template instantiation
8630   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8631   $rm out/* && rmdir out
8632   cd ..
8633   rmdir conftest
8634   $rm conftest*
8635
8636fi
8637echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8638echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8639
8640
8641hard_links="nottested"
8642if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8643  # do not overwrite the value of need_locks provided by the user
8644  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8645echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8646  hard_links=yes
8647  $rm conftest*
8648  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8649  touch conftest.a
8650  ln conftest.a conftest.b 2>&5 || hard_links=no
8651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652  echo "$as_me:$LINENO: result: $hard_links" >&5
8653echo "${ECHO_T}$hard_links" >&6
8654  if test "$hard_links" = no; then
8655    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8656echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8657    need_locks=warn
8658  fi
8659else
8660  need_locks=no
8661fi
8662
8663echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8664echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8665
8666  runpath_var=
8667  allow_undefined_flag=
8668  enable_shared_with_static_runtimes=no
8669  archive_cmds=
8670  archive_expsym_cmds=
8671  old_archive_From_new_cmds=
8672  old_archive_from_expsyms_cmds=
8673  export_dynamic_flag_spec=
8674  whole_archive_flag_spec=
8675  thread_safe_flag_spec=
8676  hardcode_libdir_flag_spec=
8677  hardcode_libdir_flag_spec_ld=
8678  hardcode_libdir_separator=
8679  hardcode_direct=no
8680  hardcode_minus_L=no
8681  hardcode_shlibpath_var=unsupported
8682  link_all_deplibs=unknown
8683  hardcode_automatic=no
8684  module_cmds=
8685  module_expsym_cmds=
8686  always_export_symbols=no
8687  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8688  # include_expsyms should be a list of space-separated symbols to be *always*
8689  # included in the symbol list
8690  include_expsyms=
8691  # exclude_expsyms can be an extended regexp of symbols to exclude
8692  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8693  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8694  # as well as any symbol that contains `d'.
8695  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8696  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8697  # platforms (ab)use it in PIC code, but their linkers get confused if
8698  # the symbol is explicitly referenced.  Since portable code cannot
8699  # rely on this symbol name, it's probably fine to never include it in
8700  # preloaded symbol tables.
8701  extract_expsyms_cmds=
8702  # Just being paranoid about ensuring that cc_basename is set.
8703  for cc_temp in $compiler""; do
8704  case $cc_temp in
8705    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8706    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8707    \-*) ;;
8708    *) break;;
8709  esac
8710done
8711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8712
8713  case $host_os in
8714  cygwin* | mingw* | pw32*)
8715    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8716    # When not using gcc, we currently assume that we are using
8717    # Microsoft Visual C++.
8718    if test "$GCC" != yes; then
8719      with_gnu_ld=no
8720    fi
8721    ;;
8722  interix*)
8723    # we just hope/assume this is gcc and not c89 (= MSVC++)
8724    with_gnu_ld=yes
8725    ;;
8726  openbsd*)
8727    with_gnu_ld=no
8728    ;;
8729  esac
8730
8731  ld_shlibs=yes
8732  if test "$with_gnu_ld" = yes; then
8733    # If archive_cmds runs LD, not CC, wlarc should be empty
8734    wlarc='${wl}'
8735
8736    # Set some defaults for GNU ld with shared library support. These
8737    # are reset later if shared libraries are not supported. Putting them
8738    # here allows them to be overridden if necessary.
8739    runpath_var=LD_RUN_PATH
8740    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8741    export_dynamic_flag_spec='${wl}--export-dynamic'
8742    # ancient GNU ld didn't support --whole-archive et. al.
8743    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8744        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8745      else
8746        whole_archive_flag_spec=
8747    fi
8748    supports_anon_versioning=no
8749    case `$LD -v 2>/dev/null` in
8750      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8751      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8752      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8753      *\ 2.11.*) ;; # other 2.11 versions
8754      *) supports_anon_versioning=yes ;;
8755    esac
8756
8757    # See if GNU ld supports shared libraries.
8758    case $host_os in
8759    aix3* | aix4* | aix5*)
8760      # On AIX/PPC, the GNU linker is very broken
8761      if test "$host_cpu" != ia64; then
8762        ld_shlibs=no
8763        cat <<EOF 1>&2
8764
8765*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8766*** to be unable to reliably create shared libraries on AIX.
8767*** Therefore, libtool is disabling shared libraries support.  If you
8768*** really care for shared libraries, you may want to modify your PATH
8769*** so that a non-GNU linker is found, and then restart.
8770
8771EOF
8772      fi
8773      ;;
8774
8775    amigaos*)
8776      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)'
8777      hardcode_libdir_flag_spec='-L$libdir'
8778      hardcode_minus_L=yes
8779
8780      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8781      # that the semantics of dynamic libraries on AmigaOS, at least up
8782      # to version 4, is to share data among multiple programs linked
8783      # with the same dynamic library.  Since this doesn't match the
8784      # behavior of shared libraries on other platforms, we can't use
8785      # them.
8786      ld_shlibs=no
8787      ;;
8788
8789    beos*)
8790      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8791        allow_undefined_flag=unsupported
8792        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8793        # support --undefined.  This deserves some investigation.  FIXME
8794        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795      else
8796        ld_shlibs=no
8797      fi
8798      ;;
8799
8800    cygwin* | mingw* | pw32*)
8801      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8802      # as there is no search path for DLLs.
8803      hardcode_libdir_flag_spec='-L$libdir'
8804      allow_undefined_flag=unsupported
8805      always_export_symbols=no
8806      enable_shared_with_static_runtimes=yes
8807      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8808
8809      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8810        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8811        # If the export-symbols file already is a .def file (1st line
8812        # is EXPORTS), use it as is; otherwise, prepend...
8813        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8814          cp $export_symbols $output_objdir/$soname.def;
8815        else
8816          echo EXPORTS > $output_objdir/$soname.def;
8817          cat $export_symbols >> $output_objdir/$soname.def;
8818        fi~
8819        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8820      else
8821        ld_shlibs=no
8822      fi
8823      ;;
8824
8825    interix3*)
8826      hardcode_direct=no
8827      hardcode_shlibpath_var=no
8828      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829      export_dynamic_flag_spec='${wl}-E'
8830      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8831      # Instead, shared libraries are loaded at an image base (0x10000000 by
8832      # default) and relocated if they conflict, which is a slow very memory
8833      # consuming and fragmenting process.  To avoid this, we pick a random,
8834      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8835      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8836      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8837      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'
8838      ;;
8839
8840    linux*)
8841      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8842        tmp_addflag=
8843        case $cc_basename,$host_cpu in
8844        pgcc*)                          # Portland Group C compiler
8845          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'
8846          tmp_addflag=' $pic_flag'
8847          ;;
8848        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8849          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'
8850          tmp_addflag=' $pic_flag -Mnomain' ;;
8851        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8852          tmp_addflag=' -i_dynamic' ;;
8853        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8854          tmp_addflag=' -i_dynamic -nofor_main' ;;
8855        ifc* | ifort*)                  # Intel Fortran compiler
8856          tmp_addflag=' -nofor_main' ;;
8857        esac
8858        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859
8860        if test $supports_anon_versioning = yes; then
8861          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8862  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8863  $echo "local: *; };" >> $output_objdir/$libname.ver~
8864          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8865        fi
8866      else
8867        ld_shlibs=no
8868      fi
8869      ;;
8870
8871    netbsd*)
8872      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8873        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8874        wlarc=
8875      else
8876        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878      fi
8879      ;;
8880
8881    solaris*)
8882      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8883        ld_shlibs=no
8884        cat <<EOF 1>&2
8885
8886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8887*** create shared libraries on Solaris systems.  Therefore, libtool
8888*** is disabling shared libraries support.  We urge you to upgrade GNU
8889*** binutils to release 2.9.1 or newer.  Another option is to modify
8890*** your PATH or compiler configuration so that the native linker is
8891*** used, and then restart.
8892
8893EOF
8894      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8895        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8897      else
8898        ld_shlibs=no
8899      fi
8900      ;;
8901
8902    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8903      case `$LD -v 2>&1` in
8904        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8905        ld_shlibs=no
8906        cat <<_LT_EOF 1>&2
8907
8908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8909*** reliably create shared libraries on SCO systems.  Therefore, libtool
8910*** is disabling shared libraries support.  We urge you to upgrade GNU
8911*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8912*** your PATH or compiler configuration so that the native linker is
8913*** used, and then restart.
8914
8915_LT_EOF
8916        ;;
8917        *)
8918          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8919            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8920            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8921            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8922          else
8923            ld_shlibs=no
8924          fi
8925        ;;
8926      esac
8927      ;;
8928
8929    sunos4*)
8930      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8931      wlarc=
8932      hardcode_direct=yes
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    *)
8937      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8938        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940      else
8941        ld_shlibs=no
8942      fi
8943      ;;
8944    esac
8945
8946    if test "$ld_shlibs" = no; then
8947      runpath_var=
8948      hardcode_libdir_flag_spec=
8949      export_dynamic_flag_spec=
8950      whole_archive_flag_spec=
8951    fi
8952  else
8953    # PORTME fill in a description of your system's linker (not GNU ld)
8954    case $host_os in
8955    aix3*)
8956      allow_undefined_flag=unsupported
8957      always_export_symbols=yes
8958      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'
8959      # Note: this linker hardcodes the directories in LIBPATH if there
8960      # are no directories specified by -L.
8961      hardcode_minus_L=yes
8962      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8963        # Neither direct hardcoding nor static linking is supported with a
8964        # broken collect2.
8965        hardcode_direct=unsupported
8966      fi
8967      ;;
8968
8969    aix4* | aix5*)
8970      if test "$host_cpu" = ia64; then
8971        # On IA64, the linker does run time linking by default, so we don't
8972        # have to do anything special.
8973        aix_use_runtimelinking=no
8974        exp_sym_flag='-Bexport'
8975        no_entry_flag=""
8976      else
8977        # If we're using GNU nm, then we don't want the "-C" option.
8978        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8979        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8980          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'
8981        else
8982          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'
8983        fi
8984        aix_use_runtimelinking=no
8985
8986        # Test if we are trying to use run time linking or normal
8987        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8988        # need to do runtime linking.
8989        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8990          for ld_flag in $LDFLAGS; do
8991          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8992            aix_use_runtimelinking=yes
8993            break
8994          fi
8995          done
8996          ;;
8997        esac
8998
8999        exp_sym_flag='-bexport'
9000        no_entry_flag='-bnoentry'
9001      fi
9002
9003      # When large executables or shared objects are built, AIX ld can
9004      # have problems creating the table of contents.  If linking a library
9005      # or program results in "error TOC overflow" add -mminimal-toc to
9006      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9007      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9008
9009      archive_cmds=''
9010      hardcode_direct=yes
9011      hardcode_libdir_separator=':'
9012      link_all_deplibs=yes
9013
9014      if test "$GCC" = yes; then
9015        case $host_os in aix4.[012]|aix4.[012].*)
9016        # We only want to do this on AIX 4.2 and lower, the check
9017        # below for broken collect2 doesn't work under 4.3+
9018          collect2name=`${CC} -print-prog-name=collect2`
9019          if test -f "$collect2name" && \
9020           strings "$collect2name" | grep resolve_lib_name >/dev/null
9021          then
9022          # We have reworked collect2
9023          hardcode_direct=yes
9024          else
9025          # We have old collect2
9026          hardcode_direct=unsupported
9027          # It fails to find uninstalled libraries when the uninstalled
9028          # path is not listed in the libpath.  Setting hardcode_minus_L
9029          # to unsupported forces relinking
9030          hardcode_minus_L=yes
9031          hardcode_libdir_flag_spec='-L$libdir'
9032          hardcode_libdir_separator=
9033          fi
9034          ;;
9035        esac
9036        shared_flag='-shared'
9037        if test "$aix_use_runtimelinking" = yes; then
9038          shared_flag="$shared_flag "'${wl}-G'
9039        fi
9040      else
9041        # not using gcc
9042        if test "$host_cpu" = ia64; then
9043        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9044        # chokes on -Wl,-G. The following line is correct:
9045          shared_flag='-G'
9046        else
9047          if test "$aix_use_runtimelinking" = yes; then
9048            shared_flag='${wl}-G'
9049          else
9050            shared_flag='${wl}-bM:SRE'
9051          fi
9052        fi
9053      fi
9054
9055      # It seems that -bexpall does not export symbols beginning with
9056      # underscore (_), so it is better to generate a list of symbols to export.
9057      always_export_symbols=yes
9058      if test "$aix_use_runtimelinking" = yes; then
9059        # Warning - without using the other runtime loading flags (-brtl),
9060        # -berok will link without error, but may produce a broken library.
9061        allow_undefined_flag='-berok'
9062       # Determine the default libpath from the value encoded in an empty executable.
9063       cat >conftest.$ac_ext <<_ACEOF
9064/* confdefs.h.  */
9065_ACEOF
9066cat confdefs.h >>conftest.$ac_ext
9067cat >>conftest.$ac_ext <<_ACEOF
9068/* end confdefs.h.  */
9069
9070int
9071main ()
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078rm -f conftest.$ac_objext conftest$ac_exeext
9079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080  (eval $ac_link) 2>conftest.er1
9081  ac_status=$?
9082  grep -v '^ *+' conftest.er1 >conftest.err
9083  rm -f conftest.er1
9084  cat conftest.err >&5
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } &&
9087         { ac_try='test -z "$ac_c_werror_flag"
9088                         || test ! -s conftest.err'
9089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090  (eval $ac_try) 2>&5
9091  ac_status=$?
9092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093  (exit $ac_status); }; } &&
9094         { ac_try='test -s conftest$ac_exeext'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; }; then
9100
9101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9102}'`
9103# Check for a 64-bit object if we didn't find anything.
9104if 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; }
9105}'`; fi
9106else
9107  echo "$as_me: failed program was:" >&5
9108sed 's/^/| /' conftest.$ac_ext >&5
9109
9110fi
9111rm -f conftest.err conftest.$ac_objext \
9112      conftest$ac_exeext conftest.$ac_ext
9113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9114
9115       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9116        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"
9117       else
9118        if test "$host_cpu" = ia64; then
9119          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9120          allow_undefined_flag="-z nodefs"
9121          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"
9122        else
9123         # Determine the default libpath from the value encoded in an empty executable.
9124         cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h.  */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h.  */
9130
9131int
9132main ()
9133{
9134
9135  ;
9136  return 0;
9137}
9138_ACEOF
9139rm -f conftest.$ac_objext conftest$ac_exeext
9140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141  (eval $ac_link) 2>conftest.er1
9142  ac_status=$?
9143  grep -v '^ *+' conftest.er1 >conftest.err
9144  rm -f conftest.er1
9145  cat conftest.err >&5
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } &&
9148         { ac_try='test -z "$ac_c_werror_flag"
9149                         || test ! -s conftest.err'
9150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151  (eval $ac_try) 2>&5
9152  ac_status=$?
9153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154  (exit $ac_status); }; } &&
9155         { ac_try='test -s conftest$ac_exeext'
9156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157  (eval $ac_try) 2>&5
9158  ac_status=$?
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); }; }; then
9161
9162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9163}'`
9164# Check for a 64-bit object if we didn't find anything.
9165if 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; }
9166}'`; fi
9167else
9168  echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171fi
9172rm -f conftest.err conftest.$ac_objext \
9173      conftest$ac_exeext conftest.$ac_ext
9174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9175
9176         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9177          # Warning - without using the other run time loading flags,
9178          # -berok will link without error, but may produce a broken library.
9179          no_undefined_flag=' ${wl}-bernotok'
9180          allow_undefined_flag=' ${wl}-berok'
9181          # Exported symbols can be pulled into shared objects from archives
9182          whole_archive_flag_spec='$convenience'
9183          archive_cmds_need_lc=yes
9184          # This is similar to how AIX traditionally builds its shared libraries.
9185          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'
9186        fi
9187      fi
9188      ;;
9189
9190    amigaos*)
9191      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)'
9192      hardcode_libdir_flag_spec='-L$libdir'
9193      hardcode_minus_L=yes
9194      # see comment about different semantics on the GNU ld section
9195      ld_shlibs=no
9196      ;;
9197
9198    bsdi[45]*)
9199      export_dynamic_flag_spec=-rdynamic
9200      ;;
9201
9202    cygwin* | mingw* | pw32*)
9203      # When not using gcc, we currently assume that we are using
9204      # Microsoft Visual C++.
9205      # hardcode_libdir_flag_spec is actually meaningless, as there is
9206      # no search path for DLLs.
9207      hardcode_libdir_flag_spec=' '
9208      allow_undefined_flag=unsupported
9209      # Tell ltmain to make .lib files, not .a files.
9210      libext=lib
9211      # Tell ltmain to make .dll files, not .so files.
9212      shrext_cmds=".dll"
9213      # FIXME: Setting linknames here is a bad hack.
9214      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9215      # The linker will automatically build a .lib file if we build a DLL.
9216      old_archive_From_new_cmds='true'
9217      # FIXME: Should let the user specify the lib program.
9218      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9219      fix_srcfile_path='`cygpath -w "$srcfile"`'
9220      enable_shared_with_static_runtimes=yes
9221      ;;
9222
9223    darwin* | rhapsody*)
9224      case $host_os in
9225        rhapsody* | darwin1.[012])
9226         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9227         ;;
9228       *) # Darwin 1.3 on
9229         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9230           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9231         else
9232           case ${MACOSX_DEPLOYMENT_TARGET} in
9233             10.[012])
9234               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9235               ;;
9236             10.*)
9237               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9238               ;;
9239           esac
9240         fi
9241         ;;
9242      esac
9243      archive_cmds_need_lc=no
9244      hardcode_direct=no
9245      hardcode_automatic=yes
9246      hardcode_shlibpath_var=unsupported
9247      whole_archive_flag_spec=''
9248      link_all_deplibs=yes
9249    if test "$GCC" = yes ; then
9250        output_verbose_link_cmd='echo'
9251        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9252      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9253      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9254      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}'
9255      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}'
9256    else
9257      case $cc_basename in
9258        xlc*)
9259         output_verbose_link_cmd='echo'
9260         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9261         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9262          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9263         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}'
9264          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}'
9265          ;;
9266       *)
9267         ld_shlibs=no
9268          ;;
9269      esac
9270    fi
9271      ;;
9272
9273    dgux*)
9274      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275      hardcode_libdir_flag_spec='-L$libdir'
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    freebsd1*)
9280      ld_shlibs=no
9281      ;;
9282
9283    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9284    # support.  Future versions do this automatically, but an explicit c++rt0.o
9285    # does not break anything, and helps significantly (at the cost of a little
9286    # extra space).
9287    freebsd2.2*)
9288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9289      hardcode_libdir_flag_spec='-R$libdir'
9290      hardcode_direct=yes
9291      hardcode_shlibpath_var=no
9292      ;;
9293
9294    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9295    freebsd2*)
9296      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297      hardcode_direct=yes
9298      hardcode_minus_L=yes
9299      hardcode_shlibpath_var=no
9300      ;;
9301
9302    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9303    freebsd* | kfreebsd*-gnu | dragonfly*)
9304      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9305      hardcode_libdir_flag_spec='-R$libdir'
9306      hardcode_direct=yes
9307      hardcode_shlibpath_var=no
9308      ;;
9309
9310    hpux9*)
9311      if test "$GCC" = yes; then
9312        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'
9313      else
9314        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'
9315      fi
9316      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9317      hardcode_libdir_separator=:
9318      hardcode_direct=yes
9319
9320      # hardcode_minus_L: Not really in the search PATH,
9321      # but as the default location of the library.
9322      hardcode_minus_L=yes
9323      export_dynamic_flag_spec='${wl}-E'
9324      ;;
9325
9326    hpux10*)
9327      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9328        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9329      else
9330        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9331      fi
9332      if test "$with_gnu_ld" = no; then
9333        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9334        hardcode_libdir_separator=:
9335
9336        hardcode_direct=yes
9337        export_dynamic_flag_spec='${wl}-E'
9338
9339        # hardcode_minus_L: Not really in the search PATH,
9340        # but as the default location of the library.
9341        hardcode_minus_L=yes
9342      fi
9343      ;;
9344
9345    hpux11*)
9346      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9347        case $host_cpu in
9348        hppa*64*)
9349          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9350          ;;
9351        ia64*)
9352          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9353          ;;
9354        *)
9355          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9356          ;;
9357        esac
9358      else
9359        case $host_cpu in
9360        hppa*64*)
9361          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362          ;;
9363        ia64*)
9364          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9365          ;;
9366        *)
9367          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368          ;;
9369        esac
9370      fi
9371      if test "$with_gnu_ld" = no; then
9372        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9373        hardcode_libdir_separator=:
9374
9375        case $host_cpu in
9376        hppa*64*|ia64*)
9377          hardcode_libdir_flag_spec_ld='+b $libdir'
9378          hardcode_direct=no
9379          hardcode_shlibpath_var=no
9380          ;;
9381        *)
9382          hardcode_direct=yes
9383          export_dynamic_flag_spec='${wl}-E'
9384
9385          # hardcode_minus_L: Not really in the search PATH,
9386          # but as the default location of the library.
9387          hardcode_minus_L=yes
9388          ;;
9389        esac
9390      fi
9391      ;;
9392
9393    irix5* | irix6* | nonstopux*)
9394      if test "$GCC" = yes; then
9395        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'
9396      else
9397        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'
9398        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9399      fi
9400      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9401      hardcode_libdir_separator=:
9402      link_all_deplibs=yes
9403      ;;
9404
9405    netbsd*)
9406      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9408      else
9409        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9410      fi
9411      hardcode_libdir_flag_spec='-R$libdir'
9412      hardcode_direct=yes
9413      hardcode_shlibpath_var=no
9414      ;;
9415
9416    newsos6)
9417      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418      hardcode_direct=yes
9419      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9420      hardcode_libdir_separator=:
9421      hardcode_shlibpath_var=no
9422      ;;
9423
9424    openbsd*)
9425      hardcode_direct=yes
9426      hardcode_shlibpath_var=no
9427      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9428        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9429        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9430        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9431        export_dynamic_flag_spec='${wl}-E'
9432      else
9433       case $host_os in
9434         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9435           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436           hardcode_libdir_flag_spec='-R$libdir'
9437           ;;
9438         *)
9439           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9440           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9441           ;;
9442       esac
9443      fi
9444      ;;
9445
9446    os2*)
9447      hardcode_libdir_flag_spec='-L$libdir'
9448      hardcode_minus_L=yes
9449      allow_undefined_flag=unsupported
9450      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'
9451      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9452      ;;
9453
9454    osf3*)
9455      if test "$GCC" = yes; then
9456        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9457        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'
9458      else
9459        allow_undefined_flag=' -expect_unresolved \*'
9460        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'
9461      fi
9462      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463      hardcode_libdir_separator=:
9464      ;;
9465
9466    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9467      if test "$GCC" = yes; then
9468        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9469        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'
9470        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471      else
9472        allow_undefined_flag=' -expect_unresolved \*'
9473        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'
9474        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9475        $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'
9476
9477        # Both c and cxx compiler support -rpath directly
9478        hardcode_libdir_flag_spec='-rpath $libdir'
9479      fi
9480      hardcode_libdir_separator=:
9481      ;;
9482
9483    solaris*)
9484      no_undefined_flag=' -z text'
9485      if test "$GCC" = yes; then
9486        wlarc='${wl}'
9487        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9488        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9489          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9490      else
9491        wlarc=''
9492        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9493        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9494        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9495      fi
9496      hardcode_libdir_flag_spec='-R$libdir'
9497      hardcode_shlibpath_var=no
9498      case $host_os in
9499      solaris2.[0-5] | solaris2.[0-5].*) ;;
9500      *)
9501        # The compiler driver will combine linker options so we
9502        # cannot just pass the convience library names through
9503        # without $wl, iff we do not link with $LD.
9504        # Luckily, gcc supports the same syntax we need for Sun Studio.
9505        # Supported since Solaris 2.6 (maybe 2.5.1?)
9506        case $wlarc in
9507        '')
9508          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9509        *)
9510          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' ;;
9511        esac ;;
9512      esac
9513      link_all_deplibs=yes
9514      ;;
9515
9516    sunos4*)
9517      if test "x$host_vendor" = xsequent; then
9518        # Use $CC to link under sequent, because it throws in some extra .o
9519        # files that make .init and .fini sections work.
9520        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9521      else
9522        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9523      fi
9524      hardcode_libdir_flag_spec='-L$libdir'
9525      hardcode_direct=yes
9526      hardcode_minus_L=yes
9527      hardcode_shlibpath_var=no
9528      ;;
9529
9530    sysv4)
9531      case $host_vendor in
9532        sni)
9533          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534          hardcode_direct=yes # is this really true???
9535        ;;
9536        siemens)
9537          ## LD is ld it makes a PLAMLIB
9538          ## CC just makes a GrossModule.
9539          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9540          reload_cmds='$CC -r -o $output$reload_objs'
9541          hardcode_direct=no
9542        ;;
9543        motorola)
9544          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9546        ;;
9547      esac
9548      runpath_var='LD_RUN_PATH'
9549      hardcode_shlibpath_var=no
9550      ;;
9551
9552    sysv4.3*)
9553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554      hardcode_shlibpath_var=no
9555      export_dynamic_flag_spec='-Bexport'
9556      ;;
9557
9558    sysv4*MP*)
9559      if test -d /usr/nec; then
9560        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561        hardcode_shlibpath_var=no
9562        runpath_var=LD_RUN_PATH
9563        hardcode_runpath_var=yes
9564        ld_shlibs=yes
9565      fi
9566      ;;
9567
9568    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9569      no_undefined_flag='${wl}-z,text'
9570      archive_cmds_need_lc=no
9571      hardcode_shlibpath_var=no
9572      runpath_var='LD_RUN_PATH'
9573
9574      if test "$GCC" = yes; then
9575        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577      else
9578        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580      fi
9581      ;;
9582
9583    sysv5* | sco3.2v5* | sco5v6*)
9584      # Note: We can NOT use -z defs as we might desire, because we do not
9585      # link with -lc, and that would cause any symbols used from libc to
9586      # always be unresolved, which means just about no library would
9587      # ever link correctly.  If we're not using GNU ld we use -z text
9588      # though, which does catch some bad symbols but isn't as heavy-handed
9589      # as -z defs.
9590      no_undefined_flag='${wl}-z,text'
9591      allow_undefined_flag='${wl}-z,nodefs'
9592      archive_cmds_need_lc=no
9593      hardcode_shlibpath_var=no
9594      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9595      hardcode_libdir_separator=':'
9596      link_all_deplibs=yes
9597      export_dynamic_flag_spec='${wl}-Bexport'
9598      runpath_var='LD_RUN_PATH'
9599
9600      if test "$GCC" = yes; then
9601        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603      else
9604        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606      fi
9607      ;;
9608
9609    uts4*)
9610      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611      hardcode_libdir_flag_spec='-L$libdir'
9612      hardcode_shlibpath_var=no
9613      ;;
9614
9615    *)
9616      ld_shlibs=no
9617      ;;
9618    esac
9619  fi
9620
9621echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9622echo "${ECHO_T}$ld_shlibs" >&6
9623test "$ld_shlibs" = no && can_build_shared=no
9624
9625#
9626# Do we need to explicitly link libc?
9627#
9628case "x$archive_cmds_need_lc" in
9629x|xyes)
9630  # Assume -lc should be added
9631  archive_cmds_need_lc=yes
9632
9633  if test "$enable_shared" = yes && test "$GCC" = yes; then
9634    case $archive_cmds in
9635    *'~'*)
9636      # FIXME: we may have to deal with multi-command sequences.
9637      ;;
9638    '$CC '*)
9639      # Test whether the compiler implicitly links with -lc since on some
9640      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9641      # to ld, don't add -lc before -lgcc.
9642      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9643echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9644      $rm conftest*
9645      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9646
9647      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648  (eval $ac_compile) 2>&5
9649  ac_status=$?
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); } 2>conftest.err; then
9652        soname=conftest
9653        lib=conftest
9654        libobjs=conftest.$ac_objext
9655        deplibs=
9656        wl=$lt_prog_compiler_wl
9657        pic_flag=$lt_prog_compiler_pic
9658        compiler_flags=-v
9659        linker_flags=-v
9660        verstring=
9661        output_objdir=.
9662        libname=conftest
9663        lt_save_allow_undefined_flag=$allow_undefined_flag
9664        allow_undefined_flag=
9665        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9666  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9667  ac_status=$?
9668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669  (exit $ac_status); }
9670        then
9671          archive_cmds_need_lc=no
9672        else
9673          archive_cmds_need_lc=yes
9674        fi
9675        allow_undefined_flag=$lt_save_allow_undefined_flag
9676      else
9677        cat conftest.err 1>&5
9678      fi
9679      $rm conftest*
9680      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9681echo "${ECHO_T}$archive_cmds_need_lc" >&6
9682      ;;
9683    esac
9684  fi
9685  ;;
9686esac
9687
9688echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9689echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9690library_names_spec=
9691libname_spec='lib$name'
9692soname_spec=
9693shrext_cmds=".so"
9694postinstall_cmds=
9695postuninstall_cmds=
9696finish_cmds=
9697finish_eval=
9698shlibpath_var=
9699shlibpath_overrides_runpath=unknown
9700version_type=none
9701dynamic_linker="$host_os ld.so"
9702sys_lib_dlsearch_path_spec="/lib /usr/lib"
9703if test "$GCC" = yes; then
9704  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9705  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9706    # if the path contains ";" then we assume it to be the separator
9707    # otherwise default to the standard path separator (i.e. ":") - it is
9708    # assumed that no part of a normal pathname contains ";" but that should
9709    # okay in the real world where ";" in dirpaths is itself problematic.
9710    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9711  else
9712    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9713  fi
9714else
9715  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9716fi
9717need_lib_prefix=unknown
9718hardcode_into_libs=no
9719
9720# when you set need_version to no, make sure it does not cause -set_version
9721# flags to be left without arguments
9722need_version=unknown
9723
9724case $host_os in
9725aix3*)
9726  version_type=linux
9727  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9728  shlibpath_var=LIBPATH
9729
9730  # AIX 3 has no versioning support, so we append a major version to the name.
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  ;;
9733
9734aix4* | aix5*)
9735  version_type=linux
9736  need_lib_prefix=no
9737  need_version=no
9738  hardcode_into_libs=yes
9739  if test "$host_cpu" = ia64; then
9740    # AIX 5 supports IA64
9741    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9742    shlibpath_var=LD_LIBRARY_PATH
9743  else
9744    # With GCC up to 2.95.x, collect2 would create an import file
9745    # for dependence libraries.  The import file would start with
9746    # the line `#! .'.  This would cause the generated library to
9747    # depend on `.', always an invalid library.  This was fixed in
9748    # development snapshots of GCC prior to 3.0.
9749    case $host_os in
9750      aix4 | aix4.[01] | aix4.[01].*)
9751      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9752           echo ' yes '
9753           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9754        :
9755      else
9756        can_build_shared=no
9757      fi
9758      ;;
9759    esac
9760    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9761    # soname into executable. Probably we can add versioning support to
9762    # collect2, so additional links can be useful in future.
9763    if test "$aix_use_runtimelinking" = yes; then
9764      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9765      # instead of lib<name>.a to let people know that these are not
9766      # typical AIX shared libraries.
9767      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768    else
9769      # We preserve .a as extension for shared libraries through AIX4.2
9770      # and later when we are not doing run time linking.
9771      library_names_spec='${libname}${release}.a $libname.a'
9772      soname_spec='${libname}${release}${shared_ext}$major'
9773    fi
9774    shlibpath_var=LIBPATH
9775  fi
9776  ;;
9777
9778amigaos*)
9779  library_names_spec='$libname.ixlibrary $libname.a'
9780  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9781  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'
9782  ;;
9783
9784beos*)
9785  library_names_spec='${libname}${shared_ext}'
9786  dynamic_linker="$host_os ld.so"
9787  shlibpath_var=LIBRARY_PATH
9788  ;;
9789
9790bsdi[45]*)
9791  version_type=linux
9792  need_version=no
9793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794  soname_spec='${libname}${release}${shared_ext}$major'
9795  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9796  shlibpath_var=LD_LIBRARY_PATH
9797  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9798  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9799  # the default ld.so.conf also contains /usr/contrib/lib and
9800  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9801  # libtool to hard-code these into programs
9802  ;;
9803
9804cygwin* | mingw* | pw32*)
9805  version_type=windows
9806  shrext_cmds=".dll"
9807  need_version=no
9808  need_lib_prefix=no
9809
9810  case $GCC,$host_os in
9811  yes,cygwin* | yes,mingw* | yes,pw32*)
9812    library_names_spec='$libname.dll.a'
9813    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9814    postinstall_cmds='base_file=`basename \${file}`~
9815      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9816      dldir=$destdir/`dirname \$dlpath`~
9817      test -d \$dldir || mkdir -p \$dldir~
9818      $install_prog $dir/$dlname \$dldir/$dlname~
9819      chmod a+x \$dldir/$dlname'
9820    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9821      dlpath=$dir/\$dldll~
9822       $rm \$dlpath'
9823    shlibpath_overrides_runpath=yes
9824
9825    case $host_os in
9826    cygwin*)
9827      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9828      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9830      ;;
9831    mingw*)
9832      # MinGW DLLs use traditional 'lib' prefix
9833      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9834      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9836        # It is most probably a Windows format PATH printed by
9837        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9838        # path with ; separators, and with drive letters. We can handle the
9839        # drive letters (cygwin fileutils understands them), so leave them,
9840        # especially as we might pass files found there to a mingw objdump,
9841        # which wouldn't understand a cygwinified path. Ahh.
9842        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9843      else
9844        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9845      fi
9846      ;;
9847    pw32*)
9848      # pw32 DLLs use 'pw' prefix rather than 'lib'
9849      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9850      ;;
9851    esac
9852    ;;
9853
9854  *)
9855    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9856    ;;
9857  esac
9858  dynamic_linker='Win32 ld.exe'
9859  # FIXME: first we should search . and the directory the executable is in
9860  shlibpath_var=PATH
9861  ;;
9862
9863darwin* | rhapsody*)
9864  dynamic_linker="$host_os dyld"
9865  version_type=darwin
9866  need_lib_prefix=no
9867  need_version=no
9868  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9869  soname_spec='${libname}${release}${major}$shared_ext'
9870  shlibpath_overrides_runpath=yes
9871  shlibpath_var=DYLD_LIBRARY_PATH
9872  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9873  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9874  if test "$GCC" = yes; then
9875    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"`
9876  else
9877    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9878  fi
9879  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9880  ;;
9881
9882dgux*)
9883  version_type=linux
9884  need_lib_prefix=no
9885  need_version=no
9886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  shlibpath_var=LD_LIBRARY_PATH
9889  ;;
9890
9891freebsd1*)
9892  dynamic_linker=no
9893  ;;
9894
9895kfreebsd*-gnu)
9896  version_type=linux
9897  need_lib_prefix=no
9898  need_version=no
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=no
9903  hardcode_into_libs=yes
9904  dynamic_linker='GNU ld.so'
9905  ;;
9906
9907freebsd* | dragonfly*)
9908  # DragonFly does not have aout.  When/if they implement a new
9909  # versioning mechanism, adjust this.
9910  if test -x /usr/bin/objformat; then
9911    objformat=`/usr/bin/objformat`
9912  else
9913    case $host_os in
9914    freebsd[123]*) objformat=aout ;;
9915    *) objformat=elf ;;
9916    esac
9917  fi
9918  version_type=freebsd-$objformat
9919  case $version_type in
9920    freebsd-elf*)
9921      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9922      need_version=no
9923      need_lib_prefix=no
9924      ;;
9925    freebsd-*)
9926      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9927      need_version=yes
9928      ;;
9929  esac
9930  shlibpath_var=LD_LIBRARY_PATH
9931  case $host_os in
9932  freebsd2*)
9933    shlibpath_overrides_runpath=yes
9934    ;;
9935  freebsd3.[01]* | freebsdelf3.[01]*)
9936    shlibpath_overrides_runpath=yes
9937    hardcode_into_libs=yes
9938    ;;
9939  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9940  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9941    shlibpath_overrides_runpath=no
9942    hardcode_into_libs=yes
9943    ;;
9944  freebsd*) # from 4.6 on
9945    shlibpath_overrides_runpath=yes
9946    hardcode_into_libs=yes
9947    ;;
9948  esac
9949  ;;
9950
9951gnu*)
9952  version_type=linux
9953  need_lib_prefix=no
9954  need_version=no
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9956  soname_spec='${libname}${release}${shared_ext}$major'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  hardcode_into_libs=yes
9959  ;;
9960
9961hpux9* | hpux10* | hpux11*)
9962  # Give a soname corresponding to the major version so that dld.sl refuses to
9963  # link against other versions.
9964  version_type=sunos
9965  need_lib_prefix=no
9966  need_version=no
9967  case $host_cpu in
9968  ia64*)
9969    shrext_cmds='.so'
9970    hardcode_into_libs=yes
9971    dynamic_linker="$host_os dld.so"
9972    shlibpath_var=LD_LIBRARY_PATH
9973    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9974    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975    soname_spec='${libname}${release}${shared_ext}$major'
9976    if test "X$HPUX_IA64_MODE" = X32; then
9977      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9978    else
9979      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9980    fi
9981    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9982    ;;
9983   hppa*64*)
9984     shrext_cmds='.sl'
9985     hardcode_into_libs=yes
9986     dynamic_linker="$host_os dld.sl"
9987     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9988     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990     soname_spec='${libname}${release}${shared_ext}$major'
9991     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9993     ;;
9994   *)
9995    shrext_cmds='.sl'
9996    dynamic_linker="$host_os dld.sl"
9997    shlibpath_var=SHLIB_PATH
9998    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9999    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000    soname_spec='${libname}${release}${shared_ext}$major'
10001    ;;
10002  esac
10003  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10004  postinstall_cmds='chmod 555 $lib'
10005  ;;
10006
10007interix3*)
10008  version_type=linux
10009  need_lib_prefix=no
10010  need_version=no
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10014  shlibpath_var=LD_LIBRARY_PATH
10015  shlibpath_overrides_runpath=no
10016  hardcode_into_libs=yes
10017  ;;
10018
10019irix5* | irix6* | nonstopux*)
10020  case $host_os in
10021    nonstopux*) version_type=nonstopux ;;
10022    *)
10023        if test "$lt_cv_prog_gnu_ld" = yes; then
10024                version_type=linux
10025        else
10026                version_type=irix
10027        fi ;;
10028  esac
10029  need_lib_prefix=no
10030  need_version=no
10031  soname_spec='${libname}${release}${shared_ext}$major'
10032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10033  case $host_os in
10034  irix5* | nonstopux*)
10035    libsuff= shlibsuff=
10036    ;;
10037  *)
10038    case $LD in # libtool.m4 will add one of these switches to LD
10039    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10040      libsuff= shlibsuff= libmagic=32-bit;;
10041    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10042      libsuff=32 shlibsuff=N32 libmagic=N32;;
10043    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10044      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10045    *) libsuff= shlibsuff= libmagic=never-match;;
10046    esac
10047    ;;
10048  esac
10049  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10050  shlibpath_overrides_runpath=no
10051  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10052  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10053  hardcode_into_libs=yes
10054  ;;
10055
10056# No shared lib support for Linux oldld, aout, or coff.
10057linux*oldld* | linux*aout* | linux*coff*)
10058  dynamic_linker=no
10059  ;;
10060
10061# This must be Linux ELF.
10062linux*)
10063  version_type=linux
10064  need_lib_prefix=no
10065  need_version=no
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067  soname_spec='${libname}${release}${shared_ext}$major'
10068  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10069  shlibpath_var=LD_LIBRARY_PATH
10070  shlibpath_overrides_runpath=no
10071  # This implies no fast_install, which is unacceptable.
10072  # Some rework will be needed to allow for fast_install
10073  # before this can be enabled.
10074  hardcode_into_libs=yes
10075
10076  # Append ld.so.conf contents to the search path
10077  if test -f /etc/ld.so.conf; then
10078    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' ' '`
10079    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10080  fi
10081
10082  # We used to test for /lib/ld.so.1 and disable shared libraries on
10083  # powerpc, because MkLinux only supported shared libraries with the
10084  # GNU dynamic linker.  Since this was broken with cross compilers,
10085  # most powerpc-linux boxes support dynamic linking these days and
10086  # people can always --disable-shared, the test was removed, and we
10087  # assume the GNU/Linux dynamic linker is in use.
10088  dynamic_linker='GNU/Linux ld.so'
10089  ;;
10090
10091knetbsd*-gnu)
10092  version_type=linux
10093  need_lib_prefix=no
10094  need_version=no
10095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10096  soname_spec='${libname}${release}${shared_ext}$major'
10097  shlibpath_var=LD_LIBRARY_PATH
10098  shlibpath_overrides_runpath=no
10099  hardcode_into_libs=yes
10100  dynamic_linker='GNU ld.so'
10101  ;;
10102
10103netbsd*)
10104  version_type=sunos
10105  need_lib_prefix=no
10106  need_version=no
10107  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10108    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10109    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10110    dynamic_linker='NetBSD (a.out) ld.so'
10111  else
10112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10113    soname_spec='${libname}${release}${shared_ext}$major'
10114    dynamic_linker='NetBSD ld.elf_so'
10115  fi
10116  shlibpath_var=LD_LIBRARY_PATH
10117  shlibpath_overrides_runpath=yes
10118  hardcode_into_libs=yes
10119  ;;
10120
10121newsos6)
10122  version_type=linux
10123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124  shlibpath_var=LD_LIBRARY_PATH
10125  shlibpath_overrides_runpath=yes
10126  ;;
10127
10128nto-qnx*)
10129  version_type=linux
10130  need_lib_prefix=no
10131  need_version=no
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133  soname_spec='${libname}${release}${shared_ext}$major'
10134  shlibpath_var=LD_LIBRARY_PATH
10135  shlibpath_overrides_runpath=yes
10136  ;;
10137
10138openbsd*)
10139  version_type=sunos
10140  sys_lib_dlsearch_path_spec="/usr/lib"
10141  need_lib_prefix=no
10142  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10143  case $host_os in
10144    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10145    *)                         need_version=no  ;;
10146  esac
10147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149  shlibpath_var=LD_LIBRARY_PATH
10150  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10151    case $host_os in
10152      openbsd2.[89] | openbsd2.[89].*)
10153        shlibpath_overrides_runpath=no
10154        ;;
10155      *)
10156        shlibpath_overrides_runpath=yes
10157        ;;
10158      esac
10159  else
10160    shlibpath_overrides_runpath=yes
10161  fi
10162  ;;
10163
10164os2*)
10165  libname_spec='$name'
10166  shrext_cmds=".dll"
10167  need_lib_prefix=no
10168  library_names_spec='$libname${shared_ext} $libname.a'
10169  dynamic_linker='OS/2 ld.exe'
10170  shlibpath_var=LIBPATH
10171  ;;
10172
10173osf3* | osf4* | osf5*)
10174  version_type=osf
10175  need_lib_prefix=no
10176  need_version=no
10177  soname_spec='${libname}${release}${shared_ext}$major'
10178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179  shlibpath_var=LD_LIBRARY_PATH
10180  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10181  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10182  ;;
10183
10184solaris*)
10185  version_type=linux
10186  need_lib_prefix=no
10187  need_version=no
10188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189  soname_spec='${libname}${release}${shared_ext}$major'
10190  shlibpath_var=LD_LIBRARY_PATH
10191  shlibpath_overrides_runpath=yes
10192  hardcode_into_libs=yes
10193  # ldd complains unless libraries are executable
10194  postinstall_cmds='chmod +x $lib'
10195  ;;
10196
10197sunos4*)
10198  version_type=sunos
10199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10200  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10201  shlibpath_var=LD_LIBRARY_PATH
10202  shlibpath_overrides_runpath=yes
10203  if test "$with_gnu_ld" = yes; then
10204    need_lib_prefix=no
10205  fi
10206  need_version=yes
10207  ;;
10208
10209sysv4 | sysv4.3*)
10210  version_type=linux
10211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212  soname_spec='${libname}${release}${shared_ext}$major'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  case $host_vendor in
10215    sni)
10216      shlibpath_overrides_runpath=no
10217      need_lib_prefix=no
10218      export_dynamic_flag_spec='${wl}-Blargedynsym'
10219      runpath_var=LD_RUN_PATH
10220      ;;
10221    siemens)
10222      need_lib_prefix=no
10223      ;;
10224    motorola)
10225      need_lib_prefix=no
10226      need_version=no
10227      shlibpath_overrides_runpath=no
10228      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10229      ;;
10230  esac
10231  ;;
10232
10233sysv4*MP*)
10234  if test -d /usr/nec ;then
10235    version_type=linux
10236    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10237    soname_spec='$libname${shared_ext}.$major'
10238    shlibpath_var=LD_LIBRARY_PATH
10239  fi
10240  ;;
10241
10242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10243  version_type=freebsd-elf
10244  need_lib_prefix=no
10245  need_version=no
10246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10247  soname_spec='${libname}${release}${shared_ext}$major'
10248  shlibpath_var=LD_LIBRARY_PATH
10249  hardcode_into_libs=yes
10250  if test "$with_gnu_ld" = yes; then
10251    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10252    shlibpath_overrides_runpath=no
10253  else
10254    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10255    shlibpath_overrides_runpath=yes
10256    case $host_os in
10257      sco3.2v5*)
10258        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10259        ;;
10260    esac
10261  fi
10262  sys_lib_dlsearch_path_spec='/usr/lib'
10263  ;;
10264
10265uts4*)
10266  version_type=linux
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268  soname_spec='${libname}${release}${shared_ext}$major'
10269  shlibpath_var=LD_LIBRARY_PATH
10270  ;;
10271
10272*)
10273  dynamic_linker=no
10274  ;;
10275esac
10276echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10277echo "${ECHO_T}$dynamic_linker" >&6
10278test "$dynamic_linker" = no && can_build_shared=no
10279
10280variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10281if test "$GCC" = yes; then
10282  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10283fi
10284
10285echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10286echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10287hardcode_action=
10288if test -n "$hardcode_libdir_flag_spec" || \
10289   test -n "$runpath_var" || \
10290   test "X$hardcode_automatic" = "Xyes" ; then
10291
10292  # We can hardcode non-existant directories.
10293  if test "$hardcode_direct" != no &&
10294     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10295     # have to relink, otherwise we might link with an installed library
10296     # when we should be linking with a yet-to-be-installed one
10297     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10298     test "$hardcode_minus_L" != no; then
10299    # Linking always hardcodes the temporary library directory.
10300    hardcode_action=relink
10301  else
10302    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10303    hardcode_action=immediate
10304  fi
10305else
10306  # We cannot hardcode anything, or else we can only hardcode existing
10307  # directories.
10308  hardcode_action=unsupported
10309fi
10310echo "$as_me:$LINENO: result: $hardcode_action" >&5
10311echo "${ECHO_T}$hardcode_action" >&6
10312
10313if test "$hardcode_action" = relink; then
10314  # Fast installation is not supported
10315  enable_fast_install=no
10316elif test "$shlibpath_overrides_runpath" = yes ||
10317     test "$enable_shared" = no; then
10318  # Fast installation is not necessary
10319  enable_fast_install=needless
10320fi
10321
10322striplib=
10323old_striplib=
10324echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10325echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10326if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10327  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10328  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10329  echo "$as_me:$LINENO: result: yes" >&5
10330echo "${ECHO_T}yes" >&6
10331else
10332# FIXME - insert some real tests, host_os isn't really good enough
10333  case $host_os in
10334   darwin*)
10335       if test -n "$STRIP" ; then
10336         striplib="$STRIP -x"
10337         echo "$as_me:$LINENO: result: yes" >&5
10338echo "${ECHO_T}yes" >&6
10339       else
10340  echo "$as_me:$LINENO: result: no" >&5
10341echo "${ECHO_T}no" >&6
10342fi
10343       ;;
10344   *)
10345  echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
10347    ;;
10348  esac
10349fi
10350
10351if test "x$enable_dlopen" != xyes; then
10352  enable_dlopen=unknown
10353  enable_dlopen_self=unknown
10354  enable_dlopen_self_static=unknown
10355else
10356  lt_cv_dlopen=no
10357  lt_cv_dlopen_libs=
10358
10359  case $host_os in
10360  beos*)
10361    lt_cv_dlopen="load_add_on"
10362    lt_cv_dlopen_libs=
10363    lt_cv_dlopen_self=yes
10364    ;;
10365
10366  mingw* | pw32*)
10367    lt_cv_dlopen="LoadLibrary"
10368    lt_cv_dlopen_libs=
10369   ;;
10370
10371  cygwin*)
10372    lt_cv_dlopen="dlopen"
10373    lt_cv_dlopen_libs=
10374   ;;
10375
10376  darwin*)
10377  # if libdl is installed we need to link against it
10378    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10379echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10380if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10381  echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383  ac_check_lib_save_LIBS=$LIBS
10384LIBS="-ldl  $LIBS"
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391
10392/* Override any gcc2 internal prototype to avoid an error.  */
10393#ifdef __cplusplus
10394extern "C"
10395#endif
10396/* We use char because int might match the return type of a gcc2
10397   builtin and then its argument prototype would still apply.  */
10398char dlopen ();
10399int
10400main ()
10401{
10402dlopen ();
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407rm -f conftest.$ac_objext conftest$ac_exeext
10408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10409  (eval $ac_link) 2>conftest.er1
10410  ac_status=$?
10411  grep -v '^ *+' conftest.er1 >conftest.err
10412  rm -f conftest.er1
10413  cat conftest.err >&5
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); } &&
10416         { ac_try='test -z "$ac_c_werror_flag"
10417                         || test ! -s conftest.err'
10418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419  (eval $ac_try) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); }; } &&
10423         { ac_try='test -s conftest$ac_exeext'
10424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425  (eval $ac_try) 2>&5
10426  ac_status=$?
10427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428  (exit $ac_status); }; }; then
10429  ac_cv_lib_dl_dlopen=yes
10430else
10431  echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434ac_cv_lib_dl_dlopen=no
10435fi
10436rm -f conftest.err conftest.$ac_objext \
10437      conftest$ac_exeext conftest.$ac_ext
10438LIBS=$ac_check_lib_save_LIBS
10439fi
10440echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10441echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10442if test $ac_cv_lib_dl_dlopen = yes; then
10443  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10444else
10445
10446    lt_cv_dlopen="dyld"
10447    lt_cv_dlopen_libs=
10448    lt_cv_dlopen_self=yes
10449
10450fi
10451
10452   ;;
10453
10454  *)
10455    echo "$as_me:$LINENO: checking for shl_load" >&5
10456echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10457if test "${ac_cv_func_shl_load+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460  cat >conftest.$ac_ext <<_ACEOF
10461/* confdefs.h.  */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h.  */
10466/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10467   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10468#define shl_load innocuous_shl_load
10469
10470/* System header to define __stub macros and hopefully few prototypes,
10471    which can conflict with char shl_load (); below.
10472    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10473    <limits.h> exists even on freestanding compilers.  */
10474
10475#ifdef __STDC__
10476# include <limits.h>
10477#else
10478# include <assert.h>
10479#endif
10480
10481#undef shl_load
10482
10483/* Override any gcc2 internal prototype to avoid an error.  */
10484#ifdef __cplusplus
10485extern "C"
10486{
10487#endif
10488/* We use char because int might match the return type of a gcc2
10489   builtin and then its argument prototype would still apply.  */
10490char shl_load ();
10491/* The GNU C library defines this for functions which it implements
10492    to always fail with ENOSYS.  Some functions are actually named
10493    something starting with __ and the normal name is an alias.  */
10494#if defined (__stub_shl_load) || defined (__stub___shl_load)
10495choke me
10496#else
10497char (*f) () = shl_load;
10498#endif
10499#ifdef __cplusplus
10500}
10501#endif
10502
10503int
10504main ()
10505{
10506return f != shl_load;
10507  ;
10508  return 0;
10509}
10510_ACEOF
10511rm -f conftest.$ac_objext conftest$ac_exeext
10512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513  (eval $ac_link) 2>conftest.er1
10514  ac_status=$?
10515  grep -v '^ *+' conftest.er1 >conftest.err
10516  rm -f conftest.er1
10517  cat conftest.err >&5
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); } &&
10520         { ac_try='test -z "$ac_c_werror_flag"
10521                         || test ! -s conftest.err'
10522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523  (eval $ac_try) 2>&5
10524  ac_status=$?
10525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526  (exit $ac_status); }; } &&
10527         { ac_try='test -s conftest$ac_exeext'
10528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529  (eval $ac_try) 2>&5
10530  ac_status=$?
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); }; }; then
10533  ac_cv_func_shl_load=yes
10534else
10535  echo "$as_me: failed program was:" >&5
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
10538ac_cv_func_shl_load=no
10539fi
10540rm -f conftest.err conftest.$ac_objext \
10541      conftest$ac_exeext conftest.$ac_ext
10542fi
10543echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10544echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10545if test $ac_cv_func_shl_load = yes; then
10546  lt_cv_dlopen="shl_load"
10547else
10548  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10549echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10550if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10551  echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553  ac_check_lib_save_LIBS=$LIBS
10554LIBS="-ldld  $LIBS"
10555cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h.  */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h.  */
10561
10562/* Override any gcc2 internal prototype to avoid an error.  */
10563#ifdef __cplusplus
10564extern "C"
10565#endif
10566/* We use char because int might match the return type of a gcc2
10567   builtin and then its argument prototype would still apply.  */
10568char shl_load ();
10569int
10570main ()
10571{
10572shl_load ();
10573  ;
10574  return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext conftest$ac_exeext
10578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579  (eval $ac_link) 2>conftest.er1
10580  ac_status=$?
10581  grep -v '^ *+' conftest.er1 >conftest.err
10582  rm -f conftest.er1
10583  cat conftest.err >&5
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); } &&
10586         { ac_try='test -z "$ac_c_werror_flag"
10587                         || test ! -s conftest.err'
10588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589  (eval $ac_try) 2>&5
10590  ac_status=$?
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); }; } &&
10593         { ac_try='test -s conftest$ac_exeext'
10594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595  (eval $ac_try) 2>&5
10596  ac_status=$?
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); }; }; then
10599  ac_cv_lib_dld_shl_load=yes
10600else
10601  echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
10604ac_cv_lib_dld_shl_load=no
10605fi
10606rm -f conftest.err conftest.$ac_objext \
10607      conftest$ac_exeext conftest.$ac_ext
10608LIBS=$ac_check_lib_save_LIBS
10609fi
10610echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10611echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10612if test $ac_cv_lib_dld_shl_load = yes; then
10613  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10614else
10615  echo "$as_me:$LINENO: checking for dlopen" >&5
10616echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10617if test "${ac_cv_func_dlopen+set}" = set; then
10618  echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620  cat >conftest.$ac_ext <<_ACEOF
10621/* confdefs.h.  */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h.  */
10626/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10627   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10628#define dlopen innocuous_dlopen
10629
10630/* System header to define __stub macros and hopefully few prototypes,
10631    which can conflict with char dlopen (); below.
10632    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10633    <limits.h> exists even on freestanding compilers.  */
10634
10635#ifdef __STDC__
10636# include <limits.h>
10637#else
10638# include <assert.h>
10639#endif
10640
10641#undef dlopen
10642
10643/* Override any gcc2 internal prototype to avoid an error.  */
10644#ifdef __cplusplus
10645extern "C"
10646{
10647#endif
10648/* We use char because int might match the return type of a gcc2
10649   builtin and then its argument prototype would still apply.  */
10650char dlopen ();
10651/* The GNU C library defines this for functions which it implements
10652    to always fail with ENOSYS.  Some functions are actually named
10653    something starting with __ and the normal name is an alias.  */
10654#if defined (__stub_dlopen) || defined (__stub___dlopen)
10655choke me
10656#else
10657char (*f) () = dlopen;
10658#endif
10659#ifdef __cplusplus
10660}
10661#endif
10662
10663int
10664main ()
10665{
10666return f != dlopen;
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext conftest$ac_exeext
10672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673  (eval $ac_link) 2>conftest.er1
10674  ac_status=$?
10675  grep -v '^ *+' conftest.er1 >conftest.err
10676  rm -f conftest.er1
10677  cat conftest.err >&5
10678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679  (exit $ac_status); } &&
10680         { ac_try='test -z "$ac_c_werror_flag"
10681                         || test ! -s conftest.err'
10682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683  (eval $ac_try) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; } &&
10687         { ac_try='test -s conftest$ac_exeext'
10688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689  (eval $ac_try) 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); }; }; then
10693  ac_cv_func_dlopen=yes
10694else
10695  echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698ac_cv_func_dlopen=no
10699fi
10700rm -f conftest.err conftest.$ac_objext \
10701      conftest$ac_exeext conftest.$ac_ext
10702fi
10703echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10704echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10705if test $ac_cv_func_dlopen = yes; then
10706