source: stable/2.8/Cbc/configure @ 1930

Last change on this file since 1930 was 1930, checked in by stefan, 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.2.
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.2'
433PACKAGE_STRING='Cbc 2.8.2'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8.2 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.2:";;
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.2
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.2, 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:2: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            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2957              coin_opt_cflags='-MD -O2'
2958              coin_dbg_cflags='-MDd'
2959            else
2960              coin_opt_cflags='-MT -O2'
2961              coin_dbg_cflags='-MTd'
2962            fi
2963            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2964            ;;
2965          icl* | */icl* | ICL* | */ICL*)
2966            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2967              coin_opt_cflags='-MD -Ox'
2968              coin_dbg_cflags='-MDd -debug'
2969            else
2970              coin_opt_cflags='-MT -Ox'
2971              coin_dbg_cflags='-MTd -debug'
2972            fi
2973            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2974            ;;
2975        esac
2976        ;;
2977      *-linux-*)
2978        case "$CC" in
2979          icc* | */icc*)
2980            coin_opt_cflags="-O3 -ip -mp1"
2981            coin_add_cflags=""
2982            coin_dbg_cflags="-g"
2983            # Check if -i_dynamic is necessary (for new glibc library)
2984            CFLAGS=
2985            cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h.  */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h.  */
2991
2992int
2993main ()
2994{
2995int i=0; i++;
2996  ;
2997  return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext conftest$ac_exeext
3001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002  (eval $ac_link) 2>conftest.er1
3003  ac_status=$?
3004  grep -v '^ *+' conftest.er1 >conftest.err
3005  rm -f conftest.er1
3006  cat conftest.err >&5
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); } &&
3009         { ac_try='test -z "$ac_c_werror_flag"
3010                         || test ! -s conftest.err'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; } &&
3016         { ac_try='test -s conftest$ac_exeext'
3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018  (eval $ac_try) 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; }; then
3022  :
3023else
3024  echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027coin_add_cflags="-i_dynamic $coin_add_cflags"
3028fi
3029rm -f conftest.err conftest.$ac_objext \
3030      conftest$ac_exeext conftest.$ac_ext
3031            ;;
3032          pgcc* | */pgcc*)
3033            coin_opt_cflags="-fast"
3034            coin_add_cflags="-Kieee -pc 64"
3035            coin_dbg_cflags="-g"
3036            ;;
3037        esac
3038        ;;
3039      *-ibm-*)
3040        case "$CC" in
3041          xlc* | */xlc* | mpxlc* | */mpxlc*)
3042            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3043            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3044            coin_dbg_cflags="-g"
3045          ;;
3046        esac
3047        ;;
3048      *-hp-*)
3049        coin_opt_cflags="-O"
3050        coin_add_cflags="-Ae"
3051        coin_dbg_cflags="-g"
3052        ;;
3053      *-*-solaris*)
3054        coin_opt_cflags="-xO4"
3055        coin_dbg_cflags="-g"
3056        ;;
3057      *-sgi-*)
3058        coin_opt_cflags="-O -OPT:Olimit=0"
3059        coin_dbg_cflags="-g"
3060        ;;
3061    esac
3062  fi
3063
3064  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3065    coin_dbg_cflags="-g"
3066  fi
3067
3068  if test -z "$coin_opt_cflags"; then
3069    # Try if -O option works if nothing else is set
3070    CFLAGS="-O"
3071    cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h.  */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h.  */
3077
3078int
3079main ()
3080{
3081int i=0; i++;
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext conftest$ac_exeext
3087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3088  (eval $ac_link) 2>conftest.er1
3089  ac_status=$?
3090  grep -v '^ *+' conftest.er1 >conftest.err
3091  rm -f conftest.er1
3092  cat conftest.err >&5
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); } &&
3095         { ac_try='test -z "$ac_c_werror_flag"
3096                         || test ! -s conftest.err'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; } &&
3102         { ac_try='test -s conftest$ac_exeext'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; }; then
3108  coin_opt_cflags="-O"
3109else
3110  echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113fi
3114rm -f conftest.err conftest.$ac_objext \
3115      conftest$ac_exeext conftest.$ac_ext
3116  fi
3117
3118  # if PM doesn't want the warning messages, take them out
3119  if test x"$coin_skip_warn_cflags" = xyes; then
3120    coin_warn_cflags=
3121  fi
3122
3123  if test x${DBG_CFLAGS+set} != xset; then
3124    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3125  fi
3126  if test x${OPT_CFLAGS+set} != xset; then
3127    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3128  fi
3129
3130  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3131  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3132
3133  if test "$coin_debug_compile" = "true"; then
3134    CFLAGS="$DBG_CFLAGS"
3135  else
3136    CFLAGS="$OPT_CFLAGS"
3137  fi
3138else
3139  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3140  if test x${DBG_CFLAGS+set} != xset; then
3141    DBG_CFLAGS="$CFLAGS"
3142  fi
3143  if test x${OPT_CFLAGS+set} != xset; then
3144    OPT_CFLAGS="$CFLAGS"
3145  fi
3146fi
3147
3148# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3149
3150case "$CFLAGS" in
3151  *-mno-cygwin*)
3152    if test x${CPPFLAGS+set} != xset ; then
3153      CPPFLAGS="-mno-cygwin"
3154    else
3155      case "$CPPFLAGS" in
3156        *-mno-cygwin*)
3157          ;;
3158        *)
3159          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3160          ;;
3161      esac
3162    fi ;;
3163esac
3164
3165# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3166if test x$COIN_PRJCT != x; then
3167  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3168fi
3169
3170# Try if CFLAGS works
3171save_CFLAGS="$CFLAGS"
3172cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h.  */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h.  */
3178
3179int
3180main ()
3181{
3182int i=0; i++;
3183  ;
3184  return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext conftest$ac_exeext
3188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3189  (eval $ac_link) 2>conftest.er1
3190  ac_status=$?
3191  grep -v '^ *+' conftest.er1 >conftest.err
3192  rm -f conftest.er1
3193  cat conftest.err >&5
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); } &&
3196         { ac_try='test -z "$ac_c_werror_flag"
3197                         || test ! -s conftest.err'
3198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199  (eval $ac_try) 2>&5
3200  ac_status=$?
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); }; } &&
3203         { ac_try='test -s conftest$ac_exeext'
3204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205  (eval $ac_try) 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }; }; then
3209  :
3210else
3211  echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214CFLAGS=
3215fi
3216rm -f conftest.err conftest.$ac_objext \
3217      conftest$ac_exeext conftest.$ac_ext
3218if test -z "$CFLAGS"; then
3219  { 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
3220echo "$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;}
3221  CFLAGS='-O'
3222  cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h.  */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232int i=0; i++;
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
3238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239  (eval $ac_link) 2>conftest.er1
3240  ac_status=$?
3241  grep -v '^ *+' conftest.er1 >conftest.err
3242  rm -f conftest.er1
3243  cat conftest.err >&5
3244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); } &&
3246         { ac_try='test -z "$ac_c_werror_flag"
3247                         || test ! -s conftest.err'
3248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249  (eval $ac_try) 2>&5
3250  ac_status=$?
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); }; } &&
3253         { ac_try='test -s conftest$ac_exeext'
3254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255  (eval $ac_try) 2>&5
3256  ac_status=$?
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }; }; then
3259  :
3260else
3261  echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264CFLAGS=
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267      conftest$ac_exeext conftest.$ac_ext
3268  if test -z "$CFLAGS"; then
3269    { 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
3270echo "$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;}
3271  fi
3272fi
3273
3274{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3275echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3276
3277
3278if test x"$MPICC" = x; then :; else
3279  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3280echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3281  CC="$MPICC"
3282fi
3283
3284# Correct the LD variable if we are using the MS or Intel-windows compiler
3285case "$CC" in
3286  clang* ) ;;
3287  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3288    case $build in
3289  *-mingw*)
3290    if test "${LD+set}" = set; then :; else
3291      LD=link
3292    fi
3293    ;;
3294 esac
3295 case $enable_doscompile in
3296   msvc)
3297     if test "x${LD+set}" = xset; then :; else
3298       LD=link
3299     fi
3300     ;;
3301 esac
3302
3303    ;;
3304esac
3305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314 #Let's try if that overcomes configuration problem with VC++ 6.0
3315
3316ac_ext=cc
3317ac_cpp='$CXXCPP $CPPFLAGS'
3318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3321
3322
3323
3324
3325
3326
3327
3328coin_has_cxx=yes
3329
3330save_cxxflags="$CXXFLAGS"
3331# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3332case $build in
3333  *-cygwin* | *-mingw*)
3334             if test "$enable_doscompile" = msvc ; then
3335               comps="icl cl"
3336             else
3337               comps="g++ cl"
3338             fi ;;
3339  *-*-solaris*)
3340             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3341  *-darwin*) comps="g++ c++ CC" ;;
3342  *-linux-gnu*)
3343             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3344          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3345esac
3346
3347# We delete the cached value, since the test might not have been
3348# performed with our choice of compilers earlier
3349$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3350# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3351ac_ext=cc
3352ac_cpp='$CXXCPP $CPPFLAGS'
3353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3356if test -n "$ac_tool_prefix"; then
3357  for ac_prog in $CCC $comps
3358  do
3359    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3361echo "$as_me:$LINENO: checking for $ac_word" >&5
3362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363if test "${ac_cv_prog_CXX+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  if test -n "$CXX"; then
3367  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374  for ac_exec_ext in '' $ac_executable_extensions; do
3375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381done
3382
3383fi
3384fi
3385CXX=$ac_cv_prog_CXX
3386if test -n "$CXX"; then
3387  echo "$as_me:$LINENO: result: $CXX" >&5
3388echo "${ECHO_T}$CXX" >&6
3389else
3390  echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
3392fi
3393
3394    test -n "$CXX" && break
3395  done
3396fi
3397if test -z "$CXX"; then
3398  ac_ct_CXX=$CXX
3399  for ac_prog in $CCC $comps
3400do
3401  # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403echo "$as_me:$LINENO: checking for $ac_word" >&5
3404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3406  echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408  if test -n "$ac_ct_CXX"; then
3409  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  test -z "$as_dir" && as_dir=.
3416  for ac_exec_ext in '' $ac_executable_extensions; do
3417  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418    ac_cv_prog_ac_ct_CXX="$ac_prog"
3419    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423done
3424
3425fi
3426fi
3427ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3428if test -n "$ac_ct_CXX"; then
3429  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3430echo "${ECHO_T}$ac_ct_CXX" >&6
3431else
3432  echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434fi
3435
3436  test -n "$ac_ct_CXX" && break
3437done
3438test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3439
3440  CXX=$ac_ct_CXX
3441fi
3442
3443
3444# Provide some information about the compiler.
3445echo "$as_me:$LINENO:" \
3446     "checking for C++ compiler version" >&5
3447ac_compiler=`set X $ac_compile; echo $2`
3448{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3449  (eval $ac_compiler --version </dev/null >&5) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }
3453{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3454  (eval $ac_compiler -v </dev/null >&5) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }
3458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3459  (eval $ac_compiler -V </dev/null >&5) 2>&5
3460  ac_status=$?
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); }
3463
3464echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3465echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3466if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479#ifndef __GNUC__
3480       choke me
3481#endif
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489  (eval $ac_compile) 2>conftest.er1
3490  ac_status=$?
3491  grep -v '^ *+' conftest.er1 >conftest.err
3492  rm -f conftest.er1
3493  cat conftest.err >&5
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); } &&
3496         { ac_try='test -z "$ac_cxx_werror_flag"
3497                         || test ! -s conftest.err'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; } &&
3503         { ac_try='test -s conftest.$ac_objext'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; }; then
3509  ac_compiler_gnu=yes
3510else
3511  echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514ac_compiler_gnu=no
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3518
3519fi
3520echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3521echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3522GXX=`test $ac_compiler_gnu = yes && echo yes`
3523ac_test_CXXFLAGS=${CXXFLAGS+set}
3524ac_save_CXXFLAGS=$CXXFLAGS
3525CXXFLAGS="-g"
3526echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3527echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3528if test "${ac_cv_prog_cxx_g+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555         { ac_try='test -z "$ac_cxx_werror_flag"
3556                         || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562         { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  ac_cv_prog_cxx_g=yes
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573ac_cv_prog_cxx_g=no
3574fi
3575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3578echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3579if test "$ac_test_CXXFLAGS" = set; then
3580  CXXFLAGS=$ac_save_CXXFLAGS
3581elif test $ac_cv_prog_cxx_g = yes; then
3582  if test "$GXX" = yes; then
3583    CXXFLAGS="-g -O2"
3584  else
3585    CXXFLAGS="-g"
3586  fi
3587else
3588  if test "$GXX" = yes; then
3589    CXXFLAGS="-O2"
3590  else
3591    CXXFLAGS=
3592  fi
3593fi
3594for ac_declaration in \
3595   '' \
3596   'extern "C" void std::exit (int) throw (); using std::exit;' \
3597   'extern "C" void std::exit (int); using std::exit;' \
3598   'extern "C" void exit (int) throw ();' \
3599   'extern "C" void exit (int);' \
3600   'void exit (int);'
3601do
3602  cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608$ac_declaration
3609#include <stdlib.h>
3610int
3611main ()
3612{
3613exit (42);
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext
3619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620  (eval $ac_compile) 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } &&
3627         { ac_try='test -z "$ac_cxx_werror_flag"
3628                         || test ! -s conftest.err'
3629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630  (eval $ac_try) 2>&5
3631  ac_status=$?
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); }; } &&
3634         { ac_try='test -s conftest.$ac_objext'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; }; then
3640  :
3641else
3642  echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645continue
3646fi
3647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3648  cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654$ac_declaration
3655int
3656main ()
3657{
3658exit (42);
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665  (eval $ac_compile) 2>conftest.er1
3666  ac_status=$?
3667  grep -v '^ *+' conftest.er1 >conftest.err
3668  rm -f conftest.er1
3669  cat conftest.err >&5
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); } &&
3672         { ac_try='test -z "$ac_cxx_werror_flag"
3673                         || test ! -s conftest.err'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; } &&
3679         { ac_try='test -s conftest.$ac_objext'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; }; then
3685  break
3686else
3687  echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690fi
3691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3692done
3693rm -f conftest*
3694if test -n "$ac_declaration"; then
3695  echo '#ifdef __cplusplus' >>confdefs.h
3696  echo $ac_declaration      >>confdefs.h
3697  echo '#endif'             >>confdefs.h
3698fi
3699
3700ac_ext=cc
3701ac_cpp='$CXXCPP $CPPFLAGS'
3702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3705
3706
3707#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3708#thus, we test here whether $CXX is actually working
3709ac_ext=cc
3710ac_cpp='$CXXCPP $CPPFLAGS'
3711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3714
3715echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3716echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3717cat >conftest.$ac_ext <<_ACEOF
3718/* confdefs.h.  */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727int i=0;
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext
3733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734  (eval $ac_compile) 2>conftest.er1
3735  ac_status=$?
3736  grep -v '^ *+' conftest.er1 >conftest.err
3737  rm -f conftest.er1
3738  cat conftest.err >&5
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); } &&
3741         { ac_try='test -z "$ac_cxx_werror_flag"
3742                         || test ! -s conftest.err'
3743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744  (eval $ac_try) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); }; } &&
3748         { ac_try='test -s conftest.$ac_objext'
3749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750  (eval $ac_try) 2>&5
3751  ac_status=$?
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); }; }; then
3754  echo "$as_me:$LINENO: result: yes" >&5
3755echo "${ECHO_T}yes" >&6
3756else
3757  echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3763echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3764   { (exit 1); exit 1; }; }
3765
3766fi
3767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3768ac_ext=cc
3769ac_cpp='$CXXCPP $CPPFLAGS'
3770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3773
3774
3775coin_cxx_is_cl=false
3776# It seems that we need to cleanup something here for the Windows
3777case "$CXX" in
3778  clang* ) ;;
3779  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3780    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3781    mv confdefs.hh confdefs.h
3782    coin_cxx_is_cl=true
3783    ;;
3784esac
3785
3786# add automake conditional so we can recognize cl compiler in makefile
3787
3788
3789if test $coin_cxx_is_cl = true; then
3790  COIN_CXX_IS_CL_TRUE=
3791  COIN_CXX_IS_CL_FALSE='#'
3792else
3793  COIN_CXX_IS_CL_TRUE='#'
3794  COIN_CXX_IS_CL_FALSE=
3795fi
3796
3797
3798# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3799case "$CXX" in
3800  clang* ) ;;
3801  cl* | */cl* | CL* | */CL* )
3802    if test "$ac_cv_prog_cxx_g" = yes ; then
3803      ac_cv_prog_cxx_g=no
3804      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3805echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3806    fi ;;
3807esac
3808CXXFLAGS="$save_cxxflags"
3809
3810# Check if a project specific CXXFLAGS variable has been set
3811if test x$COIN_PRJCT != x; then
3812  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3813  if test x$coin_tmp = xset; then
3814    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3815  fi
3816fi
3817
3818if test x"$CXXFLAGS" = x; then
3819
3820# ToDo decide whether we want -DNDEBUG for optimization
3821  coin_add_cxxflags=
3822  coin_opt_cxxflags=
3823  coin_dbg_cxxflags=
3824  coin_warn_cxxflags=
3825
3826  if test "$GXX" = "yes"; then
3827    case "$CXX" in
3828      icpc* | */icpc*)
3829        ;;
3830      *)
3831# ToDo decide about unroll-loops
3832        coin_opt_cxxflags="-O3"
3833        coin_add_cxxflags="-pipe"
3834        coin_dbg_cxxflags="-g -O0"
3835        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3836        case $build in
3837          *-darwin*)
3838            ;;
3839          *)
3840            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3841            ;;
3842        esac
3843
3844        case $enable_doscompile in
3845          mingw)
3846            CXXFLAGS="-mno-cygwin"
3847            cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h.  */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857int i=0; i++;
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864  (eval $ac_link) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871         { ac_try='test -z "$ac_cxx_werror_flag"
3872                         || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878         { ac_try='test -s conftest$ac_exeext'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3885else
3886  echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889fi
3890rm -f conftest.err conftest.$ac_objext \
3891      conftest$ac_exeext conftest.$ac_ext
3892            CXXFLAGS=
3893          ;;
3894        esac
3895    esac
3896  fi
3897
3898# Note that we do not need to cover GCC in the following tests.
3899
3900  if test -z "$coin_opt_cxxflags"; then
3901    case $build in
3902      *-cygwin* | *-mingw*)
3903        case "$CXX" in
3904          clang* ) ;;
3905          cl* | */cl* | CL* | */CL*)
3906            # The MT and MTd options are mutually exclusive
3907            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3908               coin_opt_cxxflags='-MD -O2'
3909               coin_dbg_cxxflags='-MDd'
3910            else
3911               coin_opt_cxxflags='-MT -O2'
3912               coin_dbg_cxxflags='-MTd'
3913            fi
3914            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3915            ;;
3916          icl* | */icl* | ICL* | */ICL*)
3917          # The MT and MTd options are mutually exclusive
3918            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3919              coin_opt_cxxflags='-MD -Ox'
3920              coin_dbg_cxxflags='-MDd -debug'
3921            else
3922              coin_opt_cxxflags='-MT -Ox'
3923              coin_dbg_cxxflags='-MTd -debug'
3924            fi
3925            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3926            ;;
3927        esac
3928        ;;
3929      *-linux-*)
3930        case "$CXX" in
3931          icpc* | */icpc*)
3932            coin_opt_cxxflags="-O3 -ip -mp1"
3933            coin_add_cxxflags=""
3934            coin_dbg_cxxflags="-g"
3935            # Check if -i_dynamic is necessary (for new glibc library)
3936            CXXFLAGS=
3937            cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h.  */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h.  */
3943
3944int
3945main ()
3946{
3947int i=0; i++;
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext conftest$ac_exeext
3953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954  (eval $ac_link) 2>conftest.er1
3955  ac_status=$?
3956  grep -v '^ *+' conftest.er1 >conftest.err
3957  rm -f conftest.er1
3958  cat conftest.err >&5
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); } &&
3961         { ac_try='test -z "$ac_cxx_werror_flag"
3962                         || test ! -s conftest.err'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; } &&
3968         { ac_try='test -s conftest$ac_exeext'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; }; then
3974  :
3975else
3976  echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3980fi
3981rm -f conftest.err conftest.$ac_objext \
3982      conftest$ac_exeext conftest.$ac_ext
3983            ;;
3984          pgCC* | */pgCC*)
3985            coin_opt_cxxflags="-fast"
3986            coin_add_cxxflags="-Kieee -pc 64"
3987            coin_dbg_cxxflags="-g"
3988            ;;
3989        esac
3990        ;;
3991      *-ibm-*)
3992        case "$CXX" in
3993          xlC* | */xlC* | mpxlC* | */mpxlC*)
3994            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3995            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3996            coin_dbg_cxxflags="-g"
3997            ;;
3998        esac
3999        ;;
4000      *-hp-*)
4001        case "$CXX" in
4002          aCC* | */aCC* )
4003            coin_opt_cxxflags="-O"
4004            coin_add_cxxflags="-AA"
4005            coin_dbg_cxxflags="-g"
4006            ;;
4007        esac
4008        ;;
4009      *-*-solaris*)
4010          coin_opt_cxxflags="-O4"
4011          coin_dbg_cxxflags="-g"
4012        ;;
4013    esac
4014  fi
4015
4016# Generic flag settings. If these don't work, add a case above.
4017
4018  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
4019    coin_dbg_cxxflags="-g"
4020  fi
4021
4022  if test -z "$coin_opt_cxxflags"; then
4023    # Try if -O option works if nothing else is set
4024    CXXFLAGS=-O
4025    cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031
4032int
4033main ()
4034{
4035int i=0; i++;
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext conftest$ac_exeext
4041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042  (eval $ac_link) 2>conftest.er1
4043  ac_status=$?
4044  grep -v '^ *+' conftest.er1 >conftest.err
4045  rm -f conftest.er1
4046  cat conftest.err >&5
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } &&
4049         { ac_try='test -z "$ac_cxx_werror_flag"
4050                         || test ! -s conftest.err'
4051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052  (eval $ac_try) 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; } &&
4056         { ac_try='test -s conftest$ac_exeext'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; }; then
4062  coin_opt_cxxflags="-O"
4063else
4064  echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067fi
4068rm -f conftest.err conftest.$ac_objext \
4069      conftest$ac_exeext conftest.$ac_ext
4070  fi
4071
4072  # if PM doesn't want the warning messages, take them out
4073  if test x"$coin_skip_warn_cxxflags" = xyes; then
4074    coin_warn_cxxflags=
4075  fi
4076
4077# Do final setup of flags based on values determined above.
4078
4079  if test x${DBG_CXXFLAGS+set} != xset; then
4080    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4081  fi
4082  if test x${OPT_CXXFLAGS+set} != xset; then
4083    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4084  fi
4085
4086  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4087  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4088
4089  if test "$coin_debug_compile" = "true"; then
4090    CXXFLAGS="$DBG_CXXFLAGS"
4091  else
4092    CXXFLAGS="$OPT_CXXFLAGS"
4093  fi
4094
4095# Handle the case where CXXFLAGS was set externally.
4096else
4097  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4098  if test x${DBG_CXXFLAGS+set} != xset; then
4099    DBG_CXXFLAGS="$CXXFLAGS"
4100  fi
4101  if test x${OPT_CXXFLAGS+set} != xset; then
4102    OPT_CXXFLAGS="$CXXFLAGS"
4103  fi
4104fi
4105
4106# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4107
4108case "$CXXFLAGS" in
4109  *-mno-cygwin*)
4110    if test x${CPPFLAGS+set} != xset ; then
4111      CPPFLAGS="-mno-cygwin"
4112    else
4113      case "$CPPFLAGS" in
4114        *-mno-cygwin*)
4115          ;;
4116        *)
4117          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4118          ;;
4119      esac
4120    fi ;;
4121esac
4122
4123# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4124if test x$COIN_PRJCT != x; then
4125  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4126fi
4127
4128# Try if CXXFLAGS works
4129save_CXXFLAGS="$CXXFLAGS"
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136
4137int
4138main ()
4139{
4140int i=0; i++;
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145rm -f conftest.$ac_objext conftest$ac_exeext
4146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147  (eval $ac_link) 2>conftest.er1
4148  ac_status=$?
4149  grep -v '^ *+' conftest.er1 >conftest.err
4150  rm -f conftest.er1
4151  cat conftest.err >&5
4152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153  (exit $ac_status); } &&
4154         { ac_try='test -z "$ac_cxx_werror_flag"
4155                         || test ! -s conftest.err'
4156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157  (eval $ac_try) 2>&5
4158  ac_status=$?
4159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160  (exit $ac_status); }; } &&
4161         { ac_try='test -s conftest$ac_exeext'
4162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163  (eval $ac_try) 2>&5
4164  ac_status=$?
4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166  (exit $ac_status); }; }; then
4167  :
4168else
4169  echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172CXXFLAGS=
4173fi
4174rm -f conftest.err conftest.$ac_objext \
4175      conftest$ac_exeext conftest.$ac_ext
4176if test -z "$CXXFLAGS"; then
4177  { 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
4178echo "$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;}
4179  CXXFLAGS='-O'
4180  cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186
4187int
4188main ()
4189{
4190int i=0; i++;
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext conftest$ac_exeext
4196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4197  (eval $ac_link) 2>conftest.er1
4198  ac_status=$?
4199  grep -v '^ *+' conftest.er1 >conftest.err
4200  rm -f conftest.er1
4201  cat conftest.err >&5
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); } &&
4204         { ac_try='test -z "$ac_cxx_werror_flag"
4205                         || test ! -s conftest.err'
4206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207  (eval $ac_try) 2>&5
4208  ac_status=$?
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); }; } &&
4211         { ac_try='test -s conftest$ac_exeext'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; }; then
4217  :
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222CXXFLAGS=
4223fi
4224rm -f conftest.err conftest.$ac_objext \
4225      conftest$ac_exeext conftest.$ac_ext
4226  if test -z "$CXXFLAGS"; then
4227    { 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
4228echo "$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;}
4229  fi
4230fi
4231
4232{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4233echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4234
4235
4236if test x"$MPICXX" = x; then :; else
4237  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4238echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4239  CXX="$MPICXX"
4240fi
4241
4242# correct the LD variable in a mingw build with MS or intel compiler
4243case "$CXX" in
4244  clang* ) ;;
4245  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4246    case $build in
4247  *-mingw*)
4248    if test "${LD+set}" = set; then :; else
4249      LD=link
4250    fi
4251    ;;
4252 esac
4253 case $enable_doscompile in
4254   msvc)
4255     if test "x${LD+set}" = xset; then :; else
4256       LD=link
4257     fi
4258     ;;
4259 esac
4260
4261    ;;
4262esac
4263
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270
4271
4272# Initialize automake and libtool
4273{
4274
4275
4276
4277# START
4278
4279coin_disable_shared=no
4280# Test if force_shared has been set
4281if test "x" = xforce_shared; then
4282  if test x$enable_shared = xno; then
4283    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4284echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4285   { (exit 1); exit 1; }; }
4286  fi
4287  enable_shared=yes;
4288else
4289  # On Cygwin and AIX, building DLLs doesn't work
4290  case $build in
4291    *-cygwin*)
4292      coin_disable_shared=yes
4293      platform=Cygwin
4294    ;;
4295    *-aix*)
4296      coin_disable_shared=yes
4297      platform=AIX
4298    ;;
4299    *-mingw*)
4300      coin_disable_shared=yes
4301      platform="Msys"
4302#      case "$CXX" in
4303#        cl*)
4304#          coin_disable_shared=yes
4305#          platform="Msys with cl"
4306#      ;;
4307#      esac
4308    ;;
4309  esac
4310fi
4311if test x"$coin_disable_shared" = xyes; then
4312  if test x"$enable_shared" = xyes; then
4313    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4314echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4315  else
4316    # we don't disable shared, because it was not selected anyway
4317    coin_disable_shared=no
4318  fi
4319  enable_shared=no
4320fi
4321# By default, we only want the shared objects to be compiled
4322# Check whether --enable-static or --disable-static was given.
4323if test "${enable_static+set}" = set; then
4324  enableval="$enable_static"
4325  p=${PACKAGE-default}
4326    case $enableval in
4327    yes) enable_static=yes ;;
4328    no) enable_static=no ;;
4329    *)
4330     enable_static=no
4331      # Look at the argument we got.  We use all the common list separators.
4332      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4333      for pkg in $enableval; do
4334        IFS="$lt_save_ifs"
4335        if test "X$pkg" = "X$p"; then
4336          enable_static=yes
4337        fi
4338      done
4339      IFS="$lt_save_ifs"
4340      ;;
4341    esac
4342else
4343  enable_static=no
4344fi;
4345
4346
4347
4348
4349# Initialize automake
4350echo "$as_me:$LINENO: checking for egrep" >&5
4351echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4352if test "${ac_cv_prog_egrep+set}" = set; then
4353  echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4356    then ac_cv_prog_egrep='grep -E'
4357    else ac_cv_prog_egrep='egrep'
4358    fi
4359fi
4360echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4361echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4362 EGREP=$ac_cv_prog_egrep
4363
4364
4365echo "$as_me:$LINENO: checking whether ln -s works" >&5
4366echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4367LN_S=$as_ln_s
4368if test "$LN_S" = "ln -s"; then
4369  echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371else
4372  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4373echo "${ECHO_T}no, using $LN_S" >&6
4374fi
4375
4376am__api_version="1.9"
4377# Find a good install program.  We prefer a C program (faster),
4378# so one script is as good as another.  But avoid the broken or
4379# incompatible versions:
4380# SysV /etc/install, /usr/sbin/install
4381# SunOS /usr/etc/install
4382# IRIX /sbin/install
4383# AIX /bin/install
4384# AmigaOS /C/install, which installs bootblocks on floppy discs
4385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4388# OS/2's system install, which has a completely different semantic
4389# ./install, which can be erroneously created by make from ./install.sh.
4390echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4391echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4392if test -z "$INSTALL"; then
4393if test "${ac_cv_path_install+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401  # Account for people who put trailing slashes in PATH elements.
4402case $as_dir/ in
4403  ./ | .// | /cC/* | \
4404  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4405  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4406  /usr/ucb/* ) ;;
4407  *)
4408    # OSF1 and SCO ODT 3.0 have their own names for install.
4409    # Don't use installbsd from OSF since it installs stuff as root
4410    # by default.
4411    for ac_prog in ginstall scoinst install; do
4412      for ac_exec_ext in '' $ac_executable_extensions; do
4413        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4414          if test $ac_prog = install &&
4415            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4416            # AIX install.  It has an incompatible calling convention.
4417            :
4418          elif test $ac_prog = install &&
4419            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4420            # program-specific install script used by HP pwplus--don't use.
4421            :
4422          else
4423            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4424            break 3
4425          fi
4426        fi
4427      done
4428    done
4429    ;;
4430esac
4431done
4432
4433
4434fi
4435  if test "${ac_cv_path_install+set}" = set; then
4436    INSTALL=$ac_cv_path_install
4437  else
4438    # As a last resort, use the slow shell script.  We don't cache a
4439    # path for INSTALL within a source directory, because that will
4440    # break other packages using the cache if that directory is
4441    # removed, or if the path is relative.
4442    INSTALL=$ac_install_sh
4443  fi
4444fi
4445echo "$as_me:$LINENO: result: $INSTALL" >&5
4446echo "${ECHO_T}$INSTALL" >&6
4447
4448# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4449# It thinks the first close brace ends the variable substitution.
4450test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4451
4452test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4453
4454test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4455
4456echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4457echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4458# Just in case
4459sleep 1
4460echo timestamp > conftest.file
4461# Do `set' in a subshell so we don't clobber the current shell's
4462# arguments.  Must try -L first in case configure is actually a
4463# symlink; some systems play weird games with the mod time of symlinks
4464# (eg FreeBSD returns the mod time of the symlink's containing
4465# directory).
4466if (
4467   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4468   if test "$*" = "X"; then
4469      # -L didn't work.
4470      set X `ls -t $srcdir/configure conftest.file`
4471   fi
4472   rm -f conftest.file
4473   if test "$*" != "X $srcdir/configure conftest.file" \
4474      && test "$*" != "X conftest.file $srcdir/configure"; then
4475
4476      # If neither matched, then we have a broken ls.  This can happen
4477      # if, for instance, CONFIG_SHELL is bash and it inherits a
4478      # broken ls alias from the environment.  This has actually
4479      # happened.  Such a system could not be considered "sane".
4480      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4481alias in your environment" >&5
4482echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4483alias in your environment" >&2;}
4484   { (exit 1); exit 1; }; }
4485   fi
4486
4487   test "$2" = conftest.file
4488   )
4489then
4490   # Ok.
4491   :
4492else
4493   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4494Check your system clock" >&5
4495echo "$as_me: error: newly created file is older than distributed files!
4496Check your system clock" >&2;}
4497   { (exit 1); exit 1; }; }
4498fi
4499echo "$as_me:$LINENO: result: yes" >&5
4500echo "${ECHO_T}yes" >&6
4501test "$program_prefix" != NONE &&
4502  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4503# Use a double $ so make ignores it.
4504test "$program_suffix" != NONE &&
4505  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4506# Double any \ or $.  echo might interpret backslashes.
4507# By default was `s,x,x', remove it if useless.
4508cat <<\_ACEOF >conftest.sed
4509s/[\\$]/&&/g;s/;s,x,x,$//
4510_ACEOF
4511program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4512rm conftest.sed
4513
4514# expand $ac_aux_dir to an absolute path
4515am_aux_dir=`cd $ac_aux_dir && pwd`
4516
4517test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4518# Use eval to expand $SHELL
4519if eval "$MISSING --run true"; then
4520  am_missing_run="$MISSING --run "
4521else
4522  am_missing_run=
4523  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4524echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4525fi
4526
4527if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4528  # We used to keeping the `.' as first argument, in order to
4529  # allow $(mkdir_p) to be used without argument.  As in
4530  #   $(mkdir_p) $(somedir)
4531  # where $(somedir) is conditionally defined.  However this is wrong
4532  # for two reasons:
4533  #  1. if the package is installed by a user who cannot write `.'
4534  #     make install will fail,
4535  #  2. the above comment should most certainly read
4536  #     $(mkdir_p) $(DESTDIR)$(somedir)
4537  #     so it does not work when $(somedir) is undefined and
4538  #     $(DESTDIR) is not.
4539  #  To support the latter case, we have to write
4540  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4541  #  so the `.' trick is pointless.
4542  mkdir_p='mkdir -p --'
4543else
4544  # On NextStep and OpenStep, the `mkdir' command does not
4545  # recognize any option.  It will interpret all options as
4546  # directories to create, and then abort because `.' already
4547  # exists.
4548  for d in ./-p ./--version;
4549  do
4550    test -d $d && rmdir $d
4551  done
4552  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4553  if test -f "$ac_aux_dir/mkinstalldirs"; then
4554    mkdir_p='$(mkinstalldirs)'
4555  else
4556    mkdir_p='$(install_sh) -d'
4557  fi
4558fi
4559
4560for ac_prog in gawk mawk nawk awk
4561do
4562  # Extract the first word of "$ac_prog", so it can be a program name with args.
4563set dummy $ac_prog; ac_word=$2
4564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_prog_AWK+set}" = set; then
4567  echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569  if test -n "$AWK"; then
4570  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575  IFS=$as_save_IFS
4576  test -z "$as_dir" && as_dir=.
4577  for ac_exec_ext in '' $ac_executable_extensions; do
4578  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579    ac_cv_prog_AWK="$ac_prog"
4580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584done
4585
4586fi
4587fi
4588AWK=$ac_cv_prog_AWK
4589if test -n "$AWK"; then
4590  echo "$as_me:$LINENO: result: $AWK" >&5
4591echo "${ECHO_T}$AWK" >&6
4592else
4593  echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
4595fi
4596
4597  test -n "$AWK" && break
4598done
4599
4600echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4601echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4602set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4603if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  cat >conftest.make <<\_ACEOF
4607all:
4608        @echo 'ac_maketemp="$(MAKE)"'
4609_ACEOF
4610# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4611eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4612if test -n "$ac_maketemp"; then
4613  eval ac_cv_prog_make_${ac_make}_set=yes
4614else
4615  eval ac_cv_prog_make_${ac_make}_set=no
4616fi
4617rm -f conftest.make
4618fi
4619if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4620  echo "$as_me:$LINENO: result: yes" >&5
4621echo "${ECHO_T}yes" >&6
4622  SET_MAKE=
4623else
4624  echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626  SET_MAKE="MAKE=${MAKE-make}"
4627fi
4628
4629rm -rf .tst 2>/dev/null
4630mkdir .tst 2>/dev/null
4631if test -d .tst; then
4632  am__leading_dot=.
4633else
4634  am__leading_dot=_
4635fi
4636rmdir .tst 2>/dev/null
4637
4638DEPDIR="${am__leading_dot}deps"
4639
4640          ac_config_commands="$ac_config_commands depfiles"
4641
4642
4643am_make=${MAKE-make}
4644cat > confinc << 'END'
4645am__doit:
4646        @echo done
4647.PHONY: am__doit
4648END
4649# If we don't find an include directive, just comment out the code.
4650echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4651echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4652am__include="#"
4653am__quote=
4654_am_result=none
4655# First try GNU make style include.
4656echo "include confinc" > confmf
4657# We grep out `Entering directory' and `Leaving directory'
4658# messages which can occur if `w' ends up in MAKEFLAGS.
4659# In particular we don't look at `^make:' because GNU make might
4660# be invoked under some other name (usually "gmake"), in which
4661# case it prints its new name instead of `make'.
4662if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4663   am__include=include
4664   am__quote=
4665   _am_result=GNU
4666fi
4667# Now try BSD make style include.
4668if test "$am__include" = "#"; then
4669   echo '.include "confinc"' > confmf
4670   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4671      am__include=.include
4672      am__quote="\""
4673      _am_result=BSD
4674   fi
4675fi
4676
4677
4678echo "$as_me:$LINENO: result: $_am_result" >&5
4679echo "${ECHO_T}$_am_result" >&6
4680rm -f confinc confmf
4681
4682# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4683if test "${enable_dependency_tracking+set}" = set; then
4684  enableval="$enable_dependency_tracking"
4685
4686fi;
4687if test "x$enable_dependency_tracking" != xno; then
4688  am_depcomp="$ac_aux_dir/depcomp"
4689  AMDEPBACKSLASH='\'
4690fi
4691
4692
4693if test "x$enable_dependency_tracking" != xno; then
4694  AMDEP_TRUE=
4695  AMDEP_FALSE='#'
4696else
4697  AMDEP_TRUE='#'
4698  AMDEP_FALSE=
4699fi
4700
4701
4702
4703
4704
4705
4706# AC_MSG_NOTICE([Beginning automake initialisation.])
4707# Stuff for automake
4708# test to see if srcdir already configured
4709if test "`cd $srcdir && pwd`" != "`pwd`" &&
4710   test -f $srcdir/config.status; then
4711  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4712echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4713   { (exit 1); exit 1; }; }
4714fi
4715
4716# test whether we have cygpath
4717if test -z "$CYGPATH_W"; then
4718  if (cygpath --version) >/dev/null 2>/dev/null; then
4719    CYGPATH_W='cygpath -w'
4720  else
4721    CYGPATH_W=echo
4722  fi
4723fi
4724
4725
4726# Define the identity of the package.
4727 PACKAGE='cbc'
4728 VERSION='2.8.2'
4729
4730
4731cat >>confdefs.h <<_ACEOF
4732#define PACKAGE "$PACKAGE"
4733_ACEOF
4734
4735
4736cat >>confdefs.h <<_ACEOF
4737#define VERSION "$VERSION"
4738_ACEOF
4739
4740# Some tools Automake needs.
4741
4742ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4743
4744
4745AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4746
4747
4748AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4749
4750
4751AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4752
4753
4754MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4755
4756install_sh=${install_sh-"$am_aux_dir/install-sh"}
4757
4758# Installed binaries are usually stripped using `strip' when the user
4759# run `make install-strip'.  However `strip' might not be the right
4760# tool to use in cross-compilation environments, therefore Automake
4761# will honor the `STRIP' environment variable to overrule this program.
4762if test "$cross_compiling" != no; then
4763  if test -n "$ac_tool_prefix"; then
4764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4765set dummy ${ac_tool_prefix}strip; ac_word=$2
4766echo "$as_me:$LINENO: checking for $ac_word" >&5
4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4768if test "${ac_cv_prog_STRIP+set}" = set; then
4769  echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771  if test -n "$STRIP"; then
4772  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4773else
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779  for ac_exec_ext in '' $ac_executable_extensions; do
4780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783    break 2
4784  fi
4785done
4786done
4787
4788fi
4789fi
4790STRIP=$ac_cv_prog_STRIP
4791if test -n "$STRIP"; then
4792  echo "$as_me:$LINENO: result: $STRIP" >&5
4793echo "${ECHO_T}$STRIP" >&6
4794else
4795  echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797fi
4798
4799fi
4800if test -z "$ac_cv_prog_STRIP"; then
4801  ac_ct_STRIP=$STRIP
4802  # Extract the first word of "strip", so it can be a program name with args.
4803set dummy strip; ac_word=$2
4804echo "$as_me:$LINENO: checking for $ac_word" >&5
4805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809  if test -n "$ac_ct_STRIP"; then
4810  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817  for ac_exec_ext in '' $ac_executable_extensions; do
4818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819    ac_cv_prog_ac_ct_STRIP="strip"
4820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824done
4825
4826  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4827fi
4828fi
4829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4830if test -n "$ac_ct_STRIP"; then
4831  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4832echo "${ECHO_T}$ac_ct_STRIP" >&6
4833else
4834  echo "$as_me:$LINENO: result: no" >&5
4835echo "${ECHO_T}no" >&6
4836fi
4837
4838  STRIP=$ac_ct_STRIP
4839else
4840  STRIP="$ac_cv_prog_STRIP"
4841fi
4842
4843fi
4844INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4845
4846# We need awk for the "check" target.  The system "awk" is bad on
4847# some platforms.
4848# Always define AMTAR for backward compatibility.
4849
4850AMTAR=${AMTAR-"${am_missing_run}tar"}
4851
4852am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4853
4854
4855
4856
4857depcc="$CC"   am_compiler_list=
4858
4859echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4860echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4861if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4862  echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4865  # We make a subdir and do the tests there.  Otherwise we can end up
4866  # making bogus files that we don't know about and never remove.  For
4867  # instance it was reported that on HP-UX the gcc test will end up
4868  # making a dummy file named `D' -- because `-MD' means `put the output
4869  # in D'.
4870  mkdir conftest.dir
4871  # Copy depcomp to subdir because otherwise we won't find it if we're
4872  # using a relative directory.
4873  cp "$am_depcomp" conftest.dir
4874  cd conftest.dir
4875  # We will build objects and dependencies in a subdirectory because
4876  # it helps to detect inapplicable dependency modes.  For instance
4877  # both Tru64's cc and ICC support -MD to output dependencies as a
4878  # side effect of compilation, but ICC will put the dependencies in
4879  # the current directory while Tru64 will put them in the object
4880  # directory.
4881  mkdir sub
4882
4883  am_cv_CC_dependencies_compiler_type=none
4884  if test "$am_compiler_list" = ""; then
4885     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4886  fi
4887  for depmode in $am_compiler_list; do
4888    # Setup a source with many dependencies, because some compilers
4889    # like to wrap large dependency lists on column 80 (with \), and
4890    # we should not choose a depcomp mode which is confused by this.
4891    #
4892    # We need to recreate these files for each test, as the compiler may
4893    # overwrite some of them when testing with obscure command lines.
4894    # This happens at least with the AIX C compiler.
4895    : > sub/conftest.c
4896    for i in 1 2 3 4 5 6; do
4897      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4898      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4899      # Solaris 8's {/usr,}/bin/sh.
4900      touch sub/conftst$i.h
4901    done
4902    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4903
4904    case $depmode in
4905    nosideeffect)
4906      # after this tag, mechanisms are not by side-effect, so they'll
4907      # only be used when explicitly requested
4908      if test "x$enable_dependency_tracking" = xyes; then
4909        continue
4910      else
4911        break
4912      fi
4913      ;;
4914    none) break ;;
4915    esac
4916    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4917    # mode.  It turns out that the SunPro C++ compiler does not properly
4918    # handle `-M -o', and we need to detect this.
4919    if depmode=$depmode \
4920       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4921       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4923         >/dev/null 2>conftest.err &&
4924       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4926       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927      # icc doesn't choke on unknown options, it will just issue warnings
4928      # or remarks (even with -Werror).  So we grep stderr for any message
4929      # that says an option was ignored or not supported.
4930      # When given -MP, icc 7.0 and 7.1 complain thusly:
4931      #   icc: Command line warning: ignoring option '-M'; no argument required
4932      # The diagnosis changed in icc 8.0:
4933      #   icc: Command line remark: option '-MP' not supported
4934      if (grep 'ignoring option' conftest.err ||
4935          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936        am_cv_CC_dependencies_compiler_type=$depmode
4937        break
4938      fi
4939    fi
4940  done
4941
4942  cd ..
4943  rm -rf conftest.dir
4944else
4945  am_cv_CC_dependencies_compiler_type=none
4946fi
4947
4948fi
4949echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4950echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4952
4953
4954
4955if
4956  test "x$enable_dependency_tracking" != xno \
4957  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4958  am__fastdepCC_TRUE=
4959  am__fastdepCC_FALSE='#'
4960else
4961  am__fastdepCC_TRUE='#'
4962  am__fastdepCC_FALSE=
4963fi
4964
4965
4966depcc="$CXX"  am_compiler_list=
4967
4968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4970if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4971  echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974  # We make a subdir and do the tests there.  Otherwise we can end up
4975  # making bogus files that we don't know about and never remove.  For
4976  # instance it was reported that on HP-UX the gcc test will end up
4977  # making a dummy file named `D' -- because `-MD' means `put the output
4978  # in D'.
4979  mkdir conftest.dir
4980  # Copy depcomp to subdir because otherwise we won't find it if we're
4981  # using a relative directory.
4982  cp "$am_depcomp" conftest.dir
4983  cd conftest.dir
4984  # We will build objects and dependencies in a subdirectory because
4985  # it helps to detect inapplicable dependency modes.  For instance
4986  # both Tru64's cc and ICC support -MD to output dependencies as a
4987  # side effect of compilation, but ICC will put the dependencies in
4988  # the current directory while Tru64 will put them in the object
4989  # directory.
4990  mkdir sub
4991
4992  am_cv_CXX_dependencies_compiler_type=none
4993  if test "$am_compiler_list" = ""; then
4994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995  fi
4996  for depmode in $am_compiler_list; do
4997    # Setup a source with many dependencies, because some compilers
4998    # like to wrap large dependency lists on column 80 (with \), and
4999    # we should not choose a depcomp mode which is confused by this.
5000    #
5001    # We need to recreate these files for each test, as the compiler may
5002    # overwrite some of them when testing with obscure command lines.
5003    # This happens at least with the AIX C compiler.
5004    : > sub/conftest.c
5005    for i in 1 2 3 4 5 6; do
5006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008      # Solaris 8's {/usr,}/bin/sh.
5009      touch sub/conftst$i.h
5010    done
5011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013    case $depmode in
5014    nosideeffect)
5015      # after this tag, mechanisms are not by side-effect, so they'll
5016      # only be used when explicitly requested
5017      if test "x$enable_dependency_tracking" = xyes; then
5018        continue
5019      else
5020        break
5021      fi
5022      ;;
5023    none) break ;;
5024    esac
5025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5026    # mode.  It turns out that the SunPro C++ compiler does not properly
5027    # handle `-M -o', and we need to detect this.
5028    if depmode=$depmode \
5029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5032         >/dev/null 2>conftest.err &&
5033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036      # icc doesn't choke on unknown options, it will just issue warnings
5037      # or remarks (even with -Werror).  So we grep stderr for any message
5038      # that says an option was ignored or not supported.
5039      # When given -MP, icc 7.0 and 7.1 complain thusly:
5040      #   icc: Command line warning: ignoring option '-M'; no argument required
5041      # The diagnosis changed in icc 8.0:
5042      #   icc: Command line remark: option '-MP' not supported
5043      if (grep 'ignoring option' conftest.err ||
5044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045        am_cv_CXX_dependencies_compiler_type=$depmode
5046        break
5047      fi
5048    fi
5049  done
5050
5051  cd ..
5052  rm -rf conftest.dir
5053else
5054  am_cv_CXX_dependencies_compiler_type=none
5055fi
5056
5057fi
5058echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5059echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5060CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5061
5062
5063
5064if
5065  test "x$enable_dependency_tracking" != xno \
5066  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5067  am__fastdepCXX_TRUE=
5068  am__fastdepCXX_FALSE='#'
5069else
5070  am__fastdepCXX_TRUE='#'
5071  am__fastdepCXX_FALSE=
5072fi
5073
5074
5075
5076echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5077echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5078    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5079if test "${enable_maintainer_mode+set}" = set; then
5080  enableval="$enable_maintainer_mode"
5081  USE_MAINTAINER_MODE=$enableval
5082else
5083  USE_MAINTAINER_MODE=no
5084fi;
5085  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5086echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5087
5088
5089if test $USE_MAINTAINER_MODE = yes; then
5090  MAINTAINER_MODE_TRUE=
5091  MAINTAINER_MODE_FALSE='#'
5092else
5093  MAINTAINER_MODE_TRUE='#'
5094  MAINTAINER_MODE_FALSE=
5095fi
5096
5097  MAINT=$MAINTAINER_MODE_TRUE
5098
5099
5100
5101coin_have_externals=no
5102if test "$enable_maintainer_mode" = yes; then
5103
5104  # If maintainer mode is chosen, we make sure that the correct versions
5105  # of the tools are used, and that we know where libtool.m4 is (to
5106  # recreate acinclude.m4)
5107
5108
5109  LIBTOOLM4=
5110  # Normally, $HOME
5111  AUTOTOOLS_DFLT=$HOME
5112
5113  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5114echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5115if test "${ac_cv_use_correct_autotools+set}" = set; then
5116  echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118  ac_cv_use_correct_autotools=check
5119fi
5120echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5121echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5122
5123  if test $ac_cv_use_correct_autotools = check; then
5124    ac_cv_use_correct_autotools=yes
5125    # Check if we have autoconf
5126    # Extract the first word of "autoconf", so it can be a program name with args.
5127set dummy autoconf; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_prog_have_autoconf+set}" = set; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133  if test -n "$have_autoconf"; then
5134  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141  for ac_exec_ext in '' $ac_executable_extensions; do
5142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_have_autoconf="yes"
5144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148done
5149
5150  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5151fi
5152fi
5153have_autoconf=$ac_cv_prog_have_autoconf
5154if test -n "$have_autoconf"; then
5155  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5156echo "${ECHO_T}$have_autoconf" >&6
5157else
5158  echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160fi
5161
5162    if test $have_autoconf = no; then
5163      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5164echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5165   { (exit 1); exit 1; }; }
5166    fi
5167
5168    # Check whether autoconf is the correct version
5169    correct_version='2.59'
5170    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5171    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5172echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5173    autoconf --version > confauto.out 2>&1
5174    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5175      echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177    else
5178      rm -f confauto.out
5179      echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5182echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5183   { (exit 1); exit 1; }; }
5184    fi
5185    rm -f confauto.out
5186
5187    # Check if the executable autoconf is picked up from the correct location
5188    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5189echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5190    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5191    autoconf_dir=`cd $autoconf_dir; pwd`
5192    if test x$AUTOTOOLS_DIR = x; then
5193      want_dir=$AUTOTOOLS_DFLT/bin
5194    else
5195      want_dir=$AUTOTOOLS_DIR/bin
5196    fi
5197    if test $autoconf_dir = `cd $want_dir; pwd`; then
5198      echo "$as_me:$LINENO: result: yes" >&5
5199echo "${ECHO_T}yes" >&6
5200    else
5201      rm -f confauto.out
5202      echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5205echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5206   { (exit 1); exit 1; }; }
5207    fi
5208
5209    # Check if we have automake
5210    # Extract the first word of "automake", so it can be a program name with args.
5211set dummy automake; ac_word=$2
5212echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214if test "${ac_cv_prog_have_automake+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217  if test -n "$have_automake"; then
5218  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225  for ac_exec_ext in '' $ac_executable_extensions; do
5226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227    ac_cv_prog_have_automake="yes"
5228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232done
5233
5234  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5235fi
5236fi
5237have_automake=$ac_cv_prog_have_automake
5238if test -n "$have_automake"; then
5239  echo "$as_me:$LINENO: result: $have_automake" >&5
5240echo "${ECHO_T}$have_automake" >&6
5241else
5242  echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246    if test $have_automake = no; then
5247      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5248echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5249   { (exit 1); exit 1; }; }
5250    fi
5251
5252    # Check whether automake is the correct version
5253    correct_version='1.9.6'
5254    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5255    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5256echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5257    automake --version > confauto.out 2>&1
5258    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5259      echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261    else
5262      rm -f confauto.out
5263      echo "$as_me:$LINENO: result: no" >&5
5264echo "${ECHO_T}no" >&6
5265      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5266echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5267   { (exit 1); exit 1; }; }
5268    fi
5269    rm -f confauto.out
5270
5271    # Check if the executable automake is picked up from the correct location
5272    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5273echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5274    automake_dir=`which automake | sed -e 's=/automake=='`
5275    automake_dir=`cd $automake_dir; pwd`
5276    if test x$AUTOTOOLS_DIR = x; then
5277      want_dir=$AUTOTOOLS_DFLT/bin
5278    else
5279      want_dir=$AUTOTOOLS_DIR/bin
5280    fi
5281    if test $automake_dir = `cd $want_dir; pwd`; then
5282      echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284    else
5285      rm -f confauto.out
5286      echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5289echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5290   { (exit 1); exit 1; }; }
5291    fi
5292
5293    # Check if this is the correct version of libtool (with escaped dots)
5294    if test x$AUTOTOOLS_DIR = x; then
5295      want_dir=$AUTOTOOLS_DFLT/share
5296    else
5297      want_dir=$AUTOTOOLS_DIR/share
5298    fi
5299    correct_version='1.5.22'
5300    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5301    if test -r $want_dir/libtool/ltmain.sh; then
5302  have_ltmain=yes
5303  :
5304else
5305  have_ltmain=no
5306  :
5307fi
5308
5309    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5310echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5311    if test $have_ltmain = yes; then
5312    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5313        echo "$as_me:$LINENO: result: yes" >&5
5314echo "${ECHO_T}yes" >&6
5315      else
5316        echo "$as_me:$LINENO: result: no" >&5
5317echo "${ECHO_T}no" >&6
5318        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5319echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5320   { (exit 1); exit 1; }; }
5321      fi
5322    else
5323      echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5326echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5327   { (exit 1); exit 1; }; }
5328    fi
5329  fi
5330
5331  # Check if we can find the libtool file
5332  if test x$AUTOTOOLS_DIR = x; then
5333    want_dir=$AUTOTOOLS_DFLT/share
5334  else
5335    want_dir=$AUTOTOOLS_DIR/share
5336  fi
5337  if test -r $want_dir/aclocal/libtool.m4; then
5338  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5339  :
5340else
5341  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5342echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5343   { (exit 1); exit 1; }; }
5344  :
5345fi
5346
5347
5348  # Check if we have an Dependencies file
5349  if test -r $srcdir/Dependencies; then
5350    coin_have_externals=yes
5351  fi
5352  # Check if subversion is installed and understands https
5353  # Extract the first word of "svn", so it can be a program name with args.
5354set dummy svn; ac_word=$2
5355echo "$as_me:$LINENO: checking for $ac_word" >&5
5356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5357if test "${ac_cv_prog_have_svn+set}" = set; then
5358  echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360  if test -n "$have_svn"; then
5361  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366  IFS=$as_save_IFS
5367  test -z "$as_dir" && as_dir=.
5368  for ac_exec_ext in '' $ac_executable_extensions; do
5369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370    ac_cv_prog_have_svn="yes"
5371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372    break 2
5373  fi
5374done
5375done
5376
5377  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5378fi
5379fi
5380have_svn=$ac_cv_prog_have_svn
5381if test -n "$have_svn"; then
5382  echo "$as_me:$LINENO: result: $have_svn" >&5
5383echo "${ECHO_T}$have_svn" >&6
5384else
5385  echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387fi
5388
5389  if test x$have_svn = xyes; then
5390    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5391echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5392if test "${ac_cv_svn_understands_https+set}" = set; then
5393  echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395  svn --version > confauto.out 2>&1
5396                    if $EGREP https confauto.out >/dev/null 2>&1; then
5397                      ac_cv_svn_understands_https=yes
5398                    else
5399                      ac_cv_svn_understands_https=no
5400                      have_svn=no
5401                      ac_cv_prog_have_svn=no
5402                    fi
5403                    rm -f confauto.out
5404fi
5405echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5406echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5407  fi
5408
5409  # Find the location of the BuildTools directory
5410  BUILDTOOLSDIR=
5411  if test -r $srcdir/BuildTools/coin.m4; then
5412    BUILDTOOLSDIR=$srcdir/BuildTools
5413  else
5414    if test -r $srcdir/../BuildTools/coin.m4; then
5415      BUILDTOOLSDIR=$srcdir/../BuildTools
5416    else
5417      if test -r $srcdir/../../BuildTools/coin.m4; then
5418        BUILDTOOLSDIR=$srcdir/../../BuildTools
5419      else
5420        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5421echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5422   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5423      fi
5424    fi
5425  fi
5426
5427
5428  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5429  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5430    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5431  fi
5432
5433  # The following variable is set to the name of the directory where
5434  # the autotool scripts are located
5435
5436  AUX_DIR=$ac_aux_dir
5437fi
5438
5439# helpful variable for the base directory of this package
5440abs_source_dir=`cd $srcdir; pwd`
5441
5442
5443# Stuff for example Makefiles
5444if test x$prefix = xNONE; then
5445  full_prefix=$ac_default_prefix
5446else
5447  full_prefix=$prefix
5448fi
5449full_prefix=`cd $full_prefix ; pwd`
5450
5451abs_lib_dir=$full_prefix/lib
5452
5453abs_include_dir=$full_prefix/include
5454
5455abs_bin_dir=$full_prefix/bin
5456
5457
5458
5459if test $coin_have_externals = yes && test x$have_svn = xyes; then
5460  HAVE_EXTERNALS_TRUE=
5461  HAVE_EXTERNALS_FALSE='#'
5462else
5463  HAVE_EXTERNALS_TRUE='#'
5464  HAVE_EXTERNALS_FALSE=
5465fi
5466
5467
5468# AC_MSG_NOTICE([End automake initialisation.])
5469
5470
5471
5472LIBTOOL=
5473if test -r ../libtool; then
5474  coin_config_dir=..
5475  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5476fi
5477if test "x$LIBTOOL" = x; then
5478  if test -r ../../libtool; then
5479    coin_config_dir=../..
5480    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5481  fi
5482fi
5483
5484if test "x$LIBTOOL" = x; then
5485# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5486  # Stuff for libtool
5487  # Check whether --enable-shared or --disable-shared was given.
5488if test "${enable_shared+set}" = set; then
5489  enableval="$enable_shared"
5490  p=${PACKAGE-default}
5491    case $enableval in
5492    yes) enable_shared=yes ;;
5493    no) enable_shared=no ;;
5494    *)
5495      enable_shared=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_shared=yes
5502        fi
5503      done
5504      IFS="$lt_save_ifs"
5505      ;;
5506    esac
5507else
5508  enable_shared=yes
5509fi;
5510
5511# Check whether --enable-fast-install or --disable-fast-install was given.
5512if test "${enable_fast_install+set}" = set; then
5513  enableval="$enable_fast_install"
5514  p=${PACKAGE-default}
5515    case $enableval in
5516    yes) enable_fast_install=yes ;;
5517    no) enable_fast_install=no ;;
5518    *)
5519      enable_fast_install=no
5520      # Look at the argument we got.  We use all the common list separators.
5521      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5522      for pkg in $enableval; do
5523        IFS="$lt_save_ifs"
5524        if test "X$pkg" = "X$p"; then
5525          enable_fast_install=yes
5526        fi
5527      done
5528      IFS="$lt_save_ifs"
5529      ;;
5530    esac
5531else
5532  enable_fast_install=yes
5533fi;
5534
5535echo "$as_me:$LINENO: checking host system type" >&5
5536echo $ECHO_N "checking host system type... $ECHO_C" >&6
5537if test "${ac_cv_host+set}" = set; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540  ac_cv_host_alias=$host_alias
5541test -z "$ac_cv_host_alias" &&
5542  ac_cv_host_alias=$ac_cv_build_alias
5543ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5544  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5545echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5546   { (exit 1); exit 1; }; }
5547
5548fi
5549echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5550echo "${ECHO_T}$ac_cv_host" >&6
5551host=$ac_cv_host
5552host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5553host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5554host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5555
5556
5557echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5558echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5559if test "${lt_cv_path_SED+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  # Loop through the user's path and test for sed and gsed.
5563# Then use that list of sed's as ones to test for truncation.
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569  for lt_ac_prog in sed gsed; do
5570    for ac_exec_ext in '' $ac_executable_extensions; do
5571      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5572        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5573      fi
5574    done
5575  done
5576done
5577lt_ac_max=0
5578lt_ac_count=0
5579# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5580# along with /bin/sed that truncates output.
5581for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5582  test ! -f $lt_ac_sed && continue
5583  cat /dev/null > conftest.in
5584  lt_ac_count=0
5585  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5586  # Check for GNU sed and select it if it is found.
5587  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5588    lt_cv_path_SED=$lt_ac_sed
5589    break
5590  fi
5591  while true; do
5592    cat conftest.in conftest.in >conftest.tmp
5593    mv conftest.tmp conftest.in
5594    cp conftest.in conftest.nl
5595    echo >>conftest.nl
5596    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5597    cmp -s conftest.out conftest.nl || break
5598    # 10000 chars as input seems more than enough
5599    test $lt_ac_count -gt 10 && break
5600    lt_ac_count=`expr $lt_ac_count + 1`
5601    if test $lt_ac_count -gt $lt_ac_max; then
5602      lt_ac_max=$lt_ac_count
5603      lt_cv_path_SED=$lt_ac_sed
5604    fi
5605  done
5606done
5607
5608fi
5609
5610SED=$lt_cv_path_SED
5611echo "$as_me:$LINENO: result: $SED" >&5
5612echo "${ECHO_T}$SED" >&6
5613
5614
5615# Check whether --with-gnu-ld or --without-gnu-ld was given.
5616if test "${with_gnu_ld+set}" = set; then
5617  withval="$with_gnu_ld"
5618  test "$withval" = no || with_gnu_ld=yes
5619else
5620  with_gnu_ld=no
5621fi;
5622ac_prog=ld
5623if test "$GCC" = yes; then
5624  # Check if gcc -print-prog-name=ld gives a path.
5625  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5626echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5627  case $host in
5628  *-*-mingw*)
5629    # gcc leaves a trailing carriage return which upsets mingw
5630    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5631  *)
5632    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5633  esac
5634  case $ac_prog in
5635    # Accept absolute paths.
5636    [\\/]* | ?:[\\/]*)
5637      re_direlt='/[^/][^/]*/\.\./'
5638      # Canonicalize the pathname of ld
5639      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5640      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5641        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5642      done
5643      test -z "$LD" && LD="$ac_prog"
5644      ;;
5645  "")
5646    # If it fails, then pretend we aren't using GCC.
5647    ac_prog=ld
5648    ;;
5649  *)
5650    # If it is relative, then search for the first ld in PATH.
5651    with_gnu_ld=unknown
5652    ;;
5653  esac
5654elif test "$with_gnu_ld" = yes; then
5655  echo "$as_me:$LINENO: checking for GNU ld" >&5
5656echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5657else
5658  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5659echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5660fi
5661if test "${lt_cv_path_LD+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  if test -z "$LD"; then
5665  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5666  for ac_dir in $PATH; do
5667    IFS="$lt_save_ifs"
5668    test -z "$ac_dir" && ac_dir=.
5669    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5670      lt_cv_path_LD="$ac_dir/$ac_prog"
5671      # Check to see if the program is GNU ld.  I'd rather use --version,
5672      # but apparently some variants of GNU ld only accept -v.
5673      # Break only if it was the GNU/non-GNU ld that we prefer.
5674      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5675      *GNU* | *'with BFD'*)
5676        test "$with_gnu_ld" != no && break
5677        ;;
5678      *)
5679        test "$with_gnu_ld" != yes && break
5680        ;;
5681      esac
5682    fi
5683  done
5684  IFS="$lt_save_ifs"
5685else
5686  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5687fi
5688fi
5689
5690LD="$lt_cv_path_LD"
5691if test -n "$LD"; then
5692  echo "$as_me:$LINENO: result: $LD" >&5
5693echo "${ECHO_T}$LD" >&6
5694else
5695  echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697fi
5698test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5699echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5700   { (exit 1); exit 1; }; }
5701echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5702echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5703if test "${lt_cv_prog_gnu_ld+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5707case `$LD -v 2>&1 </dev/null` in
5708*GNU* | *'with BFD'*)
5709  lt_cv_prog_gnu_ld=yes
5710  ;;
5711*)
5712  lt_cv_prog_gnu_ld=no
5713  ;;
5714esac
5715fi
5716echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5717echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5718with_gnu_ld=$lt_cv_prog_gnu_ld
5719
5720
5721echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5722echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5723if test "${lt_cv_ld_reload_flag+set}" = set; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726  lt_cv_ld_reload_flag='-r'
5727fi
5728echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5729echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5730reload_flag=$lt_cv_ld_reload_flag
5731case $reload_flag in
5732"" | " "*) ;;
5733*) reload_flag=" $reload_flag" ;;
5734esac
5735reload_cmds='$LD$reload_flag -o $output$reload_objs'
5736case $host_os in
5737  darwin*)
5738    if test "$GCC" = yes; then
5739      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5740    else
5741      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5742    fi
5743    ;;
5744esac
5745
5746echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5747echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5748if test "${lt_cv_path_NM+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  if test -n "$NM"; then
5752  # Let the user override the test.
5753  lt_cv_path_NM="$NM"
5754else
5755  lt_nm_to_check="${ac_tool_prefix}nm"
5756  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5757    lt_nm_to_check="$lt_nm_to_check nm"
5758  fi
5759  for lt_tmp_nm in $lt_nm_to_check; do
5760    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5762      IFS="$lt_save_ifs"
5763      test -z "$ac_dir" && ac_dir=.
5764      tmp_nm="$ac_dir/$lt_tmp_nm"
5765      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5766        # Check to see if the nm accepts a BSD-compat flag.
5767        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5768        #   nm: unknown option "B" ignored
5769        # Tru64's nm complains that /dev/null is an invalid object file
5770        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5771        */dev/null* | *'Invalid file or object type'*)
5772          lt_cv_path_NM="$tmp_nm -B"
5773          break
5774          ;;
5775        *)
5776          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5777          */dev/null*)
5778            lt_cv_path_NM="$tmp_nm -p"
5779            break
5780            ;;
5781          *)
5782            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5783            continue # so that we can try to find one that supports BSD flags
5784            ;;
5785          esac
5786          ;;
5787        esac
5788      fi
5789    done
5790    IFS="$lt_save_ifs"
5791  done
5792  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5793fi
5794fi
5795echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5796echo "${ECHO_T}$lt_cv_path_NM" >&6
5797NM="$lt_cv_path_NM"
5798
5799echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5800echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5801if test "${lt_cv_deplibs_check_method+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  lt_cv_file_magic_cmd='$MAGIC_CMD'
5805lt_cv_file_magic_test_file=
5806lt_cv_deplibs_check_method='unknown'
5807# Need to set the preceding variable on all platforms that support
5808# interlibrary dependencies.
5809# 'none' -- dependencies not supported.
5810# `unknown' -- same as none, but documents that we really don't know.
5811# 'pass_all' -- all dependencies passed with no checks.
5812# 'test_compile' -- check by making test program.
5813# 'file_magic [[regex]]' -- check by looking for files in library path
5814# which responds to the $file_magic_cmd with a given extended regex.
5815# If you have `file' or equivalent on your system and you're not sure
5816# whether `pass_all' will *always* work, you probably want this one.
5817
5818case $host_os in
5819aix4* | aix5*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823beos*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827bsdi[45]*)
5828  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5829  lt_cv_file_magic_cmd='/usr/bin/file -L'
5830  lt_cv_file_magic_test_file=/shlib/libc.so
5831  ;;
5832
5833cygwin*)
5834  # func_win32_libid is a shell function defined in ltmain.sh
5835  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5836  lt_cv_file_magic_cmd='func_win32_libid'
5837  ;;
5838
5839mingw* | pw32*)
5840  # Base MSYS/MinGW do not provide the 'file' command needed by
5841  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5842  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5843  lt_cv_file_magic_cmd='$OBJDUMP -f'
5844  ;;
5845
5846darwin* | rhapsody*)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849
5850freebsd* | kfreebsd*-gnu | dragonfly*)
5851  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5852    case $host_cpu in
5853    i*86 )
5854      # Not sure whether the presence of OpenBSD here was a mistake.
5855      # Let's accept both of them until this is cleared up.
5856      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5857      lt_cv_file_magic_cmd=/usr/bin/file
5858      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5859      ;;
5860    esac
5861  else
5862    lt_cv_deplibs_check_method=pass_all
5863  fi
5864  ;;
5865
5866gnu*)
5867  lt_cv_deplibs_check_method=pass_all
5868  ;;
5869
5870hpux10.20* | hpux11*)
5871  lt_cv_file_magic_cmd=/usr/bin/file
5872  case $host_cpu in
5873  ia64*)
5874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5875    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5876    ;;
5877  hppa*64*)
5878    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]'
5879    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5880    ;;
5881  *)
5882    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5883    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5884    ;;
5885  esac
5886  ;;
5887
5888interix3*)
5889  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5890  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5891  ;;
5892
5893irix5* | irix6* | nonstopux*)
5894  case $LD in
5895  *-32|*"-32 ") libmagic=32-bit;;
5896  *-n32|*"-n32 ") libmagic=N32;;
5897  *-64|*"-64 ") libmagic=64-bit;;
5898  *) libmagic=never-match;;
5899  esac
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903# This must be Linux ELF.
5904linux*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908netbsd*)
5909  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5910    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5911  else
5912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5913  fi
5914  ;;
5915
5916newos6*)
5917  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5918  lt_cv_file_magic_cmd=/usr/bin/file
5919  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5920  ;;
5921
5922nto-qnx*)
5923  lt_cv_deplibs_check_method=unknown
5924  ;;
5925
5926openbsd*)
5927  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5929  else
5930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5931  fi
5932  ;;
5933
5934osf3* | osf4* | osf5*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938solaris*)
5939  lt_cv_deplibs_check_method=pass_all
5940  ;;
5941
5942sysv4 | sysv4.3*)
5943  case $host_vendor in
5944  motorola)
5945    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]'
5946    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5947    ;;
5948  ncr)
5949    lt_cv_deplibs_check_method=pass_all
5950    ;;
5951  sequent)
5952    lt_cv_file_magic_cmd='/bin/file'
5953    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5954    ;;
5955  sni)
5956    lt_cv_file_magic_cmd='/bin/file'
5957    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5958    lt_cv_file_magic_test_file=/lib/libc.so
5959    ;;
5960  siemens)
5961    lt_cv_deplibs_check_method=pass_all
5962    ;;
5963  pc)
5964    lt_cv_deplibs_check_method=pass_all
5965    ;;
5966  esac
5967  ;;
5968
5969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5970  lt_cv_deplibs_check_method=pass_all
5971  ;;
5972esac
5973
5974fi
5975echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5976echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5977file_magic_cmd=$lt_cv_file_magic_cmd
5978deplibs_check_method=$lt_cv_deplibs_check_method
5979test -z "$deplibs_check_method" && deplibs_check_method=unknown
5980
5981
5982
5983
5984# If no C compiler was specified, use CC.
5985LTCC=${LTCC-"$CC"}
5986
5987# If no C compiler flags were specified, use CFLAGS.
5988LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5989
5990# Allow CC to be a program name with arguments.
5991compiler=$CC
5992
5993# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5994if test "${enable_libtool_lock+set}" = set; then
5995  enableval="$enable_libtool_lock"
5996
5997fi;
5998test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5999
6000# Some flags need to be propagated to the compiler or linker for good
6001# libtool support.
6002case $host in
6003ia64-*-hpux*)
6004  # Find out which ABI we are using.
6005  echo 'int i;' > conftest.$ac_ext
6006  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007  (eval $ac_compile) 2>&5
6008  ac_status=$?
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); }; then
6011    case `/usr/bin/file conftest.$ac_objext` in
6012    *ELF-32*)
6013      HPUX_IA64_MODE="32"
6014      ;;
6015    *ELF-64*)
6016      HPUX_IA64_MODE="64"
6017      ;;
6018    esac
6019  fi
6020  rm -rf conftest*
6021  ;;
6022*-*-irix6*)
6023  # Find out which ABI we are using.
6024  echo '#line 6024 "configure"' > conftest.$ac_ext
6025  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026  (eval $ac_compile) 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }; then
6030   if test "$lt_cv_prog_gnu_ld" = yes; then
6031    case `/usr/bin/file conftest.$ac_objext` in
6032    *32-bit*)
6033      LD="${LD-ld} -melf32bsmip"
6034      ;;
6035    *N32*)
6036      LD="${LD-ld} -melf32bmipn32"
6037      ;;
6038    *64-bit*)
6039      LD="${LD-ld} -melf64bmip"
6040      ;;
6041    esac
6042   else
6043    case `/usr/bin/file conftest.$ac_objext` in
6044    *32-bit*)
6045      LD="${LD-ld} -32"
6046      ;;
6047    *N32*)
6048      LD="${LD-ld} -n32"
6049      ;;
6050    *64-bit*)
6051      LD="${LD-ld} -64"
6052      ;;
6053    esac
6054   fi
6055  fi
6056  rm -rf conftest*
6057  ;;
6058
6059x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6060  # Find out which ABI we are using.
6061  echo 'int i;' > conftest.$ac_ext
6062  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063  (eval $ac_compile) 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; then
6067    case `/usr/bin/file conftest.o` in
6068    *32-bit*)
6069      case $host in
6070        x86_64-*linux*)
6071          LD="${LD-ld} -m elf_i386"
6072          ;;
6073        ppc64-*linux*|powerpc64-*linux*)
6074          LD="${LD-ld} -m elf32ppclinux"
6075          ;;
6076        s390x-*linux*)
6077          LD="${LD-ld} -m elf_s390"
6078          ;;
6079        sparc64-*linux*)
6080          LD="${LD-ld} -m elf32_sparc"
6081          ;;
6082      esac
6083      ;;
6084    *64-bit*)
6085      case $host in
6086        x86_64-*linux*)
6087          LD="${LD-ld} -m elf_x86_64"
6088          ;;
6089        ppc*-*linux*|powerpc*-*linux*)
6090          LD="${LD-ld} -m elf64ppc"
6091          ;;
6092        s390*-*linux*)
6093          LD="${LD-ld} -m elf64_s390"
6094          ;;
6095        sparc*-*linux*)
6096          LD="${LD-ld} -m elf64_sparc"
6097          ;;
6098      esac
6099      ;;
6100    esac
6101  fi
6102  rm -rf conftest*
6103  ;;
6104
6105*-*-sco3.2v5*)
6106  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6107  SAVE_CFLAGS="$CFLAGS"
6108  CFLAGS="$CFLAGS -belf"
6109  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6110echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6111if test "${lt_cv_cc_needs_belf+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  ac_ext=c
6115ac_cpp='$CPP $CPPFLAGS'
6116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118ac_compiler_gnu=$ac_cv_c_compiler_gnu
6119
6120     cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h.  */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h.  */
6126
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext conftest$ac_exeext
6136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137  (eval $ac_link) 2>conftest.er1
6138  ac_status=$?
6139  grep -v '^ *+' conftest.er1 >conftest.err
6140  rm -f conftest.er1
6141  cat conftest.err >&5
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); } &&
6144         { ac_try='test -z "$ac_c_werror_flag"
6145                         || test ! -s conftest.err'
6146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147  (eval $ac_try) 2>&5
6148  ac_status=$?
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); }; } &&
6151         { ac_try='test -s conftest$ac_exeext'
6152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153  (eval $ac_try) 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }; }; then
6157  lt_cv_cc_needs_belf=yes
6158else
6159  echo "$as_me: failed program was:" >&5
6160sed 's/^/| /' conftest.$ac_ext >&5
6161
6162lt_cv_cc_needs_belf=no
6163fi
6164rm -f conftest.err conftest.$ac_objext \
6165      conftest$ac_exeext conftest.$ac_ext
6166     ac_ext=c
6167ac_cpp='$CPP $CPPFLAGS'
6168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172fi
6173echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6174echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6175  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6176    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6177    CFLAGS="$SAVE_CFLAGS"
6178  fi
6179  ;;
6180sparc*-*solaris*)
6181  # Find out which ABI we are using.
6182  echo 'int i;' > conftest.$ac_ext
6183  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184  (eval $ac_compile) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); }; then
6188    case `/usr/bin/file conftest.o` in
6189    *64-bit*)
6190      case $lt_cv_prog_gnu_ld in
6191      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6192      *)    LD="${LD-ld} -64" ;;
6193      esac
6194      ;;
6195    esac
6196  fi
6197  rm -rf conftest*
6198  ;;
6199
6200
6201esac
6202
6203need_locks="$enable_libtool_lock"
6204
6205
6206ac_ext=c
6207ac_cpp='$CPP $CPPFLAGS'
6208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6213# On Suns, sometimes $CPP names a directory.
6214if test -n "$CPP" && test -d "$CPP"; then
6215  CPP=
6216fi
6217if test -z "$CPP"; then
6218  if test "${ac_cv_prog_CPP+set}" = set; then
6219  echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221      # Double quotes because CPP needs to be expanded
6222    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6223    do
6224      ac_preproc_ok=false
6225for ac_c_preproc_warn_flag in '' yes
6226do
6227  # Use a header file that comes with gcc, so configuring glibc
6228  # with a fresh cross-compiler works.
6229  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6230  # <limits.h> exists even on freestanding compilers.
6231  # On the NeXT, cc -E runs the code through the compiler's parser,
6232  # not just through cpp. "Syntax error" is here to catch this case.
6233  cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h.  */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h.  */
6239#ifdef __STDC__
6240# include <limits.h>
6241#else
6242# include <assert.h>
6243#endif
6244                     Syntax error
6245_ACEOF
6246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6247  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6248  ac_status=$?
6249  grep -v '^ *+' conftest.er1 >conftest.err
6250  rm -f conftest.er1
6251  cat conftest.err >&5
6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); } >/dev/null; then
6254  if test -s conftest.err; then
6255    ac_cpp_err=$ac_c_preproc_warn_flag
6256    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257  else
6258    ac_cpp_err=
6259  fi
6260else
6261  ac_cpp_err=yes
6262fi
6263if test -z "$ac_cpp_err"; then
6264  :
6265else
6266  echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269  # Broken: fails on valid input.
6270continue
6271fi
6272rm -f conftest.err conftest.$ac_ext
6273
6274  # OK, works on sane cases.  Now check whether non-existent headers
6275  # can be detected and how.
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#include <ac_nonexistent.h>
6283_ACEOF
6284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6285  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6286  ac_status=$?
6287  grep -v '^ *+' conftest.er1 >conftest.err
6288  rm -f conftest.er1
6289  cat conftest.err >&5
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); } >/dev/null; then
6292  if test -s conftest.err; then
6293    ac_cpp_err=$ac_c_preproc_warn_flag
6294    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6295  else
6296    ac_cpp_err=
6297  fi
6298else
6299  ac_cpp_err=yes
6300fi
6301if test -z "$ac_cpp_err"; then
6302  # Broken: success on invalid input.
6303continue
6304else
6305  echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308  # Passes both tests.
6309ac_preproc_ok=:
6310break
6311fi
6312rm -f conftest.err conftest.$ac_ext
6313
6314done
6315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6316rm -f conftest.err conftest.$ac_ext
6317if $ac_preproc_ok; then
6318  break
6319fi
6320
6321    done
6322    ac_cv_prog_CPP=$CPP
6323
6324fi
6325  CPP=$ac_cv_prog_CPP
6326else
6327  ac_cv_prog_CPP=$CPP
6328fi
6329echo "$as_me:$LINENO: result: $CPP" >&5
6330echo "${ECHO_T}$CPP" >&6
6331ac_preproc_ok=false
6332for ac_c_preproc_warn_flag in '' yes
6333do
6334  # Use a header file that comes with gcc, so configuring glibc
6335  # with a fresh cross-compiler works.
6336  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6337  # <limits.h> exists even on freestanding compilers.
6338  # On the NeXT, cc -E runs the code through the compiler's parser,
6339  # not just through cpp. "Syntax error" is here to catch this case.
6340  cat >conftest.$ac_ext <<_ACEOF
6341/* confdefs.h.  */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h.  */
6346#ifdef __STDC__
6347# include <limits.h>
6348#else
6349# include <assert.h>
6350#endif
6351                     Syntax error
6352_ACEOF
6353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355  ac_status=$?
6356  grep -v '^ *+' conftest.er1 >conftest.err
6357  rm -f conftest.er1
6358  cat conftest.err >&5
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); } >/dev/null; then
6361  if test -s conftest.err; then
6362    ac_cpp_err=$ac_c_preproc_warn_flag
6363    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6364  else
6365    ac_cpp_err=
6366  fi
6367else
6368  ac_cpp_err=yes
6369fi
6370if test -z "$ac_cpp_err"; then
6371  :
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376  # Broken: fails on valid input.
6377continue
6378fi
6379rm -f conftest.err conftest.$ac_ext
6380
6381  # OK, works on sane cases.  Now check whether non-existent headers
6382  # can be detected and how.
6383  cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h.  */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h.  */
6389#include <ac_nonexistent.h>
6390_ACEOF
6391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6393  ac_status=$?
6394  grep -v '^ *+' conftest.er1 >conftest.err
6395  rm -f conftest.er1
6396  cat conftest.err >&5
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } >/dev/null; then
6399  if test -s conftest.err; then
6400    ac_cpp_err=$ac_c_preproc_warn_flag
6401    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6402  else
6403    ac_cpp_err=
6404  fi
6405else
6406  ac_cpp_err=yes
6407fi
6408if test -z "$ac_cpp_err"; then
6409  # Broken: success on invalid input.
6410continue
6411else
6412  echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415  # Passes both tests.
6416ac_preproc_ok=:
6417break
6418fi
6419rm -f conftest.err conftest.$ac_ext
6420
6421done
6422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6423rm -f conftest.err conftest.$ac_ext
6424if $ac_preproc_ok; then
6425  :
6426else
6427  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6428See \`config.log' for more details." >&5
6429echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6430See \`config.log' for more details." >&2;}
6431   { (exit 1); exit 1; }; }
6432fi
6433
6434ac_ext=c
6435ac_cpp='$CPP $CPPFLAGS'
6436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440
6441echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6442echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6443if test "${ac_cv_header_stdc+set}" = set; then
6444  echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446  cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452#include <stdlib.h>
6453#include <stdarg.h>
6454#include <string.h>
6455#include <float.h>
6456
6457int
6458main ()
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465rm -f conftest.$ac_objext
6466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467  (eval $ac_compile) 2>conftest.er1
6468  ac_status=$?
6469  grep -v '^ *+' conftest.er1 >conftest.err
6470  rm -f conftest.er1
6471  cat conftest.err >&5
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } &&
6474         { ac_try='test -z "$ac_c_werror_flag"
6475                         || test ! -s conftest.err'
6476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477  (eval $ac_try) 2>&5
6478  ac_status=$?
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); }; } &&
6481         { ac_try='test -s conftest.$ac_objext'
6482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483  (eval $ac_try) 2>&5
6484  ac_status=$?
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); }; }; then
6487  ac_cv_header_stdc=yes
6488else
6489  echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492ac_cv_header_stdc=no
6493fi
6494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6495
6496if test $ac_cv_header_stdc = yes; then
6497  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6498  cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504#include <string.h>
6505
6506_ACEOF
6507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508  $EGREP "memchr" >/dev/null 2>&1; then
6509  :
6510else
6511  ac_cv_header_stdc=no
6512fi
6513rm -f conftest*
6514
6515fi
6516
6517if test $ac_cv_header_stdc = yes; then
6518  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
6526
6527_ACEOF
6528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6529  $EGREP "free" >/dev/null 2>&1; then
6530  :
6531else
6532  ac_cv_header_stdc=no
6533fi
6534rm -f conftest*
6535
6536fi
6537
6538if test $ac_cv_header_stdc = yes; then
6539  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6540  if test "$cross_compiling" = yes; then
6541  :
6542else
6543  cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549#include <ctype.h>
6550#if ((' ' & 0x0FF) == 0x020)
6551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6553#else
6554# define ISLOWER(c) \
6555                   (('a' <= (c) && (c) <= 'i') \
6556                     || ('j' <= (c) && (c) <= 'r') \
6557                     || ('s' <= (c) && (c) <= 'z'))
6558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6559#endif
6560
6561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6562int
6563main ()
6564{
6565  int i;
6566  for (i = 0; i < 256; i++)
6567    if (XOR (islower (i), ISLOWER (i))
6568        || toupper (i) != TOUPPER (i))
6569      exit(2);
6570  exit (0);
6571}
6572_ACEOF
6573rm -f conftest$ac_exeext
6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575  (eval $ac_link) 2>&5
6576  ac_status=$?
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580  (eval $ac_try) 2>&5
6581  ac_status=$?
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); }; }; then
6584  :
6585else
6586  echo "$as_me: program exited with status $ac_status" >&5
6587echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590( exit $ac_status )
6591ac_cv_header_stdc=no
6592fi
6593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6594fi
6595fi
6596fi
6597echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6598echo "${ECHO_T}$ac_cv_header_stdc" >&6
6599if test $ac_cv_header_stdc = yes; then
6600
6601cat >>confdefs.h <<\_ACEOF
6602#define STDC_HEADERS 1
6603_ACEOF
6604
6605fi
6606
6607# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6618                  inttypes.h stdint.h unistd.h
6619do
6620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621echo "$as_me:$LINENO: checking for $ac_header" >&5
6622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6623if eval "test \"\${$as_ac_Header+set}\" = set"; then
6624  echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626  cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h.  */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h.  */
6632$ac_includes_default
6633
6634#include <$ac_header>
6635_ACEOF
6636rm -f conftest.$ac_objext
6637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638  (eval $ac_compile) 2>conftest.er1
6639  ac_status=$?
6640  grep -v '^ *+' conftest.er1 >conftest.err
6641  rm -f conftest.er1
6642  cat conftest.err >&5
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); } &&
6645         { ac_try='test -z "$ac_c_werror_flag"
6646                         || test ! -s conftest.err'
6647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648  (eval $ac_try) 2>&5
6649  ac_status=$?
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); }; } &&
6652         { ac_try='test -s conftest.$ac_objext'
6653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654  (eval $ac_try) 2>&5
6655  ac_status=$?
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); }; }; then
6658  eval "$as_ac_Header=yes"
6659else
6660  echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663eval "$as_ac_Header=no"
6664fi
6665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666fi
6667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6669if test `eval echo '${'$as_ac_Header'}'` = yes; then
6670  cat >>confdefs.h <<_ACEOF
6671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672_ACEOF
6673
6674fi
6675
6676done
6677
6678
6679
6680for ac_header in dlfcn.h
6681do
6682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684  echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687  echo $ECHO_N "(cached) $ECHO_C" >&6
6688fi
6689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691else
6692  # Is the header compilable?
6693echo "$as_me:$LINENO: checking $ac_header usability" >&5
6694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6695cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701$ac_includes_default
6702#include <$ac_header>
6703_ACEOF
6704rm -f conftest.$ac_objext
6705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706  (eval $ac_compile) 2>conftest.er1
6707  ac_status=$?
6708  grep -v '^ *+' conftest.er1 >conftest.err
6709  rm -f conftest.er1
6710  cat conftest.err >&5
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); } &&
6713         { ac_try='test -z "$ac_c_werror_flag"
6714                         || test ! -s conftest.err'
6715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716  (eval $ac_try) 2>&5
6717  ac_status=$?
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); }; } &&
6720         { ac_try='test -s conftest.$ac_objext'
6721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722  (eval $ac_try) 2>&5
6723  ac_status=$?
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); }; }; then
6726  ac_header_compiler=yes
6727else
6728  echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731ac_header_compiler=no
6732fi
6733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735echo "${ECHO_T}$ac_header_compiler" >&6
6736
6737# Is the header present?
6738echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746#include <$ac_header>
6747_ACEOF
6748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6750  ac_status=$?
6751  grep -v '^ *+' conftest.er1 >conftest.err
6752  rm -f conftest.er1
6753  cat conftest.err >&5
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); } >/dev/null; then
6756  if test -s conftest.err; then
6757    ac_cpp_err=$ac_c_preproc_warn_flag
6758    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6759  else
6760    ac_cpp_err=
6761  fi
6762else
6763  ac_cpp_err=yes
6764fi
6765if test -z "$ac_cpp_err"; then
6766  ac_header_preproc=yes
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771  ac_header_preproc=no
6772fi
6773rm -f conftest.err conftest.$ac_ext
6774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775echo "${ECHO_T}$ac_header_preproc" >&6
6776
6777# So?  What about this header?
6778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6779  yes:no: )
6780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6784    ac_header_preproc=yes
6785    ;;
6786  no:yes:* )
6787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6799    (
6800      cat <<\_ASBOX
6801## ------------------------------------ ##
6802## Report this to cbc@lists.coin-or.org ##
6803## ------------------------------------ ##
6804_ASBOX
6805    ) |
6806      sed "s/^/$as_me: WARNING:     /" >&2
6807    ;;
6808esac
6809echo "$as_me:$LINENO: checking for $ac_header" >&5
6810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  eval "$as_ac_Header=\$ac_header_preproc"
6815fi
6816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818
6819fi
6820if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821  cat >>confdefs.h <<_ACEOF
6822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826
6827done
6828
6829
6830
6831if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6832    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6833    (test "X$CXX" != "Xg++"))) ; then
6834  ac_ext=cc
6835ac_cpp='$CXXCPP $CPPFLAGS'
6836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6839echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6840echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6841if test -z "$CXXCPP"; then
6842  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6843  echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845      # Double quotes because CXXCPP needs to be expanded
6846    for CXXCPP in "$CXX -E" "/lib/cpp"
6847    do
6848      ac_preproc_ok=false
6849for ac_cxx_preproc_warn_flag in '' yes
6850do
6851  # Use a header file that comes with gcc, so configuring glibc
6852  # with a fresh cross-compiler works.
6853  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6854  # <limits.h> exists even on freestanding compilers.
6855  # On the NeXT, cc -E runs the code through the compiler's parser,
6856  # not just through cpp. "Syntax error" is here to catch this case.
6857  cat >conftest.$ac_ext <<_ACEOF
6858/* confdefs.h.  */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h.  */
6863#ifdef __STDC__
6864# include <limits.h>
6865#else
6866# include <assert.h>
6867#endif
6868                     Syntax error
6869_ACEOF
6870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6871  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6872  ac_status=$?
6873  grep -v '^ *+' conftest.er1 >conftest.err
6874  rm -f conftest.er1
6875  cat conftest.err >&5
6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877  (exit $ac_status); } >/dev/null; then
6878  if test -s conftest.err; then
6879    ac_cpp_err=$ac_cxx_preproc_warn_flag
6880    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6881  else
6882    ac_cpp_err=
6883  fi
6884else
6885  ac_cpp_err=yes
6886fi
6887if test -z "$ac_cpp_err"; then
6888  :
6889else
6890  echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893  # Broken: fails on valid input.
6894continue
6895fi
6896rm -f conftest.err conftest.$ac_ext
6897
6898  # OK, works on sane cases.  Now check whether non-existent headers
6899  # can be detected and how.
6900  cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h.  */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h.  */
6906#include <ac_nonexistent.h>
6907_ACEOF
6908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6909  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6910  ac_status=$?
6911  grep -v '^ *+' conftest.er1 >conftest.err
6912  rm -f conftest.er1
6913  cat conftest.err >&5
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); } >/dev/null; then
6916  if test -s conftest.err; then
6917    ac_cpp_err=$ac_cxx_preproc_warn_flag
6918    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6919  else
6920    ac_cpp_err=
6921  fi
6922else
6923  ac_cpp_err=yes
6924fi
6925if test -z "$ac_cpp_err"; then
6926  # Broken: success on invalid input.
6927continue
6928else
6929  echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932  # Passes both tests.
6933ac_preproc_ok=:
6934break
6935fi
6936rm -f conftest.err conftest.$ac_ext
6937
6938done
6939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940rm -f conftest.err conftest.$ac_ext
6941if $ac_preproc_ok; then
6942  break
6943fi
6944
6945    done
6946    ac_cv_prog_CXXCPP=$CXXCPP
6947
6948fi
6949  CXXCPP=$ac_cv_prog_CXXCPP
6950else
6951  ac_cv_prog_CXXCPP=$CXXCPP
6952fi
6953echo "$as_me:$LINENO: result: $CXXCPP" >&5
6954echo "${ECHO_T}$CXXCPP" >&6
6955ac_preproc_ok=false
6956for ac_cxx_preproc_warn_flag in '' yes
6957do
6958  # Use a header file that comes with gcc, so configuring glibc
6959  # with a fresh cross-compiler works.
6960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961  # <limits.h> exists even on freestanding compilers.
6962  # On the NeXT, cc -E runs the code through the compiler's parser,
6963  # not just through cpp. "Syntax error" is here to catch this case.
6964  cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h.  */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h.  */
6970#ifdef __STDC__
6971# include <limits.h>
6972#else
6973# include <assert.h>
6974#endif
6975                     Syntax error
6976_ACEOF
6977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6979  ac_status=$?
6980  grep -v '^ *+' conftest.er1 >conftest.err
6981  rm -f conftest.er1
6982  cat conftest.err >&5
6983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984  (exit $ac_status); } >/dev/null; then
6985  if test -s conftest.err; then
6986    ac_cpp_err=$ac_cxx_preproc_warn_flag
6987    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6988  else
6989    ac_cpp_err=
6990  fi
6991else
6992  ac_cpp_err=yes
6993fi
6994if test -z "$ac_cpp_err"; then
6995  :
6996else
6997  echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000  # Broken: fails on valid input.
7001continue
7002fi
7003rm -f conftest.err conftest.$ac_ext
7004
7005  # OK, works on sane cases.  Now check whether non-existent headers
7006  # can be detected and how.
7007  cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h.  */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
7012/* end confdefs.h.  */
7013#include <ac_nonexistent.h>
7014_ACEOF
7015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7016  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } >/dev/null; then
7023  if test -s conftest.err; then
7024    ac_cpp_err=$ac_cxx_preproc_warn_flag
7025    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7026  else
7027    ac_cpp_err=
7028  fi
7029else
7030  ac_cpp_err=yes
7031fi
7032if test -z "$ac_cpp_err"; then
7033  # Broken: success on invalid input.
7034continue
7035else
7036  echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039  # Passes both tests.
7040ac_preproc_ok=:
7041break
7042fi
7043rm -f conftest.err conftest.$ac_ext
7044
7045done
7046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7047rm -f conftest.err conftest.$ac_ext
7048if $ac_preproc_ok; then
7049  :
7050else
7051  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7052See \`config.log' for more details." >&5
7053echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7054See \`config.log' for more details." >&2;}
7055   { (exit 1); exit 1; }; }
7056fi
7057
7058ac_ext=cc
7059ac_cpp='$CXXCPP $CPPFLAGS'
7060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7063
7064fi
7065
7066ac_ext=f
7067ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7068ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7070if test -n "$ac_tool_prefix"; then
7071  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7072  do
7073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7075echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7077if test "${ac_cv_prog_F77+set}" = set; then
7078  echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080  if test -n "$F77"; then
7081  ac_cv_prog_F77="$F77" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088  for ac_exec_ext in '' $ac_executable_extensions; do
7089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095done
7096
7097fi
7098fi
7099F77=$ac_cv_prog_F77
7100if test -n "$F77"; then
7101  echo "$as_me:$LINENO: result: $F77" >&5
7102echo "${ECHO_T}$F77" >&6
7103else
7104  echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6
7106fi
7107
7108    test -n "$F77" && break
7109  done
7110fi
7111if test -z "$F77"; then
7112  ac_ct_F77=$F77
7113  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7114do
7115  # Extract the first word of "$ac_prog", so it can be a program name with args.
7116set dummy $ac_prog; ac_word=$2
7117echo "$as_me:$LINENO: checking for $ac_word" >&5
7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7119if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7120  echo $ECHO_N "(cached) $ECHO_C" >&6
7121else
7122  if test -n "$ac_ct_F77"; then
7123  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128  IFS=$as_save_IFS
7129  test -z "$as_dir" && as_dir=.
7130  for ac_exec_ext in '' $ac_executable_extensions; do
7131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132    ac_cv_prog_ac_ct_F77="$ac_prog"
7133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134    break 2
7135  fi
7136done
7137done
7138
7139fi
7140fi
7141ac_ct_F77=$ac_cv_prog_ac_ct_F77
7142if test -n "$ac_ct_F77"; then
7143  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7144echo "${ECHO_T}$ac_ct_F77" >&6
7145else
7146  echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148fi
7149
7150  test -n "$ac_ct_F77" && break
7151done
7152
7153  F77=$ac_ct_F77
7154fi
7155
7156
7157# Provide some information about the compiler.
7158echo "$as_me:7158:" \
7159     "checking for Fortran 77 compiler version" >&5
7160ac_compiler=`set X $ac_compile; echo $2`
7161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7162  (eval $ac_compiler --version </dev/null >&5) 2>&5
7163  ac_status=$?
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); }
7166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7167  (eval $ac_compiler -v </dev/null >&5) 2>&5
7168  ac_status=$?
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); }
7171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7172  (eval $ac_compiler -V </dev/null >&5) 2>&5
7173  ac_status=$?
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); }
7176rm -f a.out
7177
7178# If we don't use `.F' as extension, the preprocessor is not run on the
7179# input file.  (Note that this only needs to work for GNU compilers.)
7180ac_save_ext=$ac_ext
7181ac_ext=F
7182echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7183echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7184if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187  cat >conftest.$ac_ext <<_ACEOF
7188      program main
7189#ifndef __GNUC__
7190       choke me
7191#endif
7192
7193      end
7194_ACEOF
7195rm -f conftest.$ac_objext
7196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197  (eval $ac_compile) 2>conftest.er1
7198  ac_status=$?
7199  grep -v '^ *+' conftest.er1 >conftest.err
7200  rm -f conftest.er1
7201  cat conftest.err >&5
7202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); } &&
7204         { ac_try='test -z "$ac_f77_werror_flag"
7205                         || test ! -s conftest.err'
7206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207  (eval $ac_try) 2>&5
7208  ac_status=$?
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); }; } &&
7211         { ac_try='test -s conftest.$ac_objext'
7212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213  (eval $ac_try) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; }; then
7217  ac_compiler_gnu=yes
7218else
7219  echo "$as_me: failed program was:" >&5
7220sed 's/^/| /' conftest.$ac_ext >&5
7221
7222ac_compiler_gnu=no
7223fi
7224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7225ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7226
7227fi
7228echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7229echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7230ac_ext=$ac_save_ext
7231ac_test_FFLAGS=${FFLAGS+set}
7232ac_save_FFLAGS=$FFLAGS
7233FFLAGS=
7234echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7235echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7236if test "${ac_cv_prog_f77_g+set}" = set; then
7237  echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239  FFLAGS=-g
7240cat >conftest.$ac_ext <<_ACEOF
7241      program main
7242
7243      end
7244_ACEOF
7245rm -f conftest.$ac_objext
7246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247  (eval $ac_compile) 2>conftest.er1
7248  ac_status=$?
7249  grep -v '^ *+' conftest.er1 >conftest.err
7250  rm -f conftest.er1
7251  cat conftest.err >&5
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); } &&
7254         { ac_try='test -z "$ac_f77_werror_flag"
7255                         || test ! -s conftest.err'
7256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257  (eval $ac_try) 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }; } &&
7261         { ac_try='test -s conftest.$ac_objext'
7262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263  (eval $ac_try) 2>&5
7264  ac_status=$?
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); }; }; then
7267  ac_cv_prog_f77_g=yes
7268else
7269  echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
7271
7272ac_cv_prog_f77_g=no
7273fi
7274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276fi
7277echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7278echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7279if test "$ac_test_FFLAGS" = set; then
7280  FFLAGS=$ac_save_FFLAGS
7281elif test $ac_cv_prog_f77_g = yes; then
7282  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7283    FFLAGS="-g -O2"
7284  else
7285    FFLAGS="-g"
7286  fi
7287else
7288  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7289    FFLAGS="-O2"
7290  else
7291    FFLAGS=
7292  fi
7293fi
7294
7295G77=`test $ac_compiler_gnu = yes && echo yes`
7296ac_ext=c
7297ac_cpp='$CPP $CPPFLAGS'
7298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302
7303
7304# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7305
7306# find the maximum length of command line arguments
7307echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7308echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7309if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312    i=0
7313  teststring="ABCD"
7314
7315  case $build_os in
7316  msdosdjgpp*)
7317    # On DJGPP, this test can blow up pretty badly due to problems in libc
7318    # (any single argument exceeding 2000 bytes causes a buffer overrun
7319    # during glob expansion).  Even if it were fixed, the result of this
7320    # check would be larger than it should be.
7321    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7322    ;;
7323
7324  gnu*)
7325    # Under GNU Hurd, this test is not required because there is
7326    # no limit to the length of command line arguments.
7327    # Libtool will interpret -1 as no limit whatsoever
7328    lt_cv_sys_max_cmd_len=-1;
7329    ;;
7330
7331  cygwin* | mingw*)
7332    # On Win9x/ME, this test blows up -- it succeeds, but takes
7333    # about 5 minutes as the teststring grows exponentially.
7334    # Worse, since 9x/ME are not pre-emptively multitasking,
7335    # you end up with a "frozen" computer, even though with patience
7336    # the test eventually succeeds (with a max line length of 256k).
7337    # Instead, let's just punt: use the minimum linelength reported by
7338    # all of the supported platforms: 8192 (on NT/2K/XP).
7339    lt_cv_sys_max_cmd_len=8192;
7340    ;;
7341
7342  amigaos*)
7343    # On AmigaOS with pdksh, this test takes hours, literally.
7344    # So we just punt and use a minimum line length of 8192.
7345    lt_cv_sys_max_cmd_len=8192;
7346    ;;
7347
7348  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7349    # This has been around since 386BSD, at least.  Likely further.
7350    if test -x /sbin/sysctl; then
7351      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7352    elif test -x /usr/sbin/sysctl; then
7353      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7354    else
7355      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7356    fi
7357    # And add a safety zone
7358    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7359    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7360    ;;
7361
7362  interix*)
7363    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7364    lt_cv_sys_max_cmd_len=196608
7365    ;;
7366
7367  osf*)
7368    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7369    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7370    # nice to cause kernel panics so lets avoid the loop below.
7371    # First set a reasonable default.
7372    lt_cv_sys_max_cmd_len=16384
7373    #
7374    if test -x /sbin/sysconfig; then
7375      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7376        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7377      esac
7378    fi
7379    ;;
7380  sco3.2v5*)
7381    lt_cv_sys_max_cmd_len=102400
7382    ;;
7383  sysv5* | sco5v6* | sysv4.2uw2*)
7384    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7385    if test -n "$kargmax"; then
7386      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7387    else
7388      lt_cv_sys_max_cmd_len=32768
7389    fi
7390    ;;
7391  *)
7392    # If test is not a shell built-in, we'll probably end up computing a
7393    # maximum length that is only half of the actual maximum length, but
7394    # we can't tell.
7395    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7396    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7397               = "XX$teststring") >/dev/null 2>&1 &&
7398            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7399            lt_cv_sys_max_cmd_len=$new_result &&
7400            test $i != 17 # 1/2 MB should be enough
7401    do
7402      i=`expr $i + 1`
7403      teststring=$teststring$teststring
7404    done
7405    teststring=
7406    # Add a significant safety factor because C++ compilers can tack on massive
7407    # amounts of additional arguments before passing them to the linker.
7408    # It appears as though 1/2 is a usable value.
7409    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7410    ;;
7411  esac
7412
7413fi
7414
7415if test -n $lt_cv_sys_max_cmd_len ; then
7416  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7417echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7418else
7419  echo "$as_me:$LINENO: result: none" >&5
7420echo "${ECHO_T}none" >&6
7421fi
7422
7423
7424
7425
7426# Check for command to grab the raw symbol name followed by C symbol from nm.
7427echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7428echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7429if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7430  echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432
7433# These are sane defaults that work on at least a few old systems.
7434# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7435
7436# Character class describing NM global symbol codes.
7437symcode='[BCDEGRST]'
7438
7439# Regexp to match symbols that can be accessed directly from C.
7440sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7441
7442# Transform an extracted symbol line into a proper C declaration
7443lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7444
7445# Transform an extracted symbol line into symbol name and symbol address
7446lt_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'"
7447
7448# Define system-specific variables.
7449case $host_os in
7450aix*)
7451  symcode='[BCDT]'
7452  ;;
7453cygwin* | mingw* | pw32*)
7454  symcode='[ABCDGISTW]'
7455  ;;
7456hpux*) # Its linker distinguishes data from code symbols
7457  if test "$host_cpu" = ia64; then
7458    symcode='[ABCDEGRST]'
7459  fi
7460  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7461  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'"
7462  ;;
7463linux*)
7464  if test "$host_cpu" = ia64; then
7465    symcode='[ABCDGIRSTW]'
7466    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7467    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'"
7468  fi
7469  ;;
7470irix* | nonstopux*)
7471  symcode='[BCDEGRST]'
7472  ;;
7473osf*)
7474  symcode='[BCDEGQRST]'
7475  ;;
7476solaris*)
7477  symcode='[BDRT]'
7478  ;;
7479sco3.2v5*)
7480  symcode='[DT]'
7481  ;;
7482sysv4.2uw2*)
7483  symcode='[DT]'
7484  ;;
7485sysv5* | sco5v6* | unixware* | OpenUNIX*)
7486  symcode='[ABDT]'
7487  ;;
7488sysv4)
7489  symcode='[DFNSTU]'
7490  ;;
7491esac
7492
7493# Handle CRLF in mingw tool chain
7494opt_cr=
7495case $build_os in
7496mingw*)
7497  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7498  ;;
7499esac
7500
7501# If we're using GNU nm, then use its standard symbol codes.
7502case `$NM -V 2>&1` in
7503*GNU* | *'with BFD'*)
7504  symcode='[ABCDGIRSTW]' ;;
7505esac
7506
7507# Try without a prefix undercore, then with it.
7508for ac_symprfx in "" "_"; do
7509
7510  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7511  symxfrm="\\1 $ac_symprfx\\2 \\2"
7512
7513  # Write the raw and C identifiers.
7514  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7515
7516  # Check to see that the pipe works correctly.
7517  pipe_works=no
7518
7519  rm -f conftest*
7520  cat > conftest.$ac_ext <<EOF
7521#ifdef __cplusplus
7522extern "C" {
7523#endif
7524char nm_test_var;
7525void nm_test_func(){}
7526#ifdef __cplusplus
7527}
7528#endif
7529int main(){nm_test_var='a';nm_test_func();return(0);}
7530EOF
7531
7532  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533  (eval $ac_compile) 2>&5
7534  ac_status=$?
7535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536  (exit $ac_status); }; then
7537    # Now try to grab the symbols.
7538    nlist=conftest.nm
7539    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7540  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); } && test -s "$nlist"; then
7544      # Try sorting and uniquifying the output.
7545      if sort "$nlist" | uniq > "$nlist"T; then
7546        mv -f "$nlist"T "$nlist"
7547      else
7548        rm -f "$nlist"T
7549      fi
7550
7551      # Make sure that we snagged all the symbols we need.
7552      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7553        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7554          cat <<EOF > conftest.$ac_ext
7555#ifdef __cplusplus
7556extern "C" {
7557#endif
7558
7559EOF
7560          # Now generate the symbol file.
7561          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7562
7563          cat <<EOF >> conftest.$ac_ext
7564#if defined (__STDC__) && __STDC__
7565# define lt_ptr_t void *
7566#else
7567# define lt_ptr_t char *
7568# define const
7569#endif
7570
7571/* The mapping between symbol names and symbols. */
7572const struct {
7573  const char *name;
7574  lt_ptr_t address;
7575}
7576lt_preloaded_symbols[] =
7577{
7578EOF
7579          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7580          cat <<\EOF >> conftest.$ac_ext
7581  {0, (lt_ptr_t) 0}
7582};
7583
7584#ifdef __cplusplus
7585}
7586#endif
7587EOF
7588          # Now try linking the two files.
7589          mv conftest.$ac_objext conftstm.$ac_objext
7590          lt_save_LIBS="$LIBS"
7591          lt_save_CFLAGS="$CFLAGS"
7592          LIBS="conftstm.$ac_objext"
7593          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7594          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595  (eval $ac_link) 2>&5
7596  ac_status=$?
7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7599            pipe_works=yes
7600          fi
7601          LIBS="$lt_save_LIBS"
7602          CFLAGS="$lt_save_CFLAGS"
7603        else
7604          echo "cannot find nm_test_func in $nlist" >&5
7605        fi
7606      else
7607        echo "cannot find nm_test_var in $nlist" >&5
7608      fi
7609    else
7610      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7611    fi
7612  else
7613    echo "$progname: failed program was:" >&5
7614    cat conftest.$ac_ext >&5
7615  fi
7616  rm -f conftest* conftst*
7617
7618  # Do not use the global_symbol_pipe unless it works.
7619  if test "$pipe_works" = yes; then
7620    break
7621  else
7622    lt_cv_sys_global_symbol_pipe=
7623  fi
7624done
7625
7626fi
7627
7628if test -z "$lt_cv_sys_global_symbol_pipe"; then
7629  lt_cv_sys_global_symbol_to_cdecl=
7630fi
7631if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7632  echo "$as_me:$LINENO: result: failed" >&5
7633echo "${ECHO_T}failed" >&6
7634else
7635  echo "$as_me:$LINENO: result: ok" >&5
7636echo "${ECHO_T}ok" >&6
7637fi
7638
7639echo "$as_me:$LINENO: checking for objdir" >&5
7640echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7641if test "${lt_cv_objdir+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644  rm -f .libs 2>/dev/null
7645mkdir .libs 2>/dev/null
7646if test -d .libs; then
7647  lt_cv_objdir=.libs
7648else
7649  # MS-DOS does not allow filenames that begin with a dot.
7650  lt_cv_objdir=_libs
7651fi
7652rmdir .libs 2>/dev/null
7653fi
7654echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7655echo "${ECHO_T}$lt_cv_objdir" >&6
7656objdir=$lt_cv_objdir
7657
7658
7659
7660
7661
7662case $host_os in
7663aix3*)
7664  # AIX sometimes has problems with the GCC collect2 program.  For some
7665  # reason, if we set the COLLECT_NAMES environment variable, the problems
7666  # vanish in a puff of smoke.
7667  if test "X${COLLECT_NAMES+set}" != Xset; then
7668    COLLECT_NAMES=
7669    export COLLECT_NAMES
7670  fi
7671  ;;
7672esac
7673
7674# Sed substitution that helps us do robust quoting.  It backslashifies
7675# metacharacters that are still active within double-quoted strings.
7676Xsed='sed -e 1s/^X//'
7677sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7678
7679# Same as above, but do not quote variable references.
7680double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7681
7682# Sed substitution to delay expansion of an escaped shell variable in a
7683# double_quote_subst'ed string.
7684delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7685
7686# Sed substitution to avoid accidental globbing in evaled expressions
7687no_glob_subst='s/\*/\\\*/g'
7688
7689# Constants:
7690rm="rm -f"
7691
7692# Global variables:
7693default_ofile=libtool
7694can_build_shared=yes
7695
7696# All known linkers require a `.a' archive for static linking (except MSVC,
7697# which needs '.lib').
7698libext=a
7699ltmain="$ac_aux_dir/ltmain.sh"
7700ofile="$default_ofile"
7701with_gnu_ld="$lt_cv_prog_gnu_ld"
7702
7703if test -n "$ac_tool_prefix"; then
7704  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}ar; ac_word=$2
7706echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708if test "${ac_cv_prog_AR+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  if test -n "$AR"; then
7712  ac_cv_prog_AR="$AR" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717  IFS=$as_save_IFS
7718  test -z "$as_dir" && as_dir=.
7719  for ac_exec_ext in '' $ac_executable_extensions; do
7720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721    ac_cv_prog_AR="${ac_tool_prefix}ar"
7722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723    break 2
7724  fi
7725done
7726done
7727
7728fi
7729fi
7730AR=$ac_cv_prog_AR
7731if test -n "$AR"; then
7732  echo "$as_me:$LINENO: result: $AR" >&5
7733echo "${ECHO_T}$AR" >&6
7734else
7735  echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739fi
7740if test -z "$ac_cv_prog_AR"; then
7741  ac_ct_AR=$AR
7742  # Extract the first word of "ar", so it can be a program name with args.
7743set dummy ar; ac_word=$2
7744echo "$as_me:$LINENO: checking for $ac_word" >&5
7745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7746if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7747  echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749  if test -n "$ac_ct_AR"; then
7750  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7751else
7752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755  IFS=$as_save_IFS
7756  test -z "$as_dir" && as_dir=.
7757  for ac_exec_ext in '' $ac_executable_extensions; do
7758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759    ac_cv_prog_ac_ct_AR="ar"
7760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761    break 2
7762  fi
7763done
7764done
7765
7766  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7767fi
7768fi
7769ac_ct_AR=$ac_cv_prog_ac_ct_AR
7770if test -n "$ac_ct_AR"; then
7771  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7772echo "${ECHO_T}$ac_ct_AR" >&6
7773else
7774  echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
7776fi
7777
7778  AR=$ac_ct_AR
7779else
7780  AR="$ac_cv_prog_AR"
7781fi
7782
7783if test -n "$ac_tool_prefix"; then
7784  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788if test "${ac_cv_prog_RANLIB+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791  if test -n "$RANLIB"; then
7792  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797  IFS=$as_save_IFS
7798  test -z "$as_dir" && as_dir=.
7799  for ac_exec_ext in '' $ac_executable_extensions; do
7800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803    break 2
7804  fi
7805done
7806done
7807
7808fi
7809fi
7810RANLIB=$ac_cv_prog_RANLIB
7811if test -n "$RANLIB"; then
7812  echo "$as_me:$LINENO: result: $RANLIB" >&5
7813echo "${ECHO_T}$RANLIB" >&6
7814else
7815  echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819fi
7820if test -z "$ac_cv_prog_RANLIB"; then
7821  ac_ct_RANLIB=$RANLIB
7822  # Extract the first word of "ranlib", so it can be a program name with args.
7823set dummy ranlib; ac_word=$2
7824echo "$as_me:$LINENO: checking for $ac_word" >&5
7825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7826if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7827  echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829  if test -n "$ac_ct_RANLIB"; then
7830  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835  IFS=$as_save_IFS
7836  test -z "$as_dir" && as_dir=.
7837  for ac_exec_ext in '' $ac_executable_extensions; do
7838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839    ac_cv_prog_ac_ct_RANLIB="ranlib"
7840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841    break 2
7842  fi
7843done
7844done
7845
7846  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7847fi
7848fi
7849ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7850if test -n "$ac_ct_RANLIB"; then
7851  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7852echo "${ECHO_T}$ac_ct_RANLIB" >&6
7853else
7854  echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
7856fi
7857
7858  RANLIB=$ac_ct_RANLIB
7859else
7860  RANLIB="$ac_cv_prog_RANLIB"
7861fi
7862
7863if test -n "$ac_tool_prefix"; then
7864  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7865set dummy ${ac_tool_prefix}strip; ac_word=$2
7866echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_prog_STRIP+set}" = set; then
7869  echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871  if test -n "$STRIP"; then
7872  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877  IFS=$as_save_IFS
7878  test -z "$as_dir" && as_dir=.
7879  for ac_exec_ext in '' $ac_executable_extensions; do
7880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883    break 2
7884  fi
7885done
7886done
7887
7888fi
7889fi
7890STRIP=$ac_cv_prog_STRIP
7891if test -n "$STRIP"; then
7892  echo "$as_me:$LINENO: result: $STRIP" >&5
7893echo "${ECHO_T}$STRIP" >&6
7894else
7895  echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897fi
7898
7899fi
7900if test -z "$ac_cv_prog_STRIP"; then
7901  ac_ct_STRIP=$STRIP
7902  # Extract the first word of "strip", so it can be a program name with args.
7903set dummy strip; ac_word=$2
7904echo "$as_me:$LINENO: checking for $ac_word" >&5
7905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7907  echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909  if test -n "$ac_ct_STRIP"; then
7910  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915  IFS=$as_save_IFS
7916  test -z "$as_dir" && as_dir=.
7917  for ac_exec_ext in '' $ac_executable_extensions; do
7918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919    ac_cv_prog_ac_ct_STRIP="strip"
7920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921    break 2
7922  fi
7923done
7924done
7925
7926  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7927fi
7928fi
7929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7930if test -n "$ac_ct_STRIP"; then
7931  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7932echo "${ECHO_T}$ac_ct_STRIP" >&6
7933else
7934  echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
7936fi
7937
7938  STRIP=$ac_ct_STRIP
7939else
7940  STRIP="$ac_cv_prog_STRIP"
7941fi
7942
7943
7944old_CC="$CC"
7945old_CFLAGS="$CFLAGS"
7946
7947# Set sane defaults for various variables
7948test -z "$AR" && AR=ar
7949test -z "$AR_FLAGS" && AR_FLAGS=cru
7950test -z "$AS" && AS=as
7951test -z "$CC" && CC=cc
7952test -z "$LTCC" && LTCC=$CC
7953test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7954test -z "$DLLTOOL" && DLLTOOL=dlltool
7955test -z "$LD" && LD=ld
7956test -z "$LN_S" && LN_S="ln -s"
7957test -z "$MAGIC_CMD" && MAGIC_CMD=file
7958test -z "$NM" && NM=nm
7959test -z "$SED" && SED=sed
7960test -z "$OBJDUMP" && OBJDUMP=objdump
7961test -z "$RANLIB" && RANLIB=:
7962test -z "$STRIP" && STRIP=:
7963test -z "$ac_objext" && ac_objext=o
7964
7965# Determine commands to create old-style static archives.
7966old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7967old_postinstall_cmds='chmod 644 $oldlib'
7968old_postuninstall_cmds=
7969
7970if test -n "$RANLIB"; then
7971  case $host_os in
7972  openbsd*)
7973    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7974    ;;
7975  *)
7976    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7977    ;;
7978  esac
7979  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7980fi
7981
7982for cc_temp in $compiler""; do
7983  case $cc_temp in
7984    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7985    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7986    \-*) ;;
7987    *) break;;
7988  esac
7989done
7990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7991
7992
7993# Only perform the check for file, if the check method requires it
7994case $deplibs_check_method in
7995file_magic*)
7996  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7997    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7998echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8000  echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002  case $MAGIC_CMD in
8003[\\/*] |  ?:[\\/]*)
8004  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005  ;;
8006*)
8007  lt_save_MAGIC_CMD="$MAGIC_CMD"
8008  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8009  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8010  for ac_dir in $ac_dummy; do
8011    IFS="$lt_save_ifs"
8012    test -z "$ac_dir" && ac_dir=.
8013    if test -f $ac_dir/${ac_tool_prefix}file; then
8014      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8015      if test -n "$file_magic_test_file"; then
8016        case $deplibs_check_method in
8017        "file_magic "*)
8018          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8019          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8021            $EGREP "$file_magic_regex" > /dev/null; then
8022            :
8023          else
8024            cat <<EOF 1>&2
8025
8026*** Warning: the command libtool uses to detect shared libraries,
8027*** $file_magic_cmd, produces output that libtool cannot recognize.
8028*** The result is that libtool may fail to recognize shared libraries
8029*** as such.  This will affect the creation of libtool libraries that
8030*** depend on shared libraries, but programs linked with such libtool
8031*** libraries will work regardless of this problem.  Nevertheless, you
8032*** may want to report the problem to your system manager and/or to
8033*** bug-libtool@gnu.org
8034
8035EOF
8036          fi ;;
8037        esac
8038      fi
8039      break
8040    fi
8041  done
8042  IFS="$lt_save_ifs"
8043  MAGIC_CMD="$lt_save_MAGIC_CMD"
8044  ;;
8045esac
8046fi
8047
8048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049if test -n "$MAGIC_CMD"; then
8050  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8051echo "${ECHO_T}$MAGIC_CMD" >&6
8052else
8053  echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
8055fi
8056
8057if test -z "$lt_cv_path_MAGIC_CMD"; then
8058  if test -n "$ac_tool_prefix"; then
8059    echo "$as_me:$LINENO: checking for file" >&5
8060echo $ECHO_N "checking for file... $ECHO_C" >&6
8061if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062  echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064  case $MAGIC_CMD in
8065[\\/*] |  ?:[\\/]*)
8066  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8067  ;;
8068*)
8069  lt_save_MAGIC_CMD="$MAGIC_CMD"
8070  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8072  for ac_dir in $ac_dummy; do
8073    IFS="$lt_save_ifs"
8074    test -z "$ac_dir" && ac_dir=.
8075    if test -f $ac_dir/file; then
8076      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8077      if test -n "$file_magic_test_file"; then
8078        case $deplibs_check_method in
8079        "file_magic "*)
8080          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8081          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083            $EGREP "$file_magic_regex" > /dev/null; then
8084            :
8085          else
8086            cat <<EOF 1>&2
8087
8088*** Warning: the command libtool uses to detect shared libraries,
8089*** $file_magic_cmd, produces output that libtool cannot recognize.
8090*** The result is that libtool may fail to recognize shared libraries
8091*** as such.  This will affect the creation of libtool libraries that
8092*** depend on shared libraries, but programs linked with such libtool
8093*** libraries will work regardless of this problem.  Nevertheless, you
8094*** may want to report the problem to your system manager and/or to
8095*** bug-libtool@gnu.org
8096
8097EOF
8098          fi ;;
8099        esac
8100      fi
8101      break
8102    fi
8103  done
8104  IFS="$lt_save_ifs"
8105  MAGIC_CMD="$lt_save_MAGIC_CMD"
8106  ;;
8107esac
8108fi
8109
8110MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111if test -n "$MAGIC_CMD"; then
8112  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8113echo "${ECHO_T}$MAGIC_CMD" >&6
8114else
8115  echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
8117fi
8118
8119  else
8120    MAGIC_CMD=:
8121  fi
8122fi
8123
8124  fi
8125  ;;
8126esac
8127
8128enable_dlopen=no
8129enable_win32_dll=no
8130
8131# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8132if test "${enable_libtool_lock+set}" = set; then
8133  enableval="$enable_libtool_lock"
8134
8135fi;
8136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8137
8138
8139# Check whether --with-pic or --without-pic was given.
8140if test "${with_pic+set}" = set; then
8141  withval="$with_pic"
8142  pic_mode="$withval"
8143else
8144  pic_mode=default
8145fi;
8146test -z "$pic_mode" && pic_mode=default
8147
8148# Use C for the default configuration in the libtool script
8149tagname=
8150lt_save_CC="$CC"
8151ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157
8158# Source file extension for C test sources.
8159ac_ext=c
8160
8161# Object file extension for compiled C test sources.
8162objext=o
8163objext=$objext
8164
8165# Code to be used in simple compile tests
8166lt_simple_compile_test_code="int some_variable = 0;\n"
8167
8168# Code to be used in simple link tests
8169lt_simple_link_test_code='int main(){return(0);}\n'
8170
8171
8172# If no C compiler was specified, use CC.
8173LTCC=${LTCC-"$CC"}
8174
8175# If no C compiler flags were specified, use CFLAGS.
8176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8177
8178# Allow CC to be a program name with arguments.
8179compiler=$CC
8180
8181
8182# save warnings/boilerplate of simple test code
8183ac_outfile=conftest.$ac_objext
8184printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186_lt_compiler_boilerplate=`cat conftest.err`
8187$rm conftest*
8188
8189ac_outfile=conftest.$ac_objext
8190printf "$lt_simple_link_test_code" >conftest.$ac_ext
8191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192_lt_linker_boilerplate=`cat conftest.err`
8193$rm conftest*
8194
8195
8196## CAVEAT EMPTOR:
8197## There is no encapsulation within the following macros, do not change
8198## the running order or otherwise move them around unless you know exactly
8199## what you are doing...
8200
8201lt_prog_compiler_no_builtin_flag=
8202
8203if test "$GCC" = yes; then
8204  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8205
8206
8207echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8208echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8209if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212  lt_cv_prog_compiler_rtti_exceptions=no
8213  ac_outfile=conftest.$ac_objext
8214   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8215   lt_compiler_flag="-fno-rtti -fno-exceptions"
8216   # Insert the option either (1) after the last *FLAGS variable, or
8217   # (2) before a word containing "conftest.", or (3) at the end.
8218   # Note that $ac_compile itself does not contain backslashes and begins
8219   # with a dollar sign (not a hyphen), so the echo should work correctly.
8220   # The option is referenced via a variable to avoid confusing sed.
8221   lt_compile=`echo "$ac_compile" | $SED \
8222   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8223   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8224   -e 's:$: $lt_compiler_flag:'`
8225   (eval echo "\"\$as_me:8225: $lt_compile\"" >&5)
8226   (eval "$lt_compile" 2>conftest.err)
8227   ac_status=$?
8228   cat conftest.err >&5
8229   echo "$as_me:8229: \$? = $ac_status" >&5
8230   if (exit $ac_status) && test -s "$ac_outfile"; then
8231     # The compiler can only warn and ignore the option if not recognized
8232     # So say no if there are warnings other than the usual output.
8233     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8234     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8235     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8236       lt_cv_prog_compiler_rtti_exceptions=yes
8237     fi
8238   fi
8239   $rm conftest*
8240
8241fi
8242echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8243echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8244
8245if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8246    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8247else
8248    :
8249fi
8250
8251fi
8252
8253lt_prog_compiler_wl=
8254lt_prog_compiler_pic=
8255lt_prog_compiler_static=
8256
8257echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8258echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8259
8260  if test "$GCC" = yes; then
8261    lt_prog_compiler_wl='-Wl,'
8262    lt_prog_compiler_static='-static'
8263
8264    case $host_os in
8265      aix*)
8266      # All AIX code is PIC.
8267      if test "$host_cpu" = ia64; then
8268        # AIX 5 now supports IA64 processor
8269        lt_prog_compiler_static='-Bstatic'
8270      fi
8271      ;;
8272
8273    amigaos*)
8274      # FIXME: we need at least 68020 code to build shared libraries, but
8275      # adding the `-m68020' flag to GCC prevents building anything better,
8276      # like `-m68040'.
8277      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278      ;;
8279
8280    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8281      # PIC is the default for these OSes.
8282      ;;
8283
8284    mingw* | pw32* | os2*)
8285      # This hack is so that the source file can tell whether it is being
8286      # built for inclusion in a dll (and should export symbols for example).
8287      lt_prog_compiler_pic='-DDLL_EXPORT'
8288      ;;
8289
8290    darwin* | rhapsody*)
8291      # PIC is the default on this platform
8292      # Common symbols not allowed in MH_DYLIB files
8293      lt_prog_compiler_pic='-fno-common'
8294      ;;
8295
8296    interix3*)
8297      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8298      # Instead, we relocate shared libraries at runtime.
8299      ;;
8300
8301    msdosdjgpp*)
8302      # Just because we use GCC doesn't mean we suddenly get shared libraries
8303      # on systems that don't support them.
8304      lt_prog_compiler_can_build_shared=no
8305      enable_shared=no
8306      ;;
8307
8308    sysv4*MP*)
8309      if test -d /usr/nec; then
8310        lt_prog_compiler_pic=-Kconform_pic
8311      fi
8312      ;;
8313
8314    hpux*)
8315      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8316      # not for PA HP-UX.
8317      case $host_cpu in
8318      hppa*64*|ia64*)
8319        # +Z the default
8320        ;;
8321      *)
8322        lt_prog_compiler_pic='-fPIC'
8323        ;;
8324      esac
8325      ;;
8326
8327    *)
8328      lt_prog_compiler_pic='-fPIC'
8329      ;;
8330    esac
8331  else
8332    # PORTME Check for flag to pass linker flags through the system compiler.
8333    case $host_os in
8334    aix*)
8335      lt_prog_compiler_wl='-Wl,'
8336      if test "$host_cpu" = ia64; then
8337        # AIX 5 now supports IA64 processor
8338        lt_prog_compiler_static='-Bstatic'
8339      else
8340        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8341      fi
8342      ;;
8343      darwin*)
8344        # PIC is the default on this platform
8345        # Common symbols not allowed in MH_DYLIB files
8346       case $cc_basename in
8347         xlc*)
8348         lt_prog_compiler_pic='-qnocommon'
8349         lt_prog_compiler_wl='-Wl,'
8350         ;;
8351       esac
8352       ;;
8353
8354    mingw* | pw32* | os2*)
8355      # This hack is so that the source file can tell whether it is being
8356      # built for inclusion in a dll (and should export symbols for example).
8357      lt_prog_compiler_pic='-DDLL_EXPORT'
8358      ;;
8359
8360    hpux9* | hpux10* | hpux11*)
8361      lt_prog_compiler_wl='-Wl,'
8362      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8363      # not for PA HP-UX.
8364      case $host_cpu in
8365      hppa*64*|ia64*)
8366        # +Z the default
8367        ;;
8368      *)
8369        lt_prog_compiler_pic='+Z'
8370        ;;
8371      esac
8372      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8373      lt_prog_compiler_static='${wl}-a ${wl}archive'
8374      ;;
8375
8376    irix5* | irix6* | nonstopux*)
8377      lt_prog_compiler_wl='-Wl,'
8378      # PIC (with -KPIC) is the default.
8379      lt_prog_compiler_static='-non_shared'
8380      ;;
8381
8382    newsos6)
8383      lt_prog_compiler_pic='-KPIC'
8384      lt_prog_compiler_static='-Bstatic'
8385      ;;
8386
8387    linux*)
8388      case $cc_basename in
8389      icc* | ecc*)
8390        lt_prog_compiler_wl='-Wl,'
8391        lt_prog_compiler_pic='-KPIC'
8392        lt_prog_compiler_static='-static'
8393        ;;
8394      pgcc* | pgf77* | pgf90* | pgf95*)
8395        # Portland Group compilers (*not* the Pentium gcc compiler,
8396        # which looks to be a dead project)
8397        lt_prog_compiler_wl='-Wl,'
8398        lt_prog_compiler_pic='-fpic'
8399        lt_prog_compiler_static='-Bstatic'
8400        ;;
8401      ccc*)
8402        lt_prog_compiler_wl='-Wl,'
8403        # All Alpha code is PIC.
8404        lt_prog_compiler_static='-non_shared'
8405        ;;
8406      esac
8407      ;;
8408
8409    osf3* | osf4* | osf5*)
8410      lt_prog_compiler_wl='-Wl,'
8411      # All OSF/1 code is PIC.
8412      lt_prog_compiler_static='-non_shared'
8413      ;;
8414
8415    solaris*)
8416      lt_prog_compiler_pic='-KPIC'
8417      lt_prog_compiler_static='-Bstatic'
8418      case $cc_basename in
8419      f77* | f90* | f95*)
8420        lt_prog_compiler_wl='-Qoption ld ';;
8421      *)
8422        lt_prog_compiler_wl='-Wl,';;
8423      esac
8424      ;;
8425
8426    sunos4*)
8427      lt_prog_compiler_wl='-Qoption ld '
8428      lt_prog_compiler_pic='-PIC'
8429      lt_prog_compiler_static='-Bstatic'
8430      ;;
8431
8432    sysv4 | sysv4.2uw2* | sysv4.3*)
8433      lt_prog_compiler_wl='-Wl,'
8434      lt_prog_compiler_pic='-KPIC'
8435      lt_prog_compiler_static='-Bstatic'
8436      ;;
8437
8438    sysv4*MP*)
8439      if test -d /usr/nec ;then
8440        lt_prog_compiler_pic='-Kconform_pic'
8441        lt_prog_compiler_static='-Bstatic'
8442      fi
8443      ;;
8444
8445    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8446      lt_prog_compiler_wl='-Wl,'
8447      lt_prog_compiler_pic='-KPIC'
8448      lt_prog_compiler_static='-Bstatic'
8449      ;;
8450
8451    unicos*)
8452      lt_prog_compiler_wl='-Wl,'
8453      lt_prog_compiler_can_build_shared=no
8454      ;;
8455
8456    uts4*)
8457      lt_prog_compiler_pic='-pic'
8458      lt_prog_compiler_static='-Bstatic'
8459      ;;
8460
8461    *)
8462      lt_prog_compiler_can_build_shared=no
8463      ;;
8464    esac
8465  fi
8466
8467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8468echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8469
8470#
8471# Check to make sure the PIC flag actually works.
8472#
8473if test -n "$lt_prog_compiler_pic"; then
8474
8475echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8476echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8477if test "${lt_prog_compiler_pic_works+set}" = set; then
8478  echo $ECHO_N "(cached) $ECHO_C" >&6
8479else
8480  lt_prog_compiler_pic_works=no
8481  ac_outfile=conftest.$ac_objext
8482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8483   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8484   # Insert the option either (1) after the last *FLAGS variable, or
8485   # (2) before a word containing "conftest.", or (3) at the end.
8486   # Note that $ac_compile itself does not contain backslashes and begins
8487   # with a dollar sign (not a hyphen), so the echo should work correctly.
8488   # The option is referenced via a variable to avoid confusing sed.
8489   lt_compile=`echo "$ac_compile" | $SED \
8490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492   -e 's:$: $lt_compiler_flag:'`
8493   (eval echo "\"\$as_me:8493: $lt_compile\"" >&5)
8494   (eval "$lt_compile" 2>conftest.err)
8495   ac_status=$?
8496   cat conftest.err >&5
8497   echo "$as_me:8497: \$? = $ac_status" >&5
8498   if (exit $ac_status) && test -s "$ac_outfile"; then
8499     # The compiler can only warn and ignore the option if not recognized
8500     # So say no if there are warnings other than the usual output.
8501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8504       lt_prog_compiler_pic_works=yes
8505     fi
8506   fi
8507   $rm conftest*
8508
8509fi
8510echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8511echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8512
8513if test x"$lt_prog_compiler_pic_works" = xyes; then
8514    case $lt_prog_compiler_pic in
8515     "" | " "*) ;;
8516     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8517     esac
8518else
8519    lt_prog_compiler_pic=
8520     lt_prog_compiler_can_build_shared=no
8521fi
8522
8523fi
8524case $host_os in
8525  # For platforms which do not support PIC, -DPIC is meaningless:
8526  *djgpp*)
8527    lt_prog_compiler_pic=
8528    ;;
8529  *)
8530    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8531    ;;
8532esac
8533
8534#
8535# Check to make sure the static flag actually works.
8536#
8537wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8538echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8539echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8540if test "${lt_prog_compiler_static_works+set}" = set; then
8541  echo $ECHO_N "(cached) $ECHO_C" >&6
8542else
8543  lt_prog_compiler_static_works=no
8544   save_LDFLAGS="$LDFLAGS"
8545   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8546   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8547   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8548     # The linker can only warn and ignore the option if not recognized
8549     # So say no if there are warnings
8550     if test -s conftest.err; then
8551       # Append any errors to the config.log.
8552       cat conftest.err 1>&5
8553       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8554       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555       if diff conftest.exp conftest.er2 >/dev/null; then
8556         lt_prog_compiler_static_works=yes
8557       fi
8558     else
8559       lt_prog_compiler_static_works=yes
8560     fi
8561   fi
8562   $rm conftest*
8563   LDFLAGS="$save_LDFLAGS"
8564
8565fi
8566echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8567echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8568
8569if test x"$lt_prog_compiler_static_works" = xyes; then
8570    :
8571else
8572    lt_prog_compiler_static=
8573fi
8574
8575
8576echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8577echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8578if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581  lt_cv_prog_compiler_c_o=no
8582   $rm -r conftest 2>/dev/null
8583   mkdir conftest
8584   cd conftest
8585   mkdir out
8586   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8587
8588   lt_compiler_flag="-o out/conftest2.$ac_objext"
8589   # Insert the option either (1) after the last *FLAGS variable, or
8590   # (2) before a word containing "conftest.", or (3) at the end.
8591   # Note that $ac_compile itself does not contain backslashes and begins
8592   # with a dollar sign (not a hyphen), so the echo should work correctly.
8593   lt_compile=`echo "$ac_compile" | $SED \
8594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596   -e 's:$: $lt_compiler_flag:'`
8597   (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598   (eval "$lt_compile" 2>out/conftest.err)
8599   ac_status=$?
8600   cat out/conftest.err >&5
8601   echo "$as_me:8601: \$? = $ac_status" >&5
8602   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8603   then
8604     # The compiler can only warn and ignore the option if not recognized
8605     # So say no if there are warnings
8606     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8607     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8608     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8609       lt_cv_prog_compiler_c_o=yes
8610     fi
8611   fi
8612   chmod u+w . 2>&5
8613   $rm conftest*
8614   # SGI C++ compiler will create directory out/ii_files/ for
8615   # template instantiation
8616   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8617   $rm out/* && rmdir out
8618   cd ..
8619   rmdir conftest
8620   $rm conftest*
8621
8622fi
8623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8624echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8625
8626
8627hard_links="nottested"
8628if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8629  # do not overwrite the value of need_locks provided by the user
8630  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8631echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8632  hard_links=yes
8633  $rm conftest*
8634  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8635  touch conftest.a
8636  ln conftest.a conftest.b 2>&5 || hard_links=no
8637  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8638  echo "$as_me:$LINENO: result: $hard_links" >&5
8639echo "${ECHO_T}$hard_links" >&6
8640  if test "$hard_links" = no; then
8641    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8642echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8643    need_locks=warn
8644  fi
8645else
8646  need_locks=no
8647fi
8648
8649echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8650echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8651
8652  runpath_var=
8653  allow_undefined_flag=
8654  enable_shared_with_static_runtimes=no
8655  archive_cmds=
8656  archive_expsym_cmds=
8657  old_archive_From_new_cmds=
8658  old_archive_from_expsyms_cmds=
8659  export_dynamic_flag_spec=
8660  whole_archive_flag_spec=
8661  thread_safe_flag_spec=
8662  hardcode_libdir_flag_spec=
8663  hardcode_libdir_flag_spec_ld=
8664  hardcode_libdir_separator=
8665  hardcode_direct=no
8666  hardcode_minus_L=no
8667  hardcode_shlibpath_var=unsupported
8668  link_all_deplibs=unknown
8669  hardcode_automatic=no
8670  module_cmds=
8671  module_expsym_cmds=
8672  always_export_symbols=no
8673  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8674  # include_expsyms should be a list of space-separated symbols to be *always*
8675  # included in the symbol list
8676  include_expsyms=
8677  # exclude_expsyms can be an extended regexp of symbols to exclude
8678  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8679  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8680  # as well as any symbol that contains `d'.
8681  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8682  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8683  # platforms (ab)use it in PIC code, but their linkers get confused if
8684  # the symbol is explicitly referenced.  Since portable code cannot
8685  # rely on this symbol name, it's probably fine to never include it in
8686  # preloaded symbol tables.
8687  extract_expsyms_cmds=
8688  # Just being paranoid about ensuring that cc_basename is set.
8689  for cc_temp in $compiler""; do
8690  case $cc_temp in
8691    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8692    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8693    \-*) ;;
8694    *) break;;
8695  esac
8696done
8697cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8698
8699  case $host_os in
8700  cygwin* | mingw* | pw32*)
8701    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8702    # When not using gcc, we currently assume that we are using
8703    # Microsoft Visual C++.
8704    if test "$GCC" != yes; then
8705      with_gnu_ld=no
8706    fi
8707    ;;
8708  interix*)
8709    # we just hope/assume this is gcc and not c89 (= MSVC++)
8710    with_gnu_ld=yes
8711    ;;
8712  openbsd*)
8713    with_gnu_ld=no
8714    ;;
8715  esac
8716
8717  ld_shlibs=yes
8718  if test "$with_gnu_ld" = yes; then
8719    # If archive_cmds runs LD, not CC, wlarc should be empty
8720    wlarc='${wl}'
8721
8722    # Set some defaults for GNU ld with shared library support. These
8723    # are reset later if shared libraries are not supported. Putting them
8724    # here allows them to be overridden if necessary.
8725    runpath_var=LD_RUN_PATH
8726    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8727    export_dynamic_flag_spec='${wl}--export-dynamic'
8728    # ancient GNU ld didn't support --whole-archive et. al.
8729    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8730        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8731      else
8732        whole_archive_flag_spec=
8733    fi
8734    supports_anon_versioning=no
8735    case `$LD -v 2>/dev/null` in
8736      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8737      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8738      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8739      *\ 2.11.*) ;; # other 2.11 versions
8740      *) supports_anon_versioning=yes ;;
8741    esac
8742
8743    # See if GNU ld supports shared libraries.
8744    case $host_os in
8745    aix3* | aix4* | aix5*)
8746      # On AIX/PPC, the GNU linker is very broken
8747      if test "$host_cpu" != ia64; then
8748        ld_shlibs=no
8749        cat <<EOF 1>&2
8750
8751*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8752*** to be unable to reliably create shared libraries on AIX.
8753*** Therefore, libtool is disabling shared libraries support.  If you
8754*** really care for shared libraries, you may want to modify your PATH
8755*** so that a non-GNU linker is found, and then restart.
8756
8757EOF
8758      fi
8759      ;;
8760
8761    amigaos*)
8762      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)'
8763      hardcode_libdir_flag_spec='-L$libdir'
8764      hardcode_minus_L=yes
8765
8766      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8767      # that the semantics of dynamic libraries on AmigaOS, at least up
8768      # to version 4, is to share data among multiple programs linked
8769      # with the same dynamic library.  Since this doesn't match the
8770      # behavior of shared libraries on other platforms, we can't use
8771      # them.
8772      ld_shlibs=no
8773      ;;
8774
8775    beos*)
8776      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8777        allow_undefined_flag=unsupported
8778        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8779        # support --undefined.  This deserves some investigation.  FIXME
8780        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781      else
8782        ld_shlibs=no
8783      fi
8784      ;;
8785
8786    cygwin* | mingw* | pw32*)
8787      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8788      # as there is no search path for DLLs.
8789      hardcode_libdir_flag_spec='-L$libdir'
8790      allow_undefined_flag=unsupported
8791      always_export_symbols=no
8792      enable_shared_with_static_runtimes=yes
8793      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8794
8795      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8796        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8797        # If the export-symbols file already is a .def file (1st line
8798        # is EXPORTS), use it as is; otherwise, prepend...
8799        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8800          cp $export_symbols $output_objdir/$soname.def;
8801        else
8802          echo EXPORTS > $output_objdir/$soname.def;
8803          cat $export_symbols >> $output_objdir/$soname.def;
8804        fi~
8805        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8806      else
8807        ld_shlibs=no
8808      fi
8809      ;;
8810
8811    interix3*)
8812      hardcode_direct=no
8813      hardcode_shlibpath_var=no
8814      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8815      export_dynamic_flag_spec='${wl}-E'
8816      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8817      # Instead, shared libraries are loaded at an image base (0x10000000 by
8818      # default) and relocated if they conflict, which is a slow very memory
8819      # consuming and fragmenting process.  To avoid this, we pick a random,
8820      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8821      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8822      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8823      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'
8824      ;;
8825
8826    linux*)
8827      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8828        tmp_addflag=
8829        case $cc_basename,$host_cpu in
8830        pgcc*)                          # Portland Group C compiler
8831          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'
8832          tmp_addflag=' $pic_flag'
8833          ;;
8834        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8835          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'
8836          tmp_addflag=' $pic_flag -Mnomain' ;;
8837        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8838          tmp_addflag=' -i_dynamic' ;;
8839        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8840          tmp_addflag=' -i_dynamic -nofor_main' ;;
8841        ifc* | ifort*)                  # Intel Fortran compiler
8842          tmp_addflag=' -nofor_main' ;;
8843        esac
8844        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845
8846        if test $supports_anon_versioning = yes; then
8847          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8848  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8849  $echo "local: *; };" >> $output_objdir/$libname.ver~
8850          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8851        fi
8852      else
8853        ld_shlibs=no
8854      fi
8855      ;;
8856
8857    netbsd*)
8858      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8859        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8860        wlarc=
8861      else
8862        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8864      fi
8865      ;;
8866
8867    solaris*)
8868      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8869        ld_shlibs=no
8870        cat <<EOF 1>&2
8871
8872*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8873*** create shared libraries on Solaris systems.  Therefore, libtool
8874*** is disabling shared libraries support.  We urge you to upgrade GNU
8875*** binutils to release 2.9.1 or newer.  Another option is to modify
8876*** your PATH or compiler configuration so that the native linker is
8877*** used, and then restart.
8878
8879EOF
8880      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8881        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883      else
8884        ld_shlibs=no
8885      fi
8886      ;;
8887
8888    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8889      case `$LD -v 2>&1` in
8890        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8891        ld_shlibs=no
8892        cat <<_LT_EOF 1>&2
8893
8894*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8895*** reliably create shared libraries on SCO systems.  Therefore, libtool
8896*** is disabling shared libraries support.  We urge you to upgrade GNU
8897*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8898*** your PATH or compiler configuration so that the native linker is
8899*** used, and then restart.
8900
8901_LT_EOF
8902        ;;
8903        *)
8904          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8905            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8906            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8907            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8908          else
8909            ld_shlibs=no
8910          fi
8911        ;;
8912      esac
8913      ;;
8914
8915    sunos4*)
8916      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917      wlarc=
8918      hardcode_direct=yes
8919      hardcode_shlibpath_var=no
8920      ;;
8921
8922    *)
8923      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8924        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926      else
8927        ld_shlibs=no
8928      fi
8929      ;;
8930    esac
8931
8932    if test "$ld_shlibs" = no; then
8933      runpath_var=
8934      hardcode_libdir_flag_spec=
8935      export_dynamic_flag_spec=
8936      whole_archive_flag_spec=
8937    fi
8938  else
8939    # PORTME fill in a description of your system's linker (not GNU ld)
8940    case $host_os in
8941    aix3*)
8942      allow_undefined_flag=unsupported
8943      always_export_symbols=yes
8944      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'
8945      # Note: this linker hardcodes the directories in LIBPATH if there
8946      # are no directories specified by -L.
8947      hardcode_minus_L=yes
8948      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8949        # Neither direct hardcoding nor static linking is supported with a
8950        # broken collect2.
8951        hardcode_direct=unsupported
8952      fi
8953      ;;
8954
8955    aix4* | aix5*)
8956      if test "$host_cpu" = ia64; then
8957        # On IA64, the linker does run time linking by default, so we don't
8958        # have to do anything special.
8959        aix_use_runtimelinking=no
8960        exp_sym_flag='-Bexport'
8961        no_entry_flag=""
8962      else
8963        # If we're using GNU nm, then we don't want the "-C" option.
8964        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8965        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8966          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'
8967        else
8968          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'
8969        fi
8970        aix_use_runtimelinking=no
8971
8972        # Test if we are trying to use run time linking or normal
8973        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8974        # need to do runtime linking.
8975        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8976          for ld_flag in $LDFLAGS; do
8977          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8978            aix_use_runtimelinking=yes
8979            break
8980          fi
8981          done
8982          ;;
8983        esac
8984
8985        exp_sym_flag='-bexport'
8986        no_entry_flag='-bnoentry'
8987      fi
8988
8989      # When large executables or shared objects are built, AIX ld can
8990      # have problems creating the table of contents.  If linking a library
8991      # or program results in "error TOC overflow" add -mminimal-toc to
8992      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8993      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8994
8995      archive_cmds=''
8996      hardcode_direct=yes
8997      hardcode_libdir_separator=':'
8998      link_all_deplibs=yes
8999
9000      if test "$GCC" = yes; then
9001        case $host_os in aix4.[012]|aix4.[012].*)
9002        # We only want to do this on AIX 4.2 and lower, the check
9003        # below for broken collect2 doesn't work under 4.3+
9004          collect2name=`${CC} -print-prog-name=collect2`
9005          if test -f "$collect2name" && \
9006           strings "$collect2name" | grep resolve_lib_name >/dev/null
9007          then
9008          # We have reworked collect2
9009          hardcode_direct=yes
9010          else
9011          # We have old collect2
9012          hardcode_direct=unsupported
9013          # It fails to find uninstalled libraries when the uninstalled
9014          # path is not listed in the libpath.  Setting hardcode_minus_L
9015          # to unsupported forces relinking
9016          hardcode_minus_L=yes
9017          hardcode_libdir_flag_spec='-L$libdir'
9018          hardcode_libdir_separator=
9019          fi
9020          ;;
9021        esac
9022        shared_flag='-shared'
9023        if test "$aix_use_runtimelinking" = yes; then
9024          shared_flag="$shared_flag "'${wl}-G'
9025        fi
9026      else
9027        # not using gcc
9028        if test "$host_cpu" = ia64; then
9029        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9030        # chokes on -Wl,-G. The following line is correct:
9031          shared_flag='-G'
9032        else
9033          if test "$aix_use_runtimelinking" = yes; then
9034            shared_flag='${wl}-G'
9035          else
9036            shared_flag='${wl}-bM:SRE'
9037          fi
9038        fi
9039      fi
9040
9041      # It seems that -bexpall does not export symbols beginning with
9042      # underscore (_), so it is better to generate a list of symbols to export.
9043      always_export_symbols=yes
9044      if test "$aix_use_runtimelinking" = yes; then
9045        # Warning - without using the other runtime loading flags (-brtl),
9046        # -berok will link without error, but may produce a broken library.
9047        allow_undefined_flag='-berok'
9048       # Determine the default libpath from the value encoded in an empty executable.
9049       cat >conftest.$ac_ext <<_ACEOF
9050/* confdefs.h.  */
9051_ACEOF
9052cat confdefs.h >>conftest.$ac_ext
9053cat >>conftest.$ac_ext <<_ACEOF
9054/* end confdefs.h.  */
9055
9056int
9057main ()
9058{
9059
9060  ;
9061  return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext conftest$ac_exeext
9065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066  (eval $ac_link) 2>conftest.er1
9067  ac_status=$?
9068  grep -v '^ *+' conftest.er1 >conftest.err
9069  rm -f conftest.er1
9070  cat conftest.err >&5
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); } &&
9073         { ac_try='test -z "$ac_c_werror_flag"
9074                         || test ! -s conftest.err'
9075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076  (eval $ac_try) 2>&5
9077  ac_status=$?
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); }; } &&
9080         { ac_try='test -s conftest$ac_exeext'
9081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082  (eval $ac_try) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }; }; then
9086
9087aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9088}'`
9089# Check for a 64-bit object if we didn't find anything.
9090if 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; }
9091}'`; fi
9092else
9093  echo "$as_me: failed program was:" >&5
9094sed 's/^/| /' conftest.$ac_ext >&5
9095
9096fi
9097rm -f conftest.err conftest.$ac_objext \
9098      conftest$ac_exeext conftest.$ac_ext
9099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9100
9101       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9102        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"
9103       else
9104        if test "$host_cpu" = ia64; then
9105          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9106          allow_undefined_flag="-z nodefs"
9107          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"
9108        else
9109         # Determine the default libpath from the value encoded in an empty executable.
9110         cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h.  */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h.  */
9116
9117int
9118main ()
9119{
9120
9121  ;
9122  return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext conftest$ac_exeext
9126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127  (eval $ac_link) 2>conftest.er1
9128  ac_status=$?
9129  grep -v '^ *+' conftest.er1 >conftest.err
9130  rm -f conftest.er1
9131  cat conftest.err >&5
9132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); } &&
9134         { ac_try='test -z "$ac_c_werror_flag"
9135                         || test ! -s conftest.err'
9136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137  (eval $ac_try) 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; } &&
9141         { ac_try='test -s conftest$ac_exeext'
9142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }; }; then
9147
9148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9149}'`
9150# Check for a 64-bit object if we didn't find anything.
9151if 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; }
9152}'`; fi
9153else
9154  echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157fi
9158rm -f conftest.err conftest.$ac_objext \
9159      conftest$ac_exeext conftest.$ac_ext
9160if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9161
9162         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9163          # Warning - without using the other run time loading flags,
9164          # -berok will link without error, but may produce a broken library.
9165          no_undefined_flag=' ${wl}-bernotok'
9166          allow_undefined_flag=' ${wl}-berok'
9167          # Exported symbols can be pulled into shared objects from archives
9168          whole_archive_flag_spec='$convenience'
9169          archive_cmds_need_lc=yes
9170          # This is similar to how AIX traditionally builds its shared libraries.
9171          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'
9172        fi
9173      fi
9174      ;;
9175
9176    amigaos*)
9177      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)'
9178      hardcode_libdir_flag_spec='-L$libdir'
9179      hardcode_minus_L=yes
9180      # see comment about different semantics on the GNU ld section
9181      ld_shlibs=no
9182      ;;
9183
9184    bsdi[45]*)
9185      export_dynamic_flag_spec=-rdynamic
9186      ;;
9187
9188    cygwin* | mingw* | pw32*)
9189      # When not using gcc, we currently assume that we are using
9190      # Microsoft Visual C++.
9191      # hardcode_libdir_flag_spec is actually meaningless, as there is
9192      # no search path for DLLs.
9193      hardcode_libdir_flag_spec=' '
9194      allow_undefined_flag=unsupported
9195      # Tell ltmain to make .lib files, not .a files.
9196      libext=lib
9197      # Tell ltmain to make .dll files, not .so files.
9198      shrext_cmds=".dll"
9199      # FIXME: Setting linknames here is a bad hack.
9200      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9201      # The linker will automatically build a .lib file if we build a DLL.
9202      old_archive_From_new_cmds='true'
9203      # FIXME: Should let the user specify the lib program.
9204      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9205      fix_srcfile_path='`cygpath -w "$srcfile"`'
9206      enable_shared_with_static_runtimes=yes
9207      ;;
9208
9209    darwin* | rhapsody*)
9210      case $host_os in
9211        rhapsody* | darwin1.[012])
9212         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9213         ;;
9214       *) # Darwin 1.3 on
9215         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9216           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9217         else
9218           case ${MACOSX_DEPLOYMENT_TARGET} in
9219             10.[012])
9220               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9221               ;;
9222             10.*)
9223               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9224               ;;
9225           esac
9226         fi
9227         ;;
9228      esac
9229      archive_cmds_need_lc=no
9230      hardcode_direct=no
9231      hardcode_automatic=yes
9232      hardcode_shlibpath_var=unsupported
9233      whole_archive_flag_spec=''
9234      link_all_deplibs=yes
9235    if test "$GCC" = yes ; then
9236        output_verbose_link_cmd='echo'
9237        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9238      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9239      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9240      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}'
9241      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}'
9242    else
9243      case $cc_basename in
9244        xlc*)
9245         output_verbose_link_cmd='echo'
9246         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9247         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9248          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9249         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}'
9250          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}'
9251          ;;
9252       *)
9253         ld_shlibs=no
9254          ;;
9255      esac
9256    fi
9257      ;;
9258
9259    dgux*)
9260      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261      hardcode_libdir_flag_spec='-L$libdir'
9262      hardcode_shlibpath_var=no
9263      ;;
9264
9265    freebsd1*)
9266      ld_shlibs=no
9267      ;;
9268
9269    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9270    # support.  Future versions do this automatically, but an explicit c++rt0.o
9271    # does not break anything, and helps significantly (at the cost of a little
9272    # extra space).
9273    freebsd2.2*)
9274      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9275      hardcode_libdir_flag_spec='-R$libdir'
9276      hardcode_direct=yes
9277      hardcode_shlibpath_var=no
9278      ;;
9279
9280    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9281    freebsd2*)
9282      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283      hardcode_direct=yes
9284      hardcode_minus_L=yes
9285      hardcode_shlibpath_var=no
9286      ;;
9287
9288    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9289    freebsd* | kfreebsd*-gnu | dragonfly*)
9290      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9291      hardcode_libdir_flag_spec='-R$libdir'
9292      hardcode_direct=yes
9293      hardcode_shlibpath_var=no
9294      ;;
9295
9296    hpux9*)
9297      if test "$GCC" = yes; then
9298        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'
9299      else
9300        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'
9301      fi
9302      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9303      hardcode_libdir_separator=:
9304      hardcode_direct=yes
9305
9306      # hardcode_minus_L: Not really in the search PATH,
9307      # but as the default location of the library.
9308      hardcode_minus_L=yes
9309      export_dynamic_flag_spec='${wl}-E'
9310      ;;
9311
9312    hpux10*)
9313      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9314        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315      else
9316        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317      fi
9318      if test "$with_gnu_ld" = no; then
9319        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320        hardcode_libdir_separator=:
9321
9322        hardcode_direct=yes
9323        export_dynamic_flag_spec='${wl}-E'
9324
9325        # hardcode_minus_L: Not really in the search PATH,
9326        # but as the default location of the library.
9327        hardcode_minus_L=yes
9328      fi
9329      ;;
9330
9331    hpux11*)
9332      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9333        case $host_cpu in
9334        hppa*64*)
9335          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336          ;;
9337        ia64*)
9338          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9339          ;;
9340        *)
9341          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9342          ;;
9343        esac
9344      else
9345        case $host_cpu in
9346        hppa*64*)
9347          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9348          ;;
9349        ia64*)
9350          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9351          ;;
9352        *)
9353          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354          ;;
9355        esac
9356      fi
9357      if test "$with_gnu_ld" = no; then
9358        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9359        hardcode_libdir_separator=:
9360
9361        case $host_cpu in
9362        hppa*64*|ia64*)
9363          hardcode_libdir_flag_spec_ld='+b $libdir'
9364          hardcode_direct=no
9365          hardcode_shlibpath_var=no
9366          ;;
9367        *)
9368          hardcode_direct=yes
9369          export_dynamic_flag_spec='${wl}-E'
9370
9371          # hardcode_minus_L: Not really in the search PATH,
9372          # but as the default location of the library.
9373          hardcode_minus_L=yes
9374          ;;
9375        esac
9376      fi
9377      ;;
9378
9379    irix5* | irix6* | nonstopux*)
9380      if test "$GCC" = yes; then
9381        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'
9382      else
9383        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'
9384        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9385      fi
9386      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387      hardcode_libdir_separator=:
9388      link_all_deplibs=yes
9389      ;;
9390
9391    netbsd*)
9392      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9393        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9394      else
9395        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9396      fi
9397      hardcode_libdir_flag_spec='-R$libdir'
9398      hardcode_direct=yes
9399      hardcode_shlibpath_var=no
9400      ;;
9401
9402    newsos6)
9403      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404      hardcode_direct=yes
9405      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406      hardcode_libdir_separator=:
9407      hardcode_shlibpath_var=no
9408      ;;
9409
9410    openbsd*)
9411      hardcode_direct=yes
9412      hardcode_shlibpath_var=no
9413      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9414        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9415        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9416        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417        export_dynamic_flag_spec='${wl}-E'
9418      else
9419       case $host_os in
9420         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9421           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422           hardcode_libdir_flag_spec='-R$libdir'
9423           ;;
9424         *)
9425           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9426           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9427           ;;
9428       esac
9429      fi
9430      ;;
9431
9432    os2*)
9433      hardcode_libdir_flag_spec='-L$libdir'
9434      hardcode_minus_L=yes
9435      allow_undefined_flag=unsupported
9436      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'
9437      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9438      ;;
9439
9440    osf3*)
9441      if test "$GCC" = yes; then
9442        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443        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'
9444      else
9445        allow_undefined_flag=' -expect_unresolved \*'
9446        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'
9447      fi
9448      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9449      hardcode_libdir_separator=:
9450      ;;
9451
9452    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9453      if test "$GCC" = yes; then
9454        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9455        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'
9456        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457      else
9458        allow_undefined_flag=' -expect_unresolved \*'
9459        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'
9460        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9461        $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'
9462
9463        # Both c and cxx compiler support -rpath directly
9464        hardcode_libdir_flag_spec='-rpath $libdir'
9465      fi
9466      hardcode_libdir_separator=:
9467      ;;
9468
9469    solaris*)
9470      no_undefined_flag=' -z text'
9471      if test "$GCC" = yes; then
9472        wlarc='${wl}'
9473        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9475          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9476      else
9477        wlarc=''
9478        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9480        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9481      fi
9482      hardcode_libdir_flag_spec='-R$libdir'
9483      hardcode_shlibpath_var=no
9484      case $host_os in
9485      solaris2.[0-5] | solaris2.[0-5].*) ;;
9486      *)
9487        # The compiler driver will combine linker options so we
9488        # cannot just pass the convience library names through
9489        # without $wl, iff we do not link with $LD.
9490        # Luckily, gcc supports the same syntax we need for Sun Studio.
9491        # Supported since Solaris 2.6 (maybe 2.5.1?)
9492        case $wlarc in
9493        '')
9494          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9495        *)
9496          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' ;;
9497        esac ;;
9498      esac
9499      link_all_deplibs=yes
9500      ;;
9501
9502    sunos4*)
9503      if test "x$host_vendor" = xsequent; then
9504        # Use $CC to link under sequent, because it throws in some extra .o
9505        # files that make .init and .fini sections work.
9506        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9507      else
9508        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9509      fi
9510      hardcode_libdir_flag_spec='-L$libdir'
9511      hardcode_direct=yes
9512      hardcode_minus_L=yes
9513      hardcode_shlibpath_var=no
9514      ;;
9515
9516    sysv4)
9517      case $host_vendor in
9518        sni)
9519          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520          hardcode_direct=yes # is this really true???
9521        ;;
9522        siemens)
9523          ## LD is ld it makes a PLAMLIB
9524          ## CC just makes a GrossModule.
9525          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9526          reload_cmds='$CC -r -o $output$reload_objs'
9527          hardcode_direct=no
9528        ;;
9529        motorola)
9530          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9532        ;;
9533      esac
9534      runpath_var='LD_RUN_PATH'
9535      hardcode_shlibpath_var=no
9536      ;;
9537
9538    sysv4.3*)
9539      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540      hardcode_shlibpath_var=no
9541      export_dynamic_flag_spec='-Bexport'
9542      ;;
9543
9544    sysv4*MP*)
9545      if test -d /usr/nec; then
9546        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547        hardcode_shlibpath_var=no
9548        runpath_var=LD_RUN_PATH
9549        hardcode_runpath_var=yes
9550        ld_shlibs=yes
9551      fi
9552      ;;
9553
9554    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9555      no_undefined_flag='${wl}-z,text'
9556      archive_cmds_need_lc=no
9557      hardcode_shlibpath_var=no
9558      runpath_var='LD_RUN_PATH'
9559
9560      if test "$GCC" = yes; then
9561        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563      else
9564        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566      fi
9567      ;;
9568
9569    sysv5* | sco3.2v5* | sco5v6*)
9570      # Note: We can NOT use -z defs as we might desire, because we do not
9571      # link with -lc, and that would cause any symbols used from libc to
9572      # always be unresolved, which means just about no library would
9573      # ever link correctly.  If we're not using GNU ld we use -z text
9574      # though, which does catch some bad symbols but isn't as heavy-handed
9575      # as -z defs.
9576      no_undefined_flag='${wl}-z,text'
9577      allow_undefined_flag='${wl}-z,nodefs'
9578      archive_cmds_need_lc=no
9579      hardcode_shlibpath_var=no
9580      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9581      hardcode_libdir_separator=':'
9582      link_all_deplibs=yes
9583      export_dynamic_flag_spec='${wl}-Bexport'
9584      runpath_var='LD_RUN_PATH'
9585
9586      if test "$GCC" = yes; then
9587        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589      else
9590        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592      fi
9593      ;;
9594
9595    uts4*)
9596      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597      hardcode_libdir_flag_spec='-L$libdir'
9598      hardcode_shlibpath_var=no
9599      ;;
9600
9601    *)
9602      ld_shlibs=no
9603      ;;
9604    esac
9605  fi
9606
9607echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9608echo "${ECHO_T}$ld_shlibs" >&6
9609test "$ld_shlibs" = no && can_build_shared=no
9610
9611#
9612# Do we need to explicitly link libc?
9613#
9614case "x$archive_cmds_need_lc" in
9615x|xyes)
9616  # Assume -lc should be added
9617  archive_cmds_need_lc=yes
9618
9619  if test "$enable_shared" = yes && test "$GCC" = yes; then
9620    case $archive_cmds in
9621    *'~'*)
9622      # FIXME: we may have to deal with multi-command sequences.
9623      ;;
9624    '$CC '*)
9625      # Test whether the compiler implicitly links with -lc since on some
9626      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9627      # to ld, don't add -lc before -lgcc.
9628      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9629echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9630      $rm conftest*
9631      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9632
9633      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634  (eval $ac_compile) 2>&5
9635  ac_status=$?
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); } 2>conftest.err; then
9638        soname=conftest
9639        lib=conftest
9640        libobjs=conftest.$ac_objext
9641        deplibs=
9642        wl=$lt_prog_compiler_wl
9643        pic_flag=$lt_prog_compiler_pic
9644        compiler_flags=-v
9645        linker_flags=-v
9646        verstring=
9647        output_objdir=.
9648        libname=conftest
9649        lt_save_allow_undefined_flag=$allow_undefined_flag
9650        allow_undefined_flag=
9651        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9652  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9653  ac_status=$?
9654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655  (exit $ac_status); }
9656        then
9657          archive_cmds_need_lc=no
9658        else
9659          archive_cmds_need_lc=yes
9660        fi
9661        allow_undefined_flag=$lt_save_allow_undefined_flag
9662      else
9663        cat conftest.err 1>&5
9664      fi
9665      $rm conftest*
9666      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9667echo "${ECHO_T}$archive_cmds_need_lc" >&6
9668      ;;
9669    esac
9670  fi
9671  ;;
9672esac
9673
9674echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9675echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9676library_names_spec=
9677libname_spec='lib$name'
9678soname_spec=
9679shrext_cmds=".so"
9680postinstall_cmds=
9681postuninstall_cmds=
9682finish_cmds=
9683finish_eval=
9684shlibpath_var=
9685shlibpath_overrides_runpath=unknown
9686version_type=none
9687dynamic_linker="$host_os ld.so"
9688sys_lib_dlsearch_path_spec="/lib /usr/lib"
9689if test "$GCC" = yes; then
9690  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9691  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9692    # if the path contains ";" then we assume it to be the separator
9693    # otherwise default to the standard path separator (i.e. ":") - it is
9694    # assumed that no part of a normal pathname contains ";" but that should
9695    # okay in the real world where ";" in dirpaths is itself problematic.
9696    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9697  else
9698    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9699  fi
9700else
9701  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9702fi
9703need_lib_prefix=unknown
9704hardcode_into_libs=no
9705
9706# when you set need_version to no, make sure it does not cause -set_version
9707# flags to be left without arguments
9708need_version=unknown
9709
9710case $host_os in
9711aix3*)
9712  version_type=linux
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9714  shlibpath_var=LIBPATH
9715
9716  # AIX 3 has no versioning support, so we append a major version to the name.
9717  soname_spec='${libname}${release}${shared_ext}$major'
9718  ;;
9719
9720aix4* | aix5*)
9721  version_type=linux
9722  need_lib_prefix=no
9723  need_version=no
9724  hardcode_into_libs=yes
9725  if test "$host_cpu" = ia64; then
9726    # AIX 5 supports IA64
9727    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9728    shlibpath_var=LD_LIBRARY_PATH
9729  else
9730    # With GCC up to 2.95.x, collect2 would create an import file
9731    # for dependence libraries.  The import file would start with
9732    # the line `#! .'.  This would cause the generated library to
9733    # depend on `.', always an invalid library.  This was fixed in
9734    # development snapshots of GCC prior to 3.0.
9735    case $host_os in
9736      aix4 | aix4.[01] | aix4.[01].*)
9737      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9738           echo ' yes '
9739           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9740        :
9741      else
9742        can_build_shared=no
9743      fi
9744      ;;
9745    esac
9746    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9747    # soname into executable. Probably we can add versioning support to
9748    # collect2, so additional links can be useful in future.
9749    if test "$aix_use_runtimelinking" = yes; then
9750      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9751      # instead of lib<name>.a to let people know that these are not
9752      # typical AIX shared libraries.
9753      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754    else
9755      # We preserve .a as extension for shared libraries through AIX4.2
9756      # and later when we are not doing run time linking.
9757      library_names_spec='${libname}${release}.a $libname.a'
9758      soname_spec='${libname}${release}${shared_ext}$major'
9759    fi
9760    shlibpath_var=LIBPATH
9761  fi
9762  ;;
9763
9764amigaos*)
9765  library_names_spec='$libname.ixlibrary $libname.a'
9766  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9767  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'
9768  ;;
9769
9770beos*)
9771  library_names_spec='${libname}${shared_ext}'
9772  dynamic_linker="$host_os ld.so"
9773  shlibpath_var=LIBRARY_PATH
9774  ;;
9775
9776bsdi[45]*)
9777  version_type=linux
9778  need_version=no
9779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780  soname_spec='${libname}${release}${shared_ext}$major'
9781  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9784  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9785  # the default ld.so.conf also contains /usr/contrib/lib and
9786  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9787  # libtool to hard-code these into programs
9788  ;;
9789
9790cygwin* | mingw* | pw32*)
9791  version_type=windows
9792  shrext_cmds=".dll"
9793  need_version=no
9794  need_lib_prefix=no
9795
9796  case $GCC,$host_os in
9797  yes,cygwin* | yes,mingw* | yes,pw32*)
9798    library_names_spec='$libname.dll.a'
9799    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9800    postinstall_cmds='base_file=`basename \${file}`~
9801      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9802      dldir=$destdir/`dirname \$dlpath`~
9803      test -d \$dldir || mkdir -p \$dldir~
9804      $install_prog $dir/$dlname \$dldir/$dlname~
9805      chmod a+x \$dldir/$dlname'
9806    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9807      dlpath=$dir/\$dldll~
9808       $rm \$dlpath'
9809    shlibpath_overrides_runpath=yes
9810
9811    case $host_os in
9812    cygwin*)
9813      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9814      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9815      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9816      ;;
9817    mingw*)
9818      # MinGW DLLs use traditional 'lib' prefix
9819      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9820      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9821      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9822        # It is most probably a Windows format PATH printed by
9823        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9824        # path with ; separators, and with drive letters. We can handle the
9825        # drive letters (cygwin fileutils understands them), so leave them,
9826        # especially as we might pass files found there to a mingw objdump,
9827        # which wouldn't understand a cygwinified path. Ahh.
9828        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9829      else
9830        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9831      fi
9832      ;;
9833    pw32*)
9834      # pw32 DLLs use 'pw' prefix rather than 'lib'
9835      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836      ;;
9837    esac
9838    ;;
9839
9840  *)
9841    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9842    ;;
9843  esac
9844  dynamic_linker='Win32 ld.exe'
9845  # FIXME: first we should search . and the directory the executable is in
9846  shlibpath_var=PATH
9847  ;;
9848
9849darwin* | rhapsody*)
9850  dynamic_linker="$host_os dyld"
9851  version_type=darwin
9852  need_lib_prefix=no
9853  need_version=no
9854  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9855  soname_spec='${libname}${release}${major}$shared_ext'
9856  shlibpath_overrides_runpath=yes
9857  shlibpath_var=DYLD_LIBRARY_PATH
9858  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9859  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9860  if test "$GCC" = yes; then
9861    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"`
9862  else
9863    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9864  fi
9865  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9866  ;;
9867
9868dgux*)
9869  version_type=linux
9870  need_lib_prefix=no
9871  need_version=no
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9873  soname_spec='${libname}${release}${shared_ext}$major'
9874  shlibpath_var=LD_LIBRARY_PATH
9875  ;;
9876
9877freebsd1*)
9878  dynamic_linker=no
9879  ;;
9880
9881kfreebsd*-gnu)
9882  version_type=linux
9883  need_lib_prefix=no
9884  need_version=no
9885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9886  soname_spec='${libname}${release}${shared_ext}$major'
9887  shlibpath_var=LD_LIBRARY_PATH
9888  shlibpath_overrides_runpath=no
9889  hardcode_into_libs=yes
9890  dynamic_linker='GNU ld.so'
9891  ;;
9892
9893freebsd* | dragonfly*)
9894  # DragonFly does not have aout.  When/if they implement a new
9895  # versioning mechanism, adjust this.
9896  if test -x /usr/bin/objformat; then
9897    objformat=`/usr/bin/objformat`
9898  else
9899    case $host_os in
9900    freebsd[123]*) objformat=aout ;;
9901    *) objformat=elf ;;
9902    esac
9903  fi
9904  version_type=freebsd-$objformat
9905  case $version_type in
9906    freebsd-elf*)
9907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9908      need_version=no
9909      need_lib_prefix=no
9910      ;;
9911    freebsd-*)
9912      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9913      need_version=yes
9914      ;;
9915  esac
9916  shlibpath_var=LD_LIBRARY_PATH
9917  case $host_os in
9918  freebsd2*)
9919    shlibpath_overrides_runpath=yes
9920    ;;
9921  freebsd3.[01]* | freebsdelf3.[01]*)
9922    shlibpath_overrides_runpath=yes
9923    hardcode_into_libs=yes
9924    ;;
9925  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9926  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9927    shlibpath_overrides_runpath=no
9928    hardcode_into_libs=yes
9929    ;;
9930  freebsd*) # from 4.6 on
9931    shlibpath_overrides_runpath=yes
9932    hardcode_into_libs=yes
9933    ;;
9934  esac
9935  ;;
9936
9937gnu*)
9938  version_type=linux
9939  need_lib_prefix=no
9940  need_version=no
9941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9942  soname_spec='${libname}${release}${shared_ext}$major'
9943  shlibpath_var=LD_LIBRARY_PATH
9944  hardcode_into_libs=yes
9945  ;;
9946
9947hpux9* | hpux10* | hpux11*)
9948  # Give a soname corresponding to the major version so that dld.sl refuses to
9949  # link against other versions.
9950  version_type=sunos
9951  need_lib_prefix=no
9952  need_version=no
9953  case $host_cpu in
9954  ia64*)
9955    shrext_cmds='.so'
9956    hardcode_into_libs=yes
9957    dynamic_linker="$host_os dld.so"
9958    shlibpath_var=LD_LIBRARY_PATH
9959    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961    soname_spec='${libname}${release}${shared_ext}$major'
9962    if test "X$HPUX_IA64_MODE" = X32; then
9963      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9964    else
9965      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9966    fi
9967    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9968    ;;
9969   hppa*64*)
9970     shrext_cmds='.sl'
9971     hardcode_into_libs=yes
9972     dynamic_linker="$host_os dld.sl"
9973     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976     soname_spec='${libname}${release}${shared_ext}$major'
9977     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9979     ;;
9980   *)
9981    shrext_cmds='.sl'
9982    dynamic_linker="$host_os dld.sl"
9983    shlibpath_var=SHLIB_PATH
9984    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9985    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986    soname_spec='${libname}${release}${shared_ext}$major'
9987    ;;
9988  esac
9989  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9990  postinstall_cmds='chmod 555 $lib'
9991  ;;
9992
9993interix3*)
9994  version_type=linux
9995  need_lib_prefix=no
9996  need_version=no
9997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9998  soname_spec='${libname}${release}${shared_ext}$major'
9999  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10000  shlibpath_var=LD_LIBRARY_PATH
10001  shlibpath_overrides_runpath=no
10002  hardcode_into_libs=yes
10003  ;;
10004
10005irix5* | irix6* | nonstopux*)
10006  case $host_os in
10007    nonstopux*) version_type=nonstopux ;;
10008    *)
10009        if test "$lt_cv_prog_gnu_ld" = yes; then
10010                version_type=linux
10011        else
10012                version_type=irix
10013        fi ;;
10014  esac
10015  need_lib_prefix=no
10016  need_version=no
10017  soname_spec='${libname}${release}${shared_ext}$major'
10018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10019  case $host_os in
10020  irix5* | nonstopux*)
10021    libsuff= shlibsuff=
10022    ;;
10023  *)
10024    case $LD in # libtool.m4 will add one of these switches to LD
10025    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10026      libsuff= shlibsuff= libmagic=32-bit;;
10027    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10028      libsuff=32 shlibsuff=N32 libmagic=N32;;
10029    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10030      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10031    *) libsuff= shlibsuff= libmagic=never-match;;
10032    esac
10033    ;;
10034  esac
10035  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10036  shlibpath_overrides_runpath=no
10037  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10038  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10039  hardcode_into_libs=yes
10040  ;;
10041
10042# No shared lib support for Linux oldld, aout, or coff.
10043linux*oldld* | linux*aout* | linux*coff*)
10044  dynamic_linker=no
10045  ;;
10046
10047# This must be Linux ELF.
10048linux*)
10049  version_type=linux
10050  need_lib_prefix=no
10051  need_version=no
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053  soname_spec='${libname}${release}${shared_ext}$major'
10054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10055  shlibpath_var=LD_LIBRARY_PATH
10056  shlibpath_overrides_runpath=no
10057  # This implies no fast_install, which is unacceptable.
10058  # Some rework will be needed to allow for fast_install
10059  # before this can be enabled.
10060  hardcode_into_libs=yes
10061
10062  # Append ld.so.conf contents to the search path
10063  if test -f /etc/ld.so.conf; then
10064    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' ' '`
10065    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10066  fi
10067
10068  # We used to test for /lib/ld.so.1 and disable shared libraries on
10069  # powerpc, because MkLinux only supported shared libraries with the
10070  # GNU dynamic linker.  Since this was broken with cross compilers,
10071  # most powerpc-linux boxes support dynamic linking these days and
10072  # people can always --disable-shared, the test was removed, and we
10073  # assume the GNU/Linux dynamic linker is in use.
10074  dynamic_linker='GNU/Linux ld.so'
10075  ;;
10076
10077knetbsd*-gnu)
10078  version_type=linux
10079  need_lib_prefix=no
10080  need_version=no
10081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082  soname_spec='${libname}${release}${shared_ext}$major'
10083  shlibpath_var=LD_LIBRARY_PATH
10084  shlibpath_overrides_runpath=no
10085  hardcode_into_libs=yes
10086  dynamic_linker='GNU ld.so'
10087  ;;
10088
10089netbsd*)
10090  version_type=sunos
10091  need_lib_prefix=no
10092  need_version=no
10093  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10095    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10096    dynamic_linker='NetBSD (a.out) ld.so'
10097  else
10098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099    soname_spec='${libname}${release}${shared_ext}$major'
10100    dynamic_linker='NetBSD ld.elf_so'
10101  fi
10102  shlibpath_var=LD_LIBRARY_PATH
10103  shlibpath_overrides_runpath=yes
10104  hardcode_into_libs=yes
10105  ;;
10106
10107newsos6)
10108  version_type=linux
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110  shlibpath_var=LD_LIBRARY_PATH
10111  shlibpath_overrides_runpath=yes
10112  ;;
10113
10114nto-qnx*)
10115  version_type=linux
10116  need_lib_prefix=no
10117  need_version=no
10118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119  soname_spec='${libname}${release}${shared_ext}$major'
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=yes
10122  ;;
10123
10124openbsd*)
10125  version_type=sunos
10126  sys_lib_dlsearch_path_spec="/usr/lib"
10127  need_lib_prefix=no
10128  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10129  case $host_os in
10130    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10131    *)                         need_version=no  ;;
10132  esac
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10137    case $host_os in
10138      openbsd2.[89] | openbsd2.[89].*)
10139        shlibpath_overrides_runpath=no
10140        ;;
10141      *)
10142        shlibpath_overrides_runpath=yes
10143        ;;
10144      esac
10145  else
10146    shlibpath_overrides_runpath=yes
10147  fi
10148  ;;
10149
10150os2*)
10151  libname_spec='$name'
10152  shrext_cmds=".dll"
10153  need_lib_prefix=no
10154  library_names_spec='$libname${shared_ext} $libname.a'
10155  dynamic_linker='OS/2 ld.exe'
10156  shlibpath_var=LIBPATH
10157  ;;
10158
10159osf3* | osf4* | osf5*)
10160  version_type=osf
10161  need_lib_prefix=no
10162  need_version=no
10163  soname_spec='${libname}${release}${shared_ext}$major'
10164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165  shlibpath_var=LD_LIBRARY_PATH
10166  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10167  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10168  ;;
10169
10170solaris*)
10171  version_type=linux
10172  need_lib_prefix=no
10173  need_version=no
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175  soname_spec='${libname}${release}${shared_ext}$major'
10176  shlibpath_var=LD_LIBRARY_PATH
10177  shlibpath_overrides_runpath=yes
10178  hardcode_into_libs=yes
10179  # ldd complains unless libraries are executable
10180  postinstall_cmds='chmod +x $lib'
10181  ;;
10182
10183sunos4*)
10184  version_type=sunos
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  shlibpath_overrides_runpath=yes
10189  if test "$with_gnu_ld" = yes; then
10190    need_lib_prefix=no
10191  fi
10192  need_version=yes
10193  ;;
10194
10195sysv4 | sysv4.3*)
10196  version_type=linux
10197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198  soname_spec='${libname}${release}${shared_ext}$major'
10199  shlibpath_var=LD_LIBRARY_PATH
10200  case $host_vendor in
10201    sni)
10202      shlibpath_overrides_runpath=no
10203      need_lib_prefix=no
10204      export_dynamic_flag_spec='${wl}-Blargedynsym'
10205      runpath_var=LD_RUN_PATH
10206      ;;
10207    siemens)
10208      need_lib_prefix=no
10209      ;;
10210    motorola)
10211      need_lib_prefix=no
10212      need_version=no
10213      shlibpath_overrides_runpath=no
10214      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10215      ;;
10216  esac
10217  ;;
10218
10219sysv4*MP*)
10220  if test -d /usr/nec ;then
10221    version_type=linux
10222    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10223    soname_spec='$libname${shared_ext}.$major'
10224    shlibpath_var=LD_LIBRARY_PATH
10225  fi
10226  ;;
10227
10228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10229  version_type=freebsd-elf
10230  need_lib_prefix=no
10231  need_version=no
10232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233  soname_spec='${libname}${release}${shared_ext}$major'
10234  shlibpath_var=LD_LIBRARY_PATH
10235  hardcode_into_libs=yes
10236  if test "$with_gnu_ld" = yes; then
10237    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10238    shlibpath_overrides_runpath=no
10239  else
10240    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10241    shlibpath_overrides_runpath=yes
10242    case $host_os in
10243      sco3.2v5*)
10244        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10245        ;;
10246    esac
10247  fi
10248  sys_lib_dlsearch_path_spec='/usr/lib'
10249  ;;
10250
10251uts4*)
10252  version_type=linux
10253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254  soname_spec='${libname}${release}${shared_ext}$major'
10255  shlibpath_var=LD_LIBRARY_PATH
10256  ;;
10257
10258*)
10259  dynamic_linker=no
10260  ;;
10261esac
10262echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10263echo "${ECHO_T}$dynamic_linker" >&6
10264test "$dynamic_linker" = no && can_build_shared=no
10265
10266variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10267if test "$GCC" = yes; then
10268  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10269fi
10270
10271echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10272echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10273hardcode_action=
10274if test -n "$hardcode_libdir_flag_spec" || \
10275   test -n "$runpath_var" || \
10276   test "X$hardcode_automatic" = "Xyes" ; then
10277
10278  # We can hardcode non-existant directories.
10279  if test "$hardcode_direct" != no &&
10280     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10281     # have to relink, otherwise we might link with an installed library
10282     # when we should be linking with a yet-to-be-installed one
10283     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10284     test "$hardcode_minus_L" != no; then
10285    # Linking always hardcodes the temporary library directory.
10286    hardcode_action=relink
10287  else
10288    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10289    hardcode_action=immediate
10290  fi
10291else
10292  # We cannot hardcode anything, or else we can only hardcode existing
10293  # directories.
10294  hardcode_action=unsupported
10295fi
10296echo "$as_me:$LINENO: result: $hardcode_action" >&5
10297echo "${ECHO_T}$hardcode_action" >&6
10298
10299if test "$hardcode_action" = relink; then
10300  # Fast installation is not supported
10301  enable_fast_install=no
10302elif test "$shlibpath_overrides_runpath" = yes ||
10303     test "$enable_shared" = no; then
10304  # Fast installation is not necessary
10305  enable_fast_install=needless
10306fi
10307
10308striplib=
10309old_striplib=
10310echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10311echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10312if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10313  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10314  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10315  echo "$as_me:$LINENO: result: yes" >&5
10316echo "${ECHO_T}yes" >&6
10317else
10318# FIXME - insert some real tests, host_os isn't really good enough
10319  case $host_os in
10320   darwin*)
10321       if test -n "$STRIP" ; then
10322         striplib="$STRIP -x"
10323         echo "$as_me:$LINENO: result: yes" >&5
10324echo "${ECHO_T}yes" >&6
10325       else
10326  echo "$as_me:$LINENO: result: no" >&5
10327echo "${ECHO_T}no" >&6
10328fi
10329       ;;
10330   *)
10331  echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333    ;;
10334  esac
10335fi
10336
10337if test "x$enable_dlopen" != xyes; then
10338  enable_dlopen=unknown
10339  enable_dlopen_self=unknown
10340  enable_dlopen_self_static=unknown
10341else
10342  lt_cv_dlopen=no
10343  lt_cv_dlopen_libs=
10344
10345  case $host_os in
10346  beos*)
10347    lt_cv_dlopen="load_add_on"
10348    lt_cv_dlopen_libs=
10349    lt_cv_dlopen_self=yes
10350    ;;
10351
10352  mingw* | pw32*)
10353    lt_cv_dlopen="LoadLibrary"
10354    lt_cv_dlopen_libs=
10355   ;;
10356
10357  cygwin*)
10358    lt_cv_dlopen="dlopen"
10359    lt_cv_dlopen_libs=
10360   ;;
10361
10362  darwin*)
10363  # if libdl is installed we need to link against it
10364    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10365echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10366if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10367  echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
10369  ac_check_lib_save_LIBS=$LIBS
10370LIBS="-ldl  $LIBS"
10371cat >conftest.$ac_ext <<_ACEOF
10372/* confdefs.h.  */
10373_ACEOF
10374cat confdefs.h >>conftest.$ac_ext
10375cat >>conftest.$ac_ext <<_ACEOF
10376/* end confdefs.h.  */
10377
10378/* Override any gcc2 internal prototype to avoid an error.  */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382/* We use char because int might match the return type of a gcc2
10383   builtin and then its argument prototype would still apply.  */
10384char dlopen ();
10385int
10386main ()
10387{
10388dlopen ();
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393rm -f conftest.$ac_objext conftest$ac_exeext
10394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395  (eval $ac_link) 2>conftest.er1
10396  ac_status=$?
10397  grep -v '^ *+' conftest.er1 >conftest.err
10398  rm -f conftest.er1
10399  cat conftest.err >&5
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); } &&
10402         { ac_try='test -z "$ac_c_werror_flag"
10403                         || test ! -s conftest.err'
10404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405  (eval $ac_try) 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; } &&
10409         { ac_try='test -s conftest$ac_exeext'
10410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411  (eval $ac_try) 2>&5
10412  ac_status=$?
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); }; }; then
10415  ac_cv_lib_dl_dlopen=yes
10416else
10417  echo "$as_me: failed program was:" >&5
10418sed 's/^/| /' conftest.$ac_ext >&5
10419
10420ac_cv_lib_dl_dlopen=no
10421fi
10422rm -f conftest.err conftest.$ac_objext \
10423      conftest$ac_exeext conftest.$ac_ext
10424LIBS=$ac_check_lib_save_LIBS
10425fi
10426echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10427echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10428if test $ac_cv_lib_dl_dlopen = yes; then
10429  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10430else
10431
10432    lt_cv_dlopen="dyld"
10433    lt_cv_dlopen_libs=
10434    lt_cv_dlopen_self=yes
10435
10436fi
10437
10438   ;;
10439
10440  *)
10441    echo "$as_me:$LINENO: checking for shl_load" >&5
10442echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10443if test "${ac_cv_func_shl_load+set}" = set; then
10444  echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
10446  cat >conftest.$ac_ext <<_ACEOF
10447/* confdefs.h.  */
10448_ACEOF
10449cat confdefs.h >>conftest.$ac_ext
10450cat >>conftest.$ac_ext <<_ACEOF
10451/* end confdefs.h.  */
10452/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10453   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10454#define shl_load innocuous_shl_load
10455
10456/* System header to define __stub macros and hopefully few prototypes,
10457    which can conflict with char shl_load (); below.
10458    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10459    <limits.h> exists even on freestanding compilers.  */
10460
10461#ifdef __STDC__
10462# include <limits.h>
10463#else
10464# include <assert.h>
10465#endif
10466
10467#undef shl_load
10468
10469/* Override any gcc2 internal prototype to avoid an error.  */
10470#ifdef __cplusplus
10471extern "C"
10472{
10473#endif
10474/* We use char because int might match the return type of a gcc2
10475   builtin and then its argument prototype would still apply.  */
10476char shl_load ();
10477/* The GNU C library defines this for functions which it implements
10478    to always fail with ENOSYS.  Some functions are actually named
10479    something starting with __ and the normal name is an alias.  */
10480#if defined (__stub_shl_load) || defined (__stub___shl_load)
10481choke me
10482#else
10483char (*f) () = shl_load;
10484#endif
10485#ifdef __cplusplus
10486}
10487#endif
10488
10489int
10490main ()
10491{
10492return f != shl_load;
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499  (eval $ac_link) 2>conftest.er1
10500  ac_status=$?
10501  grep -v '^ *+' conftest.er1 >conftest.err
10502  rm -f conftest.er1
10503  cat conftest.err >&5
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } &&
10506         { ac_try='test -z "$ac_c_werror_flag"
10507                         || test ! -s conftest.err'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; } &&
10513         { ac_try='test -s conftest$ac_exeext'
10514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515  (eval $ac_try) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); }; }; then
10519  ac_cv_func_shl_load=yes
10520else
10521  echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524ac_cv_func_shl_load=no
10525fi
10526rm -f conftest.err conftest.$ac_objext \
10527      conftest$ac_exeext conftest.$ac_ext
10528fi
10529echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10530echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10531if test $ac_cv_func_shl_load = yes; then
10532  lt_cv_dlopen="shl_load"
10533else
10534  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10535echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10536if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10537  echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539  ac_check_lib_save_LIBS=$LIBS
10540LIBS="-ldld  $LIBS"
10541cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h.  */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h.  */
10547
10548/* Override any gcc2 internal prototype to avoid an error.  */
10549#ifdef __cplusplus
10550extern "C"
10551#endif
10552/* We use char because int might match the return type of a gcc2
10553   builtin and then its argument prototype would still apply.  */
10554char shl_load ();
10555int
10556main ()
10557{
10558shl_load ();
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
10564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565  (eval $ac_link) 2>conftest.er1
10566  ac_status=$?
10567  grep -v '^ *+' conftest.er1 >conftest.err
10568  rm -f conftest.er1
10569  cat conftest.err >&5
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); } &&
10572         { ac_try='test -z "$ac_c_werror_flag"
10573                         || test ! -s conftest.err'
10574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575  (eval $ac_try) 2>&5
10576  ac_status=$?
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); }; } &&
10579         { ac_try='test -s conftest$ac_exeext'
10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581  (eval $ac_try) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); }; }; then
10585  ac_cv_lib_dld_shl_load=yes
10586else
10587  echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590ac_cv_lib_dld_shl_load=no
10591fi
10592rm -f conftest.err conftest.$ac_objext \
10593      conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10597echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10598if test $ac_cv_lib_dld_shl_load = yes; then
10599  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10600else
10601  echo "$as_me:$LINENO: checking for dlopen" >&5
10602echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10603if test "${ac_cv_func_dlopen+set}" = set; then
10604  echo $ECHO_N "(cached) $ECHO_C" >&6
10605else
10606  cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h.  */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h.  */
10612/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10614#define dlopen innocuous_dlopen
10615
10616/* System header to define __stub macros and hopefully few prototypes,
10617    which can conflict with char dlopen (); below.
10618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10619    <limits.h> exists even on freestanding compilers.  */
10620
10621#ifdef __STDC__
10622# include <limits.h>
10623#else
10624# include <assert.h>
10625#endif
10626
10627#undef dlopen
10628
10629/* Override any gcc2 internal prototype to avoid an error.  */
10630#ifdef __cplusplus
10631extern "C"
10632{
10633#endif
10634/* We use char because int might match the return type of a gcc2
10635   builtin and then its argument prototype would still apply.  */
10636char dlopen ();
10637/* The GNU C library defines this for functions which it implements
10638    to always fail with ENOSYS.  Some functions are actually named
10639    something starting with __ and the normal name is an alias.  */
10640#if defined (__stub_dlopen) || defined (__stub___dlopen)
10641choke me
10642#else
10643char (*f) () = dlopen;
10644#endif
10645#ifdef __cplusplus
10646}
10647#endif
10648
10649int
10650main ()
10651{
10652return f != dlopen;
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext conftest$ac_exeext
10658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659  (eval $ac_link) 2>conftest.er1
10660  ac_status=$?
10661  grep -v '^ *+' conftest.er1 >conftest.err
10662  rm -f conftest.er1
10663  cat conftest.err >&5
10664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665  (exit $ac_status); } &&
10666         { ac_try='test -z "$ac_c_werror_flag"
10667                         || test ! -s conftest.err'
10668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669  (eval $ac_try) 2>&5
10670  ac_status=$?
10671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672  (exit $ac_status); }; } &&
10673         { ac_try='test -s conftest$ac_exeext'
10674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675  (eval $ac_try) 2>&5
10676  ac_status=$?
10677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); }; }; then
10679  ac_cv_func_dlopen=yes
10680else
10681  echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
10684ac_cv_func_dlopen=no
10685fi
10686rm -f conftest.err conftest.$ac_objext \
10687      conftest$ac_exeext conftest.$ac_ext
10688fi
10689echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10690echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10691if test $ac_cv_func_dlopen = yes; then
10692  lt_cv_dlopen="dlopen"
10693else
10694  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10695echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10696if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10697  echo $ECHO_N "(cached) $ECHO_C" >&6
10698else
10699  ac_check_lib_save_LIBS=$LIBS
10700LIBS="-ldl  $LIBS"
10701cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h.  */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h.  */
10707
10708/* Override any gcc2 internal prototype to avoid an error.  */
10709#ifdef __cplusplus
10710extern "C"