source: trunk/Cbc/configure @ 1958

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

Re-running autotools

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