source: stable/2.8/Cbc/configure @ 1917

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

temporarily committing release candidate

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.1.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8.1'
433PACKAGE_STRING='Cbc 2.8.1'
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_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8.1 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.8.1:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
1174  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1175                          cl/icl builds only)
1176  --with-pthreadsw32-incdir
1177                          specify the path of the pthreads win32 header file
1178                          (for cl/icl builds only)
1179  --with-osicbc-default-solver
1180                          specify underlying solver for OsiCbc (default clp)
1181  --with-dot              use dot (from graphviz) when creating documentation
1182                          with doxygen if available; --without-dot to disable
1183
1184Some influential environment variables:
1185  CDEFS       Additional -D flags to be used when compiling C code.
1186  ADD_CFLAGS  Additional C compiler options
1187  DBG_CFLAGS  Debug C compiler options
1188  OPT_CFLAGS  Optimize C compiler options
1189  CC          C compiler command
1190  CFLAGS      C compiler flags
1191  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1192              nonstandard directory <lib dir>
1193  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1194              headers in a nonstandard directory <include dir>
1195  MPICC       C MPI Compiler
1196  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1197  ADD_CXXFLAGS
1198              Additional C++ compiler options
1199  DBG_CXXFLAGS
1200              Debug C++ compiler options
1201  OPT_CXXFLAGS
1202              Optimize C++ compiler options
1203  CXX         C++ compiler command
1204  CXXFLAGS    C++ compiler flags
1205  MPICXX      C++ MPI Compiler
1206  CPP         C preprocessor
1207  CXXCPP      C++ preprocessor
1208  F77         Fortran 77 compiler command
1209  FFLAGS      Fortran 77 compiler flags
1210  PKG_CONFIG  path to pkg-config utility
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <cbc@lists.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298           test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311Cbc configure 2.8.1
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Eclipse Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by Cbc $as_me 2.8.1, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409        ac_must_keep_next=false # Got value, back to normal.
1410      else
1411        case $ac_arg in
1412          *=* | --config-cache | -C | -disable-* | --disable-* \
1413          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415          | -with-* | --with-* | -without-* | --without-* | --x)
1416            case "$ac_configure_args0 " in
1417              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418            esac
1419            ;;
1420          -* ) ac_must_keep_next=true ;;
1421        esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488        eval ac_val=$`echo $ac_var`
1489        echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611        ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747
1748# As backup, we make sure we don't loose an FLIBS if it has been set
1749# by the user
1750save_FLIBS="$FLIBS"
1751
1752# A useful makefile conditional that is always false
1753
1754
1755if false; then
1756  ALWAYS_FALSE_TRUE=
1757  ALWAYS_FALSE_FALSE='#'
1758else
1759  ALWAYS_FALSE_TRUE='#'
1760  ALWAYS_FALSE_FALSE=
1761fi
1762
1763
1764# We set the following variable so that we know later in AC_COIN_FINALIZE
1765# that we are in a project main directory
1766coin_projectdir=yes
1767
1768# Set the project's version numbers
1769
1770
1771cat >>confdefs.h <<_ACEOF
1772#define CBC_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
1775
1776  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1777  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1778  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1779  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1780  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1781  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MAJOR $coin_majorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_MINOR $coin_minorver
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CBC_VERSION_RELEASE $coin_releasever
1795_ACEOF
1796
1797
1798  # We use the following variable to have a string with the upper case
1799  # version of the project name
1800  COIN_PRJCT=CBC
1801
1802  # Set the project's SVN revision number. The complicated sed expression
1803  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1804  # as a single number.
1805  # Extract the first word of "svnversion", so it can be a program name with args.
1806set dummy svnversion; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_have_svnversion+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$have_svnversion"; then
1813  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_have_svnversion="yes"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1830fi
1831fi
1832have_svnversion=$ac_cv_prog_have_svnversion
1833if test -n "$have_svnversion"; then
1834  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1835echo "${ECHO_T}$have_svnversion" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  if test "x$have_svnversion" = xyes; then
1842
1843    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1844    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1845      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1846
1847cat >>confdefs.h <<_ACEOF
1848#define CBC_SVN_REV $CBC_SVN_REV
1849_ACEOF
1850
1851    fi
1852  fi
1853
1854
1855
1856# Capture libtool library version, if given.
1857coin_libversion=11:1:8
1858
1859
1860
1861
1862# Check if user wants to produce debugging code
1863
1864echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1865echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1866
1867# Check whether --enable-debug or --disable-debug was given.
1868if test "${enable_debug+set}" = set; then
1869  enableval="$enable_debug"
1870  case "${enableval}" in
1871   yes) coin_debug_compile=true
1872        if test "${enable_shared+set}" = set; then :; else
1873          enable_shared=no
1874        fi
1875        ;;
1876   no)  coin_debug_compile=false
1877        ;;
1878   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1879echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1880   { (exit 1); exit 1; }; }
1881        ;;
1882esac
1883else
1884  coin_debug_compile=false
1885fi;
1886
1887# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1888if test "${enable_debug_cbc+set}" = set; then
1889  enableval="$enable_debug_cbc"
1890  case "${enableval}" in
1891    yes) coin_debug_compile=true
1892         ;;
1893    no)  coin_debug_compile=false
1894         ;;
1895    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1896echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1897   { (exit 1); exit 1; }; }
1898         ;;
1899 esac
1900else
1901  :
1902fi;
1903
1904 # m4_ifvaln([Cbc],
1905
1906if test $coin_debug_compile = true; then
1907  echo "$as_me:$LINENO: result: yes" >&5
1908echo "${ECHO_T}yes" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914
1915# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1916if test "${with_cbc_verbosity+set}" = set; then
1917  withval="$with_cbc_verbosity"
1918  if test "$withval" = yes; then
1919                withval=1
1920              fi
1921              coin_cbc_verbosity=$withval
1922else
1923  coin_cbc_verbosity=0
1924fi;
1925
1926cat >>confdefs.h <<_ACEOF
1927#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1928_ACEOF
1929
1930
1931
1932# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1933if test "${with_cbc_checklevel+set}" = set; then
1934  withval="$with_cbc_checklevel"
1935  if test "$withval" = yes; then
1936                withval=1
1937              fi
1938              coin_cbc_checklevel=$withval
1939else
1940  coin_cbc_checklevel=0
1941fi;
1942
1943cat >>confdefs.h <<_ACEOF
1944#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1945_ACEOF
1946
1947
1948 # m4_ifvaln([Cbc],
1949
1950
1951
1952# Get the name of the C++ compiler and appropriate compiler options
1953case $build in
1954  *-mingw*)
1955    if test "${LD+set}" = set; then :; else
1956      LD=link
1957    fi
1958    ;;
1959 esac
1960 case $enable_doscompile in
1961   msvc)
1962     if test "x${LD+set}" = xset; then :; else
1963       LD=link
1964     fi
1965     ;;
1966 esac
1967
1968
1969 # Check whether --enable-doscompile or --disable-doscompile was given.
1970if test "${enable_doscompile+set}" = set; then
1971  enableval="$enable_doscompile"
1972  if test "$enable_doscompile" != no; then
1973     case $build in
1974       *-cygwin* | *-mingw*) ;;
1975       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1976echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1977   { (exit 1); exit 1; }; } ;;
1978     esac
1979   fi
1980else
1981  enable_doscompile=no
1982fi;
1983 case "$enable_doscompile" in
1984   mingw)
1985     case $build in
1986       *-mingw*) enable_doscompile=no ;;
1987     esac
1988     ;;
1989   msvc|no) ;;
1990   yes) enable_doscompile=mingw ;;
1991   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1992                    Try configure --help=recursive." >&5
1993echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1994                    Try configure --help=recursive." >&2;}
1995   { (exit 1); exit 1; }; }
1996      ;;
1997  esac
1998  if test "$enable_doscompile" != no ; then
1999    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
2000echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
2001  fi
2002
2003
2004
2005
2006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013# For consistency, we set the C compiler to the same value of the C++
2014# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2015if test x"$CXX" != x; then
2016  case "$CXX" in
2017    clang* ) ;;
2018    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2019      if test x"$CC" = x; then
2020        CC="$CXX"
2021        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2022echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2023      fi
2024      ;;
2025  esac
2026fi
2027
2028
2029
2030
2031
2032
2033coin_has_cc=yes
2034
2035save_cflags="$CFLAGS"
2036
2037# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2038# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2039# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2040# compiler. In this case, put cc after gcc.
2041
2042case $build in
2043  *-cygwin* | *-mingw*)
2044             if test "$enable_doscompile" = msvc ; then
2045               comps="icl cl"
2046             else
2047               comps="gcc cl"
2048             fi ;;
2049  *-*-solaris*)
2050             # Extract the first word of "cc", so it can be a program name with args.
2051set dummy cc; ac_word=$2
2052echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$sol_cc_compiler"; then
2058  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2059else
2060  ac_prog_rejected=no
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066  for ac_exec_ext in '' $ac_executable_extensions; do
2067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069       ac_prog_rejected=yes
2070       continue
2071     fi
2072    ac_cv_prog_sol_cc_compiler="cc"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079if test $ac_prog_rejected = yes; then
2080  # We found a bogon in the path, so make sure we never use it.
2081  set dummy $ac_cv_prog_sol_cc_compiler
2082  shift
2083  if test $# != 0; then
2084    # We chose a different compiler from the bogus one.
2085    # However, it has the same basename, so the bogon will be chosen
2086    # first if we set sol_cc_compiler to just the basename; use the full file name.
2087    shift
2088    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2089  fi
2090fi
2091fi
2092fi
2093sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2094if test -n "$sol_cc_compiler"; then
2095  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2096echo "${ECHO_T}$sol_cc_compiler" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102             if test "$sol_cc_compiler" = "cc" ; then
2103               comps="cc xlc gcc pgcc icc"
2104             else
2105               comps="xlc gcc pgcc icc cc"
2106             fi
2107             ;;
2108  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2109  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2110  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2111esac
2112
2113# We delete the cached value, since the test might not have been
2114# performed with our choice of compilers earlier
2115$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2116# AC_MSG_NOTICE([C compiler candidates: $comps])
2117ac_ext=c
2118ac_cpp='$CPP $CPPFLAGS'
2119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122if test -n "$ac_tool_prefix"; then
2123  for ac_prog in $comps
2124  do
2125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_CC+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  if test -n "$CC"; then
2133  ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  for ac_exec_ext in '' $ac_executable_extensions; do
2141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144    break 2
2145  fi
2146done
2147done
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153  echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6
2155else
2156  echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160    test -n "$CC" && break
2161  done
2162fi
2163if test -z "$CC"; then
2164  ac_ct_CC=$CC
2165  for ac_prog in $comps
2166do
2167  # Extract the first word of "$ac_prog", so it can be a program name with args.
2168set dummy $ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test -n "$ac_ct_CC"; then
2175  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182  for ac_exec_ext in '' $ac_executable_extensions; do
2183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184    ac_cv_prog_ac_ct_CC="$ac_prog"
2185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186    break 2
2187  fi
2188done
2189done
2190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
2195  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6
2197else
2198  echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202  test -n "$ac_ct_CC" && break
2203done
2204
2205  CC=$ac_ct_CC
2206fi
2207
2208
2209test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: no acceptable C compiler found in \$PATH
2212See \`config.log' for more details." >&2;}
2213   { (exit 1); exit 1; }; }
2214
2215# Provide some information about the compiler.
2216echo "$as_me:$LINENO:" \
2217     "checking for C compiler version" >&5
2218ac_compiler=`set X $ac_compile; echo $2`
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220  (eval $ac_compiler --version </dev/null >&5) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }
2224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225  (eval $ac_compiler -v </dev/null >&5) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230  (eval $ac_compiler -V </dev/null >&5) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }
2234
2235cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h.  */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h.  */
2241
2242int
2243main ()
2244{
2245
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250ac_clean_files_save=$ac_clean_files
2251ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252# Try to create an executable without -o first, disregard a.out.
2253# It will help us diagnose broken compilers, and finding out an intuition
2254# of exeext.
2255echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259  (eval $ac_link_default) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  # Find the output, starting from the most likely.  This scheme is
2264# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2265# resort.
2266
2267# Be careful to initialize this variable, since it used to be cached.
2268# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269ac_cv_exeext=
2270# b.out is created by i960 compilers.
2271for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272do
2273  test -f "$ac_file" || continue
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2276        ;;
2277    conftest.$ac_ext )
2278        # This is the source file.
2279        ;;
2280    [ab].out )
2281        # We found the default executable, but exeext='' is most
2282        # certainly right.
2283        break;;
2284    *.* )
2285        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286        # FIXME: I believe we export ac_cv_exeext for Libtool,
2287        # but it would be cool to find out if it's true.  Does anybody
2288        # maintain Libtool? --akim.
2289        export ac_cv_exeext
2290        break;;
2291    * )
2292        break;;
2293  esac
2294done
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: C compiler cannot create executables
2302See \`config.log' for more details." >&2;}
2303   { (exit 77); exit 77; }; }
2304fi
2305
2306ac_exeext=$ac_cv_exeext
2307echo "$as_me:$LINENO: result: $ac_file" >&5
2308echo "${ECHO_T}$ac_file" >&6
2309
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315# If not cross compiling, check that we can run a simple program.
2316if test "$cross_compiling" != yes; then
2317  if { ac_try='./$ac_file'
2318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319  (eval $ac_try) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; }; then
2323    cross_compiling=no
2324  else
2325    if test "$cross_compiling" = maybe; then
2326        cross_compiling=yes
2327    else
2328        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329If you meant to cross compile, use \`--host'.
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot run C compiled programs.
2332If you meant to cross compile, use \`--host'.
2333See \`config.log' for more details." >&2;}
2334   { (exit 1); exit 1; }; }
2335    fi
2336  fi
2337fi
2338echo "$as_me:$LINENO: result: yes" >&5
2339echo "${ECHO_T}yes" >&6
2340
2341rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342ac_clean_files=$ac_clean_files_save
2343# Check the compiler produces executables we can run.  If not, either
2344# the compiler is broken, or we cross compile.
2345echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348echo "${ECHO_T}$cross_compiling" >&6
2349
2350echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353  (eval $ac_link) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; then
2357  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2359# work properly (i.e., refer to `conftest.exe'), while it won't with
2360# `rm'.
2361for ac_file in conftest.exe conftest conftest.*; do
2362  test -f "$ac_file" || continue
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366          export ac_cv_exeext
2367          break;;
2368    * ) break;;
2369  esac
2370done
2371else
2372  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373See \`config.log' for more details." >&5
2374echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375See \`config.log' for more details." >&2;}
2376   { (exit 1); exit 1; }; }
2377fi
2378
2379rm -f conftest$ac_cv_exeext
2380echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381echo "${ECHO_T}$ac_cv_exeext" >&6
2382
2383rm -f conftest.$ac_ext
2384EXEEXT=$ac_cv_exeext
2385ac_exeext=$EXEEXT
2386echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388if test "${ac_cv_objext+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401
2402  ;
2403  return 0;
2404}
2405_ACEOF
2406rm -f conftest.o conftest.obj
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408  (eval $ac_compile) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; then
2412  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413  case $ac_file in
2414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2416       break;;
2417  esac
2418done
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&2;}
2427   { (exit 1); exit 1; }; }
2428fi
2429
2430rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433echo "${ECHO_T}$ac_cv_objext" >&6
2434OBJEXT=$ac_cv_objext
2435ac_objext=$OBJEXT
2436echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451#ifndef __GNUC__
2452       choke me
2453#endif
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_compiler_gnu=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486ac_compiler_gnu=no
2487fi
2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494GCC=`test $ac_compiler_gnu = yes && echo yes`
2495ac_test_CFLAGS=${CFLAGS+set}
2496ac_save_CFLAGS=$CFLAGS
2497CFLAGS="-g"
2498echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500if test "${ac_cv_prog_cc_g+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509
2510int
2511main ()
2512{
2513
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520  (eval $ac_compile) 2>conftest.er1
2521  ac_status=$?
2522  grep -v '^ *+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); } &&
2527         { ac_try='test -z "$ac_c_werror_flag"
2528                         || test ! -s conftest.err'
2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530  (eval $ac_try) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }; } &&
2534         { ac_try='test -s conftest.$ac_objext'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; }; then
2540  ac_cv_prog_cc_g=yes
2541else
2542  echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545ac_cv_prog_cc_g=no
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551if test "$ac_test_CFLAGS" = set; then
2552  CFLAGS=$ac_save_CFLAGS
2553elif test $ac_cv_prog_cc_g = yes; then
2554  if test "$GCC" = yes; then
2555    CFLAGS="-g -O2"
2556  else
2557    CFLAGS="-g"
2558  fi
2559else
2560  if test "$GCC" = yes; then
2561    CFLAGS="-O2"
2562  else
2563    CFLAGS=
2564  fi
2565fi
2566echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569  echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571  ac_cv_prog_cc_stdc=no
2572ac_save_CC=$CC
2573cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579#include <stdarg.h>
2580#include <stdio.h>
2581#include <sys/types.h>
2582#include <sys/stat.h>
2583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2584struct buf { int x; };
2585FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586static char *e (p, i)
2587     char **p;
2588     int i;
2589{
2590  return p[i];
2591}
2592static char *f (char * (*g) (char **, int), char **p, ...)
2593{
2594  char *s;
2595  va_list v;
2596  va_start (v,p);
2597  s = g (p, va_arg (v,int));
2598  va_end (v);
2599  return s;
2600}
2601
2602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2603   function prototypes and stuff, but not '\xHH' hex character constants.
2604   These don't provoke an error unfortunately, instead are silently treated
2605   as 'x'.  The following induces an error, until -std1 is added to get
2606   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2607   array size at least.  It's necessary to write '\x00'==0 to get something
2608   that's true only with -std1.  */
2609int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610
2611int test (int i, double x);
2612struct s1 {int (*f) (int a);};
2613struct s2 {int (*f) (double a);};
2614int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615int argc;
2616char **argv;
2617int
2618main ()
2619{
2620return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625# Don't try gcc -ansi; that turns off useful extensions and
2626# breaks some systems' header files.
2627# AIX                   -qlanglvl=ansi
2628# Ultrix and OSF/1      -std1
2629# HP-UX 10.20 and later -Ae
2630# HP-UX older versions  -Aa -D_HPUX_SOURCE
2631# SVR4                  -Xc -D__EXTENSIONS__
2632for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633do
2634  CC="$ac_save_CC $ac_arg"
2635  rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644         { ac_try='test -z "$ac_c_werror_flag"
2645                         || test ! -s conftest.err'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; } &&
2651         { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  ac_cv_prog_cc_stdc=$ac_arg
2658break
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663fi
2664rm -f conftest.err conftest.$ac_objext
2665done
2666rm -f conftest.$ac_ext conftest.$ac_objext
2667CC=$ac_save_CC
2668
2669fi
2670
2671case "x$ac_cv_prog_cc_stdc" in
2672  x|xno)
2673    echo "$as_me:$LINENO: result: none needed" >&5
2674echo "${ECHO_T}none needed" >&6 ;;
2675  *)
2676    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678    CC="$CC $ac_cv_prog_cc_stdc" ;;
2679esac
2680
2681# Some people use a C++ compiler to compile C.  Since we use `exit',
2682# in C++ we need to declare it.  In case someone uses the same compiler
2683# for both compiling C and C++ we need to have the C++ compiler decide
2684# the declaration of exit, since it's the most demanding environment.
2685cat >conftest.$ac_ext <<_ACEOF
2686#ifndef __cplusplus
2687  choke me
2688#endif
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692  (eval $ac_compile) 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } &&
2699         { ac_try='test -z "$ac_c_werror_flag"
2700                         || test ! -s conftest.err'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; } &&
2706         { ac_try='test -s conftest.$ac_objext'
2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708  (eval $ac_try) 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; }; then
2712  for ac_declaration in \
2713   '' \
2714   'extern "C" void std::exit (int) throw (); using std::exit;' \
2715   'extern "C" void std::exit (int); using std::exit;' \
2716   'extern "C" void exit (int) throw ();' \
2717   'extern "C" void exit (int);' \
2718   'void exit (int);'
2719do
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726$ac_declaration
2727#include <stdlib.h>
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  :
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763continue
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766  cat >conftest.$ac_ext <<_ACEOF
2767/* confdefs.h.  */
2768_ACEOF
2769cat confdefs.h >>conftest.$ac_ext
2770cat >>conftest.$ac_ext <<_ACEOF
2771/* end confdefs.h.  */
2772$ac_declaration
2773int
2774main ()
2775{
2776exit (42);
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783  (eval $ac_compile) 2>conftest.er1
2784  ac_status=$?
2785  grep -v '^ *+' conftest.er1 >conftest.err
2786  rm -f conftest.er1
2787  cat conftest.err >&5
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); } &&
2790         { ac_try='test -z "$ac_c_werror_flag"
2791                         || test ! -s conftest.err'
2792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793  (eval $ac_try) 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; } &&
2797         { ac_try='test -s conftest.$ac_objext'
2798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799  (eval $ac_try) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }; }; then
2803  break
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808fi
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811rm -f conftest*
2812if test -n "$ac_declaration"; then
2813  echo '#ifdef __cplusplus' >>confdefs.h
2814  echo $ac_declaration      >>confdefs.h
2815  echo '#endif'             >>confdefs.h
2816fi
2817
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830if test -z "$CC" ; then
2831  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2832echo "$as_me: error: Failed to find a C compiler!" >&2;}
2833   { (exit 1); exit 1; }; }
2834fi
2835# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2836case "$CC" in
2837  clang* ) ;;
2838  cl* | */cl* | CL* | */CL* )
2839    if test "$ac_cv_prog_cc_g" = yes ; then
2840      ac_cv_prog_cc_g=no
2841      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2842echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2843    fi ;;
2844esac
2845CFLAGS="$save_cflags"
2846
2847# add automake conditional so we can recognize cl compiler in makefile
2848coin_cc_is_cl=false
2849case "$CC" in
2850  clang* ) ;;
2851  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2852    coin_cc_is_cl=true
2853    ;;
2854esac
2855
2856
2857if test $coin_cc_is_cl = true; then
2858  COIN_CC_IS_CL_TRUE=
2859  COIN_CC_IS_CL_FALSE='#'
2860else
2861  COIN_CC_IS_CL_TRUE='#'
2862  COIN_CC_IS_CL_FALSE=
2863fi
2864
2865
2866# Check if a project specific CFLAGS variable has been set
2867if test x$COIN_PRJCT != x; then
2868  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2869  if test x$coin_tmp = xset; then
2870    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2871  fi
2872fi
2873
2874if test x"$CFLAGS" = x; then
2875
2876  coin_add_cflags=
2877  coin_opt_cflags=
2878  coin_dbg_cflags=
2879  coin_warn_cflags=
2880
2881  if test "$GCC" = "yes"; then
2882    case "$CC" in
2883      icc* | */icc*)
2884        ;;
2885      *)
2886        coin_opt_cflags="-O3"
2887        coin_add_cflags="-pipe"
2888        coin_dbg_cflags="-g -O0"
2889        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2890        case $build in
2891          *-darwin*)
2892            ;;
2893          *)
2894            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2895            ;;
2896        esac
2897        case $enable_doscompile in
2898          mingw)
2899            CFLAGS="-mno-cygwin"
2900            cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906
2907int
2908main ()
2909{
2910int i=0; i++;
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915rm -f conftest.$ac_objext conftest$ac_exeext
2916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917  (eval $ac_link) 2>conftest.er1
2918  ac_status=$?
2919  grep -v '^ *+' conftest.er1 >conftest.err
2920  rm -f conftest.er1
2921  cat conftest.err >&5
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); } &&
2924         { ac_try='test -z "$ac_c_werror_flag"
2925                         || test ! -s conftest.err'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; } &&
2931         { ac_try='test -s conftest$ac_exeext'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; }; then
2937  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2938else
2939  echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942fi
2943rm -f conftest.err conftest.$ac_objext \
2944      conftest$ac_exeext conftest.$ac_ext
2945            CFLAGS=
2946          ;;
2947        esac
2948    esac
2949  fi
2950  if test -z "$coin_opt_cflags"; then
2951    case $build in
2952      *-cygwin* | *-mingw*)
2953        case "$CC" in
2954          clang* ) ;;
2955          cl* | */cl* | CL* | */CL*)
2956            coin_opt_cflags='-MT -O2'
2957            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2958            coin_dbg_cflags='-MTd'
2959            ;;
2960          icl* | */icl* | ICL* | */ICL*)
2961            coin_opt_cflags='-MT -Ox'
2962            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2963            coin_dbg_cflags='-MTd -debug'
2964            ;;
2965        esac
2966        ;;
2967      *-linux-*)
2968        case "$CC" in
2969          icc* | */icc*)
2970            coin_opt_cflags="-O3 -ip -mp1"
2971            coin_add_cflags=""
2972            coin_dbg_cflags="-g"
2973            # Check if -i_dynamic is necessary (for new glibc library)
2974            CFLAGS=
2975            cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985int i=0; i++;
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext conftest$ac_exeext
2991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992  (eval $ac_link) 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } &&
2999         { ac_try='test -z "$ac_c_werror_flag"
3000                         || test ! -s conftest.err'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006         { ac_try='test -s conftest$ac_exeext'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; }; then
3012  :
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017coin_add_cflags="-i_dynamic $coin_add_cflags"
3018fi
3019rm -f conftest.err conftest.$ac_objext \
3020      conftest$ac_exeext conftest.$ac_ext
3021            ;;
3022          pgcc* | */pgcc*)
3023            coin_opt_cflags="-fast"
3024            coin_add_cflags="-Kieee -pc 64"
3025            coin_dbg_cflags="-g"
3026            ;;
3027        esac
3028        ;;
3029      *-ibm-*)
3030        case "$CC" in
3031          xlc* | */xlc* | mpxlc* | */mpxlc*)
3032            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3033            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3034            coin_dbg_cflags="-g"
3035          ;;
3036        esac
3037        ;;
3038      *-hp-*)
3039        coin_opt_cflags="-O"
3040        coin_add_cflags="-Ae"
3041        coin_dbg_cflags="-g"
3042        ;;
3043      *-*-solaris*)
3044        coin_opt_cflags="-xO4"
3045        coin_dbg_cflags="-g"
3046        ;;
3047      *-sgi-*)
3048        coin_opt_cflags="-O -OPT:Olimit=0"
3049        coin_dbg_cflags="-g"
3050        ;;
3051    esac
3052  fi
3053
3054  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3055    coin_dbg_cflags="-g"
3056  fi
3057
3058  if test -z "$coin_opt_cflags"; then
3059    # Try if -O option works if nothing else is set
3060    CFLAGS="-O"
3061    cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071int i=0; i++;
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
3077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078  (eval $ac_link) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085         { ac_try='test -z "$ac_c_werror_flag"
3086                         || test ! -s conftest.err'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092         { ac_try='test -s conftest$ac_exeext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  coin_opt_cflags="-O"
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103fi
3104rm -f conftest.err conftest.$ac_objext \
3105      conftest$ac_exeext conftest.$ac_ext
3106  fi
3107
3108  # if PM doesn't want the warning messages, take them out
3109  if test x"$coin_skip_warn_cflags" = xyes; then
3110    coin_warn_cflags=
3111  fi
3112
3113  if test x${DBG_CFLAGS+set} != xset; then
3114    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3115  fi
3116  if test x${OPT_CFLAGS+set} != xset; then
3117    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3118  fi
3119
3120  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3121  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3122
3123  if test "$coin_debug_compile" = "true"; then
3124    CFLAGS="$DBG_CFLAGS"
3125  else
3126    CFLAGS="$OPT_CFLAGS"
3127  fi
3128else
3129  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3130  if test x${DBG_CFLAGS+set} != xset; then
3131    DBG_CFLAGS="$CFLAGS"
3132  fi
3133  if test x${OPT_CFLAGS+set} != xset; then
3134    OPT_CFLAGS="$CFLAGS"
3135  fi
3136fi
3137
3138# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3139
3140case "$CFLAGS" in
3141  *-mno-cygwin*)
3142    if test x${CPPFLAGS+set} != xset ; then
3143      CPPFLAGS="-mno-cygwin"
3144    else
3145      case "$CPPFLAGS" in
3146        *-mno-cygwin*)
3147          ;;
3148        *)
3149          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3150          ;;
3151      esac
3152    fi ;;
3153esac
3154
3155# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3156if test x$COIN_PRJCT != x; then
3157  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3158fi
3159
3160# Try if CFLAGS works
3161save_CFLAGS="$CFLAGS"
3162cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172int i=0; i++;
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext conftest$ac_exeext
3178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179  (eval $ac_link) 2>conftest.er1
3180  ac_status=$?
3181  grep -v '^ *+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } &&
3186         { ac_try='test -z "$ac_c_werror_flag"
3187                         || test ! -s conftest.err'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; } &&
3193         { ac_try='test -s conftest$ac_exeext'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; }; then
3199  :
3200else
3201  echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204CFLAGS=
3205fi
3206rm -f conftest.err conftest.$ac_objext \
3207      conftest$ac_exeext conftest.$ac_ext
3208if test -z "$CFLAGS"; then
3209  { 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
3210echo "$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;}
3211  CFLAGS='-O'
3212  cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h.  */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h.  */
3218
3219int
3220main ()
3221{
3222int i=0; i++;
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext conftest$ac_exeext
3228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229  (eval $ac_link) 2>conftest.er1
3230  ac_status=$?
3231  grep -v '^ *+' conftest.er1 >conftest.err
3232  rm -f conftest.er1
3233  cat conftest.err >&5
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); } &&
3236         { ac_try='test -z "$ac_c_werror_flag"
3237                         || test ! -s conftest.err'
3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239  (eval $ac_try) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }; } &&
3243         { ac_try='test -s conftest$ac_exeext'
3244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245  (eval $ac_try) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; }; then
3249  :
3250else
3251  echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254CFLAGS=
3255fi
3256rm -f conftest.err conftest.$ac_objext \
3257      conftest$ac_exeext conftest.$ac_ext
3258  if test -z "$CFLAGS"; then
3259    { 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
3260echo "$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;}
3261  fi
3262fi
3263
3264{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3265echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3266
3267
3268if test x"$MPICC" = x; then :; else
3269  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3270echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3271  CC="$MPICC"
3272fi
3273
3274# Correct the LD variable if we are using the MS or Intel-windows compiler
3275case "$CC" in
3276  clang* ) ;;
3277  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3278    case $build in
3279  *-mingw*)
3280    if test "${LD+set}" = set; then :; else
3281      LD=link
3282    fi
3283    ;;
3284 esac
3285 case $enable_doscompile in
3286   msvc)
3287     if test "x${LD+set}" = xset; then :; else
3288       LD=link
3289     fi
3290     ;;
3291 esac
3292
3293    ;;
3294esac
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304 #Let's try if that overcomes configuration problem with VC++ 6.0
3305
3306ac_ext=cc
3307ac_cpp='$CXXCPP $CPPFLAGS'
3308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3311
3312
3313
3314
3315
3316
3317
3318coin_has_cxx=yes
3319
3320save_cxxflags="$CXXFLAGS"
3321# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3322case $build in
3323  *-cygwin* | *-mingw*)
3324             if test "$enable_doscompile" = msvc ; then
3325               comps="icl cl"
3326             else
3327               comps="g++ cl"
3328             fi ;;
3329  *-*-solaris*)
3330             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3331  *-darwin*) comps="g++ c++ CC" ;;
3332  *-linux-gnu*)
3333             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3334          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3335esac
3336
3337# We delete the cached value, since the test might not have been
3338# performed with our choice of compilers earlier
3339$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3340# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3341ac_ext=cc
3342ac_cpp='$CXXCPP $CPPFLAGS'
3343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3346if test -n "$ac_tool_prefix"; then
3347  for ac_prog in $CCC $comps
3348  do
3349    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351echo "$as_me:$LINENO: checking for $ac_word" >&5
3352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353if test "${ac_cv_prog_CXX+set}" = set; then
3354  echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356  if test -n "$CXX"; then
3357  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3358else
3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360for as_dir in $PATH
3361do
3362  IFS=$as_save_IFS
3363  test -z "$as_dir" && as_dir=.
3364  for ac_exec_ext in '' $ac_executable_extensions; do
3365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368    break 2
3369  fi
3370done
3371done
3372
3373fi
3374fi
3375CXX=$ac_cv_prog_CXX
3376if test -n "$CXX"; then
3377  echo "$as_me:$LINENO: result: $CXX" >&5
3378echo "${ECHO_T}$CXX" >&6
3379else
3380  echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382fi
3383
3384    test -n "$CXX" && break
3385  done
3386fi
3387if test -z "$CXX"; then
3388  ac_ct_CXX=$CXX
3389  for ac_prog in $CCC $comps
3390do
3391  # Extract the first word of "$ac_prog", so it can be a program name with args.
3392set dummy $ac_prog; ac_word=$2
3393echo "$as_me:$LINENO: checking for $ac_word" >&5
3394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3396  echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398  if test -n "$ac_ct_CXX"; then
3399  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404  IFS=$as_save_IFS
3405  test -z "$as_dir" && as_dir=.
3406  for ac_exec_ext in '' $ac_executable_extensions; do
3407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408    ac_cv_prog_ac_ct_CXX="$ac_prog"
3409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410    break 2
3411  fi
3412done
3413done
3414
3415fi
3416fi
3417ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3418if test -n "$ac_ct_CXX"; then
3419  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3420echo "${ECHO_T}$ac_ct_CXX" >&6
3421else
3422  echo "$as_me:$LINENO: result: no" >&5
3423echo "${ECHO_T}no" >&6
3424fi
3425
3426  test -n "$ac_ct_CXX" && break
3427done
3428test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3429
3430  CXX=$ac_ct_CXX
3431fi
3432
3433
3434# Provide some information about the compiler.
3435echo "$as_me:$LINENO:" \
3436     "checking for C++ compiler version" >&5
3437ac_compiler=`set X $ac_compile; echo $2`
3438{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3439  (eval $ac_compiler --version </dev/null >&5) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }
3443{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3444  (eval $ac_compiler -v </dev/null >&5) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }
3448{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3449  (eval $ac_compiler -V </dev/null >&5) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }
3453
3454echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3455echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3456if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469#ifndef __GNUC__
3470       choke me
3471#endif
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479  (eval $ac_compile) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486         { ac_try='test -z "$ac_cxx_werror_flag"
3487                         || test ! -s conftest.err'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; } &&
3493         { ac_try='test -s conftest.$ac_objext'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; }; then
3499  ac_compiler_gnu=yes
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504ac_compiler_gnu=no
3505fi
3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3508
3509fi
3510echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3511echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3512GXX=`test $ac_compiler_gnu = yes && echo yes`
3513ac_test_CXXFLAGS=${CXXFLAGS+set}
3514ac_save_CXXFLAGS=$CXXFLAGS
3515CXXFLAGS="-g"
3516echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3517echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3518if test "${ac_cv_prog_cxx_g+set}" = set; then
3519  echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521  cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h.  */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h.  */
3527
3528int
3529main ()
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538  (eval $ac_compile) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545         { ac_try='test -z "$ac_cxx_werror_flag"
3546                         || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552         { ac_try='test -s conftest.$ac_objext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  ac_cv_prog_cxx_g=yes
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563ac_cv_prog_cxx_g=no
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
3567echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3568echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3569if test "$ac_test_CXXFLAGS" = set; then
3570  CXXFLAGS=$ac_save_CXXFLAGS
3571elif test $ac_cv_prog_cxx_g = yes; then
3572  if test "$GXX" = yes; then
3573    CXXFLAGS="-g -O2"
3574  else
3575    CXXFLAGS="-g"
3576  fi
3577else
3578  if test "$GXX" = yes; then
3579    CXXFLAGS="-O2"
3580  else
3581    CXXFLAGS=
3582  fi
3583fi
3584for ac_declaration in \
3585   '' \
3586   'extern "C" void std::exit (int) throw (); using std::exit;' \
3587   'extern "C" void std::exit (int); using std::exit;' \
3588   'extern "C" void exit (int) throw ();' \
3589   'extern "C" void exit (int);' \
3590   'void exit (int);'
3591do
3592  cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h.  */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h.  */
3598$ac_declaration
3599#include <stdlib.h>
3600int
3601main ()
3602{
3603exit (42);
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608rm -f conftest.$ac_objext
3609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610  (eval $ac_compile) 2>conftest.er1
3611  ac_status=$?
3612  grep -v '^ *+' conftest.er1 >conftest.err
3613  rm -f conftest.er1
3614  cat conftest.err >&5
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); } &&
3617         { ac_try='test -z "$ac_cxx_werror_flag"
3618                         || test ! -s conftest.err'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; } &&
3624         { ac_try='test -s conftest.$ac_objext'
3625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626  (eval $ac_try) 2>&5
3627  ac_status=$?
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); }; }; then
3630  :
3631else
3632  echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635continue
3636fi
3637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638  cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644$ac_declaration
3645int
3646main ()
3647{
3648exit (42);
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655  (eval $ac_compile) 2>conftest.er1
3656  ac_status=$?
3657  grep -v '^ *+' conftest.er1 >conftest.err
3658  rm -f conftest.er1
3659  cat conftest.err >&5
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); } &&
3662         { ac_try='test -z "$ac_cxx_werror_flag"
3663                         || test ! -s conftest.err'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; } &&
3669         { ac_try='test -s conftest.$ac_objext'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; }; then
3675  break
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680fi
3681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682done
3683rm -f conftest*
3684if test -n "$ac_declaration"; then
3685  echo '#ifdef __cplusplus' >>confdefs.h
3686  echo $ac_declaration      >>confdefs.h
3687  echo '#endif'             >>confdefs.h
3688fi
3689
3690ac_ext=cc
3691ac_cpp='$CXXCPP $CPPFLAGS'
3692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3695
3696
3697#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3698#thus, we test here whether $CXX is actually working
3699ac_ext=cc
3700ac_cpp='$CXXCPP $CPPFLAGS'
3701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3704
3705echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3706echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3707cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h.  */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717int i=0;
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722rm -f conftest.$ac_objext
3723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724  (eval $ac_compile) 2>conftest.er1
3725  ac_status=$?
3726  grep -v '^ *+' conftest.er1 >conftest.err
3727  rm -f conftest.er1
3728  cat conftest.err >&5
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } &&
3731         { ac_try='test -z "$ac_cxx_werror_flag"
3732                         || test ! -s conftest.err'
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); }; } &&
3738         { ac_try='test -s conftest.$ac_objext'
3739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740  (eval $ac_try) 2>&5
3741  ac_status=$?
3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); }; }; then
3744  echo "$as_me:$LINENO: result: yes" >&5
3745echo "${ECHO_T}yes" >&6
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6
3752   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3753echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3754   { (exit 1); exit 1; }; }
3755
3756fi
3757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758ac_ext=cc
3759ac_cpp='$CXXCPP $CPPFLAGS'
3760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763
3764
3765coin_cxx_is_cl=false
3766# It seems that we need to cleanup something here for the Windows
3767case "$CXX" in
3768  clang* ) ;;
3769  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3770    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3771    mv confdefs.hh confdefs.h
3772    coin_cxx_is_cl=true
3773    ;;
3774esac
3775
3776# add automake conditional so we can recognize cl compiler in makefile
3777
3778
3779if test $coin_cxx_is_cl = true; then
3780  COIN_CXX_IS_CL_TRUE=
3781  COIN_CXX_IS_CL_FALSE='#'
3782else
3783  COIN_CXX_IS_CL_TRUE='#'
3784  COIN_CXX_IS_CL_FALSE=
3785fi
3786
3787
3788# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3789case "$CXX" in
3790  clang* ) ;;
3791  cl* | */cl* | CL* | */CL* )
3792    if test "$ac_cv_prog_cxx_g" = yes ; then
3793      ac_cv_prog_cxx_g=no
3794      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3795echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3796    fi ;;
3797esac
3798CXXFLAGS="$save_cxxflags"
3799
3800# Check if a project specific CXXFLAGS variable has been set
3801if test x$COIN_PRJCT != x; then
3802  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3803  if test x$coin_tmp = xset; then
3804    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3805  fi
3806fi
3807
3808if test x"$CXXFLAGS" = x; then
3809
3810# ToDo decide whether we want -DNDEBUG for optimization
3811  coin_add_cxxflags=
3812  coin_opt_cxxflags=
3813  coin_dbg_cxxflags=
3814  coin_warn_cxxflags=
3815
3816  if test "$GXX" = "yes"; then
3817    case "$CXX" in
3818      icpc* | */icpc*)
3819        ;;
3820      *)
3821# ToDo decide about unroll-loops
3822        coin_opt_cxxflags="-O3"
3823        coin_add_cxxflags="-pipe"
3824        coin_dbg_cxxflags="-g -O0"
3825        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3826        case $build in
3827          *-darwin*)
3828            ;;
3829          *)
3830            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3831            ;;
3832        esac
3833
3834        case $enable_doscompile in
3835          mingw)
3836            CXXFLAGS="-mno-cygwin"
3837            cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843
3844int
3845main ()
3846{
3847int i=0; i++;
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext conftest$ac_exeext
3853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854  (eval $ac_link) 2>conftest.er1
3855  ac_status=$?
3856  grep -v '^ *+' conftest.er1 >conftest.err
3857  rm -f conftest.er1
3858  cat conftest.err >&5
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } &&
3861         { ac_try='test -z "$ac_cxx_werror_flag"
3862                         || test ! -s conftest.err'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; } &&
3868         { ac_try='test -s conftest$ac_exeext'
3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870  (eval $ac_try) 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }; }; then
3874  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879fi
3880rm -f conftest.err conftest.$ac_objext \
3881      conftest$ac_exeext conftest.$ac_ext
3882            CXXFLAGS=
3883          ;;
3884        esac
3885    esac
3886  fi
3887
3888# Note that we do not need to cover GCC in the following tests.
3889
3890  if test -z "$coin_opt_cxxflags"; then
3891    case $build in
3892      *-cygwin* | *-mingw*)
3893        case "$CXX" in
3894          clang* ) ;;
3895          cl* | */cl* | CL* | */CL*)
3896            # The MT and MTd options are mutually exclusive
3897            coin_opt_cxxflags='-MT -O2'
3898            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3899            coin_dbg_cxxflags='-MTd'
3900            ;;
3901          icl* | */icl* | ICL* | */ICL*)
3902            # The MT and MTd options are mutually exclusive
3903            coin_opt_cxxflags='-MT -Ox'
3904            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3905            coin_dbg_cxxflags='-MTd -debug'
3906            ;;
3907        esac
3908        ;;
3909      *-linux-*)
3910        case "$CXX" in
3911          icpc* | */icpc*)
3912            coin_opt_cxxflags="-O3 -ip -mp1"
3913            coin_add_cxxflags=""
3914            coin_dbg_cxxflags="-g"
3915            # Check if -i_dynamic is necessary (for new glibc library)
3916            CXXFLAGS=
3917            cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h.  */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h.  */
3923
3924int
3925main ()
3926{
3927int i=0; i++;
3928  ;
3929  return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934  (eval $ac_link) 2>conftest.er1
3935  ac_status=$?
3936  grep -v '^ *+' conftest.er1 >conftest.err
3937  rm -f conftest.er1
3938  cat conftest.err >&5
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); } &&
3941         { ac_try='test -z "$ac_cxx_werror_flag"
3942                         || test ! -s conftest.err'
3943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944  (eval $ac_try) 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); }; } &&
3948         { ac_try='test -s conftest$ac_exeext'
3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950  (eval $ac_try) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }; }; then
3954  :
3955else
3956  echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962      conftest$ac_exeext conftest.$ac_ext
3963            ;;
3964          pgCC* | */pgCC*)
3965            coin_opt_cxxflags="-fast"
3966            coin_add_cxxflags="-Kieee -pc 64"
3967            coin_dbg_cxxflags="-g"
3968            ;;
3969        esac
3970        ;;
3971      *-ibm-*)
3972        case "$CXX" in
3973          xlC* | */xlC* | mpxlC* | */mpxlC*)
3974            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3975            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3976            coin_dbg_cxxflags="-g"
3977            ;;
3978        esac
3979        ;;
3980      *-hp-*)
3981        case "$CXX" in
3982          aCC* | */aCC* )
3983            coin_opt_cxxflags="-O"
3984            coin_add_cxxflags="-AA"
3985            coin_dbg_cxxflags="-g"
3986            ;;
3987        esac
3988        ;;
3989      *-*-solaris*)
3990          coin_opt_cxxflags="-O4"
3991          coin_dbg_cxxflags="-g"
3992        ;;
3993    esac
3994  fi
3995
3996# Generic flag settings. If these don't work, add a case above.
3997
3998  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3999    coin_dbg_cxxflags="-g"
4000  fi
4001
4002  if test -z "$coin_opt_cxxflags"; then
4003    # Try if -O option works if nothing else is set
4004    CXXFLAGS=-O
4005    cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011
4012int
4013main ()
4014{
4015int i=0; i++;
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext conftest$ac_exeext
4021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022  (eval $ac_link) 2>conftest.er1
4023  ac_status=$?
4024  grep -v '^ *+' conftest.er1 >conftest.err
4025  rm -f conftest.er1
4026  cat conftest.err >&5
4027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028  (exit $ac_status); } &&
4029         { ac_try='test -z "$ac_cxx_werror_flag"
4030                         || test ! -s conftest.err'
4031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032  (eval $ac_try) 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; } &&
4036         { ac_try='test -s conftest$ac_exeext'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; }; then
4042  coin_opt_cxxflags="-O"
4043else
4044  echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047fi
4048rm -f conftest.err conftest.$ac_objext \
4049      conftest$ac_exeext conftest.$ac_ext
4050  fi
4051
4052  # if PM doesn't want the warning messages, take them out
4053  if test x"$coin_skip_warn_cxxflags" = xyes; then
4054    coin_warn_cxxflags=
4055  fi
4056
4057# Do final setup of flags based on values determined above.
4058
4059  if test x${DBG_CXXFLAGS+set} != xset; then
4060    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4061  fi
4062  if test x${OPT_CXXFLAGS+set} != xset; then
4063    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4064  fi
4065
4066  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4067  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4068
4069  if test "$coin_debug_compile" = "true"; then
4070    CXXFLAGS="$DBG_CXXFLAGS"
4071  else
4072    CXXFLAGS="$OPT_CXXFLAGS"
4073  fi
4074
4075# Handle the case where CXXFLAGS was set externally.
4076else
4077  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4078  if test x${DBG_CXXFLAGS+set} != xset; then
4079    DBG_CXXFLAGS="$CXXFLAGS"
4080  fi
4081  if test x${OPT_CXXFLAGS+set} != xset; then
4082    OPT_CXXFLAGS="$CXXFLAGS"
4083  fi
4084fi
4085
4086# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4087
4088case "$CXXFLAGS" in
4089  *-mno-cygwin*)
4090    if test x${CPPFLAGS+set} != xset ; then
4091      CPPFLAGS="-mno-cygwin"
4092    else
4093      case "$CPPFLAGS" in
4094        *-mno-cygwin*)
4095          ;;
4096        *)
4097          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4098          ;;
4099      esac
4100    fi ;;
4101esac
4102
4103# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4104if test x$COIN_PRJCT != x; then
4105  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4106fi
4107
4108# Try if CXXFLAGS works
4109save_CXXFLAGS="$CXXFLAGS"
4110cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h.  */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h.  */
4116
4117int
4118main ()
4119{
4120int i=0; i++;
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125rm -f conftest.$ac_objext conftest$ac_exeext
4126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127  (eval $ac_link) 2>conftest.er1
4128  ac_status=$?
4129  grep -v '^ *+' conftest.er1 >conftest.err
4130  rm -f conftest.er1
4131  cat conftest.err >&5
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); } &&
4134         { ac_try='test -z "$ac_cxx_werror_flag"
4135                         || test ! -s conftest.err'
4136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137  (eval $ac_try) 2>&5
4138  ac_status=$?
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); }; } &&
4141         { ac_try='test -s conftest$ac_exeext'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; }; then
4147  :
4148else
4149  echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152CXXFLAGS=
4153fi
4154rm -f conftest.err conftest.$ac_objext \
4155      conftest$ac_exeext conftest.$ac_ext
4156if test -z "$CXXFLAGS"; then
4157  { 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
4158echo "$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;}
4159  CXXFLAGS='-O'
4160  cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h.  */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h.  */
4166
4167int
4168main ()
4169{
4170int i=0; i++;
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175rm -f conftest.$ac_objext conftest$ac_exeext
4176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177  (eval $ac_link) 2>conftest.er1
4178  ac_status=$?
4179  grep -v '^ *+' conftest.er1 >conftest.err
4180  rm -f conftest.er1
4181  cat conftest.err >&5
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); } &&
4184         { ac_try='test -z "$ac_cxx_werror_flag"
4185                         || test ! -s conftest.err'
4186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187  (eval $ac_try) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; } &&
4191         { ac_try='test -s conftest$ac_exeext'
4192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193  (eval $ac_try) 2>&5
4194  ac_status=$?
4195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196  (exit $ac_status); }; }; then
4197  :
4198else
4199  echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202CXXFLAGS=
4203fi
4204rm -f conftest.err conftest.$ac_objext \
4205      conftest$ac_exeext conftest.$ac_ext
4206  if test -z "$CXXFLAGS"; then
4207    { 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
4208echo "$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;}
4209  fi
4210fi
4211
4212{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4213echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4214
4215
4216if test x"$MPICXX" = x; then :; else
4217  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4218echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4219  CXX="$MPICXX"
4220fi
4221
4222# correct the LD variable in a mingw build with MS or intel compiler
4223case "$CXX" in
4224  clang* ) ;;
4225  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4226    case $build in
4227  *-mingw*)
4228    if test "${LD+set}" = set; then :; else
4229      LD=link
4230    fi
4231    ;;
4232 esac
4233 case $enable_doscompile in
4234   msvc)
4235     if test "x${LD+set}" = xset; then :; else
4236       LD=link
4237     fi
4238     ;;
4239 esac
4240
4241    ;;
4242esac
4243
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251
4252# Initialize automake and libtool
4253{
4254
4255
4256
4257# START
4258
4259# Test if force_shared has been set
4260if test "x" = xforce_shared; then
4261  if test x$enable_shared = xno; then
4262    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4263echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4264   { (exit 1); exit 1; }; }
4265  fi
4266  enable_shared=yes;
4267else
4268  # On Cygwin and AIX, building DLLs doesn't work
4269  case $build in
4270    *-cygwin*)
4271      coin_disable_shared=yes
4272      platform=Cygwin
4273    ;;
4274    *-aix*)
4275      coin_disable_shared=yes
4276      platform=AIX
4277    ;;
4278    *-mingw*)
4279      coin_disable_shared=yes
4280      platform="Msys"
4281#      case "$CXX" in
4282#        cl*)
4283#          coin_disable_shared=yes
4284#          platform="Msys with cl"
4285#      ;;
4286#      esac
4287    ;;
4288  esac
4289fi
4290if test x"$coin_disable_shared" = xyes; then
4291  if test x"$enable_shared" = xyes; then
4292    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4293echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4294  fi
4295  enable_shared=no
4296fi
4297# By default, we only want the shared objects to be compiled
4298# Check whether --enable-static or --disable-static was given.
4299if test "${enable_static+set}" = set; then
4300  enableval="$enable_static"
4301  p=${PACKAGE-default}
4302    case $enableval in
4303    yes) enable_static=yes ;;
4304    no) enable_static=no ;;
4305    *)
4306     enable_static=no
4307      # Look at the argument we got.  We use all the common list separators.
4308      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309      for pkg in $enableval; do
4310        IFS="$lt_save_ifs"
4311        if test "X$pkg" = "X$p"; then
4312          enable_static=yes
4313        fi
4314      done
4315      IFS="$lt_save_ifs"
4316      ;;
4317    esac
4318else
4319  enable_static=no
4320fi;
4321
4322
4323
4324
4325# Initialize automake
4326echo "$as_me:$LINENO: checking for egrep" >&5
4327echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4328if test "${ac_cv_prog_egrep+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4332    then ac_cv_prog_egrep='grep -E'
4333    else ac_cv_prog_egrep='egrep'
4334    fi
4335fi
4336echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4337echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4338 EGREP=$ac_cv_prog_egrep
4339
4340
4341echo "$as_me:$LINENO: checking whether ln -s works" >&5
4342echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4343LN_S=$as_ln_s
4344if test "$LN_S" = "ln -s"; then
4345  echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347else
4348  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4349echo "${ECHO_T}no, using $LN_S" >&6
4350fi
4351
4352am__api_version="1.9"
4353# Find a good install program.  We prefer a C program (faster),
4354# so one script is as good as another.  But avoid the broken or
4355# incompatible versions:
4356# SysV /etc/install, /usr/sbin/install
4357# SunOS /usr/etc/install
4358# IRIX /sbin/install
4359# AIX /bin/install
4360# AmigaOS /C/install, which installs bootblocks on floppy discs
4361# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4362# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4363# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4364# OS/2's system install, which has a completely different semantic
4365# ./install, which can be erroneously created by make from ./install.sh.
4366echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4367echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4368if test -z "$INSTALL"; then
4369if test "${ac_cv_path_install+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375  IFS=$as_save_IFS
4376  test -z "$as_dir" && as_dir=.
4377  # Account for people who put trailing slashes in PATH elements.
4378case $as_dir/ in
4379  ./ | .// | /cC/* | \
4380  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4381  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4382  /usr/ucb/* ) ;;
4383  *)
4384    # OSF1 and SCO ODT 3.0 have their own names for install.
4385    # Don't use installbsd from OSF since it installs stuff as root
4386    # by default.
4387    for ac_prog in ginstall scoinst install; do
4388      for ac_exec_ext in '' $ac_executable_extensions; do
4389        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4390          if test $ac_prog = install &&
4391            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392            # AIX install.  It has an incompatible calling convention.
4393            :
4394          elif test $ac_prog = install &&
4395            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4396            # program-specific install script used by HP pwplus--don't use.
4397            :
4398          else
4399            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4400            break 3
4401          fi
4402        fi
4403      done
4404    done
4405    ;;
4406esac
4407done
4408
4409
4410fi
4411  if test "${ac_cv_path_install+set}" = set; then
4412    INSTALL=$ac_cv_path_install
4413  else
4414    # As a last resort, use the slow shell script.  We don't cache a
4415    # path for INSTALL within a source directory, because that will
4416    # break other packages using the cache if that directory is
4417    # removed, or if the path is relative.
4418    INSTALL=$ac_install_sh
4419  fi
4420fi
4421echo "$as_me:$LINENO: result: $INSTALL" >&5
4422echo "${ECHO_T}$INSTALL" >&6
4423
4424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4425# It thinks the first close brace ends the variable substitution.
4426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4427
4428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4429
4430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4431
4432echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4433echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4434# Just in case
4435sleep 1
4436echo timestamp > conftest.file
4437# Do `set' in a subshell so we don't clobber the current shell's
4438# arguments.  Must try -L first in case configure is actually a
4439# symlink; some systems play weird games with the mod time of symlinks
4440# (eg FreeBSD returns the mod time of the symlink's containing
4441# directory).
4442if (
4443   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4444   if test "$*" = "X"; then
4445      # -L didn't work.
4446      set X `ls -t $srcdir/configure conftest.file`
4447   fi
4448   rm -f conftest.file
4449   if test "$*" != "X $srcdir/configure conftest.file" \
4450      && test "$*" != "X conftest.file $srcdir/configure"; then
4451
4452      # If neither matched, then we have a broken ls.  This can happen
4453      # if, for instance, CONFIG_SHELL is bash and it inherits a
4454      # broken ls alias from the environment.  This has actually
4455      # happened.  Such a system could not be considered "sane".
4456      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4457alias in your environment" >&5
4458echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4459alias in your environment" >&2;}
4460   { (exit 1); exit 1; }; }
4461   fi
4462
4463   test "$2" = conftest.file
4464   )
4465then
4466   # Ok.
4467   :
4468else
4469   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4470Check your system clock" >&5
4471echo "$as_me: error: newly created file is older than distributed files!
4472Check your system clock" >&2;}
4473   { (exit 1); exit 1; }; }
4474fi
4475echo "$as_me:$LINENO: result: yes" >&5
4476echo "${ECHO_T}yes" >&6
4477test "$program_prefix" != NONE &&
4478  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4479# Use a double $ so make ignores it.
4480test "$program_suffix" != NONE &&
4481  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4482# Double any \ or $.  echo might interpret backslashes.
4483# By default was `s,x,x', remove it if useless.
4484cat <<\_ACEOF >conftest.sed
4485s/[\\$]/&&/g;s/;s,x,x,$//
4486_ACEOF
4487program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4488rm conftest.sed
4489
4490# expand $ac_aux_dir to an absolute path
4491am_aux_dir=`cd $ac_aux_dir && pwd`
4492
4493test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4494# Use eval to expand $SHELL
4495if eval "$MISSING --run true"; then
4496  am_missing_run="$MISSING --run "
4497else
4498  am_missing_run=
4499  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4500echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4501fi
4502
4503if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4504  # We used to keeping the `.' as first argument, in order to
4505  # allow $(mkdir_p) to be used without argument.  As in
4506  #   $(mkdir_p) $(somedir)
4507  # where $(somedir) is conditionally defined.  However this is wrong
4508  # for two reasons:
4509  #  1. if the package is installed by a user who cannot write `.'
4510  #     make install will fail,
4511  #  2. the above comment should most certainly read
4512  #     $(mkdir_p) $(DESTDIR)$(somedir)
4513  #     so it does not work when $(somedir) is undefined and
4514  #     $(DESTDIR) is not.
4515  #  To support the latter case, we have to write
4516  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4517  #  so the `.' trick is pointless.
4518  mkdir_p='mkdir -p --'
4519else
4520  # On NextStep and OpenStep, the `mkdir' command does not
4521  # recognize any option.  It will interpret all options as
4522  # directories to create, and then abort because `.' already
4523  # exists.
4524  for d in ./-p ./--version;
4525  do
4526    test -d $d && rmdir $d
4527  done
4528  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4529  if test -f "$ac_aux_dir/mkinstalldirs"; then
4530    mkdir_p='$(mkinstalldirs)'
4531  else
4532    mkdir_p='$(install_sh) -d'
4533  fi
4534fi
4535
4536for ac_prog in gawk mawk nawk awk
4537do
4538  # Extract the first word of "$ac_prog", so it can be a program name with args.
4539set dummy $ac_prog; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_prog_AWK+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  if test -n "$AWK"; then
4546  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553  for ac_exec_ext in '' $ac_executable_extensions; do
4554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555    ac_cv_prog_AWK="$ac_prog"
4556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560done
4561
4562fi
4563fi
4564AWK=$ac_cv_prog_AWK
4565if test -n "$AWK"; then
4566  echo "$as_me:$LINENO: result: $AWK" >&5
4567echo "${ECHO_T}$AWK" >&6
4568else
4569  echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573  test -n "$AWK" && break
4574done
4575
4576echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4577echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4578set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4579if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  cat >conftest.make <<\_ACEOF
4583all:
4584        @echo 'ac_maketemp="$(MAKE)"'
4585_ACEOF
4586# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4587eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4588if test -n "$ac_maketemp"; then
4589  eval ac_cv_prog_make_${ac_make}_set=yes
4590else
4591  eval ac_cv_prog_make_${ac_make}_set=no
4592fi
4593rm -f conftest.make
4594fi
4595if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4596  echo "$as_me:$LINENO: result: yes" >&5
4597echo "${ECHO_T}yes" >&6
4598  SET_MAKE=
4599else
4600  echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
4602  SET_MAKE="MAKE=${MAKE-make}"
4603fi
4604
4605rm -rf .tst 2>/dev/null
4606mkdir .tst 2>/dev/null
4607if test -d .tst; then
4608  am__leading_dot=.
4609else
4610  am__leading_dot=_
4611fi
4612rmdir .tst 2>/dev/null
4613
4614DEPDIR="${am__leading_dot}deps"
4615
4616          ac_config_commands="$ac_config_commands depfiles"
4617
4618
4619am_make=${MAKE-make}
4620cat > confinc << 'END'
4621am__doit:
4622        @echo done
4623.PHONY: am__doit
4624END
4625# If we don't find an include directive, just comment out the code.
4626echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4627echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4628am__include="#"
4629am__quote=
4630_am_result=none
4631# First try GNU make style include.
4632echo "include confinc" > confmf
4633# We grep out `Entering directory' and `Leaving directory'
4634# messages which can occur if `w' ends up in MAKEFLAGS.
4635# In particular we don't look at `^make:' because GNU make might
4636# be invoked under some other name (usually "gmake"), in which
4637# case it prints its new name instead of `make'.
4638if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4639   am__include=include
4640   am__quote=
4641   _am_result=GNU
4642fi
4643# Now try BSD make style include.
4644if test "$am__include" = "#"; then
4645   echo '.include "confinc"' > confmf
4646   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4647      am__include=.include
4648      am__quote="\""
4649      _am_result=BSD
4650   fi
4651fi
4652
4653
4654echo "$as_me:$LINENO: result: $_am_result" >&5
4655echo "${ECHO_T}$_am_result" >&6
4656rm -f confinc confmf
4657
4658# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4659if test "${enable_dependency_tracking+set}" = set; then
4660  enableval="$enable_dependency_tracking"
4661
4662fi;
4663if test "x$enable_dependency_tracking" != xno; then
4664  am_depcomp="$ac_aux_dir/depcomp"
4665  AMDEPBACKSLASH='\'
4666fi
4667
4668
4669if test "x$enable_dependency_tracking" != xno; then
4670  AMDEP_TRUE=
4671  AMDEP_FALSE='#'
4672else
4673  AMDEP_TRUE='#'
4674  AMDEP_FALSE=
4675fi
4676
4677
4678
4679
4680
4681
4682# AC_MSG_NOTICE([Beginning automake initialisation.])
4683# Stuff for automake
4684# test to see if srcdir already configured
4685if test "`cd $srcdir && pwd`" != "`pwd`" &&
4686   test -f $srcdir/config.status; then
4687  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4688echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4689   { (exit 1); exit 1; }; }
4690fi
4691
4692# test whether we have cygpath
4693if test -z "$CYGPATH_W"; then
4694  if (cygpath --version) >/dev/null 2>/dev/null; then
4695    CYGPATH_W='cygpath -w'
4696  else
4697    CYGPATH_W=echo
4698  fi
4699fi
4700
4701
4702# Define the identity of the package.
4703 PACKAGE='cbc'
4704 VERSION='2.8.1'
4705
4706
4707cat >>confdefs.h <<_ACEOF
4708#define PACKAGE "$PACKAGE"
4709_ACEOF
4710
4711
4712cat >>confdefs.h <<_ACEOF
4713#define VERSION "$VERSION"
4714_ACEOF
4715
4716# Some tools Automake needs.
4717
4718ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4719
4720
4721AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4722
4723
4724AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4725
4726
4727AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4728
4729
4730MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4731
4732install_sh=${install_sh-"$am_aux_dir/install-sh"}
4733
4734# Installed binaries are usually stripped using `strip' when the user
4735# run `make install-strip'.  However `strip' might not be the right
4736# tool to use in cross-compilation environments, therefore Automake
4737# will honor the `STRIP' environment variable to overrule this program.
4738if test "$cross_compiling" != no; then
4739  if test -n "$ac_tool_prefix"; then
4740  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4741set dummy ${ac_tool_prefix}strip; ac_word=$2
4742echo "$as_me:$LINENO: checking for $ac_word" >&5
4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744if test "${ac_cv_prog_STRIP+set}" = set; then
4745  echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747  if test -n "$STRIP"; then
4748  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  test -z "$as_dir" && as_dir=.
4755  for ac_exec_ext in '' $ac_executable_extensions; do
4756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762done
4763
4764fi
4765fi
4766STRIP=$ac_cv_prog_STRIP
4767if test -n "$STRIP"; then
4768  echo "$as_me:$LINENO: result: $STRIP" >&5
4769echo "${ECHO_T}$STRIP" >&6
4770else
4771  echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773fi
4774
4775fi
4776if test -z "$ac_cv_prog_STRIP"; then
4777  ac_ct_STRIP=$STRIP
4778  # Extract the first word of "strip", so it can be a program name with args.
4779set dummy strip; ac_word=$2
4780echo "$as_me:$LINENO: checking for $ac_word" >&5
4781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785  if test -n "$ac_ct_STRIP"; then
4786  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4787else
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791  IFS=$as_save_IFS
4792  test -z "$as_dir" && as_dir=.
4793  for ac_exec_ext in '' $ac_executable_extensions; do
4794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795    ac_cv_prog_ac_ct_STRIP="strip"
4796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797    break 2
4798  fi
4799done
4800done
4801
4802  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4803fi
4804fi
4805ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4806if test -n "$ac_ct_STRIP"; then
4807  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4808echo "${ECHO_T}$ac_ct_STRIP" >&6
4809else
4810  echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814  STRIP=$ac_ct_STRIP
4815else
4816  STRIP="$ac_cv_prog_STRIP"
4817fi
4818
4819fi
4820INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4821
4822# We need awk for the "check" target.  The system "awk" is bad on
4823# some platforms.
4824# Always define AMTAR for backward compatibility.
4825
4826AMTAR=${AMTAR-"${am_missing_run}tar"}
4827
4828am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4829
4830
4831
4832
4833depcc="$CC"   am_compiler_list=
4834
4835echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4836echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4837if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4838  echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4841  # We make a subdir and do the tests there.  Otherwise we can end up
4842  # making bogus files that we don't know about and never remove.  For
4843  # instance it was reported that on HP-UX the gcc test will end up
4844  # making a dummy file named `D' -- because `-MD' means `put the output
4845  # in D'.
4846  mkdir conftest.dir
4847  # Copy depcomp to subdir because otherwise we won't find it if we're
4848  # using a relative directory.
4849  cp "$am_depcomp" conftest.dir
4850  cd conftest.dir
4851  # We will build objects and dependencies in a subdirectory because
4852  # it helps to detect inapplicable dependency modes.  For instance
4853  # both Tru64's cc and ICC support -MD to output dependencies as a
4854  # side effect of compilation, but ICC will put the dependencies in
4855  # the current directory while Tru64 will put them in the object
4856  # directory.
4857  mkdir sub
4858
4859  am_cv_CC_dependencies_compiler_type=none
4860  if test "$am_compiler_list" = ""; then
4861     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4862  fi
4863  for depmode in $am_compiler_list; do
4864    # Setup a source with many dependencies, because some compilers
4865    # like to wrap large dependency lists on column 80 (with \), and
4866    # we should not choose a depcomp mode which is confused by this.
4867    #
4868    # We need to recreate these files for each test, as the compiler may
4869    # overwrite some of them when testing with obscure command lines.
4870    # This happens at least with the AIX C compiler.
4871    : > sub/conftest.c
4872    for i in 1 2 3 4 5 6; do
4873      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4874      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4875      # Solaris 8's {/usr,}/bin/sh.
4876      touch sub/conftst$i.h
4877    done
4878    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4879
4880    case $depmode in
4881    nosideeffect)
4882      # after this tag, mechanisms are not by side-effect, so they'll
4883      # only be used when explicitly requested
4884      if test "x$enable_dependency_tracking" = xyes; then
4885        continue
4886      else
4887        break
4888      fi
4889      ;;
4890    none) break ;;
4891    esac
4892    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4893    # mode.  It turns out that the SunPro C++ compiler does not properly
4894    # handle `-M -o', and we need to detect this.
4895    if depmode=$depmode \
4896       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4897       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4898       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4899         >/dev/null 2>conftest.err &&
4900       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4901       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4902       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4903      # icc doesn't choke on unknown options, it will just issue warnings
4904      # or remarks (even with -Werror).  So we grep stderr for any message
4905      # that says an option was ignored or not supported.
4906      # When given -MP, icc 7.0 and 7.1 complain thusly:
4907      #   icc: Command line warning: ignoring option '-M'; no argument required
4908      # The diagnosis changed in icc 8.0:
4909      #   icc: Command line remark: option '-MP' not supported
4910      if (grep 'ignoring option' conftest.err ||
4911          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4912        am_cv_CC_dependencies_compiler_type=$depmode
4913        break
4914      fi
4915    fi
4916  done
4917
4918  cd ..
4919  rm -rf conftest.dir
4920else
4921  am_cv_CC_dependencies_compiler_type=none
4922fi
4923
4924fi
4925echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4926echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4928
4929
4930
4931if
4932  test "x$enable_dependency_tracking" != xno \
4933  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4934  am__fastdepCC_TRUE=
4935  am__fastdepCC_FALSE='#'
4936else
4937  am__fastdepCC_TRUE='#'
4938  am__fastdepCC_FALSE=
4939fi
4940
4941
4942depcc="$CXX"  am_compiler_list=
4943
4944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4946if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4950  # We make a subdir and do the tests there.  Otherwise we can end up
4951  # making bogus files that we don't know about and never remove.  For
4952  # instance it was reported that on HP-UX the gcc test will end up
4953  # making a dummy file named `D' -- because `-MD' means `put the output
4954  # in D'.
4955  mkdir conftest.dir
4956  # Copy depcomp to subdir because otherwise we won't find it if we're
4957  # using a relative directory.
4958  cp "$am_depcomp" conftest.dir
4959  cd conftest.dir
4960  # We will build objects and dependencies in a subdirectory because
4961  # it helps to detect inapplicable dependency modes.  For instance
4962  # both Tru64's cc and ICC support -MD to output dependencies as a
4963  # side effect of compilation, but ICC will put the dependencies in
4964  # the current directory while Tru64 will put them in the object
4965  # directory.
4966  mkdir sub
4967
4968  am_cv_CXX_dependencies_compiler_type=none
4969  if test "$am_compiler_list" = ""; then
4970     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4971  fi
4972  for depmode in $am_compiler_list; do
4973    # Setup a source with many dependencies, because some compilers
4974    # like to wrap large dependency lists on column 80 (with \), and
4975    # we should not choose a depcomp mode which is confused by this.
4976    #
4977    # We need to recreate these files for each test, as the compiler may
4978    # overwrite some of them when testing with obscure command lines.
4979    # This happens at least with the AIX C compiler.
4980    : > sub/conftest.c
4981    for i in 1 2 3 4 5 6; do
4982      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4984      # Solaris 8's {/usr,}/bin/sh.
4985      touch sub/conftst$i.h
4986    done
4987    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989    case $depmode in
4990    nosideeffect)
4991      # after this tag, mechanisms are not by side-effect, so they'll
4992      # only be used when explicitly requested
4993      if test "x$enable_dependency_tracking" = xyes; then
4994        continue
4995      else
4996        break
4997      fi
4998      ;;
4999    none) break ;;
5000    esac
5001    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002    # mode.  It turns out that the SunPro C++ compiler does not properly
5003    # handle `-M -o', and we need to detect this.
5004    if depmode=$depmode \
5005       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5006       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5007       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5008         >/dev/null 2>conftest.err &&
5009       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5010       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5011       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5012      # icc doesn't choke on unknown options, it will just issue warnings
5013      # or remarks (even with -Werror).  So we grep stderr for any message
5014      # that says an option was ignored or not supported.
5015      # When given -MP, icc 7.0 and 7.1 complain thusly:
5016      #   icc: Command line warning: ignoring option '-M'; no argument required
5017      # The diagnosis changed in icc 8.0:
5018      #   icc: Command line remark: option '-MP' not supported
5019      if (grep 'ignoring option' conftest.err ||
5020          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5021        am_cv_CXX_dependencies_compiler_type=$depmode
5022        break
5023      fi
5024    fi
5025  done
5026
5027  cd ..
5028  rm -rf conftest.dir
5029else
5030  am_cv_CXX_dependencies_compiler_type=none
5031fi
5032
5033fi
5034echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5035echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5036CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5037
5038
5039
5040if
5041  test "x$enable_dependency_tracking" != xno \
5042  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5043  am__fastdepCXX_TRUE=
5044  am__fastdepCXX_FALSE='#'
5045else
5046  am__fastdepCXX_TRUE='#'
5047  am__fastdepCXX_FALSE=
5048fi
5049
5050
5051
5052echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5053echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5054    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5055if test "${enable_maintainer_mode+set}" = set; then
5056  enableval="$enable_maintainer_mode"
5057  USE_MAINTAINER_MODE=$enableval
5058else
5059  USE_MAINTAINER_MODE=no
5060fi;
5061  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5062echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5063
5064
5065if test $USE_MAINTAINER_MODE = yes; then
5066  MAINTAINER_MODE_TRUE=
5067  MAINTAINER_MODE_FALSE='#'
5068else
5069  MAINTAINER_MODE_TRUE='#'
5070  MAINTAINER_MODE_FALSE=
5071fi
5072
5073  MAINT=$MAINTAINER_MODE_TRUE
5074
5075
5076
5077coin_have_externals=no
5078if test "$enable_maintainer_mode" = yes; then
5079
5080  # If maintainer mode is chosen, we make sure that the correct versions
5081  # of the tools are used, and that we know where libtool.m4 is (to
5082  # recreate acinclude.m4)
5083
5084
5085  LIBTOOLM4=
5086  # Normally, $HOME
5087  AUTOTOOLS_DFLT=$HOME
5088
5089  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5090echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5091if test "${ac_cv_use_correct_autotools+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  ac_cv_use_correct_autotools=check
5095fi
5096echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5097echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5098
5099  if test $ac_cv_use_correct_autotools = check; then
5100    ac_cv_use_correct_autotools=yes
5101    # Check if we have autoconf
5102    # Extract the first word of "autoconf", so it can be a program name with args.
5103set dummy autoconf; ac_word=$2
5104echo "$as_me:$LINENO: checking for $ac_word" >&5
5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106if test "${ac_cv_prog_have_autoconf+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  if test -n "$have_autoconf"; then
5110  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115  IFS=$as_save_IFS
5116  test -z "$as_dir" && as_dir=.
5117  for ac_exec_ext in '' $ac_executable_extensions; do
5118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119    ac_cv_prog_have_autoconf="yes"
5120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121    break 2
5122  fi
5123done
5124done
5125
5126  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5127fi
5128fi
5129have_autoconf=$ac_cv_prog_have_autoconf
5130if test -n "$have_autoconf"; then
5131  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5132echo "${ECHO_T}$have_autoconf" >&6
5133else
5134  echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138    if test $have_autoconf = no; then
5139      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5140echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5141   { (exit 1); exit 1; }; }
5142    fi
5143
5144    # Check whether autoconf is the correct version
5145    correct_version='2.59'
5146    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5147    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5148echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5149    autoconf --version > confauto.out 2>&1
5150    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5151      echo "$as_me:$LINENO: result: yes" >&5
5152echo "${ECHO_T}yes" >&6
5153    else
5154      rm -f confauto.out
5155      echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
5157      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5158echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5159   { (exit 1); exit 1; }; }
5160    fi
5161    rm -f confauto.out
5162
5163    # Check if the executable autoconf is picked up from the correct location
5164    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5165echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5166    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5167    autoconf_dir=`cd $autoconf_dir; pwd`
5168    if test x$AUTOTOOLS_DIR = x; then
5169      want_dir=$AUTOTOOLS_DFLT/bin
5170    else
5171      want_dir=$AUTOTOOLS_DIR/bin
5172    fi
5173    if test $autoconf_dir = `cd $want_dir; pwd`; then
5174      echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
5176    else
5177      rm -f confauto.out
5178      echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5181echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5182   { (exit 1); exit 1; }; }
5183    fi
5184
5185    # Check if we have automake
5186    # Extract the first word of "automake", so it can be a program name with args.
5187set dummy automake; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_have_automake+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  if test -n "$have_automake"; then
5194  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199  IFS=$as_save_IFS
5200  test -z "$as_dir" && as_dir=.
5201  for ac_exec_ext in '' $ac_executable_extensions; do
5202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203    ac_cv_prog_have_automake="yes"
5204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205    break 2
5206  fi
5207done
5208done
5209
5210  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5211fi
5212fi
5213have_automake=$ac_cv_prog_have_automake
5214if test -n "$have_automake"; then
5215  echo "$as_me:$LINENO: result: $have_automake" >&5
5216echo "${ECHO_T}$have_automake" >&6
5217else
5218  echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222    if test $have_automake = no; then
5223      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5224echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5225   { (exit 1); exit 1; }; }
5226    fi
5227
5228    # Check whether automake is the correct version
5229    correct_version='1.9.6'
5230    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5231    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5232echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5233    automake --version > confauto.out 2>&1
5234    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5235      echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237    else
5238      rm -f confauto.out
5239      echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
5241      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5242echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5243   { (exit 1); exit 1; }; }
5244    fi
5245    rm -f confauto.out
5246
5247    # Check if the executable automake is picked up from the correct location
5248    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5249echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5250    automake_dir=`which automake | sed -e 's=/automake=='`
5251    automake_dir=`cd $automake_dir; pwd`
5252    if test x$AUTOTOOLS_DIR = x; then
5253      want_dir=$AUTOTOOLS_DFLT/bin
5254    else
5255      want_dir=$AUTOTOOLS_DIR/bin
5256    fi
5257    if test $automake_dir = `cd $want_dir; pwd`; then
5258      echo "$as_me:$LINENO: result: yes" >&5
5259echo "${ECHO_T}yes" >&6
5260    else
5261      rm -f confauto.out
5262      echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5265echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5266   { (exit 1); exit 1; }; }
5267    fi
5268
5269    # Check if this is the correct version of libtool (with escaped dots)
5270    if test x$AUTOTOOLS_DIR = x; then
5271      want_dir=$AUTOTOOLS_DFLT/share
5272    else
5273      want_dir=$AUTOTOOLS_DIR/share
5274    fi
5275    correct_version='1.5.22'
5276    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5277    if test -r $want_dir/libtool/ltmain.sh; then
5278  have_ltmain=yes
5279  :
5280else
5281  have_ltmain=no
5282  :
5283fi
5284
5285    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5286echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5287    if test $have_ltmain = yes; then
5288    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5289        echo "$as_me:$LINENO: result: yes" >&5
5290echo "${ECHO_T}yes" >&6
5291      else
5292        echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5295echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5296   { (exit 1); exit 1; }; }
5297      fi
5298    else
5299      echo "$as_me:$LINENO: result: no" >&5
5300echo "${ECHO_T}no" >&6
5301      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5302echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5303   { (exit 1); exit 1; }; }
5304    fi
5305  fi
5306
5307  # Check if we can find the libtool file
5308  if test x$AUTOTOOLS_DIR = x; then
5309    want_dir=$AUTOTOOLS_DFLT/share
5310  else
5311    want_dir=$AUTOTOOLS_DIR/share
5312  fi
5313  if test -r $want_dir/aclocal/libtool.m4; then
5314  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5315  :
5316else
5317  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5318echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5319   { (exit 1); exit 1; }; }
5320  :
5321fi
5322
5323
5324  # Check if we have an Dependencies file
5325  if test -r $srcdir/Dependencies; then
5326    coin_have_externals=yes
5327  fi
5328  # Check if subversion is installed and understands https
5329  # Extract the first word of "svn", so it can be a program name with args.
5330set dummy svn; ac_word=$2
5331echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333if test "${ac_cv_prog_have_svn+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  if test -n "$have_svn"; then
5337  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344  for ac_exec_ext in '' $ac_executable_extensions; do
5345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346    ac_cv_prog_have_svn="yes"
5347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351done
5352
5353  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5354fi
5355fi
5356have_svn=$ac_cv_prog_have_svn
5357if test -n "$have_svn"; then
5358  echo "$as_me:$LINENO: result: $have_svn" >&5
5359echo "${ECHO_T}$have_svn" >&6
5360else
5361  echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363fi
5364
5365  if test x$have_svn = xyes; then
5366    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5367echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5368if test "${ac_cv_svn_understands_https+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371  svn --version > confauto.out 2>&1
5372                    if $EGREP https confauto.out >/dev/null 2>&1; then
5373                      ac_cv_svn_understands_https=yes
5374                    else
5375                      ac_cv_svn_understands_https=no
5376                      have_svn=no
5377                      ac_cv_prog_have_svn=no
5378                    fi
5379                    rm -f confauto.out
5380fi
5381echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5382echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5383  fi
5384
5385  # Find the location of the BuildTools directory
5386  BUILDTOOLSDIR=
5387  if test -r $srcdir/BuildTools/coin.m4; then
5388    BUILDTOOLSDIR=$srcdir/BuildTools
5389  else
5390    if test -r $srcdir/../BuildTools/coin.m4; then
5391      BUILDTOOLSDIR=$srcdir/../BuildTools
5392    else
5393      if test -r $srcdir/../../BuildTools/coin.m4; then
5394        BUILDTOOLSDIR=$srcdir/../../BuildTools
5395      else
5396        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5397echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5398   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5399      fi
5400    fi
5401  fi
5402
5403
5404  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5405  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5406    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5407  fi
5408
5409  # The following variable is set to the name of the directory where
5410  # the autotool scripts are located
5411
5412  AUX_DIR=$ac_aux_dir
5413fi
5414
5415# helpful variable for the base directory of this package
5416abs_source_dir=`cd $srcdir; pwd`
5417
5418
5419# Stuff for example Makefiles
5420if test x$prefix = xNONE; then
5421  full_prefix=$ac_default_prefix
5422else
5423  full_prefix=$prefix
5424fi
5425full_prefix=`cd $full_prefix ; pwd`
5426
5427abs_lib_dir=$full_prefix/lib
5428
5429abs_include_dir=$full_prefix/include
5430
5431abs_bin_dir=$full_prefix/bin
5432
5433
5434
5435if test $coin_have_externals = yes && test x$have_svn = xyes; then
5436  HAVE_EXTERNALS_TRUE=
5437  HAVE_EXTERNALS_FALSE='#'
5438else
5439  HAVE_EXTERNALS_TRUE='#'
5440  HAVE_EXTERNALS_FALSE=
5441fi
5442
5443
5444# AC_MSG_NOTICE([End automake initialisation.])
5445
5446
5447
5448LIBTOOL=
5449if test -r ../libtool; then
5450  coin_config_dir=..
5451  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5452fi
5453if test "x$LIBTOOL" = x; then
5454  if test -r ../../libtool; then
5455    coin_config_dir=../..
5456    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5457  fi
5458fi
5459
5460if test "x$LIBTOOL" = x; then
5461# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5462  # Stuff for libtool
5463  # Check whether --enable-shared or --disable-shared was given.
5464if test "${enable_shared+set}" = set; then
5465  enableval="$enable_shared"
5466  p=${PACKAGE-default}
5467    case $enableval in
5468    yes) enable_shared=yes ;;
5469    no) enable_shared=no ;;
5470    *)
5471      enable_shared=no
5472      # Look at the argument we got.  We use all the common list separators.
5473      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5474      for pkg in $enableval; do
5475        IFS="$lt_save_ifs"
5476        if test "X$pkg" = "X$p"; then
5477          enable_shared=yes
5478        fi
5479      done
5480      IFS="$lt_save_ifs"
5481      ;;
5482    esac
5483else
5484  enable_shared=yes
5485fi;
5486
5487# Check whether --enable-fast-install or --disable-fast-install was given.
5488if test "${enable_fast_install+set}" = set; then
5489  enableval="$enable_fast_install"
5490  p=${PACKAGE-default}
5491    case $enableval in
5492    yes) enable_fast_install=yes ;;
5493    no) enable_fast_install=no ;;
5494    *)
5495      enable_fast_install=no
5496      # Look at the argument we got.  We use all the common list separators.
5497      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5498      for pkg in $enableval; do
5499        IFS="$lt_save_ifs"
5500        if test "X$pkg" = "X$p"; then
5501          enable_fast_install=yes
5502        fi
5503      done
5504      IFS="$lt_save_ifs"
5505      ;;
5506    esac
5507else
5508  enable_fast_install=yes
5509fi;
5510
5511echo "$as_me:$LINENO: checking host system type" >&5
5512echo $ECHO_N "checking host system type... $ECHO_C" >&6
5513if test "${ac_cv_host+set}" = set; then
5514  echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516  ac_cv_host_alias=$host_alias
5517test -z "$ac_cv_host_alias" &&
5518  ac_cv_host_alias=$ac_cv_build_alias
5519ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5520  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5521echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5522   { (exit 1); exit 1; }; }
5523
5524fi
5525echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5526echo "${ECHO_T}$ac_cv_host" >&6
5527host=$ac_cv_host
5528host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5529host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5530host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5531
5532
5533echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5534echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5535if test "${lt_cv_path_SED+set}" = set; then
5536  echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538  # Loop through the user's path and test for sed and gsed.
5539# Then use that list of sed's as ones to test for truncation.
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545  for lt_ac_prog in sed gsed; do
5546    for ac_exec_ext in '' $ac_executable_extensions; do
5547      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5548        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5549      fi
5550    done
5551  done
5552done
5553lt_ac_max=0
5554lt_ac_count=0
5555# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5556# along with /bin/sed that truncates output.
5557for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5558  test ! -f $lt_ac_sed && continue
5559  cat /dev/null > conftest.in
5560  lt_ac_count=0
5561  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5562  # Check for GNU sed and select it if it is found.
5563  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5564    lt_cv_path_SED=$lt_ac_sed
5565    break
5566  fi
5567  while true; do
5568    cat conftest.in conftest.in >conftest.tmp
5569    mv conftest.tmp conftest.in
5570    cp conftest.in conftest.nl
5571    echo >>conftest.nl
5572    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5573    cmp -s conftest.out conftest.nl || break
5574    # 10000 chars as input seems more than enough
5575    test $lt_ac_count -gt 10 && break
5576    lt_ac_count=`expr $lt_ac_count + 1`
5577    if test $lt_ac_count -gt $lt_ac_max; then
5578      lt_ac_max=$lt_ac_count
5579      lt_cv_path_SED=$lt_ac_sed
5580    fi
5581  done
5582done
5583
5584fi
5585
5586SED=$lt_cv_path_SED
5587echo "$as_me:$LINENO: result: $SED" >&5
5588echo "${ECHO_T}$SED" >&6
5589
5590
5591# Check whether --with-gnu-ld or --without-gnu-ld was given.
5592if test "${with_gnu_ld+set}" = set; then
5593  withval="$with_gnu_ld"
5594  test "$withval" = no || with_gnu_ld=yes
5595else
5596  with_gnu_ld=no
5597fi;
5598ac_prog=ld
5599if test "$GCC" = yes; then
5600  # Check if gcc -print-prog-name=ld gives a path.
5601  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5602echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5603  case $host in
5604  *-*-mingw*)
5605    # gcc leaves a trailing carriage return which upsets mingw
5606    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5607  *)
5608    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5609  esac
5610  case $ac_prog in
5611    # Accept absolute paths.
5612    [\\/]* | ?:[\\/]*)
5613      re_direlt='/[^/][^/]*/\.\./'
5614      # Canonicalize the pathname of ld
5615      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5616      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5617        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5618      done
5619      test -z "$LD" && LD="$ac_prog"
5620      ;;
5621  "")
5622    # If it fails, then pretend we aren't using GCC.
5623    ac_prog=ld
5624    ;;
5625  *)
5626    # If it is relative, then search for the first ld in PATH.
5627    with_gnu_ld=unknown
5628    ;;
5629  esac
5630elif test "$with_gnu_ld" = yes; then
5631  echo "$as_me:$LINENO: checking for GNU ld" >&5
5632echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5633else
5634  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5635echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5636fi
5637if test "${lt_cv_path_LD+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  if test -z "$LD"; then
5641  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642  for ac_dir in $PATH; do
5643    IFS="$lt_save_ifs"
5644    test -z "$ac_dir" && ac_dir=.
5645    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5646      lt_cv_path_LD="$ac_dir/$ac_prog"
5647      # Check to see if the program is GNU ld.  I'd rather use --version,
5648      # but apparently some variants of GNU ld only accept -v.
5649      # Break only if it was the GNU/non-GNU ld that we prefer.
5650      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5651      *GNU* | *'with BFD'*)
5652        test "$with_gnu_ld" != no && break
5653        ;;
5654      *)
5655        test "$with_gnu_ld" != yes && break
5656        ;;
5657      esac
5658    fi
5659  done
5660  IFS="$lt_save_ifs"
5661else
5662  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5663fi
5664fi
5665
5666LD="$lt_cv_path_LD"
5667if test -n "$LD"; then
5668  echo "$as_me:$LINENO: result: $LD" >&5
5669echo "${ECHO_T}$LD" >&6
5670else
5671  echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673fi
5674test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5675echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5676   { (exit 1); exit 1; }; }
5677echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5678echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5679if test "${lt_cv_prog_gnu_ld+set}" = set; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5683case `$LD -v 2>&1 </dev/null` in
5684*GNU* | *'with BFD'*)
5685  lt_cv_prog_gnu_ld=yes
5686  ;;
5687*)
5688  lt_cv_prog_gnu_ld=no
5689  ;;
5690esac
5691fi
5692echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5693echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5694with_gnu_ld=$lt_cv_prog_gnu_ld
5695
5696
5697echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5698echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5699if test "${lt_cv_ld_reload_flag+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  lt_cv_ld_reload_flag='-r'
5703fi
5704echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5705echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5706reload_flag=$lt_cv_ld_reload_flag
5707case $reload_flag in
5708"" | " "*) ;;
5709*) reload_flag=" $reload_flag" ;;
5710esac
5711reload_cmds='$LD$reload_flag -o $output$reload_objs'
5712case $host_os in
5713  darwin*)
5714    if test "$GCC" = yes; then
5715      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5716    else
5717      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5718    fi
5719    ;;
5720esac
5721
5722echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5723echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5724if test "${lt_cv_path_NM+set}" = set; then
5725  echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727  if test -n "$NM"; then
5728  # Let the user override the test.
5729  lt_cv_path_NM="$NM"
5730else
5731  lt_nm_to_check="${ac_tool_prefix}nm"
5732  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5733    lt_nm_to_check="$lt_nm_to_check nm"
5734  fi
5735  for lt_tmp_nm in $lt_nm_to_check; do
5736    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5738      IFS="$lt_save_ifs"
5739      test -z "$ac_dir" && ac_dir=.
5740      tmp_nm="$ac_dir/$lt_tmp_nm"
5741      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5742        # Check to see if the nm accepts a BSD-compat flag.
5743        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5744        #   nm: unknown option "B" ignored
5745        # Tru64's nm complains that /dev/null is an invalid object file
5746        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5747        */dev/null* | *'Invalid file or object type'*)
5748          lt_cv_path_NM="$tmp_nm -B"
5749          break
5750          ;;
5751        *)
5752          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5753          */dev/null*)
5754            lt_cv_path_NM="$tmp_nm -p"
5755            break
5756            ;;
5757          *)
5758            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5759            continue # so that we can try to find one that supports BSD flags
5760            ;;
5761          esac
5762          ;;
5763        esac
5764      fi
5765    done
5766    IFS="$lt_save_ifs"
5767  done
5768  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5769fi
5770fi
5771echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5772echo "${ECHO_T}$lt_cv_path_NM" >&6
5773NM="$lt_cv_path_NM"
5774
5775echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5776echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5777if test "${lt_cv_deplibs_check_method+set}" = set; then
5778  echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780  lt_cv_file_magic_cmd='$MAGIC_CMD'
5781lt_cv_file_magic_test_file=
5782lt_cv_deplibs_check_method='unknown'
5783# Need to set the preceding variable on all platforms that support
5784# interlibrary dependencies.
5785# 'none' -- dependencies not supported.
5786# `unknown' -- same as none, but documents that we really don't know.
5787# 'pass_all' -- all dependencies passed with no checks.
5788# 'test_compile' -- check by making test program.
5789# 'file_magic [[regex]]' -- check by looking for files in library path
5790# which responds to the $file_magic_cmd with a given extended regex.
5791# If you have `file' or equivalent on your system and you're not sure
5792# whether `pass_all' will *always* work, you probably want this one.
5793
5794case $host_os in
5795aix4* | aix5*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799beos*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803bsdi[45]*)
5804  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5805  lt_cv_file_magic_cmd='/usr/bin/file -L'
5806  lt_cv_file_magic_test_file=/shlib/libc.so
5807  ;;
5808
5809cygwin*)
5810  # func_win32_libid is a shell function defined in ltmain.sh
5811  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812  lt_cv_file_magic_cmd='func_win32_libid'
5813  ;;
5814
5815mingw* | pw32*)
5816  # Base MSYS/MinGW do not provide the 'file' command needed by
5817  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5818  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5819  lt_cv_file_magic_cmd='$OBJDUMP -f'
5820  ;;
5821
5822darwin* | rhapsody*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826freebsd* | kfreebsd*-gnu | dragonfly*)
5827  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5828    case $host_cpu in
5829    i*86 )
5830      # Not sure whether the presence of OpenBSD here was a mistake.
5831      # Let's accept both of them until this is cleared up.
5832      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5833      lt_cv_file_magic_cmd=/usr/bin/file
5834      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5835      ;;
5836    esac
5837  else
5838    lt_cv_deplibs_check_method=pass_all
5839  fi
5840  ;;
5841
5842gnu*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846hpux10.20* | hpux11*)
5847  lt_cv_file_magic_cmd=/usr/bin/file
5848  case $host_cpu in
5849  ia64*)
5850    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5851    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5852    ;;
5853  hppa*64*)
5854    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]'
5855    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5856    ;;
5857  *)
5858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5859    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5860    ;;
5861  esac
5862  ;;
5863
5864interix3*)
5865  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5866  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5867  ;;
5868
5869irix5* | irix6* | nonstopux*)
5870  case $LD in
5871  *-32|*"-32 ") libmagic=32-bit;;
5872  *-n32|*"-n32 ") libmagic=N32;;
5873  *-64|*"-64 ") libmagic=64-bit;;
5874  *) libmagic=never-match;;
5875  esac
5876  lt_cv_deplibs_check_method=pass_all
5877  ;;
5878
5879# This must be Linux ELF.
5880linux*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884netbsd*)
5885  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5886    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887  else
5888    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5889  fi
5890  ;;
5891
5892newos6*)
5893  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5894  lt_cv_file_magic_cmd=/usr/bin/file
5895  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5896  ;;
5897
5898nto-qnx*)
5899  lt_cv_deplibs_check_method=unknown
5900  ;;
5901
5902openbsd*)
5903  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5905  else
5906    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5907  fi
5908  ;;
5909
5910osf3* | osf4* | osf5*)
5911  lt_cv_deplibs_check_method=pass_all
5912  ;;
5913
5914solaris*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918sysv4 | sysv4.3*)
5919  case $host_vendor in
5920  motorola)
5921    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]'
5922    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5923    ;;
5924  ncr)
5925    lt_cv_deplibs_check_method=pass_all
5926    ;;
5927  sequent)
5928    lt_cv_file_magic_cmd='/bin/file'
5929    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5930    ;;
5931  sni)
5932    lt_cv_file_magic_cmd='/bin/file'
5933    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5934    lt_cv_file_magic_test_file=/lib/libc.so
5935    ;;
5936  siemens)
5937    lt_cv_deplibs_check_method=pass_all
5938    ;;
5939  pc)
5940    lt_cv_deplibs_check_method=pass_all
5941    ;;
5942  esac
5943  ;;
5944
5945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948esac
5949
5950fi
5951echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5952echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5953file_magic_cmd=$lt_cv_file_magic_cmd
5954deplibs_check_method=$lt_cv_deplibs_check_method
5955test -z "$deplibs_check_method" && deplibs_check_method=unknown
5956
5957
5958
5959
5960# If no C compiler was specified, use CC.
5961LTCC=${LTCC-"$CC"}
5962
5963# If no C compiler flags were specified, use CFLAGS.
5964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5965
5966# Allow CC to be a program name with arguments.
5967compiler=$CC
5968
5969# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5970if test "${enable_libtool_lock+set}" = set; then
5971  enableval="$enable_libtool_lock"
5972
5973fi;
5974test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5975
5976# Some flags need to be propagated to the compiler or linker for good
5977# libtool support.
5978case $host in
5979ia64-*-hpux*)
5980  # Find out which ABI we are using.
5981  echo 'int i;' > conftest.$ac_ext
5982  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983  (eval $ac_compile) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; then
5987    case `/usr/bin/file conftest.$ac_objext` in
5988    *ELF-32*)
5989      HPUX_IA64_MODE="32"
5990      ;;
5991    *ELF-64*)
5992      HPUX_IA64_MODE="64"
5993      ;;
5994    esac
5995  fi
5996  rm -rf conftest*
5997  ;;
5998*-*-irix6*)
5999  # Find out which ABI we are using.
6000  echo '#line 6000 "configure"' > conftest.$ac_ext
6001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002  (eval $ac_compile) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; then
6006   if test "$lt_cv_prog_gnu_ld" = yes; then
6007    case `/usr/bin/file conftest.$ac_objext` in
6008    *32-bit*)
6009      LD="${LD-ld} -melf32bsmip"
6010      ;;
6011    *N32*)
6012      LD="${LD-ld} -melf32bmipn32"
6013      ;;
6014    *64-bit*)
6015      LD="${LD-ld} -melf64bmip"
6016      ;;
6017    esac
6018   else
6019    case `/usr/bin/file conftest.$ac_objext` in
6020    *32-bit*)
6021      LD="${LD-ld} -32"
6022      ;;
6023    *N32*)
6024      LD="${LD-ld} -n32"
6025      ;;
6026    *64-bit*)
6027      LD="${LD-ld} -64"
6028      ;;
6029    esac
6030   fi
6031  fi
6032  rm -rf conftest*
6033  ;;
6034
6035x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6036  # Find out which ABI we are using.
6037  echo 'int i;' > conftest.$ac_ext
6038  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039  (eval $ac_compile) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; then
6043    case `/usr/bin/file conftest.o` in
6044    *32-bit*)
6045      case $host in
6046        x86_64-*linux*)
6047          LD="${LD-ld} -m elf_i386"
6048          ;;
6049        ppc64-*linux*|powerpc64-*linux*)
6050          LD="${LD-ld} -m elf32ppclinux"
6051          ;;
6052        s390x-*linux*)
6053          LD="${LD-ld} -m elf_s390"
6054          ;;
6055        sparc64-*linux*)
6056          LD="${LD-ld} -m elf32_sparc"
6057          ;;
6058      esac
6059      ;;
6060    *64-bit*)
6061      case $host in
6062        x86_64-*linux*)
6063          LD="${LD-ld} -m elf_x86_64"
6064          ;;
6065        ppc*-*linux*|powerpc*-*linux*)
6066          LD="${LD-ld} -m elf64ppc"
6067          ;;
6068        s390*-*linux*)
6069          LD="${LD-ld} -m elf64_s390"
6070          ;;
6071        sparc*-*linux*)
6072          LD="${LD-ld} -m elf64_sparc"
6073          ;;
6074      esac
6075      ;;
6076    esac
6077  fi
6078  rm -rf conftest*
6079  ;;
6080
6081*-*-sco3.2v5*)
6082  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6083  SAVE_CFLAGS="$CFLAGS"
6084  CFLAGS="$CFLAGS -belf"
6085  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6086echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6087if test "${lt_cv_cc_needs_belf+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  ac_ext=c
6091ac_cpp='$CPP $CPPFLAGS'
6092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095
6096     cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h.  */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h.  */
6102
6103int
6104main ()
6105{
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext conftest$ac_exeext
6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113  (eval $ac_link) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120         { ac_try='test -z "$ac_c_werror_flag"
6121                         || test ! -s conftest.err'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; } &&
6127         { ac_try='test -s conftest$ac_exeext'
6128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129  (eval $ac_try) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; }; then
6133  lt_cv_cc_needs_belf=yes
6134else
6135  echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138lt_cv_cc_needs_belf=no
6139fi
6140rm -f conftest.err conftest.$ac_objext \
6141      conftest$ac_exeext conftest.$ac_ext
6142     ac_ext=c
6143ac_cpp='$CPP $CPPFLAGS'
6144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148fi
6149echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6150echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6151  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6152    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6153    CFLAGS="$SAVE_CFLAGS"
6154  fi
6155  ;;
6156sparc*-*solaris*)
6157  # Find out which ABI we are using.
6158  echo 'int i;' > conftest.$ac_ext
6159  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160  (eval $ac_compile) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; then
6164    case `/usr/bin/file conftest.o` in
6165    *64-bit*)
6166      case $lt_cv_prog_gnu_ld in
6167      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6168      *)    LD="${LD-ld} -64" ;;
6169      esac
6170      ;;
6171    esac
6172  fi
6173  rm -rf conftest*
6174  ;;
6175
6176
6177esac
6178
6179need_locks="$enable_libtool_lock"
6180
6181
6182ac_ext=c
6183ac_cpp='$CPP $CPPFLAGS'
6184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6188echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6189# On Suns, sometimes $CPP names a directory.
6190if test -n "$CPP" && test -d "$CPP"; then
6191  CPP=
6192fi
6193if test -z "$CPP"; then
6194  if test "${ac_cv_prog_CPP+set}" = set; then
6195  echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197      # Double quotes because CPP needs to be expanded
6198    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6199    do
6200      ac_preproc_ok=false
6201for ac_c_preproc_warn_flag in '' yes
6202do
6203  # Use a header file that comes with gcc, so configuring glibc
6204  # with a fresh cross-compiler works.
6205  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6206  # <limits.h> exists even on freestanding compilers.
6207  # On the NeXT, cc -E runs the code through the compiler's parser,
6208  # not just through cpp. "Syntax error" is here to catch this case.
6209  cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h.  */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h.  */
6215#ifdef __STDC__
6216# include <limits.h>
6217#else
6218# include <assert.h>
6219#endif
6220                     Syntax error
6221_ACEOF
6222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6223  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6224  ac_status=$?
6225  grep -v '^ *+' conftest.er1 >conftest.err
6226  rm -f conftest.er1
6227  cat conftest.err >&5
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); } >/dev/null; then
6230  if test -s conftest.err; then
6231    ac_cpp_err=$ac_c_preproc_warn_flag
6232    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6233  else
6234    ac_cpp_err=
6235  fi
6236else
6237  ac_cpp_err=yes
6238fi
6239if test -z "$ac_cpp_err"; then
6240  :
6241else
6242  echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245  # Broken: fails on valid input.
6246continue
6247fi
6248rm -f conftest.err conftest.$ac_ext
6249
6250  # OK, works on sane cases.  Now check whether non-existent headers
6251  # can be detected and how.
6252  cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h.  */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h.  */
6258#include <ac_nonexistent.h>
6259_ACEOF
6260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } >/dev/null; then
6268  if test -s conftest.err; then
6269    ac_cpp_err=$ac_c_preproc_warn_flag
6270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6271  else
6272    ac_cpp_err=
6273  fi
6274else
6275  ac_cpp_err=yes
6276fi
6277if test -z "$ac_cpp_err"; then
6278  # Broken: success on invalid input.
6279continue
6280else
6281  echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284  # Passes both tests.
6285ac_preproc_ok=:
6286break
6287fi
6288rm -f conftest.err conftest.$ac_ext
6289
6290done
6291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6292rm -f conftest.err conftest.$ac_ext
6293if $ac_preproc_ok; then
6294  break
6295fi
6296
6297    done
6298    ac_cv_prog_CPP=$CPP
6299
6300fi
6301  CPP=$ac_cv_prog_CPP
6302else
6303  ac_cv_prog_CPP=$CPP
6304fi
6305echo "$as_me:$LINENO: result: $CPP" >&5
6306echo "${ECHO_T}$CPP" >&6
6307ac_preproc_ok=false
6308for ac_c_preproc_warn_flag in '' yes
6309do
6310  # Use a header file that comes with gcc, so configuring glibc
6311  # with a fresh cross-compiler works.
6312  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6313  # <limits.h> exists even on freestanding compilers.
6314  # On the NeXT, cc -E runs the code through the compiler's parser,
6315  # not just through cpp. "Syntax error" is here to catch this case.
6316  cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322#ifdef __STDC__
6323# include <limits.h>
6324#else
6325# include <assert.h>
6326#endif
6327                     Syntax error
6328_ACEOF
6329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6330  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331  ac_status=$?
6332  grep -v '^ *+' conftest.er1 >conftest.err
6333  rm -f conftest.er1
6334  cat conftest.err >&5
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); } >/dev/null; then
6337  if test -s conftest.err; then
6338    ac_cpp_err=$ac_c_preproc_warn_flag
6339    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6340  else
6341    ac_cpp_err=
6342  fi
6343else
6344  ac_cpp_err=yes
6345fi
6346if test -z "$ac_cpp_err"; then
6347  :
6348else
6349  echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352  # Broken: fails on valid input.
6353continue
6354fi
6355rm -f conftest.err conftest.$ac_ext
6356
6357  # OK, works on sane cases.  Now check whether non-existent headers
6358  # can be detected and how.
6359  cat >conftest.$ac_ext <<_ACEOF
6360/* confdefs.h.  */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h.  */
6365#include <ac_nonexistent.h>
6366_ACEOF
6367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6369  ac_status=$?
6370  grep -v '^ *+' conftest.er1 >conftest.err
6371  rm -f conftest.er1
6372  cat conftest.err >&5
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } >/dev/null; then
6375  if test -s conftest.err; then
6376    ac_cpp_err=$ac_c_preproc_warn_flag
6377    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6378  else
6379    ac_cpp_err=
6380  fi
6381else
6382  ac_cpp_err=yes
6383fi
6384if test -z "$ac_cpp_err"; then
6385  # Broken: success on invalid input.
6386continue
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391  # Passes both tests.
6392ac_preproc_ok=:
6393break
6394fi
6395rm -f conftest.err conftest.$ac_ext
6396
6397done
6398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6399rm -f conftest.err conftest.$ac_ext
6400if $ac_preproc_ok; then
6401  :
6402else
6403  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6404See \`config.log' for more details." >&5
6405echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6406See \`config.log' for more details." >&2;}
6407   { (exit 1); exit 1; }; }
6408fi
6409
6410ac_ext=c
6411ac_cpp='$CPP $CPPFLAGS'
6412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
6416
6417echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6418echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6419if test "${ac_cv_header_stdc+set}" = set; then
6420  echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422  cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428#include <stdlib.h>
6429#include <stdarg.h>
6430#include <string.h>
6431#include <float.h>
6432
6433int
6434main ()
6435{
6436
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443  (eval $ac_compile) 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } &&
6450         { ac_try='test -z "$ac_c_werror_flag"
6451                         || test ! -s conftest.err'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; } &&
6457         { ac_try='test -s conftest.$ac_objext'
6458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459  (eval $ac_try) 2>&5
6460  ac_status=$?
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); }; }; then
6463  ac_cv_header_stdc=yes
6464else
6465  echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468ac_cv_header_stdc=no
6469fi
6470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472if test $ac_cv_header_stdc = yes; then
6473  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6474  cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480#include <string.h>
6481
6482_ACEOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484  $EGREP "memchr" >/dev/null 2>&1; then
6485  :
6486else
6487  ac_cv_header_stdc=no
6488fi
6489rm -f conftest*
6490
6491fi
6492
6493if test $ac_cv_header_stdc = yes; then
6494  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6495  cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h.  */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h.  */
6501#include <stdlib.h>
6502
6503_ACEOF
6504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6505  $EGREP "free" >/dev/null 2>&1; then
6506  :
6507else
6508  ac_cv_header_stdc=no
6509fi
6510rm -f conftest*
6511
6512fi
6513
6514if test $ac_cv_header_stdc = yes; then
6515  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6516  if test "$cross_compiling" = yes; then
6517  :
6518else
6519  cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h.  */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h.  */
6525#include <ctype.h>
6526#if ((' ' & 0x0FF) == 0x020)
6527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6529#else
6530# define ISLOWER(c) \
6531                   (('a' <= (c) && (c) <= 'i') \
6532                     || ('j' <= (c) && (c) <= 'r') \
6533                     || ('s' <= (c) && (c) <= 'z'))
6534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6535#endif
6536
6537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6538int
6539main ()
6540{
6541  int i;
6542  for (i = 0; i < 256; i++)
6543    if (XOR (islower (i), ISLOWER (i))
6544        || toupper (i) != TOUPPER (i))
6545      exit(2);
6546  exit (0);
6547}
6548_ACEOF
6549rm -f conftest$ac_exeext
6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551  (eval $ac_link) 2>&5
6552  ac_status=$?
6553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556  (eval $ac_try) 2>&5
6557  ac_status=$?
6558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559  (exit $ac_status); }; }; then
6560  :
6561else
6562  echo "$as_me: program exited with status $ac_status" >&5
6563echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566( exit $ac_status )
6567ac_cv_header_stdc=no
6568fi
6569rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570fi
6571fi
6572fi
6573echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6574echo "${ECHO_T}$ac_cv_header_stdc" >&6
6575if test $ac_cv_header_stdc = yes; then
6576
6577cat >>confdefs.h <<\_ACEOF
6578#define STDC_HEADERS 1
6579_ACEOF
6580
6581fi
6582
6583# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6594                  inttypes.h stdint.h unistd.h
6595do
6596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597echo "$as_me:$LINENO: checking for $ac_header" >&5
6598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6599if eval "test \"\${$as_ac_Header+set}\" = set"; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602  cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h.  */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h.  */
6608$ac_includes_default
6609
6610#include <$ac_header>
6611_ACEOF
6612rm -f conftest.$ac_objext
6613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614  (eval $ac_compile) 2>conftest.er1
6615  ac_status=$?
6616  grep -v '^ *+' conftest.er1 >conftest.err
6617  rm -f conftest.er1
6618  cat conftest.err >&5
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } &&
6621         { ac_try='test -z "$ac_c_werror_flag"
6622                         || test ! -s conftest.err'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; } &&
6628         { ac_try='test -s conftest.$ac_objext'
6629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630  (eval $ac_try) 2>&5
6631  ac_status=$?
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); }; }; then
6634  eval "$as_ac_Header=yes"
6635else
6636  echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639eval "$as_ac_Header=no"
6640fi
6641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642fi
6643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646  cat >>confdefs.h <<_ACEOF
6647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648_ACEOF
6649
6650fi
6651
6652done
6653
6654
6655
6656for ac_header in dlfcn.h
6657do
6658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660  echo "$as_me:$LINENO: checking for $ac_header" >&5
6661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6662if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664fi
6665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6667else
6668  # Is the header compilable?
6669echo "$as_me:$LINENO: checking $ac_header usability" >&5
6670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6671cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h.  */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h.  */
6677$ac_includes_default
6678#include <$ac_header>
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682  (eval $ac_compile) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689         { ac_try='test -z "$ac_c_werror_flag"
6690                         || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696         { ac_try='test -s conftest.$ac_objext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  ac_header_compiler=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707ac_header_compiler=no
6708fi
6709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6711echo "${ECHO_T}$ac_header_compiler" >&6
6712
6713# Is the header present?
6714echo "$as_me:$LINENO: checking $ac_header presence" >&5
6715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6716cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h.  */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h.  */
6722#include <$ac_header>
6723_ACEOF
6724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726  ac_status=$?
6727  grep -v '^ *+' conftest.er1 >conftest.err
6728  rm -f conftest.er1
6729  cat conftest.err >&5
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); } >/dev/null; then
6732  if test -s conftest.err; then
6733    ac_cpp_err=$ac_c_preproc_warn_flag
6734    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735  else
6736    ac_cpp_err=
6737  fi
6738else
6739  ac_cpp_err=yes
6740fi
6741if test -z "$ac_cpp_err"; then
6742  ac_header_preproc=yes
6743else
6744  echo "$as_me: failed program was:" >&5
6745sed 's/^/| /' conftest.$ac_ext >&5
6746
6747  ac_header_preproc=no
6748fi
6749rm -f conftest.err conftest.$ac_ext
6750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6751echo "${ECHO_T}$ac_header_preproc" >&6
6752
6753# So?  What about this header?
6754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6755  yes:no: )
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6760    ac_header_preproc=yes
6761    ;;
6762  no:yes:* )
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6766echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6770echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6773    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6775    (
6776      cat <<\_ASBOX
6777## ------------------------------------ ##
6778## Report this to cbc@lists.coin-or.org ##
6779## ------------------------------------ ##
6780_ASBOX
6781    ) |
6782      sed "s/^/$as_me: WARNING:     /" >&2
6783    ;;
6784esac
6785echo "$as_me:$LINENO: checking for $ac_header" >&5
6786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6787if eval "test \"\${$as_ac_Header+set}\" = set"; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  eval "$as_ac_Header=\$ac_header_preproc"
6791fi
6792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6794
6795fi
6796if test `eval echo '${'$as_ac_Header'}'` = yes; then
6797  cat >>confdefs.h <<_ACEOF
6798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6799_ACEOF
6800
6801fi
6802
6803done
6804
6805
6806
6807if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6808    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6809    (test "X$CXX" != "Xg++"))) ; then
6810  ac_ext=cc
6811ac_cpp='$CXXCPP $CPPFLAGS'
6812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6815echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6816echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6817if test -z "$CXXCPP"; then
6818  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821      # Double quotes because CXXCPP needs to be expanded
6822    for CXXCPP in "$CXX -E" "/lib/cpp"
6823    do
6824      ac_preproc_ok=false
6825for ac_cxx_preproc_warn_flag in '' yes
6826do
6827  # Use a header file that comes with gcc, so configuring glibc
6828  # with a fresh cross-compiler works.
6829  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830  # <limits.h> exists even on freestanding compilers.
6831  # On the NeXT, cc -E runs the code through the compiler's parser,
6832  # not just through cpp. "Syntax error" is here to catch this case.
6833  cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h.  */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h.  */
6839#ifdef __STDC__
6840# include <limits.h>
6841#else
6842# include <assert.h>
6843#endif
6844                     Syntax error
6845_ACEOF
6846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6847  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848  ac_status=$?
6849  grep -v '^ *+' conftest.er1 >conftest.err
6850  rm -f conftest.er1
6851  cat conftest.err >&5
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); } >/dev/null; then
6854  if test -s conftest.err; then
6855    ac_cpp_err=$ac_cxx_preproc_warn_flag
6856    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6857  else
6858    ac_cpp_err=
6859  fi
6860else
6861  ac_cpp_err=yes
6862fi
6863if test -z "$ac_cpp_err"; then
6864  :
6865else
6866  echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869  # Broken: fails on valid input.
6870continue
6871fi
6872rm -f conftest.err conftest.$ac_ext
6873
6874  # OK, works on sane cases.  Now check whether non-existent headers
6875  # can be detected and how.
6876  cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882#include <ac_nonexistent.h>
6883_ACEOF
6884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6886  ac_status=$?
6887  grep -v '^ *+' conftest.er1 >conftest.err
6888  rm -f conftest.er1
6889  cat conftest.err >&5
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); } >/dev/null; then
6892  if test -s conftest.err; then
6893    ac_cpp_err=$ac_cxx_preproc_warn_flag
6894    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6895  else
6896    ac_cpp_err=
6897  fi
6898else
6899  ac_cpp_err=yes
6900fi
6901if test -z "$ac_cpp_err"; then
6902  # Broken: success on invalid input.
6903continue
6904else
6905  echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908  # Passes both tests.
6909ac_preproc_ok=:
6910break
6911fi
6912rm -f conftest.err conftest.$ac_ext
6913
6914done
6915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916rm -f conftest.err conftest.$ac_ext
6917if $ac_preproc_ok; then
6918  break
6919fi
6920
6921    done
6922    ac_cv_prog_CXXCPP=$CXXCPP
6923
6924fi
6925  CXXCPP=$ac_cv_prog_CXXCPP
6926else
6927  ac_cv_prog_CXXCPP=$CXXCPP
6928fi
6929echo "$as_me:$LINENO: result: $CXXCPP" >&5
6930echo "${ECHO_T}$CXXCPP" >&6
6931ac_preproc_ok=false
6932for ac_cxx_preproc_warn_flag in '' yes
6933do
6934  # Use a header file that comes with gcc, so configuring glibc
6935  # with a fresh cross-compiler works.
6936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937  # <limits.h> exists even on freestanding compilers.
6938  # On the NeXT, cc -E runs the code through the compiler's parser,
6939  # not just through cpp. "Syntax error" is here to catch this case.
6940  cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h.  */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h.  */
6946#ifdef __STDC__
6947# include <limits.h>
6948#else
6949# include <assert.h>
6950#endif
6951                     Syntax error
6952_ACEOF
6953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } >/dev/null; then
6961  if test -s conftest.err; then
6962    ac_cpp_err=$ac_cxx_preproc_warn_flag
6963    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6964  else
6965    ac_cpp_err=
6966  fi
6967else
6968  ac_cpp_err=yes
6969fi
6970if test -z "$ac_cpp_err"; then
6971  :
6972else
6973  echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976  # Broken: fails on valid input.
6977continue
6978fi
6979rm -f conftest.err conftest.$ac_ext
6980
6981  # OK, works on sane cases.  Now check whether non-existent headers
6982  # can be detected and how.
6983  cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989#include <ac_nonexistent.h>
6990_ACEOF
6991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6993  ac_status=$?
6994  grep -v '^ *+' conftest.er1 >conftest.err
6995  rm -f conftest.er1
6996  cat conftest.err >&5
6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998  (exit $ac_status); } >/dev/null; then
6999  if test -s conftest.err; then
7000    ac_cpp_err=$ac_cxx_preproc_warn_flag
7001    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7002  else
7003    ac_cpp_err=
7004  fi
7005else
7006  ac_cpp_err=yes
7007fi
7008if test -z "$ac_cpp_err"; then
7009  # Broken: success on invalid input.
7010continue
7011else
7012  echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015  # Passes both tests.
7016ac_preproc_ok=:
7017break
7018fi
7019rm -f conftest.err conftest.$ac_ext
7020
7021done
7022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023rm -f conftest.err conftest.$ac_ext
7024if $ac_preproc_ok; then
7025  :
7026else
7027  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7028See \`config.log' for more details." >&5
7029echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7030See \`config.log' for more details." >&2;}
7031   { (exit 1); exit 1; }; }
7032fi
7033
7034ac_ext=cc
7035ac_cpp='$CXXCPP $CPPFLAGS'
7036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7039
7040fi
7041
7042ac_ext=f
7043ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7044ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7046if test -n "$ac_tool_prefix"; then
7047  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7048  do
7049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7051echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7053if test "${ac_cv_prog_F77+set}" = set; then
7054  echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056  if test -n "$F77"; then
7057  ac_cv_prog_F77="$F77" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062  IFS=$as_save_IFS
7063  test -z "$as_dir" && as_dir=.
7064  for ac_exec_ext in '' $ac_executable_extensions; do
7065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068    break 2
7069  fi
7070done
7071done
7072
7073fi
7074fi
7075F77=$ac_cv_prog_F77
7076if test -n "$F77"; then
7077  echo "$as_me:$LINENO: result: $F77" >&5
7078echo "${ECHO_T}$F77" >&6
7079else
7080  echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082fi
7083
7084    test -n "$F77" && break
7085  done
7086fi
7087if test -z "$F77"; then
7088  ac_ct_F77=$F77
7089  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7090do
7091  # Extract the first word of "$ac_prog", so it can be a program name with args.
7092set dummy $ac_prog; ac_word=$2
7093echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7096  echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098  if test -n "$ac_ct_F77"; then
7099  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106  for ac_exec_ext in '' $ac_executable_extensions; do
7107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108    ac_cv_prog_ac_ct_F77="$ac_prog"
7109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113done
7114
7115fi
7116fi
7117ac_ct_F77=$ac_cv_prog_ac_ct_F77
7118if test -n "$ac_ct_F77"; then
7119  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7120echo "${ECHO_T}$ac_ct_F77" >&6
7121else
7122  echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
7124fi
7125
7126  test -n "$ac_ct_F77" && break
7127done
7128
7129  F77=$ac_ct_F77
7130fi
7131
7132
7133# Provide some information about the compiler.
7134echo "$as_me:7134:" \
7135     "checking for Fortran 77 compiler version" >&5
7136ac_compiler=`set X $ac_compile; echo $2`
7137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7138  (eval $ac_compiler --version </dev/null >&5) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); }
7142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7143  (eval $ac_compiler -v </dev/null >&5) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }
7147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7148  (eval $ac_compiler -V </dev/null >&5) 2>&5
7149  ac_status=$?
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); }
7152rm -f a.out
7153
7154# If we don't use `.F' as extension, the preprocessor is not run on the
7155# input file.  (Note that this only needs to work for GNU compilers.)
7156ac_save_ext=$ac_ext
7157ac_ext=F
7158echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7159echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7160if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163  cat >conftest.$ac_ext <<_ACEOF
7164      program main
7165#ifndef __GNUC__
7166       choke me
7167#endif
7168
7169      end
7170_ACEOF
7171rm -f conftest.$ac_objext
7172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173  (eval $ac_compile) 2>conftest.er1
7174  ac_status=$?
7175  grep -v '^ *+' conftest.er1 >conftest.err
7176  rm -f conftest.er1
7177  cat conftest.err >&5
7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); } &&
7180         { ac_try='test -z "$ac_f77_werror_flag"
7181                         || test ! -s conftest.err'
7182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183  (eval $ac_try) 2>&5
7184  ac_status=$?
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); }; } &&
7187         { ac_try='test -s conftest.$ac_objext'
7188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189  (eval $ac_try) 2>&5
7190  ac_status=$?
7191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192  (exit $ac_status); }; }; then
7193  ac_compiler_gnu=yes
7194else
7195  echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198ac_compiler_gnu=no
7199fi
7200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7202
7203fi
7204echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7205echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7206ac_ext=$ac_save_ext
7207ac_test_FFLAGS=${FFLAGS+set}
7208ac_save_FFLAGS=$FFLAGS
7209FFLAGS=
7210echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7211echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7212if test "${ac_cv_prog_f77_g+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  FFLAGS=-g
7216cat >conftest.$ac_ext <<_ACEOF
7217      program main
7218
7219      end
7220_ACEOF
7221rm -f conftest.$ac_objext
7222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223  (eval $ac_compile) 2>conftest.er1
7224  ac_status=$?
7225  grep -v '^ *+' conftest.er1 >conftest.err
7226  rm -f conftest.er1
7227  cat conftest.err >&5
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); } &&
7230         { ac_try='test -z "$ac_f77_werror_flag"
7231                         || test ! -s conftest.err'
7232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233  (eval $ac_try) 2>&5
7234  ac_status=$?
7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236  (exit $ac_status); }; } &&
7237         { ac_try='test -s conftest.$ac_objext'
7238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239  (eval $ac_try) 2>&5
7240  ac_status=$?
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); }; }; then
7243  ac_cv_prog_f77_g=yes
7244else
7245  echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248ac_cv_prog_f77_g=no
7249fi
7250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251
7252fi
7253echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7254echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7255if test "$ac_test_FFLAGS" = set; then
7256  FFLAGS=$ac_save_FFLAGS
7257elif test $ac_cv_prog_f77_g = yes; then
7258  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7259    FFLAGS="-g -O2"
7260  else
7261    FFLAGS="-g"
7262  fi
7263else
7264  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7265    FFLAGS="-O2"
7266  else
7267    FFLAGS=
7268  fi
7269fi
7270
7271G77=`test $ac_compiler_gnu = yes && echo yes`
7272ac_ext=c
7273ac_cpp='$CPP $CPPFLAGS'
7274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278
7279
7280# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7281
7282# find the maximum length of command line arguments
7283echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7284echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7285if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7286  echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288    i=0
7289  teststring="ABCD"
7290
7291  case $build_os in
7292  msdosdjgpp*)
7293    # On DJGPP, this test can blow up pretty badly due to problems in libc
7294    # (any single argument exceeding 2000 bytes causes a buffer overrun
7295    # during glob expansion).  Even if it were fixed, the result of this
7296    # check would be larger than it should be.
7297    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7298    ;;
7299
7300  gnu*)
7301    # Under GNU Hurd, this test is not required because there is
7302    # no limit to the length of command line arguments.
7303    # Libtool will interpret -1 as no limit whatsoever
7304    lt_cv_sys_max_cmd_len=-1;
7305    ;;
7306
7307  cygwin* | mingw*)
7308    # On Win9x/ME, this test blows up -- it succeeds, but takes
7309    # about 5 minutes as the teststring grows exponentially.
7310    # Worse, since 9x/ME are not pre-emptively multitasking,
7311    # you end up with a "frozen" computer, even though with patience
7312    # the test eventually succeeds (with a max line length of 256k).
7313    # Instead, let's just punt: use the minimum linelength reported by
7314    # all of the supported platforms: 8192 (on NT/2K/XP).
7315    lt_cv_sys_max_cmd_len=8192;
7316    ;;
7317
7318  amigaos*)
7319    # On AmigaOS with pdksh, this test takes hours, literally.
7320    # So we just punt and use a minimum line length of 8192.
7321    lt_cv_sys_max_cmd_len=8192;
7322    ;;
7323
7324  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7325    # This has been around since 386BSD, at least.  Likely further.
7326    if test -x /sbin/sysctl; then
7327      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7328    elif test -x /usr/sbin/sysctl; then
7329      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7330    else
7331      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7332    fi
7333    # And add a safety zone
7334    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7335    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7336    ;;
7337
7338  interix*)
7339    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7340    lt_cv_sys_max_cmd_len=196608
7341    ;;
7342
7343  osf*)
7344    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7345    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7346    # nice to cause kernel panics so lets avoid the loop below.
7347    # First set a reasonable default.
7348    lt_cv_sys_max_cmd_len=16384
7349    #
7350    if test -x /sbin/sysconfig; then
7351      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7352        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7353      esac
7354    fi
7355    ;;
7356  sco3.2v5*)
7357    lt_cv_sys_max_cmd_len=102400
7358    ;;
7359  sysv5* | sco5v6* | sysv4.2uw2*)
7360    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7361    if test -n "$kargmax"; then
7362      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7363    else
7364      lt_cv_sys_max_cmd_len=32768
7365    fi
7366    ;;
7367  *)
7368    # If test is not a shell built-in, we'll probably end up computing a
7369    # maximum length that is only half of the actual maximum length, but
7370    # we can't tell.
7371    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7372    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7373               = "XX$teststring") >/dev/null 2>&1 &&
7374            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7375            lt_cv_sys_max_cmd_len=$new_result &&
7376            test $i != 17 # 1/2 MB should be enough
7377    do
7378      i=`expr $i + 1`
7379      teststring=$teststring$teststring
7380    done
7381    teststring=
7382    # Add a significant safety factor because C++ compilers can tack on massive
7383    # amounts of additional arguments before passing them to the linker.
7384    # It appears as though 1/2 is a usable value.
7385    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7386    ;;
7387  esac
7388
7389fi
7390
7391if test -n $lt_cv_sys_max_cmd_len ; then
7392  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7393echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7394else
7395  echo "$as_me:$LINENO: result: none" >&5
7396echo "${ECHO_T}none" >&6
7397fi
7398
7399
7400
7401
7402# Check for command to grab the raw symbol name followed by C symbol from nm.
7403echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7404echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7405if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408
7409# These are sane defaults that work on at least a few old systems.
7410# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7411
7412# Character class describing NM global symbol codes.
7413symcode='[BCDEGRST]'
7414
7415# Regexp to match symbols that can be accessed directly from C.
7416sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7417
7418# Transform an extracted symbol line into a proper C declaration
7419lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7420
7421# Transform an extracted symbol line into symbol name and symbol address
7422lt_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'"
7423
7424# Define system-specific variables.
7425case $host_os in
7426aix*)
7427  symcode='[BCDT]'
7428  ;;
7429cygwin* | mingw* | pw32*)
7430  symcode='[ABCDGISTW]'
7431  ;;
7432hpux*) # Its linker distinguishes data from code symbols
7433  if test "$host_cpu" = ia64; then
7434    symcode='[ABCDEGRST]'
7435  fi
7436  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7437  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'"
7438  ;;
7439linux*)
7440  if test "$host_cpu" = ia64; then
7441    symcode='[ABCDGIRSTW]'
7442    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7443    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'"
7444  fi
7445  ;;
7446irix* | nonstopux*)
7447  symcode='[BCDEGRST]'
7448  ;;
7449osf*)
7450  symcode='[BCDEGQRST]'
7451  ;;
7452solaris*)
7453  symcode='[BDRT]'
7454  ;;
7455sco3.2v5*)
7456  symcode='[DT]'
7457  ;;
7458sysv4.2uw2*)
7459  symcode='[DT]'
7460  ;;
7461sysv5* | sco5v6* | unixware* | OpenUNIX*)
7462  symcode='[ABDT]'
7463  ;;
7464sysv4)
7465  symcode='[DFNSTU]'
7466  ;;
7467esac
7468
7469# Handle CRLF in mingw tool chain
7470opt_cr=
7471case $build_os in
7472mingw*)
7473  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7474  ;;
7475esac
7476
7477# If we're using GNU nm, then use its standard symbol codes.
7478case `$NM -V 2>&1` in
7479*GNU* | *'with BFD'*)
7480  symcode='[ABCDGIRSTW]' ;;
7481esac
7482
7483# Try without a prefix undercore, then with it.
7484for ac_symprfx in "" "_"; do
7485
7486  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7487  symxfrm="\\1 $ac_symprfx\\2 \\2"
7488
7489  # Write the raw and C identifiers.
7490  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7491
7492  # Check to see that the pipe works correctly.
7493  pipe_works=no
7494
7495  rm -f conftest*
7496  cat > conftest.$ac_ext <<EOF
7497#ifdef __cplusplus
7498extern "C" {
7499#endif
7500char nm_test_var;
7501void nm_test_func(){}
7502#ifdef __cplusplus
7503}
7504#endif
7505int main(){nm_test_var='a';nm_test_func();return(0);}
7506EOF
7507
7508  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509  (eval $ac_compile) 2>&5
7510  ac_status=$?
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); }; then
7513    # Now try to grab the symbols.
7514    nlist=conftest.nm
7515    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7516  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7517  ac_status=$?
7518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519  (exit $ac_status); } && test -s "$nlist"; then
7520      # Try sorting and uniquifying the output.
7521      if sort "$nlist" | uniq > "$nlist"T; then
7522        mv -f "$nlist"T "$nlist"
7523      else
7524        rm -f "$nlist"T
7525      fi
7526
7527      # Make sure that we snagged all the symbols we need.
7528      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7529        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7530          cat <<EOF > conftest.$ac_ext
7531#ifdef __cplusplus
7532extern "C" {
7533#endif
7534
7535EOF
7536          # Now generate the symbol file.
7537          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7538
7539          cat <<EOF >> conftest.$ac_ext
7540#if defined (__STDC__) && __STDC__
7541# define lt_ptr_t void *
7542#else
7543# define lt_ptr_t char *
7544# define const
7545#endif
7546
7547/* The mapping between symbol names and symbols. */
7548const struct {
7549  const char *name;
7550  lt_ptr_t address;
7551}
7552lt_preloaded_symbols[] =
7553{
7554EOF
7555          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7556          cat <<\EOF >> conftest.$ac_ext
7557  {0, (lt_ptr_t) 0}
7558};
7559
7560#ifdef __cplusplus
7561}
7562#endif
7563EOF
7564          # Now try linking the two files.
7565          mv conftest.$ac_objext conftstm.$ac_objext
7566          lt_save_LIBS="$LIBS"
7567          lt_save_CFLAGS="$CFLAGS"
7568          LIBS="conftstm.$ac_objext"
7569          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7570          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571  (eval $ac_link) 2>&5
7572  ac_status=$?
7573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7575            pipe_works=yes
7576          fi
7577          LIBS="$lt_save_LIBS"
7578          CFLAGS="$lt_save_CFLAGS"
7579        else
7580          echo "cannot find nm_test_func in $nlist" >&5
7581        fi
7582      else
7583        echo "cannot find nm_test_var in $nlist" >&5
7584      fi
7585    else
7586      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7587    fi
7588  else
7589    echo "$progname: failed program was:" >&5
7590    cat conftest.$ac_ext >&5
7591  fi
7592  rm -f conftest* conftst*
7593
7594  # Do not use the global_symbol_pipe unless it works.
7595  if test "$pipe_works" = yes; then
7596    break
7597  else
7598    lt_cv_sys_global_symbol_pipe=
7599  fi
7600done
7601
7602fi
7603
7604if test -z "$lt_cv_sys_global_symbol_pipe"; then
7605  lt_cv_sys_global_symbol_to_cdecl=
7606fi
7607if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7608  echo "$as_me:$LINENO: result: failed" >&5
7609echo "${ECHO_T}failed" >&6
7610else
7611  echo "$as_me:$LINENO: result: ok" >&5
7612echo "${ECHO_T}ok" >&6
7613fi
7614
7615echo "$as_me:$LINENO: checking for objdir" >&5
7616echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7617if test "${lt_cv_objdir+set}" = set; then
7618  echo $ECHO_N "(cached) $ECHO_C" >&6
7619else
7620  rm -f .libs 2>/dev/null
7621mkdir .libs 2>/dev/null
7622if test -d .libs; then
7623  lt_cv_objdir=.libs
7624else
7625  # MS-DOS does not allow filenames that begin with a dot.
7626  lt_cv_objdir=_libs
7627fi
7628rmdir .libs 2>/dev/null
7629fi
7630echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7631echo "${ECHO_T}$lt_cv_objdir" >&6
7632objdir=$lt_cv_objdir
7633
7634
7635
7636
7637
7638case $host_os in
7639aix3*)
7640  # AIX sometimes has problems with the GCC collect2 program.  For some
7641  # reason, if we set the COLLECT_NAMES environment variable, the problems
7642  # vanish in a puff of smoke.
7643  if test "X${COLLECT_NAMES+set}" != Xset; then
7644    COLLECT_NAMES=
7645    export COLLECT_NAMES
7646  fi
7647  ;;
7648esac
7649
7650# Sed substitution that helps us do robust quoting.  It backslashifies
7651# metacharacters that are still active within double-quoted strings.
7652Xsed='sed -e 1s/^X//'
7653sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7654
7655# Same as above, but do not quote variable references.
7656double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7657
7658# Sed substitution to delay expansion of an escaped shell variable in a
7659# double_quote_subst'ed string.
7660delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7661
7662# Sed substitution to avoid accidental globbing in evaled expressions
7663no_glob_subst='s/\*/\\\*/g'
7664
7665# Constants:
7666rm="rm -f"
7667
7668# Global variables:
7669default_ofile=libtool
7670can_build_shared=yes
7671
7672# All known linkers require a `.a' archive for static linking (except MSVC,
7673# which needs '.lib').
7674libext=a
7675ltmain="$ac_aux_dir/ltmain.sh"
7676ofile="$default_ofile"
7677with_gnu_ld="$lt_cv_prog_gnu_ld"
7678
7679if test -n "$ac_tool_prefix"; then
7680  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7681set dummy ${ac_tool_prefix}ar; ac_word=$2
7682echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684if test "${ac_cv_prog_AR+set}" = set; then
7685  echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687  if test -n "$AR"; then
7688  ac_cv_prog_AR="$AR" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695  for ac_exec_ext in '' $ac_executable_extensions; do
7696  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_AR="${ac_tool_prefix}ar"
7698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702done
7703
7704fi
7705fi
7706AR=$ac_cv_prog_AR
7707if test -n "$AR"; then
7708  echo "$as_me:$LINENO: result: $AR" >&5
7709echo "${ECHO_T}$AR" >&6
7710else
7711  echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713fi
7714
7715fi
7716if test -z "$ac_cv_prog_AR"; then
7717  ac_ct_AR=$AR
7718  # Extract the first word of "ar", so it can be a program name with args.
7719set dummy ar; ac_word=$2
7720echo "$as_me:$LINENO: checking for $ac_word" >&5
7721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7722if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7723  echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725  if test -n "$ac_ct_AR"; then
7726  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731  IFS=$as_save_IFS
7732  test -z "$as_dir" && as_dir=.
7733  for ac_exec_ext in '' $ac_executable_extensions; do
7734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735    ac_cv_prog_ac_ct_AR="ar"
7736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737    break 2
7738  fi
7739done
7740done
7741
7742  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7743fi
7744fi
7745ac_ct_AR=$ac_cv_prog_ac_ct_AR
7746if test -n "$ac_ct_AR"; then
7747  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7748echo "${ECHO_T}$ac_ct_AR" >&6
7749else
7750  echo "$as_me:$LINENO: result: no" >&5
7751echo "${ECHO_T}no" >&6
7752fi
7753
7754  AR=$ac_ct_AR
7755else
7756  AR="$ac_cv_prog_AR"
7757fi
7758
7759if test -n "$ac_tool_prefix"; then
7760  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7762echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764if test "${ac_cv_prog_RANLIB+set}" = set; then
7765  echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767  if test -n "$RANLIB"; then
7768  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775  for ac_exec_ext in '' $ac_executable_extensions; do
7776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782done
7783
7784fi
7785fi
7786RANLIB=$ac_cv_prog_RANLIB
7787if test -n "$RANLIB"; then
7788  echo "$as_me:$LINENO: result: $RANLIB" >&5
7789echo "${ECHO_T}$RANLIB" >&6
7790else
7791  echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6
7793fi
7794
7795fi
7796if test -z "$ac_cv_prog_RANLIB"; then
7797  ac_ct_RANLIB=$RANLIB
7798  # Extract the first word of "ranlib", so it can be a program name with args.
7799set dummy ranlib; ac_word=$2
7800echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7803  echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805  if test -n "$ac_ct_RANLIB"; then
7806  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813  for ac_exec_ext in '' $ac_executable_extensions; do
7814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815    ac_cv_prog_ac_ct_RANLIB="ranlib"
7816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820done
7821
7822  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7823fi
7824fi
7825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7826if test -n "$ac_ct_RANLIB"; then
7827  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7828echo "${ECHO_T}$ac_ct_RANLIB" >&6
7829else
7830  echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832fi
7833
7834  RANLIB=$ac_ct_RANLIB
7835else
7836  RANLIB="$ac_cv_prog_RANLIB"
7837fi
7838
7839if test -n "$ac_tool_prefix"; then
7840  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7841set dummy ${ac_tool_prefix}strip; ac_word=$2
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844if test "${ac_cv_prog_STRIP+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  if test -n "$STRIP"; then
7848  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855  for ac_exec_ext in '' $ac_executable_extensions; do
7856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862done
7863
7864fi
7865fi
7866STRIP=$ac_cv_prog_STRIP
7867if test -n "$STRIP"; then
7868  echo "$as_me:$LINENO: result: $STRIP" >&5
7869echo "${ECHO_T}$STRIP" >&6
7870else
7871  echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873fi
7874
7875fi
7876if test -z "$ac_cv_prog_STRIP"; then
7877  ac_ct_STRIP=$STRIP
7878  # Extract the first word of "strip", so it can be a program name with args.
7879set dummy strip; ac_word=$2
7880echo "$as_me:$LINENO: checking for $ac_word" >&5
7881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7882if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885  if test -n "$ac_ct_STRIP"; then
7886  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893  for ac_exec_ext in '' $ac_executable_extensions; do
7894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895    ac_cv_prog_ac_ct_STRIP="strip"
7896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900done
7901
7902  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7903fi
7904fi
7905ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7906if test -n "$ac_ct_STRIP"; then
7907  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7908echo "${ECHO_T}$ac_ct_STRIP" >&6
7909else
7910  echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6
7912fi
7913
7914  STRIP=$ac_ct_STRIP
7915else
7916  STRIP="$ac_cv_prog_STRIP"
7917fi
7918
7919
7920old_CC="$CC"
7921old_CFLAGS="$CFLAGS"
7922
7923# Set sane defaults for various variables
7924test -z "$AR" && AR=ar
7925test -z "$AR_FLAGS" && AR_FLAGS=cru
7926test -z "$AS" && AS=as
7927test -z "$CC" && CC=cc
7928test -z "$LTCC" && LTCC=$CC
7929test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7930test -z "$DLLTOOL" && DLLTOOL=dlltool
7931test -z "$LD" && LD=ld
7932test -z "$LN_S" && LN_S="ln -s"
7933test -z "$MAGIC_CMD" && MAGIC_CMD=file
7934test -z "$NM" && NM=nm
7935test -z "$SED" && SED=sed
7936test -z "$OBJDUMP" && OBJDUMP=objdump
7937test -z "$RANLIB" && RANLIB=:
7938test -z "$STRIP" && STRIP=:
7939test -z "$ac_objext" && ac_objext=o
7940
7941# Determine commands to create old-style static archives.
7942old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7943old_postinstall_cmds='chmod 644 $oldlib'
7944old_postuninstall_cmds=
7945
7946if test -n "$RANLIB"; then
7947  case $host_os in
7948  openbsd*)
7949    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7950    ;;
7951  *)
7952    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7953    ;;
7954  esac
7955  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7956fi
7957
7958for cc_temp in $compiler""; do
7959  case $cc_temp in
7960    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7961    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7962    \-*) ;;
7963    *) break;;
7964  esac
7965done
7966cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7967
7968
7969# Only perform the check for file, if the check method requires it
7970case $deplibs_check_method in
7971file_magic*)
7972  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7973    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7974echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7975if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7976  echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978  case $MAGIC_CMD in
7979[\\/*] |  ?:[\\/]*)
7980  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7981  ;;
7982*)
7983  lt_save_MAGIC_CMD="$MAGIC_CMD"
7984  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7985  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7986  for ac_dir in $ac_dummy; do
7987    IFS="$lt_save_ifs"
7988    test -z "$ac_dir" && ac_dir=.
7989    if test -f $ac_dir/${ac_tool_prefix}file; then
7990      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7991      if test -n "$file_magic_test_file"; then
7992        case $deplibs_check_method in
7993        "file_magic "*)
7994          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7995          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7996          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7997            $EGREP "$file_magic_regex" > /dev/null; then
7998            :
7999          else
8000            cat <<EOF 1>&2
8001
8002*** Warning: the command libtool uses to detect shared libraries,
8003*** $file_magic_cmd, produces output that libtool cannot recognize.
8004*** The result is that libtool may fail to recognize shared libraries
8005*** as such.  This will affect the creation of libtool libraries that
8006*** depend on shared libraries, but programs linked with such libtool
8007*** libraries will work regardless of this problem.  Nevertheless, you
8008*** may want to report the problem to your system manager and/or to
8009*** bug-libtool@gnu.org
8010
8011EOF
8012          fi ;;
8013        esac
8014      fi
8015      break
8016    fi
8017  done
8018  IFS="$lt_save_ifs"
8019  MAGIC_CMD="$lt_save_MAGIC_CMD"
8020  ;;
8021esac
8022fi
8023
8024MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025if test -n "$MAGIC_CMD"; then
8026  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8027echo "${ECHO_T}$MAGIC_CMD" >&6
8028else
8029  echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031fi
8032
8033if test -z "$lt_cv_path_MAGIC_CMD"; then
8034  if test -n "$ac_tool_prefix"; then
8035    echo "$as_me:$LINENO: checking for file" >&5
8036echo $ECHO_N "checking for file... $ECHO_C" >&6
8037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8038  echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040  case $MAGIC_CMD in
8041[\\/*] |  ?:[\\/]*)
8042  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8043  ;;
8044*)
8045  lt_save_MAGIC_CMD="$MAGIC_CMD"
8046  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8047  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8048  for ac_dir in $ac_dummy; do
8049    IFS="$lt_save_ifs"
8050    test -z "$ac_dir" && ac_dir=.
8051    if test -f $ac_dir/file; then
8052      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8053      if test -n "$file_magic_test_file"; then
8054        case $deplibs_check_method in
8055        "file_magic "*)
8056          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8057          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8058          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8059            $EGREP "$file_magic_regex" > /dev/null; then
8060            :
8061          else
8062            cat <<EOF 1>&2
8063
8064*** Warning: the command libtool uses to detect shared libraries,
8065*** $file_magic_cmd, produces output that libtool cannot recognize.
8066*** The result is that libtool may fail to recognize shared libraries
8067*** as such.  This will affect the creation of libtool libraries that
8068*** depend on shared libraries, but programs linked with such libtool
8069*** libraries will work regardless of this problem.  Nevertheless, you
8070*** may want to report the problem to your system manager and/or to
8071*** bug-libtool@gnu.org
8072
8073EOF
8074          fi ;;
8075        esac
8076      fi
8077      break
8078    fi
8079  done
8080  IFS="$lt_save_ifs"
8081  MAGIC_CMD="$lt_save_MAGIC_CMD"
8082  ;;
8083esac
8084fi
8085
8086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8087if test -n "$MAGIC_CMD"; then
8088  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8089echo "${ECHO_T}$MAGIC_CMD" >&6
8090else
8091  echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093fi
8094
8095  else
8096    MAGIC_CMD=:
8097  fi
8098fi
8099
8100  fi
8101  ;;
8102esac
8103
8104enable_dlopen=no
8105enable_win32_dll=no
8106
8107# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8108if test "${enable_libtool_lock+set}" = set; then
8109  enableval="$enable_libtool_lock"
8110
8111fi;
8112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8113
8114
8115# Check whether --with-pic or --without-pic was given.
8116if test "${with_pic+set}" = set; then
8117  withval="$with_pic"
8118  pic_mode="$withval"
8119else
8120  pic_mode=default
8121fi;
8122test -z "$pic_mode" && pic_mode=default
8123
8124# Use C for the default configuration in the libtool script
8125tagname=
8126lt_save_CC="$CC"
8127ac_ext=c
8128ac_cpp='$CPP $CPPFLAGS'
8129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132
8133
8134# Source file extension for C test sources.
8135ac_ext=c
8136
8137# Object file extension for compiled C test sources.
8138objext=o
8139objext=$objext
8140
8141# Code to be used in simple compile tests
8142lt_simple_compile_test_code="int some_variable = 0;\n"
8143
8144# Code to be used in simple link tests
8145lt_simple_link_test_code='int main(){return(0);}\n'
8146
8147
8148# If no C compiler was specified, use CC.
8149LTCC=${LTCC-"$CC"}
8150
8151# If no C compiler flags were specified, use CFLAGS.
8152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8153
8154# Allow CC to be a program name with arguments.
8155compiler=$CC
8156
8157
8158# save warnings/boilerplate of simple test code
8159ac_outfile=conftest.$ac_objext
8160printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8162_lt_compiler_boilerplate=`cat conftest.err`
8163$rm conftest*
8164
8165ac_outfile=conftest.$ac_objext
8166printf "$lt_simple_link_test_code" >conftest.$ac_ext
8167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8168_lt_linker_boilerplate=`cat conftest.err`
8169$rm conftest*
8170
8171
8172## CAVEAT EMPTOR:
8173## There is no encapsulation within the following macros, do not change
8174## the running order or otherwise move them around unless you know exactly
8175## what you are doing...
8176
8177lt_prog_compiler_no_builtin_flag=
8178
8179if test "$GCC" = yes; then
8180  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8181
8182
8183echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8184echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8185if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8186  echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188  lt_cv_prog_compiler_rtti_exceptions=no
8189  ac_outfile=conftest.$ac_objext
8190   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8191   lt_compiler_flag="-fno-rtti -fno-exceptions"
8192   # Insert the option either (1) after the last *FLAGS variable, or
8193   # (2) before a word containing "conftest.", or (3) at the end.
8194   # Note that $ac_compile itself does not contain backslashes and begins
8195   # with a dollar sign (not a hyphen), so the echo should work correctly.
8196   # The option is referenced via a variable to avoid confusing sed.
8197   lt_compile=`echo "$ac_compile" | $SED \
8198   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200   -e 's:$: $lt_compiler_flag:'`
8201   (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
8202   (eval "$lt_compile" 2>conftest.err)
8203   ac_status=$?
8204   cat conftest.err >&5
8205   echo "$as_me:8205: \$? = $ac_status" >&5
8206   if (exit $ac_status) && test -s "$ac_outfile"; then
8207     # The compiler can only warn and ignore the option if not recognized
8208     # So say no if there are warnings other than the usual output.
8209     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8210     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8212       lt_cv_prog_compiler_rtti_exceptions=yes
8213     fi
8214   fi
8215   $rm conftest*
8216
8217fi
8218echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8219echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8220
8221if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8222    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8223else
8224    :
8225fi
8226
8227fi
8228
8229lt_prog_compiler_wl=
8230lt_prog_compiler_pic=
8231lt_prog_compiler_static=
8232
8233echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8234echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8235
8236  if test "$GCC" = yes; then
8237    lt_prog_compiler_wl='-Wl,'
8238    lt_prog_compiler_static='-static'
8239
8240    case $host_os in
8241      aix*)
8242      # All AIX code is PIC.
8243      if test "$host_cpu" = ia64; then
8244        # AIX 5 now supports IA64 processor
8245        lt_prog_compiler_static='-Bstatic'
8246      fi
8247      ;;
8248
8249    amigaos*)
8250      # FIXME: we need at least 68020 code to build shared libraries, but
8251      # adding the `-m68020' flag to GCC prevents building anything better,
8252      # like `-m68040'.
8253      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8254      ;;
8255
8256    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8257      # PIC is the default for these OSes.
8258      ;;
8259
8260    mingw* | pw32* | os2*)
8261      # This hack is so that the source file can tell whether it is being
8262      # built for inclusion in a dll (and should export symbols for example).
8263      lt_prog_compiler_pic='-DDLL_EXPORT'
8264      ;;
8265
8266    darwin* | rhapsody*)
8267      # PIC is the default on this platform
8268      # Common symbols not allowed in MH_DYLIB files
8269      lt_prog_compiler_pic='-fno-common'
8270      ;;
8271
8272    interix3*)
8273      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8274      # Instead, we relocate shared libraries at runtime.
8275      ;;
8276
8277    msdosdjgpp*)
8278      # Just because we use GCC doesn't mean we suddenly get shared libraries
8279      # on systems that don't support them.
8280      lt_prog_compiler_can_build_shared=no
8281      enable_shared=no
8282      ;;
8283
8284    sysv4*MP*)
8285      if test -d /usr/nec; then
8286        lt_prog_compiler_pic=-Kconform_pic
8287      fi
8288      ;;
8289
8290    hpux*)
8291      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292      # not for PA HP-UX.
8293      case $host_cpu in
8294      hppa*64*|ia64*)
8295        # +Z the default
8296        ;;
8297      *)
8298        lt_prog_compiler_pic='-fPIC'
8299        ;;
8300      esac
8301      ;;
8302
8303    *)
8304      lt_prog_compiler_pic='-fPIC'
8305      ;;
8306    esac
8307  else
8308    # PORTME Check for flag to pass linker flags through the system compiler.
8309    case $host_os in
8310    aix*)
8311      lt_prog_compiler_wl='-Wl,'
8312      if test "$host_cpu" = ia64; then
8313        # AIX 5 now supports IA64 processor
8314        lt_prog_compiler_static='-Bstatic'
8315      else
8316        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8317      fi
8318      ;;
8319      darwin*)
8320        # PIC is the default on this platform
8321        # Common symbols not allowed in MH_DYLIB files
8322       case $cc_basename in
8323         xlc*)
8324         lt_prog_compiler_pic='-qnocommon'
8325         lt_prog_compiler_wl='-Wl,'
8326         ;;
8327       esac
8328       ;;
8329
8330    mingw* | pw32* | os2*)
8331      # This hack is so that the source file can tell whether it is being
8332      # built for inclusion in a dll (and should export symbols for example).
8333      lt_prog_compiler_pic='-DDLL_EXPORT'
8334      ;;
8335
8336    hpux9* | hpux10* | hpux11*)
8337      lt_prog_compiler_wl='-Wl,'
8338      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8339      # not for PA HP-UX.
8340      case $host_cpu in
8341      hppa*64*|ia64*)
8342        # +Z the default
8343        ;;
8344      *)
8345        lt_prog_compiler_pic='+Z'
8346        ;;
8347      esac
8348      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8349      lt_prog_compiler_static='${wl}-a ${wl}archive'
8350      ;;
8351
8352    irix5* | irix6* | nonstopux*)
8353      lt_prog_compiler_wl='-Wl,'
8354      # PIC (with -KPIC) is the default.
8355      lt_prog_compiler_static='-non_shared'
8356      ;;
8357
8358    newsos6)
8359      lt_prog_compiler_pic='-KPIC'
8360      lt_prog_compiler_static='-Bstatic'
8361      ;;
8362
8363    linux*)
8364      case $cc_basename in
8365      icc* | ecc*)
8366        lt_prog_compiler_wl='-Wl,'
8367        lt_prog_compiler_pic='-KPIC'
8368        lt_prog_compiler_static='-static'
8369        ;;
8370      pgcc* | pgf77* | pgf90* | pgf95*)
8371        # Portland Group compilers (*not* the Pentium gcc compiler,
8372        # which looks to be a dead project)
8373        lt_prog_compiler_wl='-Wl,'
8374        lt_prog_compiler_pic='-fpic'
8375        lt_prog_compiler_static='-Bstatic'
8376        ;;
8377      ccc*)
8378        lt_prog_compiler_wl='-Wl,'
8379        # All Alpha code is PIC.
8380        lt_prog_compiler_static='-non_shared'
8381        ;;
8382      esac
8383      ;;
8384
8385    osf3* | osf4* | osf5*)
8386      lt_prog_compiler_wl='-Wl,'
8387      # All OSF/1 code is PIC.
8388      lt_prog_compiler_static='-non_shared'
8389      ;;
8390
8391    solaris*)
8392      lt_prog_compiler_pic='-KPIC'
8393      lt_prog_compiler_static='-Bstatic'
8394      case $cc_basename in
8395      f77* | f90* | f95*)
8396        lt_prog_compiler_wl='-Qoption ld ';;
8397      *)
8398        lt_prog_compiler_wl='-Wl,';;
8399      esac
8400      ;;
8401
8402    sunos4*)
8403      lt_prog_compiler_wl='-Qoption ld '
8404      lt_prog_compiler_pic='-PIC'
8405      lt_prog_compiler_static='-Bstatic'
8406      ;;
8407
8408    sysv4 | sysv4.2uw2* | sysv4.3*)
8409      lt_prog_compiler_wl='-Wl,'
8410      lt_prog_compiler_pic='-KPIC'
8411      lt_prog_compiler_static='-Bstatic'
8412      ;;
8413
8414    sysv4*MP*)
8415      if test -d /usr/nec ;then
8416        lt_prog_compiler_pic='-Kconform_pic'
8417        lt_prog_compiler_static='-Bstatic'
8418      fi
8419      ;;
8420
8421    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8422      lt_prog_compiler_wl='-Wl,'
8423      lt_prog_compiler_pic='-KPIC'
8424      lt_prog_compiler_static='-Bstatic'
8425      ;;
8426
8427    unicos*)
8428      lt_prog_compiler_wl='-Wl,'
8429      lt_prog_compiler_can_build_shared=no
8430      ;;
8431
8432    uts4*)
8433      lt_prog_compiler_pic='-pic'
8434      lt_prog_compiler_static='-Bstatic'
8435      ;;
8436
8437    *)
8438      lt_prog_compiler_can_build_shared=no
8439      ;;
8440    esac
8441  fi
8442
8443echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8444echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8445
8446#
8447# Check to make sure the PIC flag actually works.
8448#
8449if test -n "$lt_prog_compiler_pic"; then
8450
8451echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8453if test "${lt_prog_compiler_pic_works+set}" = set; then
8454  echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456  lt_prog_compiler_pic_works=no
8457  ac_outfile=conftest.$ac_objext
8458   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8459   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8460   # Insert the option either (1) after the last *FLAGS variable, or
8461   # (2) before a word containing "conftest.", or (3) at the end.
8462   # Note that $ac_compile itself does not contain backslashes and begins
8463   # with a dollar sign (not a hyphen), so the echo should work correctly.
8464   # The option is referenced via a variable to avoid confusing sed.
8465   lt_compile=`echo "$ac_compile" | $SED \
8466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468   -e 's:$: $lt_compiler_flag:'`
8469   (eval echo "\"\$as_me:8469: $lt_compile\"" >&5)
8470   (eval "$lt_compile" 2>conftest.err)
8471   ac_status=$?
8472   cat conftest.err >&5
8473   echo "$as_me:8473: \$? = $ac_status" >&5
8474   if (exit $ac_status) && test -s "$ac_outfile"; then
8475     # The compiler can only warn and ignore the option if not recognized
8476     # So say no if there are warnings other than the usual output.
8477     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8478     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480       lt_prog_compiler_pic_works=yes
8481     fi
8482   fi
8483   $rm conftest*
8484
8485fi
8486echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8487echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8488
8489if test x"$lt_prog_compiler_pic_works" = xyes; then
8490    case $lt_prog_compiler_pic in
8491     "" | " "*) ;;
8492     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493     esac
8494else
8495    lt_prog_compiler_pic=
8496     lt_prog_compiler_can_build_shared=no
8497fi
8498
8499fi
8500case $host_os in
8501  # For platforms which do not support PIC, -DPIC is meaningless:
8502  *djgpp*)
8503    lt_prog_compiler_pic=
8504    ;;
8505  *)
8506    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8507    ;;
8508esac
8509
8510#
8511# Check to make sure the static flag actually works.
8512#
8513wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8514echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8515echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8516if test "${lt_prog_compiler_static_works+set}" = set; then
8517  echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519  lt_prog_compiler_static_works=no
8520   save_LDFLAGS="$LDFLAGS"
8521   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8522   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8523   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8524     # The linker can only warn and ignore the option if not recognized
8525     # So say no if there are warnings
8526     if test -s conftest.err; then
8527       # Append any errors to the config.log.
8528       cat conftest.err 1>&5
8529       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8530       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8531       if diff conftest.exp conftest.er2 >/dev/null; then
8532         lt_prog_compiler_static_works=yes
8533       fi
8534     else
8535       lt_prog_compiler_static_works=yes
8536     fi
8537   fi
8538   $rm conftest*
8539   LDFLAGS="$save_LDFLAGS"
8540
8541fi
8542echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8543echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8544
8545if test x"$lt_prog_compiler_static_works" = xyes; then
8546    :
8547else
8548    lt_prog_compiler_static=
8549fi
8550
8551
8552echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8553echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8554if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8555  echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557  lt_cv_prog_compiler_c_o=no
8558   $rm -r conftest 2>/dev/null
8559   mkdir conftest
8560   cd conftest
8561   mkdir out
8562   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8563
8564   lt_compiler_flag="-o out/conftest2.$ac_objext"
8565   # Insert the option either (1) after the last *FLAGS variable, or
8566   # (2) before a word containing "conftest.", or (3) at the end.
8567   # Note that $ac_compile itself does not contain backslashes and begins
8568   # with a dollar sign (not a hyphen), so the echo should work correctly.
8569   lt_compile=`echo "$ac_compile" | $SED \
8570   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572   -e 's:$: $lt_compiler_flag:'`
8573   (eval echo "\"\$as_me:8573: $lt_compile\"" >&5)
8574   (eval "$lt_compile" 2>out/conftest.err)
8575   ac_status=$?
8576   cat out/conftest.err >&5
8577   echo "$as_me:8577: \$? = $ac_status" >&5
8578   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8579   then
8580     # The compiler can only warn and ignore the option if not recognized
8581     # So say no if there are warnings
8582     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8583     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8584     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8585       lt_cv_prog_compiler_c_o=yes
8586     fi
8587   fi
8588   chmod u+w . 2>&5
8589   $rm conftest*
8590   # SGI C++ compiler will create directory out/ii_files/ for
8591   # template instantiation
8592   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8593   $rm out/* && rmdir out
8594   cd ..
8595   rmdir conftest
8596   $rm conftest*
8597
8598fi
8599echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8600echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8601
8602
8603hard_links="nottested"
8604if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8605  # do not overwrite the value of need_locks provided by the user
8606  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8607echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8608  hard_links=yes
8609  $rm conftest*
8610  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8611  touch conftest.a
8612  ln conftest.a conftest.b 2>&5 || hard_links=no
8613  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8614  echo "$as_me:$LINENO: result: $hard_links" >&5
8615echo "${ECHO_T}$hard_links" >&6
8616  if test "$hard_links" = no; then
8617    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8618echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8619    need_locks=warn
8620  fi
8621else
8622  need_locks=no
8623fi
8624
8625echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8627
8628  runpath_var=
8629  allow_undefined_flag=
8630  enable_shared_with_static_runtimes=no
8631  archive_cmds=
8632  archive_expsym_cmds=
8633  old_archive_From_new_cmds=
8634  old_archive_from_expsyms_cmds=
8635  export_dynamic_flag_spec=
8636  whole_archive_flag_spec=
8637  thread_safe_flag_spec=
8638  hardcode_libdir_flag_spec=
8639  hardcode_libdir_flag_spec_ld=
8640  hardcode_libdir_separator=
8641  hardcode_direct=no
8642  hardcode_minus_L=no
8643  hardcode_shlibpath_var=unsupported
8644  link_all_deplibs=unknown
8645  hardcode_automatic=no
8646  module_cmds=
8647  module_expsym_cmds=
8648  always_export_symbols=no
8649  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8650  # include_expsyms should be a list of space-separated symbols to be *always*
8651  # included in the symbol list
8652  include_expsyms=
8653  # exclude_expsyms can be an extended regexp of symbols to exclude
8654  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8655  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8656  # as well as any symbol that contains `d'.
8657  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8658  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8659  # platforms (ab)use it in PIC code, but their linkers get confused if
8660  # the symbol is explicitly referenced.  Since portable code cannot
8661  # rely on this symbol name, it's probably fine to never include it in
8662  # preloaded symbol tables.
8663  extract_expsyms_cmds=
8664  # Just being paranoid about ensuring that cc_basename is set.
8665  for cc_temp in $compiler""; do
8666  case $cc_temp in
8667    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8668    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8669    \-*) ;;
8670    *) break;;
8671  esac
8672done
8673cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8674
8675  case $host_os in
8676  cygwin* | mingw* | pw32*)
8677    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8678    # When not using gcc, we currently assume that we are using
8679    # Microsoft Visual C++.
8680    if test "$GCC" != yes; then
8681      with_gnu_ld=no
8682    fi
8683    ;;
8684  interix*)
8685    # we just hope/assume this is gcc and not c89 (= MSVC++)
8686    with_gnu_ld=yes
8687    ;;
8688  openbsd*)
8689    with_gnu_ld=no
8690    ;;
8691  esac
8692
8693  ld_shlibs=yes
8694  if test "$with_gnu_ld" = yes; then
8695    # If archive_cmds runs LD, not CC, wlarc should be empty
8696    wlarc='${wl}'
8697
8698    # Set some defaults for GNU ld with shared library support. These
8699    # are reset later if shared libraries are not supported. Putting them
8700    # here allows them to be overridden if necessary.
8701    runpath_var=LD_RUN_PATH
8702    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8703    export_dynamic_flag_spec='${wl}--export-dynamic'
8704    # ancient GNU ld didn't support --whole-archive et. al.
8705    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8706        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8707      else
8708        whole_archive_flag_spec=
8709    fi
8710    supports_anon_versioning=no
8711    case `$LD -v 2>/dev/null` in
8712      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8713      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8714      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8715      *\ 2.11.*) ;; # other 2.11 versions
8716      *) supports_anon_versioning=yes ;;
8717    esac
8718
8719    # See if GNU ld supports shared libraries.
8720    case $host_os in
8721    aix3* | aix4* | aix5*)
8722      # On AIX/PPC, the GNU linker is very broken
8723      if test "$host_cpu" != ia64; then
8724        ld_shlibs=no
8725        cat <<EOF 1>&2
8726
8727*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8728*** to be unable to reliably create shared libraries on AIX.
8729*** Therefore, libtool is disabling shared libraries support.  If you
8730*** really care for shared libraries, you may want to modify your PATH
8731*** so that a non-GNU linker is found, and then restart.
8732
8733EOF
8734      fi
8735      ;;
8736
8737    amigaos*)
8738      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)'
8739      hardcode_libdir_flag_spec='-L$libdir'
8740      hardcode_minus_L=yes
8741
8742      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8743      # that the semantics of dynamic libraries on AmigaOS, at least up
8744      # to version 4, is to share data among multiple programs linked
8745      # with the same dynamic library.  Since this doesn't match the
8746      # behavior of shared libraries on other platforms, we can't use
8747      # them.
8748      ld_shlibs=no
8749      ;;
8750
8751    beos*)
8752      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8753        allow_undefined_flag=unsupported
8754        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8755        # support --undefined.  This deserves some investigation.  FIXME
8756        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757      else
8758        ld_shlibs=no
8759      fi
8760      ;;
8761
8762    cygwin* | mingw* | pw32*)
8763      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8764      # as there is no search path for DLLs.
8765      hardcode_libdir_flag_spec='-L$libdir'
8766      allow_undefined_flag=unsupported
8767      always_export_symbols=no
8768      enable_shared_with_static_runtimes=yes
8769      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8770
8771      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8772        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8773        # If the export-symbols file already is a .def file (1st line
8774        # is EXPORTS), use it as is; otherwise, prepend...
8775        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8776          cp $export_symbols $output_objdir/$soname.def;
8777        else
8778          echo EXPORTS > $output_objdir/$soname.def;
8779          cat $export_symbols >> $output_objdir/$soname.def;
8780        fi~
8781        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8782      else
8783        ld_shlibs=no
8784      fi
8785      ;;
8786
8787    interix3*)
8788      hardcode_direct=no
8789      hardcode_shlibpath_var=no
8790      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8791      export_dynamic_flag_spec='${wl}-E'
8792      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8793      # Instead, shared libraries are loaded at an image base (0x10000000 by
8794      # default) and relocated if they conflict, which is a slow very memory
8795      # consuming and fragmenting process.  To avoid this, we pick a random,
8796      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8797      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8798      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8799      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'
8800      ;;
8801
8802    linux*)
8803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8804        tmp_addflag=
8805        case $cc_basename,$host_cpu in
8806        pgcc*)                          # Portland Group C compiler
8807          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'
8808          tmp_addflag=' $pic_flag'
8809          ;;
8810        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8811          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'
8812          tmp_addflag=' $pic_flag -Mnomain' ;;
8813        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8814          tmp_addflag=' -i_dynamic' ;;
8815        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8816          tmp_addflag=' -i_dynamic -nofor_main' ;;
8817        ifc* | ifort*)                  # Intel Fortran compiler
8818          tmp_addflag=' -nofor_main' ;;
8819        esac
8820        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821
8822        if test $supports_anon_versioning = yes; then
8823          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8824  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8825  $echo "local: *; };" >> $output_objdir/$libname.ver~
8826          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8827        fi
8828      else
8829        ld_shlibs=no
8830      fi
8831      ;;
8832
8833    netbsd*)
8834      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8835        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8836        wlarc=
8837      else
8838        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8840      fi
8841      ;;
8842
8843    solaris*)
8844      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8845        ld_shlibs=no
8846        cat <<EOF 1>&2
8847
8848*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8849*** create shared libraries on Solaris systems.  Therefore, libtool
8850*** is disabling shared libraries support.  We urge you to upgrade GNU
8851*** binutils to release 2.9.1 or newer.  Another option is to modify
8852*** your PATH or compiler configuration so that the native linker is
8853*** used, and then restart.
8854
8855EOF
8856      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8857        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8859      else
8860        ld_shlibs=no
8861      fi
8862      ;;
8863
8864    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8865      case `$LD -v 2>&1` in
8866        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8867        ld_shlibs=no
8868        cat <<_LT_EOF 1>&2
8869
8870*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8871*** reliably create shared libraries on SCO systems.  Therefore, libtool
8872*** is disabling shared libraries support.  We urge you to upgrade GNU
8873*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8874*** your PATH or compiler configuration so that the native linker is
8875*** used, and then restart.
8876
8877_LT_EOF
8878        ;;
8879        *)
8880          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8881            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8882            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8883            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8884          else
8885            ld_shlibs=no
8886          fi
8887        ;;
8888      esac
8889      ;;
8890
8891    sunos4*)
8892      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893      wlarc=
8894      hardcode_direct=yes
8895      hardcode_shlibpath_var=no
8896      ;;
8897
8898    *)
8899      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8900        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902      else
8903        ld_shlibs=no
8904      fi
8905      ;;
8906    esac
8907
8908    if test "$ld_shlibs" = no; then
8909      runpath_var=
8910      hardcode_libdir_flag_spec=
8911      export_dynamic_flag_spec=
8912      whole_archive_flag_spec=
8913    fi
8914  else
8915    # PORTME fill in a description of your system's linker (not GNU ld)
8916    case $host_os in
8917    aix3*)
8918      allow_undefined_flag=unsupported
8919      always_export_symbols=yes
8920      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'
8921      # Note: this linker hardcodes the directories in LIBPATH if there
8922      # are no directories specified by -L.
8923      hardcode_minus_L=yes
8924      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8925        # Neither direct hardcoding nor static linking is supported with a
8926        # broken collect2.
8927        hardcode_direct=unsupported
8928      fi
8929      ;;
8930
8931    aix4* | aix5*)
8932      if test "$host_cpu" = ia64; then
8933        # On IA64, the linker does run time linking by default, so we don't
8934        # have to do anything special.
8935        aix_use_runtimelinking=no
8936        exp_sym_flag='-Bexport'
8937        no_entry_flag=""
8938      else
8939        # If we're using GNU nm, then we don't want the "-C" option.
8940        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8941        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8942          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'
8943        else
8944          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'
8945        fi
8946        aix_use_runtimelinking=no
8947
8948        # Test if we are trying to use run time linking or normal
8949        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8950        # need to do runtime linking.
8951        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8952          for ld_flag in $LDFLAGS; do
8953          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8954            aix_use_runtimelinking=yes
8955            break
8956          fi
8957          done
8958          ;;
8959        esac
8960
8961        exp_sym_flag='-bexport'
8962        no_entry_flag='-bnoentry'
8963      fi
8964
8965      # When large executables or shared objects are built, AIX ld can
8966      # have problems creating the table of contents.  If linking a library
8967      # or program results in "error TOC overflow" add -mminimal-toc to
8968      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8969      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8970
8971      archive_cmds=''
8972      hardcode_direct=yes
8973      hardcode_libdir_separator=':'
8974      link_all_deplibs=yes
8975
8976      if test "$GCC" = yes; then
8977        case $host_os in aix4.[012]|aix4.[012].*)
8978        # We only want to do this on AIX 4.2 and lower, the check
8979        # below for broken collect2 doesn't work under 4.3+
8980          collect2name=`${CC} -print-prog-name=collect2`
8981          if test -f "$collect2name" && \
8982           strings "$collect2name" | grep resolve_lib_name >/dev/null
8983          then
8984          # We have reworked collect2
8985          hardcode_direct=yes
8986          else
8987          # We have old collect2
8988          hardcode_direct=unsupported
8989          # It fails to find uninstalled libraries when the uninstalled
8990          # path is not listed in the libpath.  Setting hardcode_minus_L
8991          # to unsupported forces relinking
8992          hardcode_minus_L=yes
8993          hardcode_libdir_flag_spec='-L$libdir'
8994          hardcode_libdir_separator=
8995          fi
8996          ;;
8997        esac
8998        shared_flag='-shared'
8999        if test "$aix_use_runtimelinking" = yes; then
9000          shared_flag="$shared_flag "'${wl}-G'
9001        fi
9002      else
9003        # not using gcc
9004        if test "$host_cpu" = ia64; then
9005        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006        # chokes on -Wl,-G. The following line is correct:
9007          shared_flag='-G'
9008        else
9009          if test "$aix_use_runtimelinking" = yes; then
9010            shared_flag='${wl}-G'
9011          else
9012            shared_flag='${wl}-bM:SRE'
9013          fi
9014        fi
9015      fi
9016
9017      # It seems that -bexpall does not export symbols beginning with
9018      # underscore (_), so it is better to generate a list of symbols to export.
9019      always_export_symbols=yes
9020      if test "$aix_use_runtimelinking" = yes; then
9021        # Warning - without using the other runtime loading flags (-brtl),
9022        # -berok will link without error, but may produce a broken library.
9023        allow_undefined_flag='-berok'
9024       # Determine the default libpath from the value encoded in an empty executable.
9025       cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h.  */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h.  */
9031
9032int
9033main ()
9034{
9035
9036  ;
9037  return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042  (eval $ac_link) 2>conftest.er1
9043  ac_status=$?
9044  grep -v '^ *+' conftest.er1 >conftest.err
9045  rm -f conftest.er1
9046  cat conftest.err >&5
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); } &&
9049         { ac_try='test -z "$ac_c_werror_flag"
9050                         || test ! -s conftest.err'
9051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052  (eval $ac_try) 2>&5
9053  ac_status=$?
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); }; } &&
9056         { ac_try='test -s conftest$ac_exeext'
9057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058  (eval $ac_try) 2>&5
9059  ac_status=$?
9060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061  (exit $ac_status); }; }; then
9062
9063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9064}'`
9065# Check for a 64-bit object if we didn't find anything.
9066if 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; }
9067}'`; fi
9068else
9069  echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072fi
9073rm -f conftest.err conftest.$ac_objext \
9074      conftest$ac_exeext conftest.$ac_ext
9075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9076
9077       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9078        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"
9079       else
9080        if test "$host_cpu" = ia64; then
9081          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9082          allow_undefined_flag="-z nodefs"
9083          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"
9084        else
9085         # Determine the default libpath from the value encoded in an empty executable.
9086         cat >conftest.$ac_ext <<_ACEOF
9087/* confdefs.h.  */
9088_ACEOF
9089cat confdefs.h >>conftest.$ac_ext
9090cat >>conftest.$ac_ext <<_ACEOF
9091/* end confdefs.h.  */
9092
9093int
9094main ()
9095{
9096
9097  ;
9098  return 0;
9099}
9100_ACEOF
9101rm -f conftest.$ac_objext conftest$ac_exeext
9102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9103  (eval $ac_link) 2>conftest.er1
9104  ac_status=$?
9105  grep -v '^ *+' conftest.er1 >conftest.err
9106  rm -f conftest.er1
9107  cat conftest.err >&5
9108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109  (exit $ac_status); } &&
9110         { ac_try='test -z "$ac_c_werror_flag"
9111                         || test ! -s conftest.err'
9112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113  (eval $ac_try) 2>&5
9114  ac_status=$?
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); }; } &&
9117         { ac_try='test -s conftest$ac_exeext'
9118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119  (eval $ac_try) 2>&5
9120  ac_status=$?
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); }; }; then
9123
9124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9125}'`
9126# Check for a 64-bit object if we didn't find anything.
9127if 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; }
9128}'`; fi
9129else
9130  echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133fi
9134rm -f conftest.err conftest.$ac_objext \
9135      conftest$ac_exeext conftest.$ac_ext
9136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9137
9138         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9139          # Warning - without using the other run time loading flags,
9140          # -berok will link without error, but may produce a broken library.
9141          no_undefined_flag=' ${wl}-bernotok'
9142          allow_undefined_flag=' ${wl}-berok'
9143          # Exported symbols can be pulled into shared objects from archives
9144          whole_archive_flag_spec='$convenience'
9145          archive_cmds_need_lc=yes
9146          # This is similar to how AIX traditionally builds its shared libraries.
9147          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'
9148        fi
9149      fi
9150      ;;
9151
9152    amigaos*)
9153      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)'
9154      hardcode_libdir_flag_spec='-L$libdir'
9155      hardcode_minus_L=yes
9156      # see comment about different semantics on the GNU ld section
9157      ld_shlibs=no
9158      ;;
9159
9160    bsdi[45]*)
9161      export_dynamic_flag_spec=-rdynamic
9162      ;;
9163
9164    cygwin* | mingw* | pw32*)
9165      # When not using gcc, we currently assume that we are using
9166      # Microsoft Visual C++.
9167      # hardcode_libdir_flag_spec is actually meaningless, as there is
9168      # no search path for DLLs.
9169      hardcode_libdir_flag_spec=' '
9170      allow_undefined_flag=unsupported
9171      # Tell ltmain to make .lib files, not .a files.
9172      libext=lib
9173      # Tell ltmain to make .dll files, not .so files.
9174      shrext_cmds=".dll"
9175      # FIXME: Setting linknames here is a bad hack.
9176      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9177      # The linker will automatically build a .lib file if we build a DLL.
9178      old_archive_From_new_cmds='true'
9179      # FIXME: Should let the user specify the lib program.
9180      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9181      fix_srcfile_path='`cygpath -w "$srcfile"`'
9182      enable_shared_with_static_runtimes=yes
9183      ;;
9184
9185    darwin* | rhapsody*)
9186      case $host_os in
9187        rhapsody* | darwin1.[012])
9188         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9189         ;;
9190       *) # Darwin 1.3 on
9191         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9192           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9193         else
9194           case ${MACOSX_DEPLOYMENT_TARGET} in
9195             10.[012])
9196               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9197               ;;
9198             10.*)
9199               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9200               ;;
9201           esac
9202         fi
9203         ;;
9204      esac
9205      archive_cmds_need_lc=no
9206      hardcode_direct=no
9207      hardcode_automatic=yes
9208      hardcode_shlibpath_var=unsupported
9209      whole_archive_flag_spec=''
9210      link_all_deplibs=yes
9211    if test "$GCC" = yes ; then
9212        output_verbose_link_cmd='echo'
9213        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9214      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9215      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9216      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}'
9217      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}'
9218    else
9219      case $cc_basename in
9220        xlc*)
9221         output_verbose_link_cmd='echo'
9222         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9223         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9224          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9225         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}'
9226          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}'
9227          ;;
9228       *)
9229         ld_shlibs=no
9230          ;;
9231      esac
9232    fi
9233      ;;
9234
9235    dgux*)
9236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237      hardcode_libdir_flag_spec='-L$libdir'
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    freebsd1*)
9242      ld_shlibs=no
9243      ;;
9244
9245    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9246    # support.  Future versions do this automatically, but an explicit c++rt0.o
9247    # does not break anything, and helps significantly (at the cost of a little
9248    # extra space).
9249    freebsd2.2*)
9250      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9251      hardcode_libdir_flag_spec='-R$libdir'
9252      hardcode_direct=yes
9253      hardcode_shlibpath_var=no
9254      ;;
9255
9256    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9257    freebsd2*)
9258      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259      hardcode_direct=yes
9260      hardcode_minus_L=yes
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9265    freebsd* | kfreebsd*-gnu | dragonfly*)
9266      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9267      hardcode_libdir_flag_spec='-R$libdir'
9268      hardcode_direct=yes
9269      hardcode_shlibpath_var=no
9270      ;;
9271
9272    hpux9*)
9273      if test "$GCC" = yes; then
9274        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'
9275      else
9276        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'
9277      fi
9278      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9279      hardcode_libdir_separator=:
9280      hardcode_direct=yes
9281
9282      # hardcode_minus_L: Not really in the search PATH,
9283      # but as the default location of the library.
9284      hardcode_minus_L=yes
9285      export_dynamic_flag_spec='${wl}-E'
9286      ;;
9287
9288    hpux10*)
9289      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9290        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9291      else
9292        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9293      fi
9294      if test "$with_gnu_ld" = no; then
9295        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9296        hardcode_libdir_separator=:
9297
9298        hardcode_direct=yes
9299        export_dynamic_flag_spec='${wl}-E'
9300
9301        # hardcode_minus_L: Not really in the search PATH,
9302        # but as the default location of the library.
9303        hardcode_minus_L=yes
9304      fi
9305      ;;
9306
9307    hpux11*)
9308      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9309        case $host_cpu in
9310        hppa*64*)
9311          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312          ;;
9313        ia64*)
9314          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9315          ;;
9316        *)
9317          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9318          ;;
9319        esac
9320      else
9321        case $host_cpu in
9322        hppa*64*)
9323          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324          ;;
9325        ia64*)
9326          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9327          ;;
9328        *)
9329          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9330          ;;
9331        esac
9332      fi
9333      if test "$with_gnu_ld" = no; then
9334        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335        hardcode_libdir_separator=:
9336
9337        case $host_cpu in
9338        hppa*64*|ia64*)
9339          hardcode_libdir_flag_spec_ld='+b $libdir'
9340          hardcode_direct=no
9341          hardcode_shlibpath_var=no
9342          ;;
9343        *)
9344          hardcode_direct=yes
9345          export_dynamic_flag_spec='${wl}-E'
9346
9347          # hardcode_minus_L: Not really in the search PATH,
9348          # but as the default location of the library.
9349          hardcode_minus_L=yes
9350          ;;
9351        esac
9352      fi
9353      ;;
9354
9355    irix5* | irix6* | nonstopux*)
9356      if test "$GCC" = yes; then
9357        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'
9358      else
9359        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'
9360        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9361      fi
9362      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9363      hardcode_libdir_separator=:
9364      link_all_deplibs=yes
9365      ;;
9366
9367    netbsd*)
9368      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9369        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9370      else
9371        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9372      fi
9373      hardcode_libdir_flag_spec='-R$libdir'
9374      hardcode_direct=yes
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    newsos6)
9379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380      hardcode_direct=yes
9381      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382      hardcode_libdir_separator=:
9383      hardcode_shlibpath_var=no
9384      ;;
9385
9386    openbsd*)
9387      hardcode_direct=yes
9388      hardcode_shlibpath_var=no
9389      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9390        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9391        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9392        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393        export_dynamic_flag_spec='${wl}-E'
9394      else
9395       case $host_os in
9396         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9397           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9398           hardcode_libdir_flag_spec='-R$libdir'
9399           ;;
9400         *)
9401           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9402           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9403           ;;
9404       esac
9405      fi
9406      ;;
9407
9408    os2*)
9409      hardcode_libdir_flag_spec='-L$libdir'
9410      hardcode_minus_L=yes
9411      allow_undefined_flag=unsupported
9412      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'
9413      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9414      ;;
9415
9416    osf3*)
9417      if test "$GCC" = yes; then
9418        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9419        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'
9420      else
9421        allow_undefined_flag=' -expect_unresolved \*'
9422        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'
9423      fi
9424      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425      hardcode_libdir_separator=:
9426      ;;
9427
9428    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9429      if test "$GCC" = yes; then
9430        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9431        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'
9432        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9433      else
9434        allow_undefined_flag=' -expect_unresolved \*'
9435        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'
9436        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9437        $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'
9438
9439        # Both c and cxx compiler support -rpath directly
9440        hardcode_libdir_flag_spec='-rpath $libdir'
9441      fi
9442      hardcode_libdir_separator=:
9443      ;;
9444
9445    solaris*)
9446      no_undefined_flag=' -z text'
9447      if test "$GCC" = yes; then
9448        wlarc='${wl}'
9449        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9451          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9452      else
9453        wlarc=''
9454        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9456        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9457      fi
9458      hardcode_libdir_flag_spec='-R$libdir'
9459      hardcode_shlibpath_var=no
9460      case $host_os in
9461      solaris2.[0-5] | solaris2.[0-5].*) ;;
9462      *)
9463        # The compiler driver will combine linker options so we
9464        # cannot just pass the convience library names through
9465        # without $wl, iff we do not link with $LD.
9466        # Luckily, gcc supports the same syntax we need for Sun Studio.
9467        # Supported since Solaris 2.6 (maybe 2.5.1?)
9468        case $wlarc in
9469        '')
9470          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9471        *)
9472          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' ;;
9473        esac ;;
9474      esac
9475      link_all_deplibs=yes
9476      ;;
9477
9478    sunos4*)
9479      if test "x$host_vendor" = xsequent; then
9480        # Use $CC to link under sequent, because it throws in some extra .o
9481        # files that make .init and .fini sections work.
9482        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9483      else
9484        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9485      fi
9486      hardcode_libdir_flag_spec='-L$libdir'
9487      hardcode_direct=yes
9488      hardcode_minus_L=yes
9489      hardcode_shlibpath_var=no
9490      ;;
9491
9492    sysv4)
9493      case $host_vendor in
9494        sni)
9495          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496          hardcode_direct=yes # is this really true???
9497        ;;
9498        siemens)
9499          ## LD is ld it makes a PLAMLIB
9500          ## CC just makes a GrossModule.
9501          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9502          reload_cmds='$CC -r -o $output$reload_objs'
9503          hardcode_direct=no
9504        ;;
9505        motorola)
9506          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9508        ;;
9509      esac
9510      runpath_var='LD_RUN_PATH'
9511      hardcode_shlibpath_var=no
9512      ;;
9513
9514    sysv4.3*)
9515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516      hardcode_shlibpath_var=no
9517      export_dynamic_flag_spec='-Bexport'
9518      ;;
9519
9520    sysv4*MP*)
9521      if test -d /usr/nec; then
9522        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523        hardcode_shlibpath_var=no
9524        runpath_var=LD_RUN_PATH
9525        hardcode_runpath_var=yes
9526        ld_shlibs=yes
9527      fi
9528      ;;
9529
9530    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9531      no_undefined_flag='${wl}-z,text'
9532      archive_cmds_need_lc=no
9533      hardcode_shlibpath_var=no
9534      runpath_var='LD_RUN_PATH'
9535
9536      if test "$GCC" = yes; then
9537        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9539      else
9540        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9542      fi
9543      ;;
9544
9545    sysv5* | sco3.2v5* | sco5v6*)
9546      # Note: We can NOT use -z defs as we might desire, because we do not
9547      # link with -lc, and that would cause any symbols used from libc to
9548      # always be unresolved, which means just about no library would
9549      # ever link correctly.  If we're not using GNU ld we use -z text
9550      # though, which does catch some bad symbols but isn't as heavy-handed
9551      # as -z defs.
9552      no_undefined_flag='${wl}-z,text'
9553      allow_undefined_flag='${wl}-z,nodefs'
9554      archive_cmds_need_lc=no
9555      hardcode_shlibpath_var=no
9556      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9557      hardcode_libdir_separator=':'
9558      link_all_deplibs=yes
9559      export_dynamic_flag_spec='${wl}-Bexport'
9560      runpath_var='LD_RUN_PATH'
9561
9562      if test "$GCC" = yes; then
9563        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9564        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9565      else
9566        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9568      fi
9569      ;;
9570
9571    uts4*)
9572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573      hardcode_libdir_flag_spec='-L$libdir'
9574      hardcode_shlibpath_var=no
9575      ;;
9576
9577    *)
9578      ld_shlibs=no
9579      ;;
9580    esac
9581  fi
9582
9583echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9584echo "${ECHO_T}$ld_shlibs" >&6
9585test "$ld_shlibs" = no && can_build_shared=no
9586
9587#
9588# Do we need to explicitly link libc?
9589#
9590case "x$archive_cmds_need_lc" in
9591x|xyes)
9592  # Assume -lc should be added
9593  archive_cmds_need_lc=yes
9594
9595  if test "$enable_shared" = yes && test "$GCC" = yes; then
9596    case $archive_cmds in
9597    *'~'*)
9598      # FIXME: we may have to deal with multi-command sequences.
9599      ;;
9600    '$CC '*)
9601      # Test whether the compiler implicitly links with -lc since on some
9602      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9603      # to ld, don't add -lc before -lgcc.
9604      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9605echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9606      $rm conftest*
9607      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610  (eval $ac_compile) 2>&5
9611  ac_status=$?
9612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613  (exit $ac_status); } 2>conftest.err; then
9614        soname=conftest
9615        lib=conftest
9616        libobjs=conftest.$ac_objext
9617        deplibs=
9618        wl=$lt_prog_compiler_wl
9619        pic_flag=$lt_prog_compiler_pic
9620        compiler_flags=-v
9621        linker_flags=-v
9622        verstring=
9623        output_objdir=.
9624        libname=conftest
9625        lt_save_allow_undefined_flag=$allow_undefined_flag
9626        allow_undefined_flag=
9627        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9628  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9629  ac_status=$?
9630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631  (exit $ac_status); }
9632        then
9633          archive_cmds_need_lc=no
9634        else
9635          archive_cmds_need_lc=yes
9636        fi
9637        allow_undefined_flag=$lt_save_allow_undefined_flag
9638      else
9639        cat conftest.err 1>&5
9640      fi
9641      $rm conftest*
9642      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9643echo "${ECHO_T}$archive_cmds_need_lc" >&6
9644      ;;
9645    esac
9646  fi
9647  ;;
9648esac
9649
9650echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9651echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9652library_names_spec=
9653libname_spec='lib$name'
9654soname_spec=
9655shrext_cmds=".so"
9656postinstall_cmds=
9657postuninstall_cmds=
9658finish_cmds=
9659finish_eval=
9660shlibpath_var=
9661shlibpath_overrides_runpath=unknown
9662version_type=none
9663dynamic_linker="$host_os ld.so"
9664sys_lib_dlsearch_path_spec="/lib /usr/lib"
9665if test "$GCC" = yes; then
9666  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9667  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9668    # if the path contains ";" then we assume it to be the separator
9669    # otherwise default to the standard path separator (i.e. ":") - it is
9670    # assumed that no part of a normal pathname contains ";" but that should
9671    # okay in the real world where ";" in dirpaths is itself problematic.
9672    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9673  else
9674    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9675  fi
9676else
9677  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9678fi
9679need_lib_prefix=unknown
9680hardcode_into_libs=no
9681
9682# when you set need_version to no, make sure it does not cause -set_version
9683# flags to be left without arguments
9684need_version=unknown
9685
9686case $host_os in
9687aix3*)
9688  version_type=linux
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9690  shlibpath_var=LIBPATH
9691
9692  # AIX 3 has no versioning support, so we append a major version to the name.
9693  soname_spec='${libname}${release}${shared_ext}$major'
9694  ;;
9695
9696aix4* | aix5*)
9697  version_type=linux
9698  need_lib_prefix=no
9699  need_version=no
9700  hardcode_into_libs=yes
9701  if test "$host_cpu" = ia64; then
9702    # AIX 5 supports IA64
9703    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9704    shlibpath_var=LD_LIBRARY_PATH
9705  else
9706    # With GCC up to 2.95.x, collect2 would create an import file
9707    # for dependence libraries.  The import file would start with
9708    # the line `#! .'.  This would cause the generated library to
9709    # depend on `.', always an invalid library.  This was fixed in
9710    # development snapshots of GCC prior to 3.0.
9711    case $host_os in
9712      aix4 | aix4.[01] | aix4.[01].*)
9713      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9714           echo ' yes '
9715           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9716        :
9717      else
9718        can_build_shared=no
9719      fi
9720      ;;
9721    esac
9722    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9723    # soname into executable. Probably we can add versioning support to
9724    # collect2, so additional links can be useful in future.
9725    if test "$aix_use_runtimelinking" = yes; then
9726      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9727      # instead of lib<name>.a to let people know that these are not
9728      # typical AIX shared libraries.
9729      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730    else
9731      # We preserve .a as extension for shared libraries through AIX4.2
9732      # and later when we are not doing run time linking.
9733      library_names_spec='${libname}${release}.a $libname.a'
9734      soname_spec='${libname}${release}${shared_ext}$major'
9735    fi
9736    shlibpath_var=LIBPATH
9737  fi
9738  ;;
9739
9740amigaos*)
9741  library_names_spec='$libname.ixlibrary $libname.a'
9742  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9743  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'
9744  ;;
9745
9746beos*)
9747  library_names_spec='${libname}${shared_ext}'
9748  dynamic_linker="$host_os ld.so"
9749  shlibpath_var=LIBRARY_PATH
9750  ;;
9751
9752bsdi[45]*)
9753  version_type=linux
9754  need_version=no
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9758  shlibpath_var=LD_LIBRARY_PATH
9759  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9760  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9761  # the default ld.so.conf also contains /usr/contrib/lib and
9762  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9763  # libtool to hard-code these into programs
9764  ;;
9765
9766cygwin* | mingw* | pw32*)
9767  version_type=windows
9768  shrext_cmds=".dll"
9769  need_version=no
9770  need_lib_prefix=no
9771
9772  case $GCC,$host_os in
9773  yes,cygwin* | yes,mingw* | yes,pw32*)
9774    library_names_spec='$libname.dll.a'
9775    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9776    postinstall_cmds='base_file=`basename \${file}`~
9777      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9778      dldir=$destdir/`dirname \$dlpath`~
9779      test -d \$dldir || mkdir -p \$dldir~
9780      $install_prog $dir/$dlname \$dldir/$dlname~
9781      chmod a+x \$dldir/$dlname'
9782    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9783      dlpath=$dir/\$dldll~
9784       $rm \$dlpath'
9785    shlibpath_overrides_runpath=yes
9786
9787    case $host_os in
9788    cygwin*)
9789      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9790      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9791      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9792      ;;
9793    mingw*)
9794      # MinGW DLLs use traditional 'lib' prefix
9795      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9796      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9797      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9798        # It is most probably a Windows format PATH printed by
9799        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9800        # path with ; separators, and with drive letters. We can handle the
9801        # drive letters (cygwin fileutils understands them), so leave them,
9802        # especially as we might pass files found there to a mingw objdump,
9803        # which wouldn't understand a cygwinified path. Ahh.
9804        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9805      else
9806        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9807      fi
9808      ;;
9809    pw32*)
9810      # pw32 DLLs use 'pw' prefix rather than 'lib'
9811      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812      ;;
9813    esac
9814    ;;
9815
9816  *)
9817    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9818    ;;
9819  esac
9820  dynamic_linker='Win32 ld.exe'
9821  # FIXME: first we should search . and the directory the executable is in
9822  shlibpath_var=PATH
9823  ;;
9824
9825darwin* | rhapsody*)
9826  dynamic_linker="$host_os dyld"
9827  version_type=darwin
9828  need_lib_prefix=no
9829  need_version=no
9830  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9831  soname_spec='${libname}${release}${major}$shared_ext'
9832  shlibpath_overrides_runpath=yes
9833  shlibpath_var=DYLD_LIBRARY_PATH
9834  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9835  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9836  if test "$GCC" = yes; then
9837    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"`
9838  else
9839    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9840  fi
9841  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9842  ;;
9843
9844dgux*)
9845  version_type=linux
9846  need_lib_prefix=no
9847  need_version=no
9848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9849  soname_spec='${libname}${release}${shared_ext}$major'
9850  shlibpath_var=LD_LIBRARY_PATH
9851  ;;
9852
9853freebsd1*)
9854  dynamic_linker=no
9855  ;;
9856
9857kfreebsd*-gnu)
9858  version_type=linux
9859  need_lib_prefix=no
9860  need_version=no
9861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9862  soname_spec='${libname}${release}${shared_ext}$major'
9863  shlibpath_var=LD_LIBRARY_PATH
9864  shlibpath_overrides_runpath=no
9865  hardcode_into_libs=yes
9866  dynamic_linker='GNU ld.so'
9867  ;;
9868
9869freebsd* | dragonfly*)
9870  # DragonFly does not have aout.  When/if they implement a new
9871  # versioning mechanism, adjust this.
9872  if test -x /usr/bin/objformat; then
9873    objformat=`/usr/bin/objformat`
9874  else
9875    case $host_os in
9876    freebsd[123]*) objformat=aout ;;
9877    *) objformat=elf ;;
9878    esac
9879  fi
9880  version_type=freebsd-$objformat
9881  case $version_type in
9882    freebsd-elf*)
9883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9884      need_version=no
9885      need_lib_prefix=no
9886      ;;
9887    freebsd-*)
9888      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9889      need_version=yes
9890      ;;
9891  esac
9892  shlibpath_var=LD_LIBRARY_PATH
9893  case $host_os in
9894  freebsd2*)
9895    shlibpath_overrides_runpath=yes
9896    ;;
9897  freebsd3.[01]* | freebsdelf3.[01]*)
9898    shlibpath_overrides_runpath=yes
9899    hardcode_into_libs=yes
9900    ;;
9901  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9902  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9903    shlibpath_overrides_runpath=no
9904    hardcode_into_libs=yes
9905    ;;
9906  freebsd*) # from 4.6 on
9907    shlibpath_overrides_runpath=yes
9908    hardcode_into_libs=yes
9909    ;;
9910  esac
9911  ;;
9912
9913gnu*)
9914  version_type=linux
9915  need_lib_prefix=no
9916  need_version=no
9917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9918  soname_spec='${libname}${release}${shared_ext}$major'
9919  shlibpath_var=LD_LIBRARY_PATH
9920  hardcode_into_libs=yes
9921  ;;
9922
9923hpux9* | hpux10* | hpux11*)
9924  # Give a soname corresponding to the major version so that dld.sl refuses to
9925  # link against other versions.
9926  version_type=sunos
9927  need_lib_prefix=no
9928  need_version=no
9929  case $host_cpu in
9930  ia64*)
9931    shrext_cmds='.so'
9932    hardcode_into_libs=yes
9933    dynamic_linker="$host_os dld.so"
9934    shlibpath_var=LD_LIBRARY_PATH
9935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937    soname_spec='${libname}${release}${shared_ext}$major'
9938    if test "X$HPUX_IA64_MODE" = X32; then
9939      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9940    else
9941      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9942    fi
9943    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944    ;;
9945   hppa*64*)
9946     shrext_cmds='.sl'
9947     hardcode_into_libs=yes
9948     dynamic_linker="$host_os dld.sl"
9949     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952     soname_spec='${libname}${release}${shared_ext}$major'
9953     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9955     ;;
9956   *)
9957    shrext_cmds='.sl'
9958    dynamic_linker="$host_os dld.sl"
9959    shlibpath_var=SHLIB_PATH
9960    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9961    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962    soname_spec='${libname}${release}${shared_ext}$major'
9963    ;;
9964  esac
9965  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9966  postinstall_cmds='chmod 555 $lib'
9967  ;;
9968
9969interix3*)
9970  version_type=linux
9971  need_lib_prefix=no
9972  need_version=no
9973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974  soname_spec='${libname}${release}${shared_ext}$major'
9975  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9976  shlibpath_var=LD_LIBRARY_PATH
9977  shlibpath_overrides_runpath=no
9978  hardcode_into_libs=yes
9979  ;;
9980
9981irix5* | irix6* | nonstopux*)
9982  case $host_os in
9983    nonstopux*) version_type=nonstopux ;;
9984    *)
9985        if test "$lt_cv_prog_gnu_ld" = yes; then
9986                version_type=linux
9987        else
9988                version_type=irix
9989        fi ;;
9990  esac
9991  need_lib_prefix=no
9992  need_version=no
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9995  case $host_os in
9996  irix5* | nonstopux*)
9997    libsuff= shlibsuff=
9998    ;;
9999  *)
10000    case $LD in # libtool.m4 will add one of these switches to LD
10001    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10002      libsuff= shlibsuff= libmagic=32-bit;;
10003    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10004      libsuff=32 shlibsuff=N32 libmagic=N32;;
10005    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10006      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10007    *) libsuff= shlibsuff= libmagic=never-match;;
10008    esac
10009    ;;
10010  esac
10011  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10012  shlibpath_overrides_runpath=no
10013  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10014  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10015  hardcode_into_libs=yes
10016  ;;
10017
10018# No shared lib support for Linux oldld, aout, or coff.
10019linux*oldld* | linux*aout* | linux*coff*)
10020  dynamic_linker=no
10021  ;;
10022
10023# This must be Linux ELF.
10024linux*)
10025  version_type=linux
10026  need_lib_prefix=no
10027  need_version=no
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029  soname_spec='${libname}${release}${shared_ext}$major'
10030  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10031  shlibpath_var=LD_LIBRARY_PATH
10032  shlibpath_overrides_runpath=no
10033  # This implies no fast_install, which is unacceptable.
10034  # Some rework will be needed to allow for fast_install
10035  # before this can be enabled.
10036  hardcode_into_libs=yes
10037
10038  # Append ld.so.conf contents to the search path
10039  if test -f /etc/ld.so.conf; then
10040    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' ' '`
10041    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10042  fi
10043
10044  # We used to test for /lib/ld.so.1 and disable shared libraries on
10045  # powerpc, because MkLinux only supported shared libraries with the
10046  # GNU dynamic linker.  Since this was broken with cross compilers,
10047  # most powerpc-linux boxes support dynamic linking these days and
10048  # people can always --disable-shared, the test was removed, and we
10049  # assume the GNU/Linux dynamic linker is in use.
10050  dynamic_linker='GNU/Linux ld.so'
10051  ;;
10052
10053knetbsd*-gnu)
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  shlibpath_overrides_runpath=no
10061  hardcode_into_libs=yes
10062  dynamic_linker='GNU ld.so'
10063  ;;
10064
10065netbsd*)
10066  version_type=sunos
10067  need_lib_prefix=no
10068  need_version=no
10069  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10071    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10072    dynamic_linker='NetBSD (a.out) ld.so'
10073  else
10074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075    soname_spec='${libname}${release}${shared_ext}$major'
10076    dynamic_linker='NetBSD ld.elf_so'
10077  fi
10078  shlibpath_var=LD_LIBRARY_PATH
10079  shlibpath_overrides_runpath=yes
10080  hardcode_into_libs=yes
10081  ;;
10082
10083newsos6)
10084  version_type=linux
10085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086  shlibpath_var=LD_LIBRARY_PATH
10087  shlibpath_overrides_runpath=yes
10088  ;;
10089
10090nto-qnx*)
10091  version_type=linux
10092  need_lib_prefix=no
10093  need_version=no
10094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095  soname_spec='${libname}${release}${shared_ext}$major'
10096  shlibpath_var=LD_LIBRARY_PATH
10097  shlibpath_overrides_runpath=yes
10098  ;;
10099
10100openbsd*)
10101  version_type=sunos
10102  sys_lib_dlsearch_path_spec="/usr/lib"
10103  need_lib_prefix=no
10104  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10105  case $host_os in
10106    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10107    *)                         need_version=no  ;;
10108  esac
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10110  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10111  shlibpath_var=LD_LIBRARY_PATH
10112  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10113    case $host_os in
10114      openbsd2.[89] | openbsd2.[89].*)
10115        shlibpath_overrides_runpath=no
10116        ;;
10117      *)
10118        shlibpath_overrides_runpath=yes
10119        ;;
10120      esac
10121  else
10122    shlibpath_overrides_runpath=yes
10123  fi
10124  ;;
10125
10126os2*)
10127  libname_spec='$name'
10128  shrext_cmds=".dll"
10129  need_lib_prefix=no
10130  library_names_spec='$libname${shared_ext} $libname.a'
10131  dynamic_linker='OS/2 ld.exe'
10132  shlibpath_var=LIBPATH
10133  ;;
10134
10135osf3* | osf4* | osf5*)
10136  version_type=osf
10137  need_lib_prefix=no
10138  need_version=no
10139  soname_spec='${libname}${release}${shared_ext}$major'
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141  shlibpath_var=LD_LIBRARY_PATH
10142  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10143  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10144  ;;
10145
10146solaris*)
10147  version_type=linux
10148  need_lib_prefix=no
10149  need_version=no
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  shlibpath_var=LD_LIBRARY_PATH
10153  shlibpath_overrides_runpath=yes
10154  hardcode_into_libs=yes
10155  # ldd complains unless libraries are executable
10156  postinstall_cmds='chmod +x $lib'
10157  ;;
10158
10159sunos4*)
10160  version_type=sunos
10161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10162  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10163  shlibpath_var=LD_LIBRARY_PATH
10164  shlibpath_overrides_runpath=yes
10165  if test "$with_gnu_ld" = yes; then
10166    need_lib_prefix=no
10167  fi
10168  need_version=yes
10169  ;;
10170
10171sysv4 | sysv4.3*)
10172  version_type=linux
10173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174  soname_spec='${libname}${release}${shared_ext}$major'
10175  shlibpath_var=LD_LIBRARY_PATH
10176  case $host_vendor in
10177    sni)
10178      shlibpath_overrides_runpath=no
10179      need_lib_prefix=no
10180      export_dynamic_flag_spec='${wl}-Blargedynsym'
10181      runpath_var=LD_RUN_PATH
10182      ;;
10183    siemens)
10184      need_lib_prefix=no
10185      ;;
10186    motorola)
10187      need_lib_prefix=no
10188      need_version=no
10189      shlibpath_overrides_runpath=no
10190      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10191      ;;
10192  esac
10193  ;;
10194
10195sysv4*MP*)
10196  if test -d /usr/nec ;then
10197    version_type=linux
10198    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10199    soname_spec='$libname${shared_ext}.$major'
10200    shlibpath_var=LD_LIBRARY_PATH
10201  fi
10202  ;;
10203
10204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10205  version_type=freebsd-elf
10206  need_lib_prefix=no
10207  need_version=no
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10209  soname_spec='${libname}${release}${shared_ext}$major'
10210  shlibpath_var=LD_LIBRARY_PATH
10211  hardcode_into_libs=yes
10212  if test "$with_gnu_ld" = yes; then
10213    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10214    shlibpath_overrides_runpath=no
10215  else
10216    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10217    shlibpath_overrides_runpath=yes
10218    case $host_os in
10219      sco3.2v5*)
10220        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10221        ;;
10222    esac
10223  fi
10224  sys_lib_dlsearch_path_spec='/usr/lib'
10225  ;;
10226
10227uts4*)
10228  version_type=linux
10229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  shlibpath_var=LD_LIBRARY_PATH
10232  ;;
10233
10234*)
10235  dynamic_linker=no
10236  ;;
10237esac
10238echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10239echo "${ECHO_T}$dynamic_linker" >&6
10240test "$dynamic_linker" = no && can_build_shared=no
10241
10242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10243if test "$GCC" = yes; then
10244  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10245fi
10246
10247echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10248echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10249hardcode_action=
10250if test -n "$hardcode_libdir_flag_spec" || \
10251   test -n "$runpath_var" || \
10252   test "X$hardcode_automatic" = "Xyes" ; then
10253
10254  # We can hardcode non-existant directories.
10255  if test "$hardcode_direct" != no &&
10256     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10257     # have to relink, otherwise we might link with an installed library
10258     # when we should be linking with a yet-to-be-installed one
10259     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10260     test "$hardcode_minus_L" != no; then
10261    # Linking always hardcodes the temporary library directory.
10262    hardcode_action=relink
10263  else
10264    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10265    hardcode_action=immediate
10266  fi
10267else
10268  # We cannot hardcode anything, or else we can only hardcode existing
10269  # directories.
10270  hardcode_action=unsupported
10271fi
10272echo "$as_me:$LINENO: result: $hardcode_action" >&5
10273echo "${ECHO_T}$hardcode_action" >&6
10274
10275if test "$hardcode_action" = relink; then
10276  # Fast installation is not supported
10277  enable_fast_install=no
10278elif test "$shlibpath_overrides_runpath" = yes ||
10279     test "$enable_shared" = no; then
10280  # Fast installation is not necessary
10281  enable_fast_install=needless
10282fi
10283
10284striplib=
10285old_striplib=
10286echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10287echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10288if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10289  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10290  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10291  echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293else
10294# FIXME - insert some real tests, host_os isn't really good enough
10295  case $host_os in
10296   darwin*)
10297       if test -n "$STRIP" ; then
10298         striplib="$STRIP -x"
10299         echo "$as_me:$LINENO: result: yes" >&5
10300echo "${ECHO_T}yes" >&6
10301       else
10302  echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
10304fi
10305       ;;
10306   *)
10307  echo "$as_me:$LINENO: result: no" >&5
10308echo "${ECHO_T}no" >&6
10309    ;;
10310  esac
10311fi
10312
10313if test "x$enable_dlopen" != xyes; then
10314  enable_dlopen=unknown
10315  enable_dlopen_self=unknown
10316  enable_dlopen_self_static=unknown
10317else
10318  lt_cv_dlopen=no
10319  lt_cv_dlopen_libs=
10320
10321  case $host_os in
10322  beos*)
10323    lt_cv_dlopen="load_add_on"
10324    lt_cv_dlopen_libs=
10325    lt_cv_dlopen_self=yes
10326    ;;
10327
10328  mingw* | pw32*)
10329    lt_cv_dlopen="LoadLibrary"
10330    lt_cv_dlopen_libs=
10331   ;;
10332
10333  cygwin*)
10334    lt_cv_dlopen="dlopen"
10335    lt_cv_dlopen_libs=
10336   ;;
10337
10338  darwin*)
10339  # if libdl is installed we need to link against it
10340    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10341echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10342if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10343  echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345  ac_check_lib_save_LIBS=$LIBS
10346LIBS="-ldl  $LIBS"
10347cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h.  */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h.  */
10353
10354/* Override any gcc2 internal prototype to avoid an error.  */
10355#ifdef __cplusplus
10356extern "C"
10357#endif
10358/* We use char because int might match the return type of a gcc2
10359   builtin and then its argument prototype would still apply.  */
10360char dlopen ();
10361int
10362main ()
10363{
10364dlopen ();
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371  (eval $ac_link) 2>conftest.er1
10372  ac_status=$?
10373  grep -v '^ *+' conftest.er1 >conftest.err
10374  rm -f conftest.er1
10375  cat conftest.err >&5
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); } &&
10378         { ac_try='test -z "$ac_c_werror_flag"
10379                         || test ! -s conftest.err'
10380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381  (eval $ac_try) 2>&5
10382  ac_status=$?
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); }; } &&
10385         { ac_try='test -s conftest$ac_exeext'
10386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387  (eval $ac_try) 2>&5
10388  ac_status=$?
10389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390  (exit $ac_status); }; }; then
10391  ac_cv_lib_dl_dlopen=yes
10392else
10393  echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396ac_cv_lib_dl_dlopen=no
10397fi
10398rm -f conftest.err conftest.$ac_objext \
10399      conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10403echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10404if test $ac_cv_lib_dl_dlopen = yes; then
10405  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10406else
10407
10408    lt_cv_dlopen="dyld"
10409    lt_cv_dlopen_libs=
10410    lt_cv_dlopen_self=yes
10411
10412fi
10413
10414   ;;
10415
10416  *)
10417    echo "$as_me:$LINENO: checking for shl_load" >&5
10418echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10419if test "${ac_cv_func_shl_load+set}" = set; then
10420  echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422  cat >conftest.$ac_ext <<_ACEOF
10423/* confdefs.h.  */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h.  */
10428/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10429   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10430#define shl_load innocuous_shl_load
10431
10432/* System header to define __stub macros and hopefully few prototypes,
10433    which can conflict with char shl_load (); below.
10434    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10435    <limits.h> exists even on freestanding compilers.  */
10436
10437#ifdef __STDC__
10438# include <limits.h>
10439#else
10440# include <assert.h>
10441#endif
10442
10443#undef shl_load
10444
10445/* Override any gcc2 internal prototype to avoid an error.  */
10446#ifdef __cplusplus
10447extern "C"
10448{
10449#endif
10450/* We use char because int might match the return type of a gcc2
10451   builtin and then its argument prototype would still apply.  */
10452char shl_load ();
10453/* The GNU C library defines this for functions which it implements
10454    to always fail with ENOSYS.  Some functions are actually named
10455    something starting with __ and the normal name is an alias.  */
10456#if defined (__stub_shl_load) || defined (__stub___shl_load)
10457choke me
10458#else
10459char (*f) () = shl_load;
10460#endif
10461#ifdef __cplusplus
10462}
10463#endif
10464
10465int
10466main ()
10467{
10468return f != shl_load;
10469  ;
10470  return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475  (eval $ac_link) 2>conftest.er1
10476  ac_status=$?
10477  grep -v '^ *+' conftest.er1 >conftest.err
10478  rm -f conftest.er1
10479  cat conftest.err >&5
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); } &&
10482         { ac_try='test -z "$ac_c_werror_flag"
10483                         || test ! -s conftest.err'
10484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485  (eval $ac_try) 2>&5
10486  ac_status=$?
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); }; } &&
10489         { ac_try='test -s conftest$ac_exeext'
10490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491  (eval $ac_try) 2>&5
10492  ac_status=$?
10493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494  (exit $ac_status); }; }; then
10495  ac_cv_func_shl_load=yes
10496else
10497  echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
10500ac_cv_func_shl_load=no
10501fi
10502rm -f conftest.err conftest.$ac_objext \
10503      conftest$ac_exeext conftest.$ac_ext
10504fi
10505echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10506echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10507if test $ac_cv_func_shl_load = yes; then
10508  lt_cv_dlopen="shl_load"
10509else
10510  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10511echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10512if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10513  echo $ECHO_N "(cached) $ECHO_C" >&6
10514else
10515  ac_check_lib_save_LIBS=$LIBS
10516LIBS="-ldld  $LIBS"
10517cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h.  */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h.  */
10523
10524/* Override any gcc2 internal prototype to avoid an error.  */
10525#ifdef __cplusplus
10526extern "C"
10527#endif
10528/* We use char because int might match the return type of a gcc2
10529   builtin and then its argument prototype would still apply.  */
10530char shl_load ();
10531int
10532main ()
10533{
10534shl_load ();
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext conftest$ac_exeext
10540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541  (eval $ac_link) 2>conftest.er1
10542  ac_status=$?
10543  grep -v '^ *+' conftest.er1 >conftest.err
10544  rm -f conftest.er1
10545  cat conftest.err >&5
10546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547  (exit $ac_status); } &&
10548         { ac_try='test -z "$ac_c_werror_flag"
10549                         || test ! -s conftest.err'
10550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551  (eval $ac_try) 2>&5
10552  ac_status=$?
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); }; } &&
10555         { ac_try='test -s conftest$ac_exeext'
10556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557  (eval $ac_try) 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); }; }; then
10561  ac_cv_lib_dld_shl_load=yes
10562else
10563  echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566ac_cv_lib_dld_shl_load=no
10567fi
10568rm -f conftest.err conftest.$ac_objext \
10569      conftest$ac_exeext conftest.$ac_ext
10570LIBS=$ac_check_lib_save_LIBS
10571fi
10572echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10573echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10574if test $ac_cv_lib_dld_shl_load = yes; then
10575  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10576else
10577  echo "$as_me:$LINENO: checking for dlopen" >&5
10578echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10579if test "${ac_cv_func_dlopen+set}" = set; then
10580  echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582  cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h.  */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h.  */
10588/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10589   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10590#define dlopen innocuous_dlopen
10591
10592/* System header to define __stub macros and hopefully few prototypes,
10593    which can conflict with char dlopen (); below.
10594    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595    <limits.h> exists even on freestanding compilers.  */
10596
10597#ifdef __STDC__
10598# include <limits.h>
10599#else
10600# include <assert.h>
10601#endif
10602
10603#undef dlopen
10604
10605/* Override any gcc2 internal prototype to avoid an error.  */
10606#ifdef __cplusplus
10607extern "C"
10608{
10609#endif
10610/* We use char because int might match the return type of a gcc2
10611   builtin and then its argument prototype would still apply.  */
10612char dlopen ();
10613/* The GNU C library defines this for functions which it implements
10614    to always fail with ENOSYS.  Some functions are actually named
10615    something starting with __ and the normal name is an alias.  */
10616#if defined (__stub_dlopen) || defined (__stub___dlopen)
10617choke me
10618#else
10619char (*f) () = dlopen;
10620#endif
10621#ifdef __cplusplus
10622}
10623#endif
10624
10625int
10626main ()
10627{
10628return f != dlopen;
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633rm -f conftest.$ac_objext conftest$ac_exeext
10634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635  (eval $ac_link) 2>conftest.er1
10636  ac_status=$?
10637  grep -v '^ *+' conftest.er1 >conftest.err
10638  rm -f conftest.er1
10639  cat conftest.err >&5
10640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641  (exit $ac_status); } &&
10642         { ac_try='test -z "$ac_c_werror_flag"
10643                         || test ! -s conftest.err'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; } &&
10649         { ac_try='test -s conftest$ac_exeext'
10650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651  (eval $ac_try) 2>&5
10652  ac_status=$?
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); }; }; then
10655  ac_cv_func_dlopen=yes
10656else
10657  echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660ac_cv_func_dlopen=no
10661fi
10662rm -f conftest.err conftest.$ac_objext \
10663      conftest$ac_exeext conftest.$ac_ext
10664fi
10665echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10666echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10667if test $ac_cv_func_dlopen = yes; then
10668  lt_cv_dlopen="dlopen"
10669else
10670  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10671echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10672if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10673  echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675  ac_check_lib_save_LIBS=$LIBS
10676LIBS="-ldl  $LIBS"
10677cat >conftest.$ac_ext <<_ACEOF
10678/* confdefs.h.  */
10679_ACEOF
10680cat confdefs.h >>conftest.$ac_ext
10681cat >>conftest.$ac_ext <<_ACEOF
10682/* end confdefs.h.  */
10683
10684/* Override any gcc2 internal prototype to avoid an error.  */
10685#ifdef __cplusplus
10686extern "C"
10687#endif
10688/* We use char because int might match the return type of a gcc2
10689   builtin and then its argument prototype would still apply.  */
10690char dlopen ();
10691int
10692main ()
10693{
10694dlopen ();
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699rm -f conftest.$ac_objext conftest$ac_exeext
10700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701  (eval $ac_link) 2>conftest.er1
10702  ac_status=$?
10703  grep -v '^ *+' conftest.er1 >conftest.err
10704  rm -f conftest.er1
10705  cat conftest.err >&5
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); } &&
10708         { ac_try='test -z "$ac_c_werror_flag"
10709                         || test ! -s conftest.err'
10710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711  (eval $ac_try) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); }; } &&</