source: stable/2.7/Cbc/configure @ 1805

Last change on this file since 1805 was 1805, checked in by stefan, 6 years ago

temporarily committing release candidate

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