source: trunk/Cbc/configure

Last change on this file was 2502, checked in by stefan, 5 months ago

restoring Cbc/trunk

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE HIGHS_LIBS HIGHS_CFLAGS HIGHS_DATA HIGHS_DEPENDENCIES HIGHS_LIBS_INSTALLED HIGHS_CFLAGS_INSTALLED HIGHS_DATA_INSTALLED COIN_HAS_HIGHS_TRUE COIN_HAS_HIGHS_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 MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_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_HIGHS_TRUE OSICBC_DFLT_SOLVER_HIGHS_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_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-dependency-linking
1098                          disable linking library dependencies into shared
1099                          libraries
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  --disable-nauty-libcheck
1106                          skip the link check at configuration time
1107  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1108
1109Optional Packages:
1110  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1111  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1112  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1113  --with-cbc-checklevel specify the sanity check level for project Cbc
1114  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1115  --with-pic              try to use only PIC/non-PIC objects [default=use
1116                          both]
1117  --with-tags[=TAGS]
1118                          include additional configurations [automatic]
1119  --with-coin-instdir     prefix of installation directory for precompiled
1120                          COIN packages
1121
1122  --with-coindepend-lib linker flags for using package CoinDepend
1123  --with-coindepend-incdir
1124                          directory with header files for using package
1125                          CoinDepend
1126  --with-coindepend-datadir
1127                          directory with data files for using package
1128                          CoinDepend
1129  --with-clp-lib linker flags for using package Clp
1130  --with-clp-incdir directory with header files for using package Clp
1131  --with-clp-datadir directory with data files for using package Clp
1132  --with-ositests-lib linker flags for using package OsiTests
1133  --with-ositests-incdir directory with header files for using package
1134                          OsiTests
1135  --with-ositests-datadir directory with data files for using package OsiTests
1136  --with-sample-lib linker flags for using package Sample
1137  --with-sample-incdir directory with header files for using package Sample
1138  --with-sample-datadir directory with data files for using package Sample
1139  --with-netlib-lib linker flags for using package Netlib
1140  --with-netlib-incdir directory with header files for using package Netlib
1141  --with-netlib-datadir directory with data files for using package Netlib
1142  --with-miplib3-lib linker flags for using package Miplib3
1143  --with-miplib3-incdir directory with header files for using package Miplib3
1144  --with-miplib3-datadir directory with data files for using package Miplib3
1145  --with-dylp-lib linker flags for using package DyLP
1146  --with-dylp-incdir directory with header files for using package DyLP
1147  --with-dylp-datadir directory with data files for using package DyLP
1148  --with-vol-lib linker flags for using package Vol
1149  --with-vol-incdir directory with header files for using package Vol
1150  --with-vol-datadir directory with data files for using package Vol
1151  --with-cpx-lib linker flags for using package Cpx
1152  --with-cpx-incdir directory with header files for using package Cpx
1153  --with-cpx-datadir directory with data files for using package Cpx
1154  --with-glpk-lib linker flags for using package Glpk
1155  --with-glpk-incdir directory with header files for using package Glpk
1156  --with-glpk-datadir directory with data files for using package Glpk
1157  --with-grb-lib linker flags for using package Grb
1158  --with-grb-incdir directory with header files for using package Grb
1159  --with-grb-datadir directory with data files for using package Grb
1160  --with-highs-lib linker flags for using package Highs
1161  --with-highs-incdir directory with header files for using package Highs
1162  --with-highs-datadir directory with data files for using package Highs
1163  --with-msk-lib linker flags for using package Msk
1164  --with-msk-incdir directory with header files for using package Msk
1165  --with-msk-datadir directory with data files for using package Msk
1166  --with-spx-lib linker flags for using package Spx
1167  --with-spx-incdir directory with header files for using package Spx
1168  --with-spx-datadir directory with data files for using package Spx
1169  --with-xpr-lib linker flags for using package Xpr
1170  --with-xpr-incdir directory with header files for using package Xpr
1171  --with-xpr-datadir directory with data files for using package Xpr
1172  --with-asl-lib linker flags for using package ASL
1173  --with-asl-incdir directory with header files for using package ASL
1174  --with-asl-datadir directory with data files for using package ASL
1175  --with-mumps-lib linker flags for using package Mumps
1176  --with-mumps-incdir directory with header files for using package Mumps
1177  --with-mumps-datadir directory with data files for using package Mumps
1178  --with-nauty-incdir specify the header file directory for library Nauty
1179  --with-nauty-lib specify the flags used to link with the library Nauty
1180  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1181  --with-cbc-generic-solver
1182                          specify default solver for cbc-generic in lower case
1183                          letters (if not given, clp is assumed)
1184  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1185                          cl/icl builds only)
1186  --with-pthreadsw32-incdir
1187                          specify the path of the pthreads win32 header file
1188                          (for cl/icl builds only)
1189  --with-osicbc-default-solver
1190                          specify underlying solver for OsiCbc (default clp)
1191  --with-dot              use dot (from graphviz) when creating documentation
1192                          with doxygen if available; --without-dot to disable
1193
1194Some influential environment variables:
1195  CDEFS       Additional -D flags to be used when compiling C code.
1196  ADD_CFLAGS  Additional C compiler options
1197  DBG_CFLAGS  Debug C compiler options
1198  OPT_CFLAGS  Optimize C compiler options
1199  CC          C compiler command
1200  CFLAGS      C compiler flags
1201  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1202              nonstandard directory <lib dir>
1203  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1204              headers in a nonstandard directory <include dir>
1205  MPICC       C MPI Compiler
1206  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1207  ADD_CXXFLAGS
1208              Additional C++ compiler options
1209  DBG_CXXFLAGS
1210              Debug C++ compiler options
1211  OPT_CXXFLAGS
1212              Optimize C++ compiler options
1213  CXX         C++ compiler command
1214  CXXFLAGS    C++ compiler flags
1215  MPICXX      C++ MPI Compiler
1216  CPP         C preprocessor
1217  CXXCPP      C++ preprocessor
1218  F77         Fortran 77 compiler command
1219  FFLAGS      Fortran 77 compiler flags
1220  PKG_CONFIG  path to pkg-config utility
1221
1222Use these variables to override the choices made by `configure' or to help
1223it to find libraries and programs with nonstandard names/locations.
1224
1225Report bugs to <cbc@lists.coin-or.org>.
1226_ACEOF
1227fi
1228
1229if test "$ac_init_help" = "recursive"; then
1230  # If there are subdirs, report their specific --help.
1231  ac_popdir=`pwd`
1232  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1233    test -d $ac_dir || continue
1234    ac_builddir=.
1235
1236if test "$ac_dir" != .; then
1237  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1238  # A "../" for each directory in $ac_dir_suffix.
1239  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1240else
1241  ac_dir_suffix= ac_top_builddir=
1242fi
1243
1244case $srcdir in
1245  .)  # No --srcdir option.  We are building in place.
1246    ac_srcdir=.
1247    if test -z "$ac_top_builddir"; then
1248       ac_top_srcdir=.
1249    else
1250       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1251    fi ;;
1252  [\\/]* | ?:[\\/]* )  # Absolute path.
1253    ac_srcdir=$srcdir$ac_dir_suffix;
1254    ac_top_srcdir=$srcdir ;;
1255  *) # Relative path.
1256    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1257    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1258esac
1259
1260# Do not use `cd foo && pwd` to compute absolute paths, because
1261# the directories may not exist.
1262case `pwd` in
1263.) ac_abs_builddir="$ac_dir";;
1264*)
1265  case "$ac_dir" in
1266  .) ac_abs_builddir=`pwd`;;
1267  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1268  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1269  esac;;
1270esac
1271case $ac_abs_builddir in
1272.) ac_abs_top_builddir=${ac_top_builddir}.;;
1273*)
1274  case ${ac_top_builddir}. in
1275  .) ac_abs_top_builddir=$ac_abs_builddir;;
1276  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1277  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1278  esac;;
1279esac
1280case $ac_abs_builddir in
1281.) ac_abs_srcdir=$ac_srcdir;;
1282*)
1283  case $ac_srcdir in
1284  .) ac_abs_srcdir=$ac_abs_builddir;;
1285  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1286  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1287  esac;;
1288esac
1289case $ac_abs_builddir in
1290.) ac_abs_top_srcdir=$ac_top_srcdir;;
1291*)
1292  case $ac_top_srcdir in
1293  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1294  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1295  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1296  esac;;
1297esac
1298
1299    cd $ac_dir
1300    # Check for guested configure; otherwise get Cygnus style configure.
1301    if test -f $ac_srcdir/configure.gnu; then
1302      echo
1303      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1304    elif test -f $ac_srcdir/configure; then
1305      echo
1306      $SHELL $ac_srcdir/configure  --help=recursive
1307    elif test -f $ac_srcdir/configure.ac ||
1308           test -f $ac_srcdir/configure.in; then
1309      echo
1310      $ac_configure --help
1311    else
1312      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1313    fi
1314    cd $ac_popdir
1315  done
1316fi
1317
1318test -n "$ac_init_help" && exit 0
1319if $ac_init_version; then
1320  cat <<\_ACEOF
1321Cbc configure trunk
1322generated by GNU Autoconf 2.59
1323
1324Copyright (C) 2003 Free Software Foundation, Inc.
1325This configure script is free software; the Free Software Foundation
1326gives unlimited permission to copy, distribute and modify it.
1327
1328
1329Copyright 2006 International Business Machines and others.
1330All Rights Reserved.
1331This file is part of the open source package Coin which is distributed
1332under the Eclipse Public License.
1333_ACEOF
1334  exit 0
1335fi
1336exec 5>config.log
1337cat >&5 <<_ACEOF
1338This file contains any messages produced by compilers while
1339running configure, to aid debugging if configure makes a mistake.
1340
1341It was created by Cbc $as_me trunk, which was
1342generated by GNU Autoconf 2.59.  Invocation command line was
1343
1344  $ $0 $@
1345
1346_ACEOF
1347{
1348cat <<_ASUNAME
1349## --------- ##
1350## Platform. ##
1351## --------- ##
1352
1353hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1354uname -m = `(uname -m) 2>/dev/null || echo unknown`
1355uname -r = `(uname -r) 2>/dev/null || echo unknown`
1356uname -s = `(uname -s) 2>/dev/null || echo unknown`
1357uname -v = `(uname -v) 2>/dev/null || echo unknown`
1358
1359/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1360/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1361
1362/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1363/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1364/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1365hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1366/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1367/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1368/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1369
1370_ASUNAME
1371
1372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373for as_dir in $PATH
1374do
1375  IFS=$as_save_IFS
1376  test -z "$as_dir" && as_dir=.
1377  echo "PATH: $as_dir"
1378done
1379
1380} >&5
1381
1382cat >&5 <<_ACEOF
1383
1384
1385## ----------- ##
1386## Core tests. ##
1387## ----------- ##
1388
1389_ACEOF
1390
1391
1392# Keep a trace of the command line.
1393# Strip out --no-create and --no-recursion so they do not pile up.
1394# Strip out --silent because we don't want to record it for future runs.
1395# Also quote any args containing shell meta-characters.
1396# Make two passes to allow for proper duplicate-argument suppression.
1397ac_configure_args=
1398ac_configure_args0=
1399ac_configure_args1=
1400ac_sep=
1401ac_must_keep_next=false
1402for ac_pass in 1 2
1403do
1404  for ac_arg
1405  do
1406    case $ac_arg in
1407    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1408    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1409    | -silent | --silent | --silen | --sile | --sil)
1410      continue ;;
1411    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1412      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1413    esac
1414    case $ac_pass in
1415    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1416    2)
1417      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1418      if test $ac_must_keep_next = true; then
1419        ac_must_keep_next=false # Got value, back to normal.
1420      else
1421        case $ac_arg in
1422          *=* | --config-cache | -C | -disable-* | --disable-* \
1423          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1424          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1425          | -with-* | --with-* | -without-* | --without-* | --x)
1426            case "$ac_configure_args0 " in
1427              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1428            esac
1429            ;;
1430          -* ) ac_must_keep_next=true ;;
1431        esac
1432      fi
1433      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1434      # Get rid of the leading space.
1435      ac_sep=" "
1436      ;;
1437    esac
1438  done
1439done
1440$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1441$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1442
1443# When interrupted or exit'd, cleanup temporary files, and complete
1444# config.log.  We remove comments because anyway the quotes in there
1445# would cause problems or look ugly.
1446# WARNING: Be sure not to use single quotes in there, as some shells,
1447# such as our DU 5.0 friend, will then `close' the trap.
1448trap 'exit_status=$?
1449  # Save into config.log some information that might help in debugging.
1450  {
1451    echo
1452
1453    cat <<\_ASBOX
1454## ---------------- ##
1455## Cache variables. ##
1456## ---------------- ##
1457_ASBOX
1458    echo
1459    # The following way of writing the cache mishandles newlines in values,
1460{
1461  (set) 2>&1 |
1462    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1463    *ac_space=\ *)
1464      sed -n \
1465        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1466          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1467      ;;
1468    *)
1469      sed -n \
1470        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1471      ;;
1472    esac;
1473}
1474    echo
1475
1476    cat <<\_ASBOX
1477## ----------------- ##
1478## Output variables. ##
1479## ----------------- ##
1480_ASBOX
1481    echo
1482    for ac_var in $ac_subst_vars
1483    do
1484      eval ac_val=$`echo $ac_var`
1485      echo "$ac_var='"'"'$ac_val'"'"'"
1486    done | sort
1487    echo
1488
1489    if test -n "$ac_subst_files"; then
1490      cat <<\_ASBOX
1491## ------------- ##
1492## Output files. ##
1493## ------------- ##
1494_ASBOX
1495      echo
1496      for ac_var in $ac_subst_files
1497      do
1498        eval ac_val=$`echo $ac_var`
1499        echo "$ac_var='"'"'$ac_val'"'"'"
1500      done | sort
1501      echo
1502    fi
1503
1504    if test -s confdefs.h; then
1505      cat <<\_ASBOX
1506## ----------- ##
1507## confdefs.h. ##
1508## ----------- ##
1509_ASBOX
1510      echo
1511      sed "/^$/d" confdefs.h | sort
1512      echo
1513    fi
1514    test "$ac_signal" != 0 &&
1515      echo "$as_me: caught signal $ac_signal"
1516    echo "$as_me: exit $exit_status"
1517  } >&5
1518  rm -f core *.core &&
1519  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1520    exit $exit_status
1521     ' 0
1522for ac_signal in 1 2 13 15; do
1523  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1524done
1525ac_signal=0
1526
1527# confdefs.h avoids OS command line length limits that DEFS can exceed.
1528rm -rf conftest* confdefs.h
1529# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1530echo >confdefs.h
1531
1532# Predefined preprocessor variables.
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_NAME "$PACKAGE_NAME"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_VERSION "$PACKAGE_VERSION"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_STRING "$PACKAGE_STRING"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1556_ACEOF
1557
1558
1559# Let the site file select an alternate cache file if it wants to.
1560# Prefer explicitly selected file to automatically selected ones.
1561if test -z "$CONFIG_SITE"; then
1562  if test "x$prefix" != xNONE; then
1563    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1564  else
1565    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1566  fi
1567fi
1568for ac_site_file in $CONFIG_SITE; do
1569  if test -r "$ac_site_file"; then
1570    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1571echo "$as_me: loading site script $ac_site_file" >&6;}
1572    sed 's/^/| /' "$ac_site_file" >&5
1573    . "$ac_site_file"
1574  fi
1575done
1576
1577if test -r "$cache_file"; then
1578  # Some versions of bash will fail to source /dev/null (special
1579  # files actually), so we avoid doing that.
1580  if test -f "$cache_file"; then
1581    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1582echo "$as_me: loading cache $cache_file" >&6;}
1583    case $cache_file in
1584      [\\/]* | ?:[\\/]* ) . $cache_file;;
1585      *)                      . ./$cache_file;;
1586    esac
1587  fi
1588else
1589  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1590echo "$as_me: creating cache $cache_file" >&6;}
1591  >$cache_file
1592fi
1593
1594# Check that the precious variables saved in the cache have kept the same
1595# value.
1596ac_cache_corrupted=false
1597for ac_var in `(set) 2>&1 |
1598               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1599  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1600  eval ac_new_set=\$ac_env_${ac_var}_set
1601  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1602  eval ac_new_val="\$ac_env_${ac_var}_value"
1603  case $ac_old_set,$ac_new_set in
1604    set,)
1605      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1606echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1607      ac_cache_corrupted=: ;;
1608    ,set)
1609      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1610echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1611      ac_cache_corrupted=: ;;
1612    ,);;
1613    *)
1614      if test "x$ac_old_val" != "x$ac_new_val"; then
1615        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1616echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1617        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1618echo "$as_me:   former value:  $ac_old_val" >&2;}
1619        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1620echo "$as_me:   current value: $ac_new_val" >&2;}
1621        ac_cache_corrupted=:
1622      fi;;
1623  esac
1624  # Pass precious variables to config.status.
1625  if test "$ac_new_set" = set; then
1626    case $ac_new_val in
1627    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1628      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1629    *) ac_arg=$ac_var=$ac_new_val ;;
1630    esac
1631    case " $ac_configure_args " in
1632      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1633      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1634    esac
1635  fi
1636done
1637if $ac_cache_corrupted; then
1638  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1639echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1640  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1641echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644
1645ac_ext=c
1646ac_cpp='$CPP $CPPFLAGS'
1647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1649ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680# List one file in the package so that the configure script can test
1681# whether the package is actually there
1682
1683
1684# Where should everything be installed by default?  Here, we want it
1685# to be installed directly in 'bin', 'lib', 'include' subdirectories
1686# of the directory where configure is run.  The default would be
1687# /usr/local.
1688
1689
1690#############################################################################
1691#                         Standard build tool stuff                         #
1692#############################################################################
1693
1694# Get the system type
1695ac_aux_dir=
1696for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1697  if test -f $ac_dir/install-sh; then
1698    ac_aux_dir=$ac_dir
1699    ac_install_sh="$ac_aux_dir/install-sh -c"
1700    break
1701  elif test -f $ac_dir/install.sh; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/install.sh -c"
1704    break
1705  elif test -f $ac_dir/shtool; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/shtool install -c"
1708    break
1709  fi
1710done
1711if test -z "$ac_aux_dir"; then
1712  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1713echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1717ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1718ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1719
1720# Make sure we can run config.sub.
1721$ac_config_sub sun4 >/dev/null 2>&1 ||
1722  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1723echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1724   { (exit 1); exit 1; }; }
1725
1726echo "$as_me:$LINENO: checking build system type" >&5
1727echo $ECHO_N "checking build system type... $ECHO_C" >&6
1728if test "${ac_cv_build+set}" = set; then
1729  echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731  ac_cv_build_alias=$build_alias
1732test -z "$ac_cv_build_alias" &&
1733  ac_cv_build_alias=`$ac_config_guess`
1734test -z "$ac_cv_build_alias" &&
1735  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1736echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1737   { (exit 1); exit 1; }; }
1738ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1739  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1740echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1741   { (exit 1); exit 1; }; }
1742
1743fi
1744echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1745echo "${ECHO_T}$ac_cv_build" >&6
1746build=$ac_cv_build
1747build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1750
1751
1752
1753# If this project depends on external projects, the Externals file in
1754# the source root directory contains definition of where to find those
1755# externals.  The following macro ensures that those externals are
1756# retrieved by svn if they are not there yet.
1757
1758# As backup, we make sure we don't loose an FLIBS if it has been set
1759# by the user
1760save_FLIBS="$FLIBS"
1761
1762# A useful makefile conditional that is always false
1763
1764
1765if false; then
1766  ALWAYS_FALSE_TRUE=
1767  ALWAYS_FALSE_FALSE='#'
1768else
1769  ALWAYS_FALSE_TRUE='#'
1770  ALWAYS_FALSE_FALSE=
1771fi
1772
1773
1774# We set the following variable so that we know later in AC_COIN_FINALIZE
1775# that we are in a project main directory
1776coin_projectdir=yes
1777
1778# Set the project's version numbers
1779
1780
1781cat >>confdefs.h <<_ACEOF
1782#define CBC_VERSION "$PACKAGE_VERSION"
1783_ACEOF
1784
1785
1786  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1787  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1788  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1789  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1790  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1791  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CBC_VERSION_MAJOR $coin_majorver
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define CBC_VERSION_MINOR $coin_minorver
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define CBC_VERSION_RELEASE $coin_releasever
1805_ACEOF
1806
1807
1808  # We use the following variable to have a string with the upper case
1809  # version of the project name
1810  COIN_PRJCT=CBC
1811
1812  # Set the project's SVN revision number. The complicated sed expression
1813  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1814  # as a single number.
1815  # Extract the first word of "svnversion", so it can be a program name with args.
1816set dummy svnversion; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_have_svnversion+set}" = set; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  if test -n "$have_svnversion"; then
1823  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828  IFS=$as_save_IFS
1829  test -z "$as_dir" && as_dir=.
1830  for ac_exec_ext in '' $ac_executable_extensions; do
1831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832    ac_cv_prog_have_svnversion="yes"
1833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834    break 2
1835  fi
1836done
1837done
1838
1839  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1840fi
1841fi
1842have_svnversion=$ac_cv_prog_have_svnversion
1843if test -n "$have_svnversion"; then
1844  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1845echo "${ECHO_T}$have_svnversion" >&6
1846else
1847  echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851  if test "x$have_svnversion" = xyes; then
1852
1853    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1854    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1855      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1856
1857cat >>confdefs.h <<_ACEOF
1858#define CBC_SVN_REV $CBC_SVN_REV
1859_ACEOF
1860
1861    fi
1862  fi
1863
1864
1865
1866# Capture libtool library version, if given.
1867
1868
1869
1870
1871# Check if user wants to produce debugging code
1872
1873echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1874echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1875
1876# Check whether --enable-debug or --disable-debug was given.
1877if test "${enable_debug+set}" = set; then
1878  enableval="$enable_debug"
1879  case "${enableval}" in
1880   yes) coin_debug_compile=true
1881        if test "${enable_shared+set}" = set; then :; else
1882          enable_shared=no
1883        fi
1884        ;;
1885   no)  coin_debug_compile=false
1886        ;;
1887   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1888echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1889   { (exit 1); exit 1; }; }
1890        ;;
1891esac
1892else
1893  coin_debug_compile=false
1894fi;
1895
1896# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1897if test "${enable_debug_cbc+set}" = set; then
1898  enableval="$enable_debug_cbc"
1899  case "${enableval}" in
1900    yes) coin_debug_compile=true
1901         ;;
1902    no)  coin_debug_compile=false
1903         ;;
1904    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1905echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1906   { (exit 1); exit 1; }; }
1907         ;;
1908 esac
1909else
1910  :
1911fi;
1912
1913 # m4_ifvaln([Cbc],
1914
1915if test $coin_debug_compile = true; then
1916  echo "$as_me:$LINENO: result: yes" >&5
1917echo "${ECHO_T}yes" >&6
1918else
1919  echo "$as_me:$LINENO: result: no" >&5
1920echo "${ECHO_T}no" >&6
1921fi
1922
1923
1924# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1925if test "${with_cbc_verbosity+set}" = set; then
1926  withval="$with_cbc_verbosity"
1927  if test "$withval" = yes; then
1928                withval=1
1929              fi
1930              coin_cbc_verbosity=$withval
1931else
1932  coin_cbc_verbosity=0
1933fi;
1934
1935cat >>confdefs.h <<_ACEOF
1936#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1937_ACEOF
1938
1939
1940
1941# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1942if test "${with_cbc_checklevel+set}" = set; then
1943  withval="$with_cbc_checklevel"
1944  if test "$withval" = yes; then
1945                withval=1
1946              fi
1947              coin_cbc_checklevel=$withval
1948else
1949  coin_cbc_checklevel=0
1950fi;
1951
1952cat >>confdefs.h <<_ACEOF
1953#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1954_ACEOF
1955
1956
1957 # m4_ifvaln([Cbc],
1958
1959
1960
1961# Get the name of the C++ compiler and appropriate compiler options
1962
1963
1964  # for backward compatibility
1965  # Check whether --enable-doscompile or --disable-doscompile was given.
1966if test "${enable_doscompile+set}" = set; then
1967  enableval="$enable_doscompile"
1968  enable_doscompile=$enableval
1969else
1970  enable_doscompile=no
1971fi;
1972
1973  # Check whether --enable-msvc or --disable-msvc was given.
1974if test "${enable_msvc+set}" = set; then
1975  enableval="$enable_msvc"
1976  enable_msvc=$enableval
1977else
1978  enable_msvc=no
1979     if test "$enable_doscompile" = msvc ; then
1980       enable_msvc=yes
1981     elif test "$enable_doscompile" != no ; then
1982       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1983echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1984   { (exit 1); exit 1; }; }
1985     fi
1986
1987fi;
1988
1989  if test "$enable_msvc" = MD; then
1990    enable_shared=yes
1991    enable_msvc=yes
1992  fi
1993
1994  if test "$enable_msvc" = yes; then
1995    case $build in
1996      *-cygwin* | *-mingw*) ;;
1997      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1998echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1999   { (exit 1); exit 1; }; } ;;
2000    esac
2001  fi
2002
2003
2004
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012# For consistency, we set the C compiler to the same value of the C++
2013# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2014if test x"$CXX" != x; then
2015  case "$CXX" in
2016    clang* ) ;;
2017    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2018      if test x"$CC" = x; then
2019        CC="$CXX"
2020        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2021echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2022      fi
2023      ;;
2024  esac
2025fi
2026
2027
2028
2029
2030
2031
2032coin_has_cc=yes
2033
2034save_cflags="$CFLAGS"
2035
2036# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2037# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2038# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2039# compiler. In this case, put cc after gcc.
2040
2041case $build in
2042  *-cygwin* | *-mingw*)
2043             if test "$enable_msvc" = yes ; then
2044               comps="icl cl gcc"
2045             else
2046               comps="gcc icl cl"
2047             fi ;;
2048  *-*-solaris*)
2049             # Extract the first word of "cc", so it can be a program name with args.
2050set dummy cc; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$sol_cc_compiler"; then
2057  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2058else
2059  ac_prog_rejected=no
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2068       ac_prog_rejected=yes
2069       continue
2070     fi
2071    ac_cv_prog_sol_cc_compiler="cc"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078if test $ac_prog_rejected = yes; then
2079  # We found a bogon in the path, so make sure we never use it.
2080  set dummy $ac_cv_prog_sol_cc_compiler
2081  shift
2082  if test $# != 0; then
2083    # We chose a different compiler from the bogus one.
2084    # However, it has the same basename, so the bogon will be chosen
2085    # first if we set sol_cc_compiler to just the basename; use the full file name.
2086    shift
2087    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2088  fi
2089fi
2090fi
2091fi
2092sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2093if test -n "$sol_cc_compiler"; then
2094  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2095echo "${ECHO_T}$sol_cc_compiler" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101             if test "$sol_cc_compiler" = "cc" ; then
2102               comps="cc xlc gcc pgcc icc"
2103             else
2104               comps="xlc gcc pgcc icc cc"
2105             fi
2106             ;;
2107  *-*-darwin*) comps="clang gcc cc" ;;
2108  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2109  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2110  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2111esac
2112
2113# We delete the cached value, since the test might not have been
2114# performed with our choice of compilers earlier
2115$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2116# AC_MSG_NOTICE([C compiler candidates: $comps])
2117ac_ext=c
2118ac_cpp='$CPP $CPPFLAGS'
2119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2121ac_compiler_gnu=$ac_cv_c_compiler_gnu
2122if test -n "$ac_tool_prefix"; then
2123  for ac_prog in $comps
2124  do
2125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_CC+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  if test -n "$CC"; then
2133  ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  for ac_exec_ext in '' $ac_executable_extensions; do
2141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144    break 2
2145  fi
2146done
2147done
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153  echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6
2155else
2156  echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160    test -n "$CC" && break
2161  done
2162fi
2163if test -z "$CC"; then
2164  ac_ct_CC=$CC
2165  for ac_prog in $comps
2166do
2167  # Extract the first word of "$ac_prog", so it can be a program name with args.
2168set dummy $ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test -n "$ac_ct_CC"; then
2175  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182  for ac_exec_ext in '' $ac_executable_extensions; do
2183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184    ac_cv_prog_ac_ct_CC="$ac_prog"
2185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186    break 2
2187  fi
2188done
2189done
2190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
2195  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6
2197else
2198  echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202  test -n "$ac_ct_CC" && break
2203done
2204
2205  CC=$ac_ct_CC
2206fi
2207
2208
2209test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: no acceptable C compiler found in \$PATH
2212See \`config.log' for more details." >&2;}
2213   { (exit 1); exit 1; }; }
2214
2215# Provide some information about the compiler.
2216echo "$as_me:$LINENO:" \
2217     "checking for C compiler version" >&5
2218ac_compiler=`set X $ac_compile; echo $2`
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220  (eval $ac_compiler --version </dev/null >&5) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }
2224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225  (eval $ac_compiler -v </dev/null >&5) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230  (eval $ac_compiler -V </dev/null >&5) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }
2234
2235cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h.  */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h.  */
2241
2242int
2243main ()
2244{
2245
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250ac_clean_files_save=$ac_clean_files
2251ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252# Try to create an executable without -o first, disregard a.out.
2253# It will help us diagnose broken compilers, and finding out an intuition
2254# of exeext.
2255echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259  (eval $ac_link_default) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  # Find the output, starting from the most likely.  This scheme is
2264# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2265# resort.
2266
2267# Be careful to initialize this variable, since it used to be cached.
2268# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269ac_cv_exeext=
2270# b.out is created by i960 compilers.
2271for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272do
2273  test -f "$ac_file" || continue
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2276        ;;
2277    conftest.$ac_ext )
2278        # This is the source file.
2279        ;;
2280    [ab].out )
2281        # We found the default executable, but exeext='' is most
2282        # certainly right.
2283        break;;
2284    *.* )
2285        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286        # FIXME: I believe we export ac_cv_exeext for Libtool,
2287        # but it would be cool to find out if it's true.  Does anybody
2288        # maintain Libtool? --akim.
2289        export ac_cv_exeext
2290        break;;
2291    * )
2292        break;;
2293  esac
2294done
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: C compiler cannot create executables
2302See \`config.log' for more details." >&2;}
2303   { (exit 77); exit 77; }; }
2304fi
2305
2306ac_exeext=$ac_cv_exeext
2307echo "$as_me:$LINENO: result: $ac_file" >&5
2308echo "${ECHO_T}$ac_file" >&6
2309
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315# If not cross compiling, check that we can run a simple program.
2316if test "$cross_compiling" != yes; then
2317  if { ac_try='./$ac_file'
2318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319  (eval $ac_try) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; }; then
2323    cross_compiling=no
2324  else
2325    if test "$cross_compiling" = maybe; then
2326        cross_compiling=yes
2327    else
2328        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329If you meant to cross compile, use \`--host'.
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot run C compiled programs.
2332If you meant to cross compile, use \`--host'.
2333See \`config.log' for more details." >&2;}
2334   { (exit 1); exit 1; }; }
2335    fi
2336  fi
2337fi
2338echo "$as_me:$LINENO: result: yes" >&5
2339echo "${ECHO_T}yes" >&6
2340
2341rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342ac_clean_files=$ac_clean_files_save
2343# Check the compiler produces executables we can run.  If not, either
2344# the compiler is broken, or we cross compile.
2345echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348echo "${ECHO_T}$cross_compiling" >&6
2349
2350echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353  (eval $ac_link) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; then
2357  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2359# work properly (i.e., refer to `conftest.exe'), while it won't with
2360# `rm'.
2361for ac_file in conftest.exe conftest conftest.*; do
2362  test -f "$ac_file" || continue
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366          export ac_cv_exeext
2367          break;;
2368    * ) break;;
2369  esac
2370done
2371else
2372  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373See \`config.log' for more details." >&5
2374echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375See \`config.log' for more details." >&2;}
2376   { (exit 1); exit 1; }; }
2377fi
2378
2379rm -f conftest$ac_cv_exeext
2380echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381echo "${ECHO_T}$ac_cv_exeext" >&6
2382
2383rm -f conftest.$ac_ext
2384EXEEXT=$ac_cv_exeext
2385ac_exeext=$EXEEXT
2386echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388if test "${ac_cv_objext+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401
2402  ;
2403  return 0;
2404}
2405_ACEOF
2406rm -f conftest.o conftest.obj
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408  (eval $ac_compile) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; then
2412  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413  case $ac_file in
2414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2416       break;;
2417  esac
2418done
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&2;}
2427   { (exit 1); exit 1; }; }
2428fi
2429
2430rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433echo "${ECHO_T}$ac_cv_objext" >&6
2434OBJEXT=$ac_cv_objext
2435ac_objext=$OBJEXT
2436echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451#ifndef __GNUC__
2452       choke me
2453#endif
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_compiler_gnu=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486ac_compiler_gnu=no
2487fi
2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494GCC=`test $ac_compiler_gnu = yes && echo yes`
2495ac_test_CFLAGS=${CFLAGS+set}
2496ac_save_CFLAGS=$CFLAGS
2497CFLAGS="-g"
2498echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500if test "${ac_cv_prog_cc_g+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509
2510int
2511main ()
2512{
2513
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520  (eval $ac_compile) 2>conftest.er1
2521  ac_status=$?
2522  grep -v '^ *+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); } &&
2527         { ac_try='test -z "$ac_c_werror_flag"
2528                         || test ! -s conftest.err'
2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530  (eval $ac_try) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }; } &&
2534         { ac_try='test -s conftest.$ac_objext'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; }; then
2540  ac_cv_prog_cc_g=yes
2541else
2542  echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545ac_cv_prog_cc_g=no
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551if test "$ac_test_CFLAGS" = set; then
2552  CFLAGS=$ac_save_CFLAGS
2553elif test $ac_cv_prog_cc_g = yes; then
2554  if test "$GCC" = yes; then
2555    CFLAGS="-g -O2"
2556  else
2557    CFLAGS="-g"
2558  fi
2559else
2560  if test "$GCC" = yes; then
2561    CFLAGS="-O2"
2562  else
2563    CFLAGS=
2564  fi
2565fi
2566echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569  echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571  ac_cv_prog_cc_stdc=no
2572ac_save_CC=$CC
2573cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579#include <stdarg.h>
2580#include <stdio.h>
2581#include <sys/types.h>
2582#include <sys/stat.h>
2583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2584struct buf { int x; };
2585FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586static char *e (p, i)
2587     char **p;
2588     int i;
2589{
2590  return p[i];
2591}
2592static char *f (char * (*g) (char **, int), char **p, ...)
2593{
2594  char *s;
2595  va_list v;
2596  va_start (v,p);
2597  s = g (p, va_arg (v,int));
2598  va_end (v);
2599  return s;
2600}
2601
2602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2603   function prototypes and stuff, but not '\xHH' hex character constants.
2604   These don't provoke an error unfortunately, instead are silently treated
2605   as 'x'.  The following induces an error, until -std1 is added to get
2606   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2607   array size at least.  It's necessary to write '\x00'==0 to get something
2608   that's true only with -std1.  */
2609int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610
2611int test (int i, double x);
2612struct s1 {int (*f) (int a);};
2613struct s2 {int (*f) (double a);};
2614int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615int argc;
2616char **argv;
2617int
2618main ()
2619{
2620return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625# Don't try gcc -ansi; that turns off useful extensions and
2626# breaks some systems' header files.
2627# AIX                   -qlanglvl=ansi
2628# Ultrix and OSF/1      -std1
2629# HP-UX 10.20 and later -Ae
2630# HP-UX older versions  -Aa -D_HPUX_SOURCE
2631# SVR4                  -Xc -D__EXTENSIONS__
2632for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633do
2634  CC="$ac_save_CC $ac_arg"
2635  rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644         { ac_try='test -z "$ac_c_werror_flag"
2645                         || test ! -s conftest.err'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; } &&
2651         { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  ac_cv_prog_cc_stdc=$ac_arg
2658break
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663fi
2664rm -f conftest.err conftest.$ac_objext
2665done
2666rm -f conftest.$ac_ext conftest.$ac_objext
2667CC=$ac_save_CC
2668
2669fi
2670
2671case "x$ac_cv_prog_cc_stdc" in
2672  x|xno)
2673    echo "$as_me:$LINENO: result: none needed" >&5
2674echo "${ECHO_T}none needed" >&6 ;;
2675  *)
2676    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678    CC="$CC $ac_cv_prog_cc_stdc" ;;
2679esac
2680
2681# Some people use a C++ compiler to compile C.  Since we use `exit',
2682# in C++ we need to declare it.  In case someone uses the same compiler
2683# for both compiling C and C++ we need to have the C++ compiler decide
2684# the declaration of exit, since it's the most demanding environment.
2685cat >conftest.$ac_ext <<_ACEOF
2686#ifndef __cplusplus
2687  choke me
2688#endif
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692  (eval $ac_compile) 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } &&
2699         { ac_try='test -z "$ac_c_werror_flag"
2700                         || test ! -s conftest.err'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; } &&
2706         { ac_try='test -s conftest.$ac_objext'
2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708  (eval $ac_try) 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; }; then
2712  for ac_declaration in \
2713   '' \
2714   'extern "C" void std::exit (int) throw (); using std::exit;' \
2715   'extern "C" void std::exit (int); using std::exit;' \
2716   'extern "C" void exit (int) throw ();' \
2717   'extern "C" void exit (int);' \
2718   'void exit (int);'
2719do
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726$ac_declaration
2727#include <stdlib.h>
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  :
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763continue
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766  cat >conftest.$ac_ext <<_ACEOF
2767/* confdefs.h.  */
2768_ACEOF
2769cat confdefs.h >>conftest.$ac_ext
2770cat >>conftest.$ac_ext <<_ACEOF
2771/* end confdefs.h.  */
2772$ac_declaration
2773int
2774main ()
2775{
2776exit (42);
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781rm -f conftest.$ac_objext
2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783  (eval $ac_compile) 2>conftest.er1
2784  ac_status=$?
2785  grep -v '^ *+' conftest.er1 >conftest.err
2786  rm -f conftest.er1
2787  cat conftest.err >&5
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); } &&
2790         { ac_try='test -z "$ac_c_werror_flag"
2791                         || test ! -s conftest.err'
2792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793  (eval $ac_try) 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; } &&
2797         { ac_try='test -s conftest.$ac_objext'
2798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799  (eval $ac_try) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }; }; then
2803  break
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808fi
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811rm -f conftest*
2812if test -n "$ac_declaration"; then
2813  echo '#ifdef __cplusplus' >>confdefs.h
2814  echo $ac_declaration      >>confdefs.h
2815  echo '#endif'             >>confdefs.h
2816fi
2817
2818else
2819  echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830if test -z "$CC" ; then
2831  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2832echo "$as_me: error: Failed to find a C compiler!" >&2;}
2833   { (exit 1); exit 1; }; }
2834fi
2835# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2836case "$CC" in
2837  clang* ) ;;
2838  cl* | */cl* | CL* | */CL* )
2839    if test "$ac_cv_prog_cc_g" = yes ; then
2840      ac_cv_prog_cc_g=no
2841      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2842echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2843    fi ;;
2844  * )
2845    if test x"$CYGPATH_W" = x ; then
2846      CYGPATH_W=echo
2847    fi
2848    ;;
2849esac
2850CFLAGS="$save_cflags"
2851
2852# add automake conditional so we can recognize cl compiler in makefile
2853coin_cc_is_cl=false
2854case "$CC" in
2855  clang* ) ;;
2856  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2857    coin_cc_is_cl=true
2858    ;;
2859esac
2860
2861
2862if test $coin_cc_is_cl = true; then
2863  COIN_CC_IS_CL_TRUE=
2864  COIN_CC_IS_CL_FALSE='#'
2865else
2866  COIN_CC_IS_CL_TRUE='#'
2867  COIN_CC_IS_CL_FALSE=
2868fi
2869
2870
2871# Check if a project specific CFLAGS variable has been set
2872if test x$COIN_PRJCT != x; then
2873  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2874  if test x$coin_tmp = xset; then
2875    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2876  fi
2877fi
2878
2879if test x"$CFLAGS" = x; then
2880
2881  coin_add_cflags=
2882  coin_opt_cflags=
2883  coin_dbg_cflags=
2884  coin_warn_cflags=
2885
2886  if test "$GCC" = "yes"; then
2887    case "$CC" in
2888      icc* | */icc*)
2889        ;;
2890      *)
2891        coin_opt_cflags="-O3"
2892        coin_add_cflags="-pipe"
2893        coin_dbg_cflags="-g -O0"
2894        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2895    esac
2896  fi
2897  if test -z "$coin_opt_cflags"; then
2898    case $build in
2899      *-cygwin* | *-mingw*)
2900        case "$CC" in
2901          clang* ) ;;
2902          cl* | */cl* | CL* | */CL*)
2903            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2904              coin_opt_cflags='-MD -O2'
2905              coin_dbg_cflags='-MDd'
2906            else
2907              coin_opt_cflags='-MT -O2'
2908              coin_dbg_cflags='-MTd'
2909            fi
2910            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2911            ;;
2912          icl* | */icl* | ICL* | */ICL*)
2913            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2914              coin_opt_cflags='-MD -Ox'
2915              coin_dbg_cflags='-MDd -debug'
2916            else
2917              coin_opt_cflags='-MT -Ox'
2918              coin_dbg_cflags='-MTd -debug'
2919            fi
2920            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2921            ;;
2922        esac
2923        ;;
2924      *-linux-*)
2925        case "$CC" in
2926          icc* | */icc*)
2927            coin_opt_cflags="-O3 -ip -mp1"
2928            coin_add_cflags=""
2929            coin_dbg_cflags="-g"
2930            # Check if -i_dynamic is necessary (for new glibc library)
2931            CFLAGS=
2932            cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942int i=0; i++;
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext conftest$ac_exeext
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956         { ac_try='test -z "$ac_c_werror_flag"
2957                         || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963         { ac_try='test -s conftest$ac_exeext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  :
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974coin_add_cflags="-i_dynamic $coin_add_cflags"
2975fi
2976rm -f conftest.err conftest.$ac_objext \
2977      conftest$ac_exeext conftest.$ac_ext
2978            ;;
2979          pgcc* | */pgcc*)
2980            coin_opt_cflags="-fast"
2981            coin_add_cflags="-Kieee -pc 64"
2982            coin_dbg_cflags="-g"
2983            ;;
2984        esac
2985        ;;
2986      *-ibm-*)
2987        case "$CC" in
2988          xlc* | */xlc* | mpxlc* | */mpxlc*)
2989            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2990            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2991            coin_dbg_cflags="-g"
2992          ;;
2993        esac
2994        ;;
2995      *-hp-*)
2996        coin_opt_cflags="-O"
2997        coin_add_cflags="-Ae"
2998        coin_dbg_cflags="-g"
2999        ;;
3000      *-*-solaris*)
3001        coin_opt_cflags="-xO4"
3002        coin_dbg_cflags="-g"
3003        ;;
3004      *-sgi-*)
3005        coin_opt_cflags="-O -OPT:Olimit=0"
3006        coin_dbg_cflags="-g"
3007        ;;
3008    esac
3009  fi
3010
3011  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3012    coin_dbg_cflags="-g"
3013  fi
3014
3015  if test -z "$coin_opt_cflags"; then
3016    # Try if -O option works if nothing else is set
3017    CFLAGS="-O"
3018    cat >conftest.$ac_ext <<_ACEOF
3019/* confdefs.h.  */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h.  */
3024
3025int
3026main ()
3027{
3028int i=0; i++;
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033rm -f conftest.$ac_objext conftest$ac_exeext
3034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035  (eval $ac_link) 2>conftest.er1
3036  ac_status=$?
3037  grep -v '^ *+' conftest.er1 >conftest.err
3038  rm -f conftest.er1
3039  cat conftest.err >&5
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); } &&
3042         { ac_try='test -z "$ac_c_werror_flag"
3043                         || test ! -s conftest.err'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; } &&
3049         { ac_try='test -s conftest$ac_exeext'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055  coin_opt_cflags="-O"
3056else
3057  echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060fi
3061rm -f conftest.err conftest.$ac_objext \
3062      conftest$ac_exeext conftest.$ac_ext
3063  fi
3064
3065  # if PM doesn't want the warning messages, take them out
3066  if test x"$coin_skip_warn_cflags" = xyes; then
3067    coin_warn_cflags=
3068  fi
3069
3070  if test x${DBG_CFLAGS+set} != xset; then
3071    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3072  fi
3073  if test x${OPT_CFLAGS+set} != xset; then
3074    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3075  fi
3076
3077  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3078  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3079
3080  if test "$coin_debug_compile" = "true"; then
3081    CFLAGS="$DBG_CFLAGS"
3082  else
3083    CFLAGS="$OPT_CFLAGS"
3084  fi
3085else
3086  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3087  if test x${DBG_CFLAGS+set} != xset; then
3088    DBG_CFLAGS="$CFLAGS"
3089  fi
3090  if test x${OPT_CFLAGS+set} != xset; then
3091    OPT_CFLAGS="$CFLAGS"
3092  fi
3093fi
3094
3095# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3096if test x$COIN_PRJCT != x; then
3097  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3098fi
3099
3100# Try if CFLAGS works
3101save_CFLAGS="$CFLAGS"
3102cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h.  */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112int i=0; i++;
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117rm -f conftest.$ac_objext conftest$ac_exeext
3118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119  (eval $ac_link) 2>conftest.er1
3120  ac_status=$?
3121  grep -v '^ *+' conftest.er1 >conftest.err
3122  rm -f conftest.er1
3123  cat conftest.err >&5
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } &&
3126         { ac_try='test -z "$ac_c_werror_flag"
3127                         || test ! -s conftest.err'
3128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129  (eval $ac_try) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); }; } &&
3133         { ac_try='test -s conftest$ac_exeext'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; }; then
3139  :
3140else
3141  echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144CFLAGS=
3145fi
3146rm -f conftest.err conftest.$ac_objext \
3147      conftest$ac_exeext conftest.$ac_ext
3148if test -z "$CFLAGS"; then
3149  { 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
3150echo "$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;}
3151  CFLAGS='-O'
3152  cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162int i=0; i++;
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169  (eval $ac_link) 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } &&
3176         { ac_try='test -z "$ac_c_werror_flag"
3177                         || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183         { ac_try='test -s conftest$ac_exeext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  :
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194CFLAGS=
3195fi
3196rm -f conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext conftest.$ac_ext
3198  if test -z "$CFLAGS"; then
3199    { 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
3200echo "$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;}
3201  fi
3202fi
3203
3204{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3205echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3206
3207
3208if test x"$MPICC" = x; then :; else
3209  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3210echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3211  CC="$MPICC"
3212fi
3213
3214# Correct the LD variable if we are using the MS or Intel-windows compiler
3215case "$CC" in
3216  clang* ) ;;
3217  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3218    LD=link
3219    ;;
3220esac
3221
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228
3229
3230 #Let's try if that overcomes configuration problem with VC++ 6.0
3231
3232ac_ext=cc
3233ac_cpp='$CXXCPP $CPPFLAGS'
3234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3237
3238
3239
3240
3241
3242
3243
3244coin_has_cxx=yes
3245
3246save_cxxflags="$CXXFLAGS"
3247# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3248case $build in
3249  *-cygwin* | *-mingw*)
3250      if test "$enable_msvc" = yes ; then
3251         comps="icl cl g++"
3252      else
3253         comps="g++ icl cl"
3254      fi ;;
3255  *-*-solaris*)
3256             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3257  *-darwin*) comps="clang++ g++ c++ CC" ;;
3258  *-linux-gnu*)
3259             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3260          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3261esac
3262
3263# We delete the cached value, since the test might not have been
3264# performed with our choice of compilers earlier
3265$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3266# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3267ac_ext=cc
3268ac_cpp='$CXXCPP $CPPFLAGS'
3269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3272if test -n "$ac_tool_prefix"; then
3273  for ac_prog in $CCC $comps
3274  do
3275    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_CXX+set}" = set; then
3280  echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282  if test -n "$CXX"; then
3283  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290  for ac_exec_ext in '' $ac_executable_extensions; do
3291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294    break 2
3295  fi
3296done
3297done
3298
3299fi
3300fi
3301CXX=$ac_cv_prog_CXX
3302if test -n "$CXX"; then
3303  echo "$as_me:$LINENO: result: $CXX" >&5
3304echo "${ECHO_T}$CXX" >&6
3305else
3306  echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
3308fi
3309
3310    test -n "$CXX" && break
3311  done
3312fi
3313if test -z "$CXX"; then
3314  ac_ct_CXX=$CXX
3315  for ac_prog in $CCC $comps
3316do
3317  # Extract the first word of "$ac_prog", so it can be a program name with args.
3318set dummy $ac_prog; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$ac_ct_CXX"; then
3325  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_ac_ct_CXX="$ac_prog"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3344if test -n "$ac_ct_CXX"; then
3345  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3346echo "${ECHO_T}$ac_ct_CXX" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352  test -n "$ac_ct_CXX" && break
3353done
3354test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3355
3356  CXX=$ac_ct_CXX
3357fi
3358
3359
3360# Provide some information about the compiler.
3361echo "$as_me:$LINENO:" \
3362     "checking for C++ compiler version" >&5
3363ac_compiler=`set X $ac_compile; echo $2`
3364{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3365  (eval $ac_compiler --version </dev/null >&5) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }
3369{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3370  (eval $ac_compiler -v </dev/null >&5) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }
3374{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3375  (eval $ac_compiler -V </dev/null >&5) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }
3379
3380echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3381echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3382if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3383  echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385  cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h.  */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h.  */
3391
3392int
3393main ()
3394{
3395#ifndef __GNUC__
3396       choke me
3397#endif
3398
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405  (eval $ac_compile) 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } &&
3412         { ac_try='test -z "$ac_cxx_werror_flag"
3413                         || test ! -s conftest.err'
3414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415  (eval $ac_try) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); }; } &&
3419         { ac_try='test -s conftest.$ac_objext'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; }; then
3425  ac_compiler_gnu=yes
3426else
3427  echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430ac_compiler_gnu=no
3431fi
3432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3434
3435fi
3436echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3437echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3438GXX=`test $ac_compiler_gnu = yes && echo yes`
3439ac_test_CXXFLAGS=${CXXFLAGS+set}
3440ac_save_CXXFLAGS=$CXXFLAGS
3441CXXFLAGS="-g"
3442echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3443echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3444if test "${ac_cv_prog_cxx_g+set}" = set; then
3445  echo $ECHO_N "(cached) $ECHO_C" >&6
3446else
3447  cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h.  */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h.  */
3453
3454int
3455main ()
3456{
3457
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464  (eval $ac_compile) 2>conftest.er1
3465  ac_status=$?
3466  grep -v '^ *+' conftest.er1 >conftest.err
3467  rm -f conftest.er1
3468  cat conftest.err >&5
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); } &&
3471         { ac_try='test -z "$ac_cxx_werror_flag"
3472                         || test ! -s conftest.err'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478         { ac_try='test -s conftest.$ac_objext'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; }; then
3484  ac_cv_prog_cxx_g=yes
3485else
3486  echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489ac_cv_prog_cxx_g=no
3490fi
3491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492fi
3493echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3494echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3495if test "$ac_test_CXXFLAGS" = set; then
3496  CXXFLAGS=$ac_save_CXXFLAGS
3497elif test $ac_cv_prog_cxx_g = yes; then
3498  if test "$GXX" = yes; then
3499    CXXFLAGS="-g -O2"
3500  else
3501    CXXFLAGS="-g"
3502  fi
3503else
3504  if test "$GXX" = yes; then
3505    CXXFLAGS="-O2"
3506  else
3507    CXXFLAGS=
3508  fi
3509fi
3510for ac_declaration in \
3511   '' \
3512   'extern "C" void std::exit (int) throw (); using std::exit;' \
3513   'extern "C" void std::exit (int); using std::exit;' \
3514   'extern "C" void exit (int) throw ();' \
3515   'extern "C" void exit (int);' \
3516   'void exit (int);'
3517do
3518  cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h.  */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h.  */
3524$ac_declaration
3525#include <stdlib.h>
3526int
3527main ()
3528{
3529exit (42);
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534rm -f conftest.$ac_objext
3535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536  (eval $ac_compile) 2>conftest.er1
3537  ac_status=$?
3538  grep -v '^ *+' conftest.er1 >conftest.err
3539  rm -f conftest.er1
3540  cat conftest.err >&5
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); } &&
3543         { ac_try='test -z "$ac_cxx_werror_flag"
3544                         || test ! -s conftest.err'
3545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546  (eval $ac_try) 2>&5
3547  ac_status=$?
3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549  (exit $ac_status); }; } &&
3550         { ac_try='test -s conftest.$ac_objext'
3551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552  (eval $ac_try) 2>&5
3553  ac_status=$?
3554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555  (exit $ac_status); }; }; then
3556  :
3557else
3558  echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561continue
3562fi
3563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564  cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h.  */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h.  */
3570$ac_declaration
3571int
3572main ()
3573{
3574exit (42);
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext
3580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581  (eval $ac_compile) 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } &&
3588         { ac_try='test -z "$ac_cxx_werror_flag"
3589                         || test ! -s conftest.err'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; } &&
3595         { ac_try='test -s conftest.$ac_objext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  break
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608done
3609rm -f conftest*
3610if test -n "$ac_declaration"; then
3611  echo '#ifdef __cplusplus' >>confdefs.h
3612  echo $ac_declaration      >>confdefs.h
3613  echo '#endif'             >>confdefs.h
3614fi
3615
3616ac_ext=cc
3617ac_cpp='$CXXCPP $CPPFLAGS'
3618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3621
3622
3623#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3624#thus, we test here whether $CXX is actually working
3625ac_ext=cc
3626ac_cpp='$CXXCPP $CPPFLAGS'
3627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3630
3631echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3632echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3633cat >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
3640int
3641main ()
3642{
3643int i=0;
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  echo "$as_me:$LINENO: result: yes" >&5
3671echo "${ECHO_T}yes" >&6
3672else
3673  echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676echo "$as_me:$LINENO: result: no" >&5
3677echo "${ECHO_T}no" >&6
3678   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3679echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3680   { (exit 1); exit 1; }; }
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684ac_ext=cc
3685ac_cpp='$CXXCPP $CPPFLAGS'
3686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689
3690
3691coin_cxx_is_cl=false
3692# It seems that we need to cleanup something here for the Windows
3693case "$CXX" in
3694  clang* | */clang*) ;;
3695  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3696    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3697    mv confdefs.hh confdefs.h
3698    coin_cxx_is_cl=true
3699    ;;
3700esac
3701
3702# add automake conditional so we can recognize cl compiler in makefile
3703
3704
3705if test $coin_cxx_is_cl = true; then
3706  COIN_CXX_IS_CL_TRUE=
3707  COIN_CXX_IS_CL_FALSE='#'
3708else
3709  COIN_CXX_IS_CL_TRUE='#'
3710  COIN_CXX_IS_CL_FALSE=
3711fi
3712
3713
3714# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3715case "$CXX" in
3716  clang* ) ;;
3717  cl* | */cl* | CL* | */CL* )
3718    if test "$ac_cv_prog_cxx_g" = yes ; then
3719      ac_cv_prog_cxx_g=no
3720      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3721echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3722    fi ;;
3723  * )
3724    if test x"$CYGPATH_W" = x ; then
3725      CYGPATH_W=echo
3726    fi
3727    ;;
3728esac
3729CXXFLAGS="$save_cxxflags"
3730
3731# Check if a project specific CXXFLAGS variable has been set
3732if test x$COIN_PRJCT != x; then
3733  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3734  if test x$coin_tmp = xset; then
3735    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3736  fi
3737fi
3738
3739if test x"$CXXFLAGS" = x; then
3740
3741# ToDo decide whether we want -DNDEBUG for optimization
3742  coin_add_cxxflags=
3743  coin_opt_cxxflags=
3744  coin_dbg_cxxflags=
3745  coin_warn_cxxflags=
3746
3747  if test "$GXX" = "yes"; then
3748    case "$CXX" in
3749      icpc* | */icpc*)
3750        ;;
3751      *)
3752# ToDo decide about unroll-loops
3753        coin_opt_cxxflags="-O3"
3754        coin_add_cxxflags="-pipe"
3755        coin_dbg_cxxflags="-g -O0"
3756        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3757    esac
3758  fi
3759
3760# Note that we do not need to cover GCC in the following tests.
3761
3762  if test -z "$coin_opt_cxxflags"; then
3763    case $build in
3764      *-cygwin* | *-mingw*)
3765        case "$CXX" in
3766          clang* ) ;;
3767          cl* | */cl* | CL* | */CL*)
3768            # The MT and MTd options are mutually exclusive
3769            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3770               coin_opt_cxxflags='-MD -O2'
3771               coin_dbg_cxxflags='-MDd'
3772            else
3773               coin_opt_cxxflags='-MT -O2'
3774               coin_dbg_cxxflags='-MTd'
3775            fi
3776            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3777            ;;
3778          icl* | */icl* | ICL* | */ICL*)
3779          # The MT and MTd options are mutually exclusive
3780            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3781              coin_opt_cxxflags='-MD -Ox'
3782              coin_dbg_cxxflags='-MDd -debug'
3783            else
3784              coin_opt_cxxflags='-MT -Ox'
3785              coin_dbg_cxxflags='-MTd -debug'
3786            fi
3787            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3788            ;;
3789        esac
3790        ;;
3791      *-linux-*)
3792        case "$CXX" in
3793          icpc* | */icpc*)
3794            coin_opt_cxxflags="-O3 -ip -mp1"
3795            coin_add_cxxflags=""
3796            coin_dbg_cxxflags="-g"
3797            # Check if -i_dynamic is necessary (for new glibc library)
3798            CXXFLAGS=
3799            cat >conftest.$ac_ext <<_ACEOF
3800/* confdefs.h.  */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809int i=0; i++;
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814rm -f conftest.$ac_objext conftest$ac_exeext
3815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816  (eval $ac_link) 2>conftest.er1
3817  ac_status=$?
3818  grep -v '^ *+' conftest.er1 >conftest.err
3819  rm -f conftest.er1
3820  cat conftest.err >&5
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); } &&
3823         { ac_try='test -z "$ac_cxx_werror_flag"
3824                         || test ! -s conftest.err'
3825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826  (eval $ac_try) 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; } &&
3830         { ac_try='test -s conftest$ac_exeext'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; }; then
3836  :
3837else
3838  echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3842fi
3843rm -f conftest.err conftest.$ac_objext \
3844      conftest$ac_exeext conftest.$ac_ext
3845            ;;
3846          pgCC* | */pgCC*)
3847            coin_opt_cxxflags="-fast"
3848            coin_add_cxxflags="-Kieee -pc 64"
3849            coin_dbg_cxxflags="-g"
3850            ;;
3851        esac
3852        ;;
3853      *-ibm-*)
3854        case "$CXX" in
3855          xlC* | */xlC* | mpxlC* | */mpxlC*)
3856            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3857            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3858            coin_dbg_cxxflags="-g"
3859            ;;
3860        esac
3861        ;;
3862      *-hp-*)
3863        case "$CXX" in
3864          aCC* | */aCC* )
3865            coin_opt_cxxflags="-O"
3866            coin_add_cxxflags="-AA"
3867            coin_dbg_cxxflags="-g"
3868            ;;
3869        esac
3870        ;;
3871      *-*-solaris*)
3872          coin_opt_cxxflags="-O4"
3873          coin_dbg_cxxflags="-g"
3874        ;;
3875    esac
3876  fi
3877
3878# Generic flag settings. If these don't work, add a case above.
3879
3880  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3881    coin_dbg_cxxflags="-g"
3882  fi
3883
3884  if test -z "$coin_opt_cxxflags"; then
3885    # Try if -O option works if nothing else is set
3886    CXXFLAGS=-O
3887    cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897int i=0; i++;
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext conftest$ac_exeext
3903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904  (eval $ac_link) 2>conftest.er1
3905  ac_status=$?
3906  grep -v '^ *+' conftest.er1 >conftest.err
3907  rm -f conftest.er1
3908  cat conftest.err >&5
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); } &&
3911         { ac_try='test -z "$ac_cxx_werror_flag"
3912                         || test ! -s conftest.err'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; } &&
3918         { ac_try='test -s conftest$ac_exeext'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; }; then
3924  coin_opt_cxxflags="-O"
3925else
3926  echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929fi
3930rm -f conftest.err conftest.$ac_objext \
3931      conftest$ac_exeext conftest.$ac_ext
3932  fi
3933
3934  # if PM doesn't want the warning messages, take them out
3935  if test x"$coin_skip_warn_cxxflags" = xyes; then
3936    coin_warn_cxxflags=
3937  fi
3938
3939# Do final setup of flags based on values determined above.
3940
3941  if test x${DBG_CXXFLAGS+set} != xset; then
3942    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3943  fi
3944  if test x${OPT_CXXFLAGS+set} != xset; then
3945    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3946  fi
3947
3948  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3949  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3950
3951  if test "$coin_debug_compile" = "true"; then
3952    CXXFLAGS="$DBG_CXXFLAGS"
3953  else
3954    CXXFLAGS="$OPT_CXXFLAGS"
3955  fi
3956
3957# Handle the case where CXXFLAGS was set externally.
3958else
3959  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3960  if test x${DBG_CXXFLAGS+set} != xset; then
3961    DBG_CXXFLAGS="$CXXFLAGS"
3962  fi
3963  if test x${OPT_CXXFLAGS+set} != xset; then
3964    OPT_CXXFLAGS="$CXXFLAGS"
3965  fi
3966fi
3967
3968# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3969if test x$COIN_PRJCT != x; then
3970  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3971fi
3972
3973# Try if CXXFLAGS works
3974save_CXXFLAGS="$CXXFLAGS"
3975cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h.  */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h.  */
3981
3982int
3983main ()
3984{
3985int i=0; i++;
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992  (eval $ac_link) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -z "$ac_cxx_werror_flag"
4000                         || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006         { ac_try='test -s conftest$ac_exeext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  :
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017CXXFLAGS=
4018fi
4019rm -f conftest.err conftest.$ac_objext \
4020      conftest$ac_exeext conftest.$ac_ext
4021if test -z "$CXXFLAGS"; then
4022  { 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
4023echo "$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;}
4024  CXXFLAGS='-O'
4025  cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031
4032int
4033main ()
4034{
4035int i=0; i++;
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext conftest$ac_exeext
4041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042  (eval $ac_link) 2>conftest.er1
4043  ac_status=$?
4044  grep -v '^ *+' conftest.er1 >conftest.err
4045  rm -f conftest.er1
4046  cat conftest.err >&5
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } &&
4049         { ac_try='test -z "$ac_cxx_werror_flag"
4050                         || test ! -s conftest.err'
4051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052  (eval $ac_try) 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; } &&
4056         { ac_try='test -s conftest$ac_exeext'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; }; then
4062  :
4063else
4064  echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067CXXFLAGS=
4068fi
4069rm -f conftest.err conftest.$ac_objext \
4070      conftest$ac_exeext conftest.$ac_ext
4071  if test -z "$CXXFLAGS"; then
4072    { 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
4073echo "$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;}
4074  fi
4075fi
4076
4077{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4078echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4079
4080
4081if test x"$MPICXX" = x; then :; else
4082  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4083echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4084  CXX="$MPICXX"
4085fi
4086
4087# correct the LD variable in a build with MS or Intel-windows compiler
4088case "$CXX" in
4089  clang* ) ;;
4090  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4091    LD=link
4092    ;;
4093esac
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101
4102
4103# Initialize automake and libtool
4104{
4105
4106
4107
4108# START
4109
4110coin_disable_shared=no
4111# Test if force_shared has been set
4112if test "x" = xforce_shared; then
4113  if test x$enable_shared = xno; then
4114    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4115echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4116   { (exit 1); exit 1; }; }
4117  fi
4118  enable_shared=yes;
4119else
4120  case $build in
4121    *-cygwin* | *-mingw*)
4122      coin_disable_shared=yes
4123      if test x"$enable_shared" = xyes; then
4124        case "$CC" in
4125          clang* )
4126            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4127echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4128            ;;
4129          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4130            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4131echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4132            ;;
4133          *gcc*)
4134            if test x"$enable_dependency_linking" = xyes; then
4135              coin_disable_shared=no
4136            else
4137              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4138echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4139            fi
4140            ;;
4141          *)
4142            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4143echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4144            ;;
4145        esac
4146      fi
4147    ;;
4148    *-aix*)
4149      coin_disable_shared=yes
4150      platform=AIX
4151      if test x"$enable_shared" = xyes; then
4152        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4153echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4154      fi
4155    ;;
4156  esac
4157fi
4158if test x"$coin_disable_shared" = xyes; then
4159  if test x"$enable_shared" = xyes; then
4160    :
4161  else
4162    # we don't disable shared, because it was not selected anyway
4163    coin_disable_shared=no
4164  fi
4165  enable_shared=no
4166fi
4167# By default, we only want the shared objects to be compiled
4168# Check whether --enable-static or --disable-static was given.
4169if test "${enable_static+set}" = set; then
4170  enableval="$enable_static"
4171  p=${PACKAGE-default}
4172    case $enableval in
4173    yes) enable_static=yes ;;
4174    no) enable_static=no ;;
4175    *)
4176     enable_static=no
4177      # Look at the argument we got.  We use all the common list separators.
4178      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4179      for pkg in $enableval; do
4180        IFS="$lt_save_ifs"
4181        if test "X$pkg" = "X$p"; then
4182          enable_static=yes
4183        fi
4184      done
4185      IFS="$lt_save_ifs"
4186      ;;
4187    esac
4188else
4189  enable_static=no
4190fi;
4191
4192
4193
4194
4195# Initialize automake
4196echo "$as_me:$LINENO: checking for egrep" >&5
4197echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4198if test "${ac_cv_prog_egrep+set}" = set; then
4199  echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4202    then ac_cv_prog_egrep='grep -E'
4203    else ac_cv_prog_egrep='egrep'
4204    fi
4205fi
4206echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4207echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4208 EGREP=$ac_cv_prog_egrep
4209
4210
4211echo "$as_me:$LINENO: checking whether ln -s works" >&5
4212echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4213LN_S=$as_ln_s
4214if test "$LN_S" = "ln -s"; then
4215  echo "$as_me:$LINENO: result: yes" >&5
4216echo "${ECHO_T}yes" >&6
4217else
4218  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4219echo "${ECHO_T}no, using $LN_S" >&6
4220fi
4221
4222am__api_version="1.9"
4223# Find a good install program.  We prefer a C program (faster),
4224# so one script is as good as another.  But avoid the broken or
4225# incompatible versions:
4226# SysV /etc/install, /usr/sbin/install
4227# SunOS /usr/etc/install
4228# IRIX /sbin/install
4229# AIX /bin/install
4230# AmigaOS /C/install, which installs bootblocks on floppy discs
4231# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4232# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4233# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4234# OS/2's system install, which has a completely different semantic
4235# ./install, which can be erroneously created by make from ./install.sh.
4236echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4237echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4238if test -z "$INSTALL"; then
4239if test "${ac_cv_path_install+set}" = set; then
4240  echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247  # Account for people who put trailing slashes in PATH elements.
4248case $as_dir/ in
4249  ./ | .// | /cC/* | \
4250  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4251  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4252  /usr/ucb/* ) ;;
4253  *)
4254    # OSF1 and SCO ODT 3.0 have their own names for install.
4255    # Don't use installbsd from OSF since it installs stuff as root
4256    # by default.
4257    for ac_prog in ginstall scoinst install; do
4258      for ac_exec_ext in '' $ac_executable_extensions; do
4259        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4260          if test $ac_prog = install &&
4261            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4262            # AIX install.  It has an incompatible calling convention.
4263            :
4264          elif test $ac_prog = install &&
4265            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266            # program-specific install script used by HP pwplus--don't use.
4267            :
4268          else
4269            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4270            break 3
4271          fi
4272        fi
4273      done
4274    done
4275    ;;
4276esac
4277done
4278
4279
4280fi
4281  if test "${ac_cv_path_install+set}" = set; then
4282    INSTALL=$ac_cv_path_install
4283  else
4284    # As a last resort, use the slow shell script.  We don't cache a
4285    # path for INSTALL within a source directory, because that will
4286    # break other packages using the cache if that directory is
4287    # removed, or if the path is relative.
4288    INSTALL=$ac_install_sh
4289  fi
4290fi
4291echo "$as_me:$LINENO: result: $INSTALL" >&5
4292echo "${ECHO_T}$INSTALL" >&6
4293
4294# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4295# It thinks the first close brace ends the variable substitution.
4296test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4297
4298test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4299
4300test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4301
4302echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4303echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4304# Just in case
4305sleep 1
4306echo timestamp > conftest.file
4307# Do `set' in a subshell so we don't clobber the current shell's
4308# arguments.  Must try -L first in case configure is actually a
4309# symlink; some systems play weird games with the mod time of symlinks
4310# (eg FreeBSD returns the mod time of the symlink's containing
4311# directory).
4312if (
4313   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4314   if test "$*" = "X"; then
4315      # -L didn't work.
4316      set X `ls -t $srcdir/configure conftest.file`
4317   fi
4318   rm -f conftest.file
4319   if test "$*" != "X $srcdir/configure conftest.file" \
4320      && test "$*" != "X conftest.file $srcdir/configure"; then
4321
4322      # If neither matched, then we have a broken ls.  This can happen
4323      # if, for instance, CONFIG_SHELL is bash and it inherits a
4324      # broken ls alias from the environment.  This has actually
4325      # happened.  Such a system could not be considered "sane".
4326      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4327alias in your environment" >&5
4328echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4329alias in your environment" >&2;}
4330   { (exit 1); exit 1; }; }
4331   fi
4332
4333   test "$2" = conftest.file
4334   )
4335then
4336   # Ok.
4337   :
4338else
4339   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4340Check your system clock" >&5
4341echo "$as_me: error: newly created file is older than distributed files!
4342Check your system clock" >&2;}
4343   { (exit 1); exit 1; }; }
4344fi
4345echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347test "$program_prefix" != NONE &&
4348  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4349# Use a double $ so make ignores it.
4350test "$program_suffix" != NONE &&
4351  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4352# Double any \ or $.  echo might interpret backslashes.
4353# By default was `s,x,x', remove it if useless.
4354cat <<\_ACEOF >conftest.sed
4355s/[\\$]/&&/g;s/;s,x,x,$//
4356_ACEOF
4357program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4358rm conftest.sed
4359
4360# expand $ac_aux_dir to an absolute path
4361am_aux_dir=`cd $ac_aux_dir && pwd`
4362
4363test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4364# Use eval to expand $SHELL
4365if eval "$MISSING --run true"; then
4366  am_missing_run="$MISSING --run "
4367else
4368  am_missing_run=
4369  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4370echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4371fi
4372
4373if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4374  # We used to keeping the `.' as first argument, in order to
4375  # allow $(mkdir_p) to be used without argument.  As in
4376  #   $(mkdir_p) $(somedir)
4377  # where $(somedir) is conditionally defined.  However this is wrong
4378  # for two reasons:
4379  #  1. if the package is installed by a user who cannot write `.'
4380  #     make install will fail,
4381  #  2. the above comment should most certainly read
4382  #     $(mkdir_p) $(DESTDIR)$(somedir)
4383  #     so it does not work when $(somedir) is undefined and
4384  #     $(DESTDIR) is not.
4385  #  To support the latter case, we have to write
4386  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4387  #  so the `.' trick is pointless.
4388  mkdir_p='mkdir -p --'
4389else
4390  # On NextStep and OpenStep, the `mkdir' command does not
4391  # recognize any option.  It will interpret all options as
4392  # directories to create, and then abort because `.' already
4393  # exists.
4394  for d in ./-p ./--version;
4395  do
4396    test -d $d && rmdir $d
4397  done
4398  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4399  if test -f "$ac_aux_dir/mkinstalldirs"; then
4400    mkdir_p='$(mkinstalldirs)'
4401  else
4402    mkdir_p='$(install_sh) -d'
4403  fi
4404fi
4405
4406for ac_prog in gawk mawk nawk awk
4407do
4408  # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_AWK+set}" = set; then
4413  echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415  if test -n "$AWK"; then
4416  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423  for ac_exec_ext in '' $ac_executable_extensions; do
4424  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425    ac_cv_prog_AWK="$ac_prog"
4426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430done
4431
4432fi
4433fi
4434AWK=$ac_cv_prog_AWK
4435if test -n "$AWK"; then
4436  echo "$as_me:$LINENO: result: $AWK" >&5
4437echo "${ECHO_T}$AWK" >&6
4438else
4439  echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
4442
4443  test -n "$AWK" && break
4444done
4445
4446echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4447echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4448set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4449if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4450  echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452  cat >conftest.make <<\_ACEOF
4453all:
4454        @echo 'ac_maketemp="$(MAKE)"'
4455_ACEOF
4456# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4457eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4458if test -n "$ac_maketemp"; then
4459  eval ac_cv_prog_make_${ac_make}_set=yes
4460else
4461  eval ac_cv_prog_make_${ac_make}_set=no
4462fi
4463rm -f conftest.make
4464fi
4465if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4466  echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
4468  SET_MAKE=
4469else
4470  echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472  SET_MAKE="MAKE=${MAKE-make}"
4473fi
4474
4475rm -rf .tst 2>/dev/null
4476mkdir .tst 2>/dev/null
4477if test -d .tst; then
4478  am__leading_dot=.
4479else
4480  am__leading_dot=_
4481fi
4482rmdir .tst 2>/dev/null
4483
4484DEPDIR="${am__leading_dot}deps"
4485
4486          ac_config_commands="$ac_config_commands depfiles"
4487
4488
4489am_make=${MAKE-make}
4490cat > confinc << 'END'
4491am__doit:
4492        @echo done
4493.PHONY: am__doit
4494END
4495# If we don't find an include directive, just comment out the code.
4496echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4497echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4498am__include="#"
4499am__quote=
4500_am_result=none
4501# First try GNU make style include.
4502echo "include confinc" > confmf
4503# We grep out `Entering directory' and `Leaving directory'
4504# messages which can occur if `w' ends up in MAKEFLAGS.
4505# In particular we don't look at `^make:' because GNU make might
4506# be invoked under some other name (usually "gmake"), in which
4507# case it prints its new name instead of `make'.
4508if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4509   am__include=include
4510   am__quote=
4511   _am_result=GNU
4512fi
4513# Now try BSD make style include.
4514if test "$am__include" = "#"; then
4515   echo '.include "confinc"' > confmf
4516   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4517      am__include=.include
4518      am__quote="\""
4519      _am_result=BSD
4520   fi
4521fi
4522
4523
4524echo "$as_me:$LINENO: result: $_am_result" >&5
4525echo "${ECHO_T}$_am_result" >&6
4526rm -f confinc confmf
4527
4528# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4529if test "${enable_dependency_tracking+set}" = set; then
4530  enableval="$enable_dependency_tracking"
4531
4532fi;
4533if test "x$enable_dependency_tracking" != xno; then
4534  am_depcomp="$ac_aux_dir/depcomp"
4535  AMDEPBACKSLASH='\'
4536fi
4537
4538
4539if test "x$enable_dependency_tracking" != xno; then
4540  AMDEP_TRUE=
4541  AMDEP_FALSE='#'
4542else
4543  AMDEP_TRUE='#'
4544  AMDEP_FALSE=
4545fi
4546
4547
4548
4549
4550
4551
4552# AC_MSG_NOTICE([Beginning automake initialisation.])
4553# Stuff for automake
4554# test to see if srcdir already configured
4555if test "`cd $srcdir && pwd`" != "`pwd`" &&
4556   test -f $srcdir/config.status; then
4557  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4558echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4559   { (exit 1); exit 1; }; }
4560fi
4561
4562# test whether we have cygpath
4563if test -z "$CYGPATH_W"; then
4564  if (cygpath --version) >/dev/null 2>/dev/null; then
4565    CYGPATH_W='cygpath -w'
4566  else
4567    CYGPATH_W=echo
4568  fi
4569fi
4570
4571
4572# Define the identity of the package.
4573 PACKAGE='cbc'
4574 VERSION='trunk'
4575
4576
4577cat >>confdefs.h <<_ACEOF
4578#define PACKAGE "$PACKAGE"
4579_ACEOF
4580
4581
4582cat >>confdefs.h <<_ACEOF
4583#define VERSION "$VERSION"
4584_ACEOF
4585
4586# Some tools Automake needs.
4587
4588ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4589
4590
4591AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4592
4593
4594AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4595
4596
4597AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4598
4599
4600MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4601
4602install_sh=${install_sh-"$am_aux_dir/install-sh"}
4603
4604# Installed binaries are usually stripped using `strip' when the user
4605# run `make install-strip'.  However `strip' might not be the right
4606# tool to use in cross-compilation environments, therefore Automake
4607# will honor the `STRIP' environment variable to overrule this program.
4608if test "$cross_compiling" != no; then
4609  if test -n "$ac_tool_prefix"; then
4610  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4611set dummy ${ac_tool_prefix}strip; ac_word=$2
4612echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4614if test "${ac_cv_prog_STRIP+set}" = set; then
4615  echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617  if test -n "$STRIP"; then
4618  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623  IFS=$as_save_IFS
4624  test -z "$as_dir" && as_dir=.
4625  for ac_exec_ext in '' $ac_executable_extensions; do
4626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629    break 2
4630  fi
4631done
4632done
4633
4634fi
4635fi
4636STRIP=$ac_cv_prog_STRIP
4637if test -n "$STRIP"; then
4638  echo "$as_me:$LINENO: result: $STRIP" >&5
4639echo "${ECHO_T}$STRIP" >&6
4640else
4641  echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
4644
4645fi
4646if test -z "$ac_cv_prog_STRIP"; then
4647  ac_ct_STRIP=$STRIP
4648  # Extract the first word of "strip", so it can be a program name with args.
4649set dummy strip; ac_word=$2
4650echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655  if test -n "$ac_ct_STRIP"; then
4656  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663  for ac_exec_ext in '' $ac_executable_extensions; do
4664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665    ac_cv_prog_ac_ct_STRIP="strip"
4666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670done
4671
4672  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4673fi
4674fi
4675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4676if test -n "$ac_ct_STRIP"; then
4677  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4678echo "${ECHO_T}$ac_ct_STRIP" >&6
4679else
4680  echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682fi
4683
4684  STRIP=$ac_ct_STRIP
4685else
4686  STRIP="$ac_cv_prog_STRIP"
4687fi
4688
4689fi
4690INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4691
4692# We need awk for the "check" target.  The system "awk" is bad on
4693# some platforms.
4694# Always define AMTAR for backward compatibility.
4695
4696AMTAR=${AMTAR-"${am_missing_run}tar"}
4697
4698am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4699
4700
4701
4702
4703depcc="$CC"   am_compiler_list=
4704
4705echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4706echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4707if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4708  echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4711  # We make a subdir and do the tests there.  Otherwise we can end up
4712  # making bogus files that we don't know about and never remove.  For
4713  # instance it was reported that on HP-UX the gcc test will end up
4714  # making a dummy file named `D' -- because `-MD' means `put the output
4715  # in D'.
4716  mkdir conftest.dir
4717  # Copy depcomp to subdir because otherwise we won't find it if we're
4718  # using a relative directory.
4719  cp "$am_depcomp" conftest.dir
4720  cd conftest.dir
4721  # We will build objects and dependencies in a subdirectory because
4722  # it helps to detect inapplicable dependency modes.  For instance
4723  # both Tru64's cc and ICC support -MD to output dependencies as a
4724  # side effect of compilation, but ICC will put the dependencies in
4725  # the current directory while Tru64 will put them in the object
4726  # directory.
4727  mkdir sub
4728
4729  am_cv_CC_dependencies_compiler_type=none
4730  if test "$am_compiler_list" = ""; then
4731     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4732  fi
4733  for depmode in $am_compiler_list; do
4734    # Setup a source with many dependencies, because some compilers
4735    # like to wrap large dependency lists on column 80 (with \), and
4736    # we should not choose a depcomp mode which is confused by this.
4737    #
4738    # We need to recreate these files for each test, as the compiler may
4739    # overwrite some of them when testing with obscure command lines.
4740    # This happens at least with the AIX C compiler.
4741    : > sub/conftest.c
4742    for i in 1 2 3 4 5 6; do
4743      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4744      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4745      # Solaris 8's {/usr,}/bin/sh.
4746      touch sub/conftst$i.h
4747    done
4748    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4749
4750    case $depmode in
4751    nosideeffect)
4752      # after this tag, mechanisms are not by side-effect, so they'll
4753      # only be used when explicitly requested
4754      if test "x$enable_dependency_tracking" = xyes; then
4755        continue
4756      else
4757        break
4758      fi
4759      ;;
4760    none) break ;;
4761    esac
4762    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4763    # mode.  It turns out that the SunPro C++ compiler does not properly
4764    # handle `-M -o', and we need to detect this.
4765    if depmode=$depmode \
4766       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4767       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4768       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4769         >/dev/null 2>conftest.err &&
4770       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4771       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4772       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4773      # icc doesn't choke on unknown options, it will just issue warnings
4774      # or remarks (even with -Werror).  So we grep stderr for any message
4775      # that says an option was ignored or not supported.
4776      # When given -MP, icc 7.0 and 7.1 complain thusly:
4777      #   icc: Command line warning: ignoring option '-M'; no argument required
4778      # The diagnosis changed in icc 8.0:
4779      #   icc: Command line remark: option '-MP' not supported
4780      if (grep 'ignoring option' conftest.err ||
4781          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4782        am_cv_CC_dependencies_compiler_type=$depmode
4783        break
4784      fi
4785    fi
4786  done
4787
4788  cd ..
4789  rm -rf conftest.dir
4790else
4791  am_cv_CC_dependencies_compiler_type=none
4792fi
4793
4794fi
4795echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4796echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4797CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4798
4799
4800
4801if
4802  test "x$enable_dependency_tracking" != xno \
4803  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4804  am__fastdepCC_TRUE=
4805  am__fastdepCC_FALSE='#'
4806else
4807  am__fastdepCC_TRUE='#'
4808  am__fastdepCC_FALSE=
4809fi
4810
4811
4812depcc="$CXX"  am_compiler_list=
4813
4814echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4815echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4816if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4820  # We make a subdir and do the tests there.  Otherwise we can end up
4821  # making bogus files that we don't know about and never remove.  For
4822  # instance it was reported that on HP-UX the gcc test will end up
4823  # making a dummy file named `D' -- because `-MD' means `put the output
4824  # in D'.
4825  mkdir conftest.dir
4826  # Copy depcomp to subdir because otherwise we won't find it if we're
4827  # using a relative directory.
4828  cp "$am_depcomp" conftest.dir
4829  cd conftest.dir
4830  # We will build objects and dependencies in a subdirectory because
4831  # it helps to detect inapplicable dependency modes.  For instance
4832  # both Tru64's cc and ICC support -MD to output dependencies as a
4833  # side effect of compilation, but ICC will put the dependencies in
4834  # the current directory while Tru64 will put them in the object
4835  # directory.
4836  mkdir sub
4837
4838  am_cv_CXX_dependencies_compiler_type=none
4839  if test "$am_compiler_list" = ""; then
4840     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841  fi
4842  for depmode in $am_compiler_list; do
4843    # Setup a source with many dependencies, because some compilers
4844    # like to wrap large dependency lists on column 80 (with \), and
4845    # we should not choose a depcomp mode which is confused by this.
4846    #
4847    # We need to recreate these files for each test, as the compiler may
4848    # overwrite some of them when testing with obscure command lines.
4849    # This happens at least with the AIX C compiler.
4850    : > sub/conftest.c
4851    for i in 1 2 3 4 5 6; do
4852      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4853      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4854      # Solaris 8's {/usr,}/bin/sh.
4855      touch sub/conftst$i.h
4856    done
4857    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4858
4859    case $depmode in
4860    nosideeffect)
4861      # after this tag, mechanisms are not by side-effect, so they'll
4862      # only be used when explicitly requested
4863      if test "x$enable_dependency_tracking" = xyes; then
4864        continue
4865      else
4866        break
4867      fi
4868      ;;
4869    none) break ;;
4870    esac
4871    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4872    # mode.  It turns out that the SunPro C++ compiler does not properly
4873    # handle `-M -o', and we need to detect this.
4874    if depmode=$depmode \
4875       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4876       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4877       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4878         >/dev/null 2>conftest.err &&
4879       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4880       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4881       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4882      # icc doesn't choke on unknown options, it will just issue warnings
4883      # or remarks (even with -Werror).  So we grep stderr for any message
4884      # that says an option was ignored or not supported.
4885      # When given -MP, icc 7.0 and 7.1 complain thusly:
4886      #   icc: Command line warning: ignoring option '-M'; no argument required
4887      # The diagnosis changed in icc 8.0:
4888      #   icc: Command line remark: option '-MP' not supported
4889      if (grep 'ignoring option' conftest.err ||
4890          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4891        am_cv_CXX_dependencies_compiler_type=$depmode
4892        break
4893      fi
4894    fi
4895  done
4896
4897  cd ..
4898  rm -rf conftest.dir
4899else
4900  am_cv_CXX_dependencies_compiler_type=none
4901fi
4902
4903fi
4904echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4905echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4906CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4907
4908
4909
4910if
4911  test "x$enable_dependency_tracking" != xno \
4912  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4913  am__fastdepCXX_TRUE=
4914  am__fastdepCXX_FALSE='#'
4915else
4916  am__fastdepCXX_TRUE='#'
4917  am__fastdepCXX_FALSE=
4918fi
4919
4920
4921
4922echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4923echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4924    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4925if test "${enable_maintainer_mode+set}" = set; then
4926  enableval="$enable_maintainer_mode"
4927  USE_MAINTAINER_MODE=$enableval
4928else
4929  USE_MAINTAINER_MODE=no
4930fi;
4931  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4932echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4933
4934
4935if test $USE_MAINTAINER_MODE = yes; then
4936  MAINTAINER_MODE_TRUE=
4937  MAINTAINER_MODE_FALSE='#'
4938else
4939  MAINTAINER_MODE_TRUE='#'
4940  MAINTAINER_MODE_FALSE=
4941fi
4942
4943  MAINT=$MAINTAINER_MODE_TRUE
4944
4945
4946
4947coin_have_externals=no
4948if test "$enable_maintainer_mode" = yes; then
4949
4950  # If maintainer mode is chosen, we make sure that the correct versions
4951  # of the tools are used, and that we know where libtool.m4 is (to
4952  # recreate acinclude.m4)
4953
4954
4955  LIBTOOLM4=
4956  # Normally, $HOME
4957  AUTOTOOLS_DFLT=$HOME
4958
4959  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4960echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4961if test "${ac_cv_use_correct_autotools+set}" = set; then
4962  echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964  ac_cv_use_correct_autotools=check
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4967echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4968
4969  if test $ac_cv_use_correct_autotools = check; then
4970    ac_cv_use_correct_autotools=yes
4971    # Check if we have autoconf
4972    # Extract the first word of "autoconf", so it can be a program name with args.
4973set dummy autoconf; ac_word=$2
4974echo "$as_me:$LINENO: checking for $ac_word" >&5
4975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4976if test "${ac_cv_prog_have_autoconf+set}" = set; then
4977  echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979  if test -n "$have_autoconf"; then
4980  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985  IFS=$as_save_IFS
4986  test -z "$as_dir" && as_dir=.
4987  for ac_exec_ext in '' $ac_executable_extensions; do
4988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989    ac_cv_prog_have_autoconf="yes"
4990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991    break 2
4992  fi
4993done
4994done
4995
4996  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4997fi
4998fi
4999have_autoconf=$ac_cv_prog_have_autoconf
5000if test -n "$have_autoconf"; then
5001  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5002echo "${ECHO_T}$have_autoconf" >&6
5003else
5004  echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006fi
5007
5008    if test $have_autoconf = no; then
5009      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5010echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5011   { (exit 1); exit 1; }; }
5012    fi
5013
5014    # Check whether autoconf is the correct version
5015    correct_version='2.59'
5016    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5017    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5018echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5019    autoconf --version > confauto.out 2>&1
5020    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5021      echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023    else
5024      rm -f confauto.out
5025      echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5028echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5029   { (exit 1); exit 1; }; }
5030    fi
5031    rm -f confauto.out
5032
5033    # Check if the executable autoconf is picked up from the correct location
5034    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5035echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5036    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5037    autoconf_dir=`cd $autoconf_dir; pwd`
5038    if test x$AUTOTOOLS_DIR = x; then
5039      want_dir=$AUTOTOOLS_DFLT/bin
5040    else
5041      want_dir=$AUTOTOOLS_DIR/bin
5042    fi
5043    if test $autoconf_dir = `cd $want_dir; pwd`; then
5044      echo "$as_me:$LINENO: result: yes" >&5
5045echo "${ECHO_T}yes" >&6
5046    else
5047      rm -f confauto.out
5048      echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5051echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5052   { (exit 1); exit 1; }; }
5053    fi
5054
5055    # Check if we have automake
5056    # Extract the first word of "automake", so it can be a program name with args.
5057set dummy automake; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_have_automake+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  if test -n "$have_automake"; then
5064  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071  for ac_exec_ext in '' $ac_executable_extensions; do
5072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_have_automake="yes"
5074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078done
5079
5080  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5081fi
5082fi
5083have_automake=$ac_cv_prog_have_automake
5084if test -n "$have_automake"; then
5085  echo "$as_me:$LINENO: result: $have_automake" >&5
5086echo "${ECHO_T}$have_automake" >&6
5087else
5088  echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6
5090fi
5091
5092    if test $have_automake = no; then
5093      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5094echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5095   { (exit 1); exit 1; }; }
5096    fi
5097
5098    # Check whether automake is the correct version
5099    correct_version='1.9.6'
5100    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5101    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5102echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5103    automake --version > confauto.out 2>&1
5104    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5105      echo "$as_me:$LINENO: result: yes" >&5
5106echo "${ECHO_T}yes" >&6
5107    else
5108      rm -f confauto.out
5109      echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5112echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5113   { (exit 1); exit 1; }; }
5114    fi
5115    rm -f confauto.out
5116
5117    # Check if the executable automake is picked up from the correct location
5118    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5119echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5120    automake_dir=`which automake | sed -e 's=/automake=='`
5121    automake_dir=`cd $automake_dir; pwd`
5122    if test x$AUTOTOOLS_DIR = x; then
5123      want_dir=$AUTOTOOLS_DFLT/bin
5124    else
5125      want_dir=$AUTOTOOLS_DIR/bin
5126    fi
5127    if test $automake_dir = `cd $want_dir; pwd`; then
5128      echo "$as_me:$LINENO: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
5130    else
5131      rm -f confauto.out
5132      echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5135echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5136   { (exit 1); exit 1; }; }
5137    fi
5138
5139    # Check if this is the correct version of libtool (with escaped dots)
5140    if test x$AUTOTOOLS_DIR = x; then
5141      want_dir=$AUTOTOOLS_DFLT/share
5142    else
5143      want_dir=$AUTOTOOLS_DIR/share
5144    fi
5145    correct_version='1.5.22'
5146    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5147    if test -r $want_dir/libtool/ltmain.sh; then
5148  have_ltmain=yes
5149  :
5150else
5151  have_ltmain=no
5152  :
5153fi
5154
5155    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5156echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5157    if test $have_ltmain = yes; then
5158    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5159        echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161      else
5162        echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5165echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5166   { (exit 1); exit 1; }; }
5167      fi
5168    else
5169      echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5172echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5173   { (exit 1); exit 1; }; }
5174    fi
5175  fi
5176
5177  # Check if we can find the libtool file
5178  if test x$AUTOTOOLS_DIR = x; then
5179    want_dir=$AUTOTOOLS_DFLT/share
5180  else
5181    want_dir=$AUTOTOOLS_DIR/share
5182  fi
5183  if test -r $want_dir/aclocal/libtool.m4; then
5184  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5185  :
5186else
5187  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5188echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5189   { (exit 1); exit 1; }; }
5190  :
5191fi
5192
5193
5194  # Check if we have an Dependencies file
5195  if test -r $srcdir/Dependencies; then
5196    coin_have_externals=yes
5197  fi
5198  # Check if subversion is installed and understands https
5199  # Extract the first word of "svn", so it can be a program name with args.
5200set dummy svn; ac_word=$2
5201echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203if test "${ac_cv_prog_have_svn+set}" = set; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206  if test -n "$have_svn"; then
5207  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214  for ac_exec_ext in '' $ac_executable_extensions; do
5215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_prog_have_svn="yes"
5217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221done
5222
5223  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5224fi
5225fi
5226have_svn=$ac_cv_prog_have_svn
5227if test -n "$have_svn"; then
5228  echo "$as_me:$LINENO: result: $have_svn" >&5
5229echo "${ECHO_T}$have_svn" >&6
5230else
5231  echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233fi
5234
5235  if test x$have_svn = xyes; then
5236    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5237echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5238if test "${ac_cv_svn_understands_https+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  svn --version > confauto.out 2>&1
5242                    if $EGREP https confauto.out >/dev/null 2>&1; then
5243                      ac_cv_svn_understands_https=yes
5244                    else
5245                      ac_cv_svn_understands_https=no
5246                      have_svn=no
5247                      ac_cv_prog_have_svn=no
5248                    fi
5249                    rm -f confauto.out
5250fi
5251echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5252echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5253  fi
5254
5255  # Find the location of the BuildTools directory
5256  BUILDTOOLSDIR=
5257  if test -r $srcdir/BuildTools/coin.m4; then
5258    BUILDTOOLSDIR=$srcdir/BuildTools
5259  else
5260    if test -r $srcdir/../BuildTools/coin.m4; then
5261      BUILDTOOLSDIR=$srcdir/../BuildTools
5262    else
5263      if test -r $srcdir/../../BuildTools/coin.m4; then
5264        BUILDTOOLSDIR=$srcdir/../../BuildTools
5265      else
5266        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5267echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5268   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5269      fi
5270    fi
5271  fi
5272
5273
5274  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5275  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5276    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5277  fi
5278
5279  # The following variable is set to the name of the directory where
5280  # the autotool scripts are located
5281
5282  AUX_DIR=$ac_aux_dir
5283fi
5284
5285# helpful variable for the base directory of this package
5286abs_source_dir=`cd $srcdir; pwd`
5287
5288
5289# Stuff for example Makefiles
5290if test x$prefix = xNONE; then
5291  full_prefix=$ac_default_prefix
5292else
5293  full_prefix=$prefix
5294fi
5295full_prefix=`cd $full_prefix ; pwd`
5296
5297abs_lib_dir=$full_prefix/lib
5298
5299abs_include_dir=$full_prefix/include
5300
5301abs_bin_dir=$full_prefix/bin
5302
5303
5304
5305if test $coin_have_externals = yes && test x$have_svn = xyes; then
5306  HAVE_EXTERNALS_TRUE=
5307  HAVE_EXTERNALS_FALSE='#'
5308else
5309  HAVE_EXTERNALS_TRUE='#'
5310  HAVE_EXTERNALS_FALSE=
5311fi
5312
5313
5314# AC_MSG_NOTICE([End automake initialisation.])
5315
5316
5317
5318LIBTOOL=
5319if test -f ../libtool; then
5320  coin_config_dir=..
5321  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5322fi
5323if test "x$LIBTOOL" = x; then
5324  if test -f ../../libtool; then
5325    coin_config_dir=../..
5326    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5327  fi
5328fi
5329
5330if test "x$LIBTOOL" = x; then
5331# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5332  # Stuff for libtool
5333  # Check whether --enable-shared or --disable-shared was given.
5334if test "${enable_shared+set}" = set; then
5335  enableval="$enable_shared"
5336  p=${PACKAGE-default}
5337    case $enableval in
5338    yes) enable_shared=yes ;;
5339    no) enable_shared=no ;;
5340    *)
5341      enable_shared=no
5342      # Look at the argument we got.  We use all the common list separators.
5343      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5344      for pkg in $enableval; do
5345        IFS="$lt_save_ifs"
5346        if test "X$pkg" = "X$p"; then
5347          enable_shared=yes
5348        fi
5349      done
5350      IFS="$lt_save_ifs"
5351      ;;
5352    esac
5353else
5354  enable_shared=yes
5355fi;
5356
5357# Check whether --enable-fast-install or --disable-fast-install was given.
5358if test "${enable_fast_install+set}" = set; then
5359  enableval="$enable_fast_install"
5360  p=${PACKAGE-default}
5361    case $enableval in
5362    yes) enable_fast_install=yes ;;
5363    no) enable_fast_install=no ;;
5364    *)
5365      enable_fast_install=no
5366      # Look at the argument we got.  We use all the common list separators.
5367      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5368      for pkg in $enableval; do
5369        IFS="$lt_save_ifs"
5370        if test "X$pkg" = "X$p"; then
5371          enable_fast_install=yes
5372        fi
5373      done
5374      IFS="$lt_save_ifs"
5375      ;;
5376    esac
5377else
5378  enable_fast_install=yes
5379fi;
5380
5381echo "$as_me:$LINENO: checking host system type" >&5
5382echo $ECHO_N "checking host system type... $ECHO_C" >&6
5383if test "${ac_cv_host+set}" = set; then
5384  echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386  ac_cv_host_alias=$host_alias
5387test -z "$ac_cv_host_alias" &&
5388  ac_cv_host_alias=$ac_cv_build_alias
5389ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5390  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5391echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5392   { (exit 1); exit 1; }; }
5393
5394fi
5395echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5396echo "${ECHO_T}$ac_cv_host" >&6
5397host=$ac_cv_host
5398host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5399host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5400host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5401
5402
5403echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5404echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5405if test "${lt_cv_path_SED+set}" = set; then
5406  echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408  # Loop through the user's path and test for sed and gsed.
5409# Then use that list of sed's as ones to test for truncation.
5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413  IFS=$as_save_IFS
5414  test -z "$as_dir" && as_dir=.
5415  for lt_ac_prog in sed gsed; do
5416    for ac_exec_ext in '' $ac_executable_extensions; do
5417      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5418        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5419      fi
5420    done
5421  done
5422done
5423lt_ac_max=0
5424lt_ac_count=0
5425# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5426# along with /bin/sed that truncates output.
5427for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5428  test ! -f $lt_ac_sed && continue
5429  cat /dev/null > conftest.in
5430  lt_ac_count=0
5431  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5432  # Check for GNU sed and select it if it is found.
5433  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5434    lt_cv_path_SED=$lt_ac_sed
5435    break
5436  fi
5437  while true; do
5438    cat conftest.in conftest.in >conftest.tmp
5439    mv conftest.tmp conftest.in
5440    cp conftest.in conftest.nl
5441    echo >>conftest.nl
5442    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5443    cmp -s conftest.out conftest.nl || break
5444    # 10000 chars as input seems more than enough
5445    test $lt_ac_count -gt 10 && break
5446    lt_ac_count=`expr $lt_ac_count + 1`
5447    if test $lt_ac_count -gt $lt_ac_max; then
5448      lt_ac_max=$lt_ac_count
5449      lt_cv_path_SED=$lt_ac_sed
5450    fi
5451  done
5452done
5453
5454fi
5455
5456SED=$lt_cv_path_SED
5457echo "$as_me:$LINENO: result: $SED" >&5
5458echo "${ECHO_T}$SED" >&6
5459
5460
5461# Check whether --with-gnu-ld or --without-gnu-ld was given.
5462if test "${with_gnu_ld+set}" = set; then
5463  withval="$with_gnu_ld"
5464  test "$withval" = no || with_gnu_ld=yes
5465else
5466  with_gnu_ld=no
5467fi;
5468ac_prog=ld
5469if test "$GCC" = yes; then
5470  # Check if gcc -print-prog-name=ld gives a path.
5471  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5472echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5473  case $host in
5474  *-*-mingw*)
5475    # gcc leaves a trailing carriage return which upsets mingw
5476    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5477  *)
5478    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479  esac
5480  case $ac_prog in
5481    # Accept absolute paths.
5482    [\\/]* | ?:[\\/]*)
5483      re_direlt='/[^/][^/]*/\.\./'
5484      # Canonicalize the pathname of ld
5485      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5486      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5487        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5488      done
5489      test -z "$LD" && LD="$ac_prog"
5490      ;;
5491  "")
5492    # If it fails, then pretend we aren't using GCC.
5493    ac_prog=ld
5494    ;;
5495  *)
5496    # If it is relative, then search for the first ld in PATH.
5497    with_gnu_ld=unknown
5498    ;;
5499  esac
5500elif test "$with_gnu_ld" = yes; then
5501  echo "$as_me:$LINENO: checking for GNU ld" >&5
5502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5503else
5504  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5506fi
5507if test "${lt_cv_path_LD+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  if test -z "$LD"; then
5511  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512  for ac_dir in $PATH; do
5513    IFS="$lt_save_ifs"
5514    test -z "$ac_dir" && ac_dir=.
5515    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5516      lt_cv_path_LD="$ac_dir/$ac_prog"
5517      # Check to see if the program is GNU ld.  I'd rather use --version,
5518      # but apparently some variants of GNU ld only accept -v.
5519      # Break only if it was the GNU/non-GNU ld that we prefer.
5520      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5521      *GNU* | *'with BFD'*)
5522        test "$with_gnu_ld" != no && break
5523        ;;
5524      *)
5525        test "$with_gnu_ld" != yes && break
5526        ;;
5527      esac
5528    fi
5529  done
5530  IFS="$lt_save_ifs"
5531else
5532  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5533fi
5534fi
5535
5536LD="$lt_cv_path_LD"
5537if test -n "$LD"; then
5538  echo "$as_me:$LINENO: result: $LD" >&5
5539echo "${ECHO_T}$LD" >&6
5540else
5541  echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5546   { (exit 1); exit 1; }; }
5547echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5549if test "${lt_cv_prog_gnu_ld+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5553case `$LD -v 2>&1 </dev/null` in
5554*GNU* | *'with BFD'*)
5555  lt_cv_prog_gnu_ld=yes
5556  ;;
5557*)
5558  lt_cv_prog_gnu_ld=no
5559  ;;
5560esac
5561fi
5562echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5564with_gnu_ld=$lt_cv_prog_gnu_ld
5565
5566
5567echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5568echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5569if test "${lt_cv_ld_reload_flag+set}" = set; then
5570  echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572  lt_cv_ld_reload_flag='-r'
5573fi
5574echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5575echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5576reload_flag=$lt_cv_ld_reload_flag
5577case $reload_flag in
5578"" | " "*) ;;
5579*) reload_flag=" $reload_flag" ;;
5580esac
5581reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582case $host_os in
5583  darwin*)
5584    if test "$GCC" = yes; then
5585      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5586    else
5587      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5588    fi
5589    ;;
5590esac
5591
5592echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5593echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5594if test "${lt_cv_path_NM+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  if test -n "$NM"; then
5598  # Let the user override the test.
5599  lt_cv_path_NM="$NM"
5600else
5601  lt_nm_to_check="${ac_tool_prefix}nm"
5602  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5603    lt_nm_to_check="$lt_nm_to_check nm"
5604  fi
5605  for lt_tmp_nm in $lt_nm_to_check; do
5606    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5608      IFS="$lt_save_ifs"
5609      test -z "$ac_dir" && ac_dir=.
5610      tmp_nm="$ac_dir/$lt_tmp_nm"
5611      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5612        # Check to see if the nm accepts a BSD-compat flag.
5613        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5614        #   nm: unknown option "B" ignored
5615        # Tru64's nm complains that /dev/null is an invalid object file
5616        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5617        */dev/null* | *'Invalid file or object type'*)
5618          lt_cv_path_NM="$tmp_nm -B"
5619          break
5620          ;;
5621        *)
5622          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5623          */dev/null*)
5624            lt_cv_path_NM="$tmp_nm -p"
5625            break
5626            ;;
5627          *)
5628            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5629            continue # so that we can try to find one that supports BSD flags
5630            ;;
5631          esac
5632          ;;
5633        esac
5634      fi
5635    done
5636    IFS="$lt_save_ifs"
5637  done
5638  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5639fi
5640fi
5641echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5642echo "${ECHO_T}$lt_cv_path_NM" >&6
5643NM="$lt_cv_path_NM"
5644
5645echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5646echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5647if test "${lt_cv_deplibs_check_method+set}" = set; then
5648  echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650  lt_cv_file_magic_cmd='$MAGIC_CMD'
5651lt_cv_file_magic_test_file=
5652lt_cv_deplibs_check_method='unknown'
5653# Need to set the preceding variable on all platforms that support
5654# interlibrary dependencies.
5655# 'none' -- dependencies not supported.
5656# `unknown' -- same as none, but documents that we really don't know.
5657# 'pass_all' -- all dependencies passed with no checks.
5658# 'test_compile' -- check by making test program.
5659# 'file_magic [[regex]]' -- check by looking for files in library path
5660# which responds to the $file_magic_cmd with a given extended regex.
5661# If you have `file' or equivalent on your system and you're not sure
5662# whether `pass_all' will *always* work, you probably want this one.
5663
5664case $host_os in
5665aix4* | aix5*)
5666  lt_cv_deplibs_check_method=pass_all
5667  ;;
5668
5669beos*)
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673bsdi[45]*)
5674  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5675  lt_cv_file_magic_cmd='/usr/bin/file -L'
5676  lt_cv_file_magic_test_file=/shlib/libc.so
5677  ;;
5678
5679cygwin*)
5680  # func_win32_libid is a shell function defined in ltmain.sh
5681  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682  lt_cv_file_magic_cmd='func_win32_libid'
5683  ;;
5684
5685mingw* | pw32*)
5686  # Base MSYS/MinGW do not provide the 'file' command needed by
5687  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5688  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5689  lt_cv_file_magic_cmd='$OBJDUMP -f'
5690  ;;
5691
5692darwin* | rhapsody*)
5693  lt_cv_deplibs_check_method=pass_all
5694  ;;
5695
5696freebsd* | kfreebsd*-gnu | dragonfly*)
5697  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5698    case $host_cpu in
5699    i*86 )
5700      # Not sure whether the presence of OpenBSD here was a mistake.
5701      # Let's accept both of them until this is cleared up.
5702      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5703      lt_cv_file_magic_cmd=/usr/bin/file
5704      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5705      ;;
5706    esac
5707  else
5708    lt_cv_deplibs_check_method=pass_all
5709  fi
5710  ;;
5711
5712gnu*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716hpux10.20* | hpux11*)
5717  lt_cv_file_magic_cmd=/usr/bin/file
5718  case $host_cpu in
5719  ia64*)
5720    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5721    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5722    ;;
5723  hppa*64*)
5724    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]'
5725    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5726    ;;
5727  *)
5728    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5729    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5730    ;;
5731  esac
5732  ;;
5733
5734interix3*)
5735  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5736  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5737  ;;
5738
5739irix5* | irix6* | nonstopux*)
5740  case $LD in
5741  *-32|*"-32 ") libmagic=32-bit;;
5742  *-n32|*"-n32 ") libmagic=N32;;
5743  *-64|*"-64 ") libmagic=64-bit;;
5744  *) libmagic=never-match;;
5745  esac
5746  lt_cv_deplibs_check_method=pass_all
5747  ;;
5748
5749# This must be Linux ELF.
5750linux*)
5751  lt_cv_deplibs_check_method=pass_all
5752  ;;
5753
5754netbsd*)
5755  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5757  else
5758    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759  fi
5760  ;;
5761
5762newos6*)
5763  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5764  lt_cv_file_magic_cmd=/usr/bin/file
5765  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5766  ;;
5767
5768nto-qnx*)
5769  lt_cv_deplibs_check_method=unknown
5770  ;;
5771
5772openbsd*)
5773  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5774    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5775  else
5776    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777  fi
5778  ;;
5779
5780osf3* | osf4* | osf5*)
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784solaris*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788sysv4 | sysv4.3*)
5789  case $host_vendor in
5790  motorola)
5791    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]'
5792    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5793    ;;
5794  ncr)
5795    lt_cv_deplibs_check_method=pass_all
5796    ;;
5797  sequent)
5798    lt_cv_file_magic_cmd='/bin/file'
5799    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5800    ;;
5801  sni)
5802    lt_cv_file_magic_cmd='/bin/file'
5803    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5804    lt_cv_file_magic_test_file=/lib/libc.so
5805    ;;
5806  siemens)
5807    lt_cv_deplibs_check_method=pass_all
5808    ;;
5809  pc)
5810    lt_cv_deplibs_check_method=pass_all
5811    ;;
5812  esac
5813  ;;
5814
5815sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818esac
5819
5820fi
5821echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5822echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5823file_magic_cmd=$lt_cv_file_magic_cmd
5824deplibs_check_method=$lt_cv_deplibs_check_method
5825test -z "$deplibs_check_method" && deplibs_check_method=unknown
5826
5827
5828
5829
5830# If no C compiler was specified, use CC.
5831LTCC=${LTCC-"$CC"}
5832
5833# If no C compiler flags were specified, use CFLAGS.
5834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5835
5836# Allow CC to be a program name with arguments.
5837compiler=$CC
5838
5839# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5840if test "${enable_libtool_lock+set}" = set; then
5841  enableval="$enable_libtool_lock"
5842
5843fi;
5844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5845
5846# Some flags need to be propagated to the compiler or linker for good
5847# libtool support.
5848case $host in
5849ia64-*-hpux*)
5850  # Find out which ABI we are using.
5851  echo 'int i;' > conftest.$ac_ext
5852  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853  (eval $ac_compile) 2>&5
5854  ac_status=$?
5855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856  (exit $ac_status); }; then
5857    case `/usr/bin/file conftest.$ac_objext` in
5858    *ELF-32*)
5859      HPUX_IA64_MODE="32"
5860      ;;
5861    *ELF-64*)
5862      HPUX_IA64_MODE="64"
5863      ;;
5864    esac
5865  fi
5866  rm -rf conftest*
5867  ;;
5868*-*-irix6*)
5869  # Find out which ABI we are using.
5870  echo '#line 5870 "configure"' > conftest.$ac_ext
5871  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872  (eval $ac_compile) 2>&5
5873  ac_status=$?
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); }; then
5876   if test "$lt_cv_prog_gnu_ld" = yes; then
5877    case `/usr/bin/file conftest.$ac_objext` in
5878    *32-bit*)
5879      LD="${LD-ld} -melf32bsmip"
5880      ;;
5881    *N32*)
5882      LD="${LD-ld} -melf32bmipn32"
5883      ;;
5884    *64-bit*)
5885      LD="${LD-ld} -melf64bmip"
5886      ;;
5887    esac
5888   else
5889    case `/usr/bin/file conftest.$ac_objext` in
5890    *32-bit*)
5891      LD="${LD-ld} -32"
5892      ;;
5893    *N32*)
5894      LD="${LD-ld} -n32"
5895      ;;
5896    *64-bit*)
5897      LD="${LD-ld} -64"
5898      ;;
5899    esac
5900   fi
5901  fi
5902  rm -rf conftest*
5903  ;;
5904
5905x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5906  # Find out which ABI we are using.
5907  echo 'int i;' > conftest.$ac_ext
5908  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909  (eval $ac_compile) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }; then
5913    case `/usr/bin/file conftest.o` in
5914    *32-bit*)
5915      case $host in
5916        x86_64-*linux*)
5917          LD="${LD-ld} -m elf_i386"
5918          ;;
5919        ppc64-*linux*|powerpc64-*linux*)
5920          LD="${LD-ld} -m elf32ppclinux"
5921          ;;
5922        s390x-*linux*)
5923          LD="${LD-ld} -m elf_s390"
5924          ;;
5925        sparc64-*linux*)
5926          LD="${LD-ld} -m elf32_sparc"
5927          ;;
5928      esac
5929      ;;
5930    *64-bit*)
5931      case $host in
5932        x86_64-*linux*)
5933          LD="${LD-ld} -m elf_x86_64"
5934          ;;
5935        ppc*-*linux*|powerpc*-*linux*)
5936          LD="${LD-ld} -m elf64ppc"
5937          ;;
5938        s390*-*linux*)
5939          LD="${LD-ld} -m elf64_s390"
5940          ;;
5941        sparc*-*linux*)
5942          LD="${LD-ld} -m elf64_sparc"
5943          ;;
5944      esac
5945      ;;
5946    esac
5947  fi
5948  rm -rf conftest*
5949  ;;
5950
5951*-*-sco3.2v5*)
5952  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5953  SAVE_CFLAGS="$CFLAGS"
5954  CFLAGS="$CFLAGS -belf"
5955  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5956echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5957if test "${lt_cv_cc_needs_belf+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  ac_ext=c
5961ac_cpp='$CPP $CPPFLAGS'
5962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965
5966     cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h.  */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981rm -f conftest.$ac_objext conftest$ac_exeext
5982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983  (eval $ac_link) 2>conftest.er1
5984  ac_status=$?
5985  grep -v '^ *+' conftest.er1 >conftest.err
5986  rm -f conftest.er1
5987  cat conftest.err >&5
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); } &&
5990         { ac_try='test -z "$ac_c_werror_flag"
5991                         || test ! -s conftest.err'
5992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993  (eval $ac_try) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; } &&
5997         { ac_try='test -s conftest$ac_exeext'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; }; then
6003  lt_cv_cc_needs_belf=yes
6004else
6005  echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008lt_cv_cc_needs_belf=no
6009fi
6010rm -f conftest.err conftest.$ac_objext \
6011      conftest$ac_exeext conftest.$ac_ext
6012     ac_ext=c
6013ac_cpp='$CPP $CPPFLAGS'
6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017
6018fi
6019echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6020echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6021  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6022    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6023    CFLAGS="$SAVE_CFLAGS"
6024  fi
6025  ;;
6026sparc*-*solaris*)
6027  # Find out which ABI we are using.
6028  echo 'int i;' > conftest.$ac_ext
6029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030  (eval $ac_compile) 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; then
6034    case `/usr/bin/file conftest.o` in
6035    *64-bit*)
6036      case $lt_cv_prog_gnu_ld in
6037      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6038      *)    LD="${LD-ld} -64" ;;
6039      esac
6040      ;;
6041    esac
6042  fi
6043  rm -rf conftest*
6044  ;;
6045
6046
6047esac
6048
6049need_locks="$enable_libtool_lock"
6050
6051
6052ac_ext=c
6053ac_cpp='$CPP $CPPFLAGS'
6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6058echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6059# On Suns, sometimes $CPP names a directory.
6060if test -n "$CPP" && test -d "$CPP"; then
6061  CPP=
6062fi
6063if test -z "$CPP"; then
6064  if test "${ac_cv_prog_CPP+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067      # Double quotes because CPP needs to be expanded
6068    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6069    do
6070      ac_preproc_ok=false
6071for ac_c_preproc_warn_flag in '' yes
6072do
6073  # Use a header file that comes with gcc, so configuring glibc
6074  # with a fresh cross-compiler works.
6075  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6076  # <limits.h> exists even on freestanding compilers.
6077  # On the NeXT, cc -E runs the code through the compiler's parser,
6078  # not just through cpp. "Syntax error" is here to catch this case.
6079  cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085#ifdef __STDC__
6086# include <limits.h>
6087#else
6088# include <assert.h>
6089#endif
6090                     Syntax error
6091_ACEOF
6092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6093  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } >/dev/null; then
6100  if test -s conftest.err; then
6101    ac_cpp_err=$ac_c_preproc_warn_flag
6102    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6103  else
6104    ac_cpp_err=
6105  fi
6106else
6107  ac_cpp_err=yes
6108fi
6109if test -z "$ac_cpp_err"; then
6110  :
6111else
6112  echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115  # Broken: fails on valid input.
6116continue
6117fi
6118rm -f conftest.err conftest.$ac_ext
6119
6120  # OK, works on sane cases.  Now check whether non-existent headers
6121  # can be detected and how.
6122  cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h.  */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h.  */
6128#include <ac_nonexistent.h>
6129_ACEOF
6130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6132  ac_status=$?
6133  grep -v '^ *+' conftest.er1 >conftest.err
6134  rm -f conftest.er1
6135  cat conftest.err >&5
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); } >/dev/null; then
6138  if test -s conftest.err; then
6139    ac_cpp_err=$ac_c_preproc_warn_flag
6140    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6141  else
6142    ac_cpp_err=
6143  fi
6144else
6145  ac_cpp_err=yes
6146fi
6147if test -z "$ac_cpp_err"; then
6148  # Broken: success on invalid input.
6149continue
6150else
6151  echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154  # Passes both tests.
6155ac_preproc_ok=:
6156break
6157fi
6158rm -f conftest.err conftest.$ac_ext
6159
6160done
6161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6162rm -f conftest.err conftest.$ac_ext
6163if $ac_preproc_ok; then
6164  break
6165fi
6166
6167    done
6168    ac_cv_prog_CPP=$CPP
6169
6170fi
6171  CPP=$ac_cv_prog_CPP
6172else
6173  ac_cv_prog_CPP=$CPP
6174fi
6175echo "$as_me:$LINENO: result: $CPP" >&5
6176echo "${ECHO_T}$CPP" >&6
6177ac_preproc_ok=false
6178for ac_c_preproc_warn_flag in '' yes
6179do
6180  # Use a header file that comes with gcc, so configuring glibc
6181  # with a fresh cross-compiler works.
6182  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183  # <limits.h> exists even on freestanding compilers.
6184  # On the NeXT, cc -E runs the code through the compiler's parser,
6185  # not just through cpp. "Syntax error" is here to catch this case.
6186  cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h.  */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h.  */
6192#ifdef __STDC__
6193# include <limits.h>
6194#else
6195# include <assert.h>
6196#endif
6197                     Syntax error
6198_ACEOF
6199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6200  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } >/dev/null; then
6207  if test -s conftest.err; then
6208    ac_cpp_err=$ac_c_preproc_warn_flag
6209    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6210  else
6211    ac_cpp_err=
6212  fi
6213else
6214  ac_cpp_err=yes
6215fi
6216if test -z "$ac_cpp_err"; then
6217  :
6218else
6219  echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222  # Broken: fails on valid input.
6223continue
6224fi
6225rm -f conftest.err conftest.$ac_ext
6226
6227  # OK, works on sane cases.  Now check whether non-existent headers
6228  # can be detected and how.
6229  cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235#include <ac_nonexistent.h>
6236_ACEOF
6237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } >/dev/null; then
6245  if test -s conftest.err; then
6246    ac_cpp_err=$ac_c_preproc_warn_flag
6247    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6248  else
6249    ac_cpp_err=
6250  fi
6251else
6252  ac_cpp_err=yes
6253fi
6254if test -z "$ac_cpp_err"; then
6255  # Broken: success on invalid input.
6256continue
6257else
6258  echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261  # Passes both tests.
6262ac_preproc_ok=:
6263break
6264fi
6265rm -f conftest.err conftest.$ac_ext
6266
6267done
6268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6269rm -f conftest.err conftest.$ac_ext
6270if $ac_preproc_ok; then
6271  :
6272else
6273  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6274See \`config.log' for more details." >&5
6275echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6276See \`config.log' for more details." >&2;}
6277   { (exit 1); exit 1; }; }
6278fi
6279
6280ac_ext=c
6281ac_cpp='$CPP $CPPFLAGS'
6282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285
6286
6287echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6288echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6289if test "${ac_cv_header_stdc+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h.  */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h.  */
6298#include <stdlib.h>
6299#include <stdarg.h>
6300#include <string.h>
6301#include <float.h>
6302
6303int
6304main ()
6305{
6306
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
6312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313  (eval $ac_compile) 2>conftest.er1
6314  ac_status=$?
6315  grep -v '^ *+' conftest.er1 >conftest.err
6316  rm -f conftest.er1
6317  cat conftest.err >&5
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); } &&
6320         { ac_try='test -z "$ac_c_werror_flag"
6321                         || test ! -s conftest.err'
6322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323  (eval $ac_try) 2>&5
6324  ac_status=$?
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); }; } &&
6327         { ac_try='test -s conftest.$ac_objext'
6328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329  (eval $ac_try) 2>&5
6330  ac_status=$?
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); }; }; then
6333  ac_cv_header_stdc=yes
6334else
6335  echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338ac_cv_header_stdc=no
6339fi
6340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6341
6342if test $ac_cv_header_stdc = yes; then
6343  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6344  cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350#include <string.h>
6351
6352_ACEOF
6353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354  $EGREP "memchr" >/dev/null 2>&1; then
6355  :
6356else
6357  ac_cv_header_stdc=no
6358fi
6359rm -f conftest*
6360
6361fi
6362
6363if test $ac_cv_header_stdc = yes; then
6364  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6365  cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h.  */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h.  */
6371#include <stdlib.h>
6372
6373_ACEOF
6374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375  $EGREP "free" >/dev/null 2>&1; then
6376  :
6377else
6378  ac_cv_header_stdc=no
6379fi
6380rm -f conftest*
6381
6382fi
6383
6384if test $ac_cv_header_stdc = yes; then
6385  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6386  if test "$cross_compiling" = yes; then
6387  :
6388else
6389  cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h.  */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h.  */
6395#include <ctype.h>
6396#if ((' ' & 0x0FF) == 0x020)
6397# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6398# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6399#else
6400# define ISLOWER(c) \
6401                   (('a' <= (c) && (c) <= 'i') \
6402                     || ('j' <= (c) && (c) <= 'r') \
6403                     || ('s' <= (c) && (c) <= 'z'))
6404# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6405#endif
6406
6407#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6408int
6409main ()
6410{
6411  int i;
6412  for (i = 0; i < 256; i++)
6413    if (XOR (islower (i), ISLOWER (i))
6414        || toupper (i) != TOUPPER (i))
6415      exit(2);
6416  exit (0);
6417}
6418_ACEOF
6419rm -f conftest$ac_exeext
6420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421  (eval $ac_link) 2>&5
6422  ac_status=$?
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426  (eval $ac_try) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }; }; then
6430  :
6431else
6432  echo "$as_me: program exited with status $ac_status" >&5
6433echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436( exit $ac_status )
6437ac_cv_header_stdc=no
6438fi
6439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6440fi
6441fi
6442fi
6443echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6444echo "${ECHO_T}$ac_cv_header_stdc" >&6
6445if test $ac_cv_header_stdc = yes; then
6446
6447cat >>confdefs.h <<\_ACEOF
6448#define STDC_HEADERS 1
6449_ACEOF
6450
6451fi
6452
6453# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6464                  inttypes.h stdint.h unistd.h
6465do
6466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6467echo "$as_me:$LINENO: checking for $ac_header" >&5
6468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h.  */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h.  */
6478$ac_includes_default
6479
6480#include <$ac_header>
6481_ACEOF
6482rm -f conftest.$ac_objext
6483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484  (eval $ac_compile) 2>conftest.er1
6485  ac_status=$?
6486  grep -v '^ *+' conftest.er1 >conftest.err
6487  rm -f conftest.er1
6488  cat conftest.err >&5
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } &&
6491         { ac_try='test -z "$ac_c_werror_flag"
6492                         || test ! -s conftest.err'
6493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494  (eval $ac_try) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; } &&
6498         { ac_try='test -s conftest.$ac_objext'
6499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500  (eval $ac_try) 2>&5
6501  ac_status=$?
6502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); }; }; then
6504  eval "$as_ac_Header=yes"
6505else
6506  echo "$as_me: failed program was:" >&5
6507sed 's/^/| /' conftest.$ac_ext >&5
6508
6509eval "$as_ac_Header=no"
6510fi
6511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6512fi
6513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516  cat >>confdefs.h <<_ACEOF
6517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518_ACEOF
6519
6520fi
6521
6522done
6523
6524
6525
6526for ac_header in dlfcn.h
6527do
6528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530  echo "$as_me:$LINENO: checking for $ac_header" >&5
6531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534fi
6535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537else
6538  # Is the header compilable?
6539echo "$as_me:$LINENO: checking $ac_header usability" >&5
6540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6541cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h.  */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h.  */
6547$ac_includes_default
6548#include <$ac_header>
6549_ACEOF
6550rm -f conftest.$ac_objext
6551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552  (eval $ac_compile) 2>conftest.er1
6553  ac_status=$?
6554  grep -v '^ *+' conftest.er1 >conftest.err
6555  rm -f conftest.er1
6556  cat conftest.err >&5
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); } &&
6559         { ac_try='test -z "$ac_c_werror_flag"
6560                         || test ! -s conftest.err'
6561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562  (eval $ac_try) 2>&5
6563  ac_status=$?
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); }; } &&
6566         { ac_try='test -s conftest.$ac_objext'
6567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568  (eval $ac_try) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); }; }; then
6572  ac_header_compiler=yes
6573else
6574  echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577ac_header_compiler=no
6578fi
6579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6581echo "${ECHO_T}$ac_header_compiler" >&6
6582
6583# Is the header present?
6584echo "$as_me:$LINENO: checking $ac_header presence" >&5
6585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6586cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h.  */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h.  */
6592#include <$ac_header>
6593_ACEOF
6594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } >/dev/null; then
6602  if test -s conftest.err; then
6603    ac_cpp_err=$ac_c_preproc_warn_flag
6604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6605  else
6606    ac_cpp_err=
6607  fi
6608else
6609  ac_cpp_err=yes
6610fi
6611if test -z "$ac_cpp_err"; then
6612  ac_header_preproc=yes
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617  ac_header_preproc=no
6618fi
6619rm -f conftest.err conftest.$ac_ext
6620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6621echo "${ECHO_T}$ac_header_preproc" >&6
6622
6623# So?  What about this header?
6624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6625  yes:no: )
6626    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6628    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6630    ac_header_preproc=yes
6631    ;;
6632  no:yes:* )
6633    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6635    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6636echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6637    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6640echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6645    (
6646      cat <<\_ASBOX
6647## ------------------------------------ ##
6648## Report this to cbc@lists.coin-or.org ##
6649## ------------------------------------ ##
6650_ASBOX
6651    ) |
6652      sed "s/^/$as_me: WARNING:     /" >&2
6653    ;;
6654esac
6655echo "$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
6659else
6660  eval "$as_ac_Header=\$ac_header_preproc"
6661fi
6662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6664
6665fi
6666if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667  cat >>confdefs.h <<_ACEOF
6668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669_ACEOF
6670
6671fi
6672
6673done
6674
6675
6676
6677if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6678    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6679    (test "X$CXX" != "Xg++"))) ; then
6680  ac_ext=cc
6681ac_cpp='$CXXCPP $CPPFLAGS'
6682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6685echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6686echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6687if test -z "$CXXCPP"; then
6688  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6689  echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691      # Double quotes because CXXCPP needs to be expanded
6692    for CXXCPP in "$CXX -E" "/lib/cpp"
6693    do
6694      ac_preproc_ok=false
6695for ac_cxx_preproc_warn_flag in '' yes
6696do
6697  # Use a header file that comes with gcc, so configuring glibc
6698  # with a fresh cross-compiler works.
6699  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6700  # <limits.h> exists even on freestanding compilers.
6701  # On the NeXT, cc -E runs the code through the compiler's parser,
6702  # not just through cpp. "Syntax error" is here to catch this case.
6703  cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h.  */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h.  */
6709#ifdef __STDC__
6710# include <limits.h>
6711#else
6712# include <assert.h>
6713#endif
6714                     Syntax error
6715_ACEOF
6716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6717  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } >/dev/null; then
6724  if test -s conftest.err; then
6725    ac_cpp_err=$ac_cxx_preproc_warn_flag
6726    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6727  else
6728    ac_cpp_err=
6729  fi
6730else
6731  ac_cpp_err=yes
6732fi
6733if test -z "$ac_cpp_err"; then
6734  :
6735else
6736  echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
6738
6739  # Broken: fails on valid input.
6740continue
6741fi
6742rm -f conftest.err conftest.$ac_ext
6743
6744  # OK, works on sane cases.  Now check whether non-existent headers
6745  # can be detected and how.
6746  cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752#include <ac_nonexistent.h>
6753_ACEOF
6754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6756  ac_status=$?
6757  grep -v '^ *+' conftest.er1 >conftest.err
6758  rm -f conftest.er1
6759  cat conftest.err >&5
6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761  (exit $ac_status); } >/dev/null; then
6762  if test -s conftest.err; then
6763    ac_cpp_err=$ac_cxx_preproc_warn_flag
6764    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6765  else
6766    ac_cpp_err=
6767  fi
6768else
6769  ac_cpp_err=yes
6770fi
6771if test -z "$ac_cpp_err"; then
6772  # Broken: success on invalid input.
6773continue
6774else
6775  echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778  # Passes both tests.
6779ac_preproc_ok=:
6780break
6781fi
6782rm -f conftest.err conftest.$ac_ext
6783
6784done
6785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6786rm -f conftest.err conftest.$ac_ext
6787if $ac_preproc_ok; then
6788  break
6789fi
6790
6791    done
6792    ac_cv_prog_CXXCPP=$CXXCPP
6793
6794fi
6795  CXXCPP=$ac_cv_prog_CXXCPP
6796else
6797  ac_cv_prog_CXXCPP=$CXXCPP
6798fi
6799echo "$as_me:$LINENO: result: $CXXCPP" >&5
6800echo "${ECHO_T}$CXXCPP" >&6
6801ac_preproc_ok=false
6802for ac_cxx_preproc_warn_flag in '' yes
6803do
6804  # Use a header file that comes with gcc, so configuring glibc
6805  # with a fresh cross-compiler works.
6806  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807  # <limits.h> exists even on freestanding compilers.
6808  # On the NeXT, cc -E runs the code through the compiler's parser,
6809  # not just through cpp. "Syntax error" is here to catch this case.
6810  cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h.  */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h.  */
6816#ifdef __STDC__
6817# include <limits.h>
6818#else
6819# include <assert.h>
6820#endif
6821                     Syntax error
6822_ACEOF
6823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6825  ac_status=$?
6826  grep -v '^ *+' conftest.er1 >conftest.err
6827  rm -f conftest.er1
6828  cat conftest.err >&5
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); } >/dev/null; then
6831  if test -s conftest.err; then
6832    ac_cpp_err=$ac_cxx_preproc_warn_flag
6833    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6834  else
6835    ac_cpp_err=
6836  fi
6837else
6838  ac_cpp_err=yes
6839fi
6840if test -z "$ac_cpp_err"; then
6841  :
6842else
6843  echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846  # Broken: fails on valid input.
6847continue
6848fi
6849rm -f conftest.err conftest.$ac_ext
6850
6851  # OK, works on sane cases.  Now check whether non-existent headers
6852  # can be detected and how.
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#include <ac_nonexistent.h>
6860_ACEOF
6861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6862  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6863  ac_status=$?
6864  grep -v '^ *+' conftest.er1 >conftest.err
6865  rm -f conftest.er1
6866  cat conftest.err >&5
6867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868  (exit $ac_status); } >/dev/null; then
6869  if test -s conftest.err; then
6870    ac_cpp_err=$ac_cxx_preproc_warn_flag
6871    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6872  else
6873    ac_cpp_err=
6874  fi
6875else
6876  ac_cpp_err=yes
6877fi
6878if test -z "$ac_cpp_err"; then
6879  # Broken: success on invalid input.
6880continue
6881else
6882  echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885  # Passes both tests.
6886ac_preproc_ok=:
6887break
6888fi
6889rm -f conftest.err conftest.$ac_ext
6890
6891done
6892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6893rm -f conftest.err conftest.$ac_ext
6894if $ac_preproc_ok; then
6895  :
6896else
6897  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6898See \`config.log' for more details." >&5
6899echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6900See \`config.log' for more details." >&2;}
6901   { (exit 1); exit 1; }; }
6902fi
6903
6904ac_ext=cc
6905ac_cpp='$CXXCPP $CPPFLAGS'
6906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6909
6910fi
6911
6912ac_ext=f
6913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6916if test -n "$ac_tool_prefix"; then
6917  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6918  do
6919    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6921echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6923if test "${ac_cv_prog_F77+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  if test -n "$F77"; then
6927  ac_cv_prog_F77="$F77" # Let the user override the test.
6928else
6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  test -z "$as_dir" && as_dir=.
6934  for ac_exec_ext in '' $ac_executable_extensions; do
6935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938    break 2
6939  fi
6940done
6941done
6942
6943fi
6944fi
6945F77=$ac_cv_prog_F77
6946if test -n "$F77"; then
6947  echo "$as_me:$LINENO: result: $F77" >&5
6948echo "${ECHO_T}$F77" >&6
6949else
6950  echo "$as_me:$LINENO: result: no" >&5
6951echo "${ECHO_T}no" >&6
6952fi
6953
6954    test -n "$F77" && break
6955  done
6956fi
6957if test -z "$F77"; then
6958  ac_ct_F77=$F77
6959  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6960do
6961  # Extract the first word of "$ac_prog", so it can be a program name with args.
6962set dummy $ac_prog; ac_word=$2
6963echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6965if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6966  echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968  if test -n "$ac_ct_F77"; then
6969  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976  for ac_exec_ext in '' $ac_executable_extensions; do
6977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978    ac_cv_prog_ac_ct_F77="$ac_prog"
6979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983done
6984
6985fi
6986fi
6987ac_ct_F77=$ac_cv_prog_ac_ct_F77
6988if test -n "$ac_ct_F77"; then
6989  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6990echo "${ECHO_T}$ac_ct_F77" >&6
6991else
6992  echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6
6994fi
6995
6996  test -n "$ac_ct_F77" && break
6997done
6998
6999  F77=$ac_ct_F77
7000fi
7001
7002
7003# Provide some information about the compiler.
7004echo "$as_me:7004:" \
7005     "checking for Fortran 77 compiler version" >&5
7006ac_compiler=`set X $ac_compile; echo $2`
7007{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7008  (eval $ac_compiler --version </dev/null >&5) 2>&5
7009  ac_status=$?
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); }
7012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7013  (eval $ac_compiler -v </dev/null >&5) 2>&5
7014  ac_status=$?
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); }
7017{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7018  (eval $ac_compiler -V </dev/null >&5) 2>&5
7019  ac_status=$?
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); }
7022rm -f a.out
7023
7024# If we don't use `.F' as extension, the preprocessor is not run on the
7025# input file.  (Note that this only needs to work for GNU compilers.)
7026ac_save_ext=$ac_ext
7027ac_ext=F
7028echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7029echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7030if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  cat >conftest.$ac_ext <<_ACEOF
7034      program main
7035#ifndef __GNUC__
7036       choke me
7037#endif
7038
7039      end
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043  (eval $ac_compile) 2>conftest.er1
7044  ac_status=$?
7045  grep -v '^ *+' conftest.er1 >conftest.err
7046  rm -f conftest.er1
7047  cat conftest.err >&5
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } &&
7050         { ac_try='test -z "$ac_f77_werror_flag"
7051                         || test ! -s conftest.err'
7052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053  (eval $ac_try) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }; } &&
7057         { ac_try='test -s conftest.$ac_objext'
7058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059  (eval $ac_try) 2>&5
7060  ac_status=$?
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); }; }; then
7063  ac_compiler_gnu=yes
7064else
7065  echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_compiler_gnu=no
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7072
7073fi
7074echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7075echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7076ac_ext=$ac_save_ext
7077ac_test_FFLAGS=${FFLAGS+set}
7078ac_save_FFLAGS=$FFLAGS
7079FFLAGS=
7080echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7081echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7082if test "${ac_cv_prog_f77_g+set}" = set; then
7083  echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085  FFLAGS=-g
7086cat >conftest.$ac_ext <<_ACEOF
7087      program main
7088
7089      end
7090_ACEOF
7091rm -f conftest.$ac_objext
7092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093  (eval $ac_compile) 2>conftest.er1
7094  ac_status=$?
7095  grep -v '^ *+' conftest.er1 >conftest.err
7096  rm -f conftest.er1
7097  cat conftest.err >&5
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); } &&
7100         { ac_try='test -z "$ac_f77_werror_flag"
7101                         || test ! -s conftest.err'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; } &&
7107         { ac_try='test -s conftest.$ac_objext'
7108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109  (eval $ac_try) 2>&5
7110  ac_status=$?
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); }; }; then
7113  ac_cv_prog_f77_g=yes
7114else
7115  echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
7118ac_cv_prog_f77_g=no
7119fi
7120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121
7122fi
7123echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7124echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7125if test "$ac_test_FFLAGS" = set; then
7126  FFLAGS=$ac_save_FFLAGS
7127elif test $ac_cv_prog_f77_g = yes; then
7128  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7129    FFLAGS="-g -O2"
7130  else
7131    FFLAGS="-g"
7132  fi
7133else
7134  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7135    FFLAGS="-O2"
7136  else
7137    FFLAGS=
7138  fi
7139fi
7140
7141G77=`test $ac_compiler_gnu = yes && echo yes`
7142ac_ext=c
7143ac_cpp='$CPP $CPPFLAGS'
7144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148
7149
7150# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7151
7152# find the maximum length of command line arguments
7153echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7154echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7155if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158    i=0
7159  teststring="ABCD"
7160
7161  case $build_os in
7162  msdosdjgpp*)
7163    # On DJGPP, this test can blow up pretty badly due to problems in libc
7164    # (any single argument exceeding 2000 bytes causes a buffer overrun
7165    # during glob expansion).  Even if it were fixed, the result of this
7166    # check would be larger than it should be.
7167    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7168    ;;
7169
7170  gnu*)
7171    # Under GNU Hurd, this test is not required because there is
7172    # no limit to the length of command line arguments.
7173    # Libtool will interpret -1 as no limit whatsoever
7174    lt_cv_sys_max_cmd_len=-1;
7175    ;;
7176
7177  cygwin* | mingw*)
7178    # On Win9x/ME, this test blows up -- it succeeds, but takes
7179    # about 5 minutes as the teststring grows exponentially.
7180    # Worse, since 9x/ME are not pre-emptively multitasking,
7181    # you end up with a "frozen" computer, even though with patience
7182    # the test eventually succeeds (with a max line length of 256k).
7183    # Instead, let's just punt: use the minimum linelength reported by
7184    # all of the supported platforms: 8192 (on NT/2K/XP).
7185    lt_cv_sys_max_cmd_len=8192;
7186    ;;
7187
7188  amigaos*)
7189    # On AmigaOS with pdksh, this test takes hours, literally.
7190    # So we just punt and use a minimum line length of 8192.
7191    lt_cv_sys_max_cmd_len=8192;
7192    ;;
7193
7194  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7195    # This has been around since 386BSD, at least.  Likely further.
7196    if test -x /sbin/sysctl; then
7197      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7198    elif test -x /usr/sbin/sysctl; then
7199      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7200    else
7201      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7202    fi
7203    # And add a safety zone
7204    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7205    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7206    ;;
7207
7208  interix*)
7209    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7210    lt_cv_sys_max_cmd_len=196608
7211    ;;
7212
7213  osf*)
7214    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7215    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7216    # nice to cause kernel panics so lets avoid the loop below.
7217    # First set a reasonable default.
7218    lt_cv_sys_max_cmd_len=16384
7219    #
7220    if test -x /sbin/sysconfig; then
7221      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7222        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7223      esac
7224    fi
7225    ;;
7226  sco3.2v5*)
7227    lt_cv_sys_max_cmd_len=102400
7228    ;;
7229  sysv5* | sco5v6* | sysv4.2uw2*)
7230    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7231    if test -n "$kargmax"; then
7232      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7233    else
7234      lt_cv_sys_max_cmd_len=32768
7235    fi
7236    ;;
7237  *)
7238    # If test is not a shell built-in, we'll probably end up computing a
7239    # maximum length that is only half of the actual maximum length, but
7240    # we can't tell.
7241    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7242    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7243               = "XX$teststring") >/dev/null 2>&1 &&
7244            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7245            lt_cv_sys_max_cmd_len=$new_result &&
7246            test $i != 17 # 1/2 MB should be enough
7247    do
7248      i=`expr $i + 1`
7249      teststring=$teststring$teststring
7250    done
7251    teststring=
7252    # Add a significant safety factor because C++ compilers can tack on massive
7253    # amounts of additional arguments before passing them to the linker.
7254    # It appears as though 1/2 is a usable value.
7255    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7256    ;;
7257  esac
7258
7259fi
7260
7261if test -n $lt_cv_sys_max_cmd_len ; then
7262  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7263echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7264else
7265  echo "$as_me:$LINENO: result: none" >&5
7266echo "${ECHO_T}none" >&6
7267fi
7268
7269
7270
7271
7272# Check for command to grab the raw symbol name followed by C symbol from nm.
7273echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7274echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7275if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278
7279# These are sane defaults that work on at least a few old systems.
7280# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7281
7282# Character class describing NM global symbol codes.
7283symcode='[BCDEGRST]'
7284
7285# Regexp to match symbols that can be accessed directly from C.
7286sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7287
7288# Transform an extracted symbol line into a proper C declaration
7289lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7290
7291# Transform an extracted symbol line into symbol name and symbol address
7292lt_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'"
7293
7294# Define system-specific variables.
7295case $host_os in
7296aix*)
7297  symcode='[BCDT]'
7298  ;;
7299cygwin* | mingw* | pw32*)
7300  symcode='[ABCDGISTW]'
7301  ;;
7302hpux*) # Its linker distinguishes data from code symbols
7303  if test "$host_cpu" = ia64; then
7304    symcode='[ABCDEGRST]'
7305  fi
7306  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7307  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'"
7308  ;;
7309linux*)
7310  if test "$host_cpu" = ia64; then
7311    symcode='[ABCDGIRSTW]'
7312    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7313    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'"
7314  fi
7315  ;;
7316irix* | nonstopux*)
7317  symcode='[BCDEGRST]'
7318  ;;
7319osf*)
7320  symcode='[BCDEGQRST]'
7321  ;;
7322solaris*)
7323  symcode='[BDRT]'
7324  ;;
7325sco3.2v5*)
7326  symcode='[DT]'
7327  ;;
7328sysv4.2uw2*)
7329  symcode='[DT]'
7330  ;;
7331sysv5* | sco5v6* | unixware* | OpenUNIX*)
7332  symcode='[ABDT]'
7333  ;;
7334sysv4)
7335  symcode='[DFNSTU]'
7336  ;;
7337esac
7338
7339# Handle CRLF in mingw tool chain
7340opt_cr=
7341case $build_os in
7342mingw*)
7343  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7344  ;;
7345esac
7346
7347# If we're using GNU nm, then use its standard symbol codes.
7348case `$NM -V 2>&1` in
7349*GNU* | *'with BFD'*)
7350  symcode='[ABCDGIRSTW]' ;;
7351esac
7352
7353# Try without a prefix undercore, then with it.
7354for ac_symprfx in "" "_"; do
7355
7356  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7357  symxfrm="\\1 $ac_symprfx\\2 \\2"
7358
7359  # Write the raw and C identifiers.
7360  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7361
7362  # Check to see that the pipe works correctly.
7363  pipe_works=no
7364
7365  rm -f conftest*
7366  cat > conftest.$ac_ext <<EOF
7367#ifdef __cplusplus
7368extern "C" {
7369#endif
7370char nm_test_var;
7371void nm_test_func(){}
7372#ifdef __cplusplus
7373}
7374#endif
7375int main(){nm_test_var='a';nm_test_func();return(0);}
7376EOF
7377
7378  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379  (eval $ac_compile) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); }; then
7383    # Now try to grab the symbols.
7384    nlist=conftest.nm
7385    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7386  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7387  ac_status=$?
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } && test -s "$nlist"; then
7390      # Try sorting and uniquifying the output.
7391      if sort "$nlist" | uniq > "$nlist"T; then
7392        mv -f "$nlist"T "$nlist"
7393      else
7394        rm -f "$nlist"T
7395      fi
7396
7397      # Make sure that we snagged all the symbols we need.
7398      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7399        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7400          cat <<EOF > conftest.$ac_ext
7401#ifdef __cplusplus
7402extern "C" {
7403#endif
7404
7405EOF
7406          # Now generate the symbol file.
7407          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7408
7409          cat <<EOF >> conftest.$ac_ext
7410#if defined (__STDC__) && __STDC__
7411# define lt_ptr_t void *
7412#else
7413# define lt_ptr_t char *
7414# define const
7415#endif
7416
7417/* The mapping between symbol names and symbols. */
7418const struct {
7419  const char *name;
7420  lt_ptr_t address;
7421}
7422lt_preloaded_symbols[] =
7423{
7424EOF
7425          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7426          cat <<\EOF >> conftest.$ac_ext
7427  {0, (lt_ptr_t) 0}
7428};
7429
7430#ifdef __cplusplus
7431}
7432#endif
7433EOF
7434          # Now try linking the two files.
7435          mv conftest.$ac_objext conftstm.$ac_objext
7436          lt_save_LIBS="$LIBS"
7437          lt_save_CFLAGS="$CFLAGS"
7438          LIBS="conftstm.$ac_objext"
7439          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7440          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7441  (eval $ac_link) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7445            pipe_works=yes
7446          fi
7447          LIBS="$lt_save_LIBS"
7448          CFLAGS="$lt_save_CFLAGS"
7449        else
7450          echo "cannot find nm_test_func in $nlist" >&5
7451        fi
7452      else
7453        echo "cannot find nm_test_var in $nlist" >&5
7454      fi
7455    else
7456      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7457    fi
7458  else
7459    echo "$progname: failed program was:" >&5
7460    cat conftest.$ac_ext >&5
7461  fi
7462  rm -f conftest* conftst*
7463
7464  # Do not use the global_symbol_pipe unless it works.
7465  if test "$pipe_works" = yes; then
7466    break
7467  else
7468    lt_cv_sys_global_symbol_pipe=
7469  fi
7470done
7471
7472fi
7473
7474if test -z "$lt_cv_sys_global_symbol_pipe"; then
7475  lt_cv_sys_global_symbol_to_cdecl=
7476fi
7477if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7478  echo "$as_me:$LINENO: result: failed" >&5
7479echo "${ECHO_T}failed" >&6
7480else
7481  echo "$as_me:$LINENO: result: ok" >&5
7482echo "${ECHO_T}ok" >&6
7483fi
7484
7485echo "$as_me:$LINENO: checking for objdir" >&5
7486echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7487if test "${lt_cv_objdir+set}" = set; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490  rm -f .libs 2>/dev/null
7491mkdir .libs 2>/dev/null
7492if test -d .libs; then
7493  lt_cv_objdir=.libs
7494else
7495  # MS-DOS does not allow filenames that begin with a dot.
7496  lt_cv_objdir=_libs
7497fi
7498rmdir .libs 2>/dev/null
7499fi
7500echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7501echo "${ECHO_T}$lt_cv_objdir" >&6
7502objdir=$lt_cv_objdir
7503
7504
7505
7506
7507
7508case $host_os in
7509aix3*)
7510  # AIX sometimes has problems with the GCC collect2 program.  For some
7511  # reason, if we set the COLLECT_NAMES environment variable, the problems
7512  # vanish in a puff of smoke.
7513  if test "X${COLLECT_NAMES+set}" != Xset; then
7514    COLLECT_NAMES=
7515    export COLLECT_NAMES
7516  fi
7517  ;;
7518esac
7519
7520# Sed substitution that helps us do robust quoting.  It backslashifies
7521# metacharacters that are still active within double-quoted strings.
7522Xsed='sed -e 1s/^X//'
7523sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7524
7525# Same as above, but do not quote variable references.
7526double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7527
7528# Sed substitution to delay expansion of an escaped shell variable in a
7529# double_quote_subst'ed string.
7530delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7531
7532# Sed substitution to avoid accidental globbing in evaled expressions
7533no_glob_subst='s/\*/\\\*/g'
7534
7535# Constants:
7536rm="rm -f"
7537
7538# Global variables:
7539default_ofile=libtool
7540can_build_shared=yes
7541
7542# All known linkers require a `.a' archive for static linking (except MSVC,
7543# which needs '.lib').
7544libext=a
7545ltmain="$ac_aux_dir/ltmain.sh"
7546ofile="$default_ofile"
7547with_gnu_ld="$lt_cv_prog_gnu_ld"
7548
7549if test -n "$ac_tool_prefix"; then
7550  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7551set dummy ${ac_tool_prefix}ar; ac_word=$2
7552echo "$as_me:$LINENO: checking for $ac_word" >&5
7553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7554if test "${ac_cv_prog_AR+set}" = set; then
7555  echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557  if test -n "$AR"; then
7558  ac_cv_prog_AR="$AR" # Let the user override the test.
7559else
7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563  IFS=$as_save_IFS
7564  test -z "$as_dir" && as_dir=.
7565  for ac_exec_ext in '' $ac_executable_extensions; do
7566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567    ac_cv_prog_AR="${ac_tool_prefix}ar"
7568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569    break 2
7570  fi
7571done
7572done
7573
7574fi
7575fi
7576AR=$ac_cv_prog_AR
7577if test -n "$AR"; then
7578  echo "$as_me:$LINENO: result: $AR" >&5
7579echo "${ECHO_T}$AR" >&6
7580else
7581  echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583fi
7584
7585fi
7586if test -z "$ac_cv_prog_AR"; then
7587  ac_ct_AR=$AR
7588  # Extract the first word of "ar", so it can be a program name with args.
7589set dummy ar; ac_word=$2
7590echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7592if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7593  echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595  if test -n "$ac_ct_AR"; then
7596  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603  for ac_exec_ext in '' $ac_executable_extensions; do
7604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_ac_ct_AR="ar"
7606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610done
7611
7612  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7613fi
7614fi
7615ac_ct_AR=$ac_cv_prog_ac_ct_AR
7616if test -n "$ac_ct_AR"; then
7617  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7618echo "${ECHO_T}$ac_ct_AR" >&6
7619else
7620  echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622fi
7623
7624  AR=$ac_ct_AR
7625else
7626  AR="$ac_cv_prog_AR"
7627fi
7628
7629if test -n "$ac_tool_prefix"; then
7630  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7631set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7632echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634if test "${ac_cv_prog_RANLIB+set}" = set; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  if test -n "$RANLIB"; then
7638  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645  for ac_exec_ext in '' $ac_executable_extensions; do
7646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652done
7653
7654fi
7655fi
7656RANLIB=$ac_cv_prog_RANLIB
7657if test -n "$RANLIB"; then
7658  echo "$as_me:$LINENO: result: $RANLIB" >&5
7659echo "${ECHO_T}$RANLIB" >&6
7660else
7661  echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663fi
7664
7665fi
7666if test -z "$ac_cv_prog_RANLIB"; then
7667  ac_ct_RANLIB=$RANLIB
7668  # Extract the first word of "ranlib", so it can be a program name with args.
7669set dummy ranlib; ac_word=$2
7670echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7673  echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675  if test -n "$ac_ct_RANLIB"; then
7676  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681  IFS=$as_save_IFS
7682  test -z "$as_dir" && as_dir=.
7683  for ac_exec_ext in '' $ac_executable_extensions; do
7684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685    ac_cv_prog_ac_ct_RANLIB="ranlib"
7686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687    break 2
7688  fi
7689done
7690done
7691
7692  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7693fi
7694fi
7695ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7696if test -n "$ac_ct_RANLIB"; then
7697  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7698echo "${ECHO_T}$ac_ct_RANLIB" >&6
7699else
7700  echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6
7702fi
7703
7704  RANLIB=$ac_ct_RANLIB
7705else
7706  RANLIB="$ac_cv_prog_RANLIB"
7707fi
7708
7709if test -n "$ac_tool_prefix"; then
7710  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7711set dummy ${ac_tool_prefix}strip; ac_word=$2
7712echo "$as_me:$LINENO: checking for $ac_word" >&5
7713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714if test "${ac_cv_prog_STRIP+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  if test -n "$STRIP"; then
7718  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725  for ac_exec_ext in '' $ac_executable_extensions; do
7726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732done
7733
7734fi
7735fi
7736STRIP=$ac_cv_prog_STRIP
7737if test -n "$STRIP"; then
7738  echo "$as_me:$LINENO: result: $STRIP" >&5
7739echo "${ECHO_T}$STRIP" >&6
7740else
7741  echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6
7743fi
7744
7745fi
7746if test -z "$ac_cv_prog_STRIP"; then
7747  ac_ct_STRIP=$STRIP
7748  # Extract the first word of "strip", so it can be a program name with args.
7749set dummy strip; ac_word=$2
7750echo "$as_me:$LINENO: checking for $ac_word" >&5
7751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7752if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7753  echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755  if test -n "$ac_ct_STRIP"; then
7756  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7757else
7758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761  IFS=$as_save_IFS
7762  test -z "$as_dir" && as_dir=.
7763  for ac_exec_ext in '' $ac_executable_extensions; do
7764  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765    ac_cv_prog_ac_ct_STRIP="strip"
7766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767    break 2
7768  fi
7769done
7770done
7771
7772  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7773fi
7774fi
7775ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7776if test -n "$ac_ct_STRIP"; then
7777  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7778echo "${ECHO_T}$ac_ct_STRIP" >&6
7779else
7780  echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782fi
7783
7784  STRIP=$ac_ct_STRIP
7785else
7786  STRIP="$ac_cv_prog_STRIP"
7787fi
7788
7789
7790old_CC="$CC"
7791old_CFLAGS="$CFLAGS"
7792
7793# Set sane defaults for various variables
7794test -z "$AR" && AR=ar
7795test -z "$AR_FLAGS" && AR_FLAGS=cru
7796test -z "$AS" && AS=as
7797test -z "$CC" && CC=cc
7798test -z "$LTCC" && LTCC=$CC
7799test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7800test -z "$DLLTOOL" && DLLTOOL=dlltool
7801test -z "$LD" && LD=ld
7802test -z "$LN_S" && LN_S="ln -s"
7803test -z "$MAGIC_CMD" && MAGIC_CMD=file
7804test -z "$NM" && NM=nm
7805test -z "$SED" && SED=sed
7806test -z "$OBJDUMP" && OBJDUMP=objdump
7807test -z "$RANLIB" && RANLIB=:
7808test -z "$STRIP" && STRIP=:
7809test -z "$ac_objext" && ac_objext=o
7810
7811# Determine commands to create old-style static archives.
7812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7813old_postinstall_cmds='chmod 644 $oldlib'
7814old_postuninstall_cmds=
7815
7816if test -n "$RANLIB"; then
7817  case $host_os in
7818  openbsd*)
7819    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7820    ;;
7821  *)
7822    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7823    ;;
7824  esac
7825  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7826fi
7827
7828for cc_temp in $compiler""; do
7829  case $cc_temp in
7830    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7831    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7832    \-*) ;;
7833    *) break;;
7834  esac
7835done
7836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7837
7838
7839# Only perform the check for file, if the check method requires it
7840case $deplibs_check_method in
7841file_magic*)
7842  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7843    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7844echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7845if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7846  echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848  case $MAGIC_CMD in
7849[\\/*] |  ?:[\\/]*)
7850  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7851  ;;
7852*)
7853  lt_save_MAGIC_CMD="$MAGIC_CMD"
7854  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7855  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7856  for ac_dir in $ac_dummy; do
7857    IFS="$lt_save_ifs"
7858    test -z "$ac_dir" && ac_dir=.
7859    if test -f $ac_dir/${ac_tool_prefix}file; then
7860      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7861      if test -n "$file_magic_test_file"; then
7862        case $deplibs_check_method in
7863        "file_magic "*)
7864          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7865          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7867            $EGREP "$file_magic_regex" > /dev/null; then
7868            :
7869          else
7870            cat <<EOF 1>&2
7871
7872*** Warning: the command libtool uses to detect shared libraries,
7873*** $file_magic_cmd, produces output that libtool cannot recognize.
7874*** The result is that libtool may fail to recognize shared libraries
7875*** as such.  This will affect the creation of libtool libraries that
7876*** depend on shared libraries, but programs linked with such libtool
7877*** libraries will work regardless of this problem.  Nevertheless, you
7878*** may want to report the problem to your system manager and/or to
7879*** bug-libtool@gnu.org
7880
7881EOF
7882          fi ;;
7883        esac
7884      fi
7885      break
7886    fi
7887  done
7888  IFS="$lt_save_ifs"
7889  MAGIC_CMD="$lt_save_MAGIC_CMD"
7890  ;;
7891esac
7892fi
7893
7894MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7895if test -n "$MAGIC_CMD"; then
7896  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7897echo "${ECHO_T}$MAGIC_CMD" >&6
7898else
7899  echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6
7901fi
7902
7903if test -z "$lt_cv_path_MAGIC_CMD"; then
7904  if test -n "$ac_tool_prefix"; then
7905    echo "$as_me:$LINENO: checking for file" >&5
7906echo $ECHO_N "checking for file... $ECHO_C" >&6
7907if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7908  echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910  case $MAGIC_CMD in
7911[\\/*] |  ?:[\\/]*)
7912  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7913  ;;
7914*)
7915  lt_save_MAGIC_CMD="$MAGIC_CMD"
7916  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7917  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7918  for ac_dir in $ac_dummy; do
7919    IFS="$lt_save_ifs"
7920    test -z "$ac_dir" && ac_dir=.
7921    if test -f $ac_dir/file; then
7922      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7923      if test -n "$file_magic_test_file"; then
7924        case $deplibs_check_method in
7925        "file_magic "*)
7926          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7927          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7928          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7929            $EGREP "$file_magic_regex" > /dev/null; then
7930            :
7931          else
7932            cat <<EOF 1>&2
7933
7934*** Warning: the command libtool uses to detect shared libraries,
7935*** $file_magic_cmd, produces output that libtool cannot recognize.
7936*** The result is that libtool may fail to recognize shared libraries
7937*** as such.  This will affect the creation of libtool libraries that
7938*** depend on shared libraries, but programs linked with such libtool
7939*** libraries will work regardless of this problem.  Nevertheless, you
7940*** may want to report the problem to your system manager and/or to
7941*** bug-libtool@gnu.org
7942
7943EOF
7944          fi ;;
7945        esac
7946      fi
7947      break
7948    fi
7949  done
7950  IFS="$lt_save_ifs"
7951  MAGIC_CMD="$lt_save_MAGIC_CMD"
7952  ;;
7953esac
7954fi
7955
7956MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7957if test -n "$MAGIC_CMD"; then
7958  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7959echo "${ECHO_T}$MAGIC_CMD" >&6
7960else
7961  echo "$as_me:$LINENO: result: no" >&5
7962echo "${ECHO_T}no" >&6
7963fi
7964
7965  else
7966    MAGIC_CMD=:
7967  fi
7968fi
7969
7970  fi
7971  ;;
7972esac
7973
7974enable_dlopen=no
7975enable_win32_dll=no
7976
7977# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7978if test "${enable_libtool_lock+set}" = set; then
7979  enableval="$enable_libtool_lock"
7980
7981fi;
7982test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7983
7984
7985# Check whether --with-pic or --without-pic was given.
7986if test "${with_pic+set}" = set; then
7987  withval="$with_pic"
7988  pic_mode="$withval"
7989else
7990  pic_mode=default
7991fi;
7992test -z "$pic_mode" && pic_mode=default
7993
7994# Use C for the default configuration in the libtool script
7995tagname=
7996lt_save_CC="$CC"
7997ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003
8004# Source file extension for C test sources.
8005ac_ext=c
8006
8007# Object file extension for compiled C test sources.
8008objext=o
8009objext=$objext
8010
8011# Code to be used in simple compile tests
8012lt_simple_compile_test_code="int some_variable = 0;\n"
8013
8014# Code to be used in simple link tests
8015lt_simple_link_test_code='int main(){return(0);}\n'
8016
8017
8018# If no C compiler was specified, use CC.
8019LTCC=${LTCC-"$CC"}
8020
8021# If no C compiler flags were specified, use CFLAGS.
8022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8023
8024# Allow CC to be a program name with arguments.
8025compiler=$CC
8026
8027
8028# save warnings/boilerplate of simple test code
8029ac_outfile=conftest.$ac_objext
8030printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8031eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032_lt_compiler_boilerplate=`cat conftest.err`
8033$rm conftest*
8034
8035ac_outfile=conftest.$ac_objext
8036printf "$lt_simple_link_test_code" >conftest.$ac_ext
8037eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8038_lt_linker_boilerplate=`cat conftest.err`
8039$rm conftest*
8040
8041
8042## CAVEAT EMPTOR:
8043## There is no encapsulation within the following macros, do not change
8044## the running order or otherwise move them around unless you know exactly
8045## what you are doing...
8046
8047lt_prog_compiler_no_builtin_flag=
8048
8049if test "$GCC" = yes; then
8050  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8051
8052
8053echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8054echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8055if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8056  echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058  lt_cv_prog_compiler_rtti_exceptions=no
8059  ac_outfile=conftest.$ac_objext
8060   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8061   lt_compiler_flag="-fno-rtti -fno-exceptions"
8062   # Insert the option either (1) after the last *FLAGS variable, or
8063   # (2) before a word containing "conftest.", or (3) at the end.
8064   # Note that $ac_compile itself does not contain backslashes and begins
8065   # with a dollar sign (not a hyphen), so the echo should work correctly.
8066   # The option is referenced via a variable to avoid confusing sed.
8067   lt_compile=`echo "$ac_compile" | $SED \
8068   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070   -e 's:$: $lt_compiler_flag:'`
8071   (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072   (eval "$lt_compile" 2>conftest.err)
8073   ac_status=$?
8074   cat conftest.err >&5
8075   echo "$as_me:8075: \$? = $ac_status" >&5
8076   if (exit $ac_status) && test -s "$ac_outfile"; then
8077     # The compiler can only warn and ignore the option if not recognized
8078     # So say no if there are warnings other than the usual output.
8079     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8080     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8082       lt_cv_prog_compiler_rtti_exceptions=yes
8083     fi
8084   fi
8085   $rm conftest*
8086
8087fi
8088echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8089echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8090
8091if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8092    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8093else
8094    :
8095fi
8096
8097fi
8098
8099lt_prog_compiler_wl=
8100lt_prog_compiler_pic=
8101lt_prog_compiler_static=
8102
8103echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8104echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8105
8106  if test "$GCC" = yes; then
8107    lt_prog_compiler_wl='-Wl,'
8108    lt_prog_compiler_static='-static'
8109
8110    case $host_os in
8111      aix*)
8112      # All AIX code is PIC.
8113      if test "$host_cpu" = ia64; then
8114        # AIX 5 now supports IA64 processor
8115        lt_prog_compiler_static='-Bstatic'
8116      fi
8117      ;;
8118
8119    amigaos*)
8120      # FIXME: we need at least 68020 code to build shared libraries, but
8121      # adding the `-m68020' flag to GCC prevents building anything better,
8122      # like `-m68040'.
8123      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8124      ;;
8125
8126    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127      # PIC is the default for these OSes.
8128      ;;
8129
8130    mingw* | pw32* | os2*)
8131      # This hack is so that the source file can tell whether it is being
8132      # built for inclusion in a dll (and should export symbols for example).
8133      lt_prog_compiler_pic='-DDLL_EXPORT'
8134      ;;
8135
8136    darwin* | rhapsody*)
8137      # PIC is the default on this platform
8138      # Common symbols not allowed in MH_DYLIB files
8139      lt_prog_compiler_pic='-fno-common'
8140      ;;
8141
8142    interix3*)
8143      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8144      # Instead, we relocate shared libraries at runtime.
8145      ;;
8146
8147    msdosdjgpp*)
8148      # Just because we use GCC doesn't mean we suddenly get shared libraries
8149      # on systems that don't support them.
8150      lt_prog_compiler_can_build_shared=no
8151      enable_shared=no
8152      ;;
8153
8154    sysv4*MP*)
8155      if test -d /usr/nec; then
8156        lt_prog_compiler_pic=-Kconform_pic
8157      fi
8158      ;;
8159
8160    hpux*)
8161      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8162      # not for PA HP-UX.
8163      case $host_cpu in
8164      hppa*64*|ia64*)
8165        # +Z the default
8166        ;;
8167      *)
8168        lt_prog_compiler_pic='-fPIC'
8169        ;;
8170      esac
8171      ;;
8172
8173    *)
8174      lt_prog_compiler_pic='-fPIC'
8175      ;;
8176    esac
8177  else
8178    # PORTME Check for flag to pass linker flags through the system compiler.
8179    case $host_os in
8180    aix*)
8181      lt_prog_compiler_wl='-Wl,'
8182      if test "$host_cpu" = ia64; then
8183        # AIX 5 now supports IA64 processor
8184        lt_prog_compiler_static='-Bstatic'
8185      else
8186        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8187      fi
8188      ;;
8189      darwin*)
8190        # PIC is the default on this platform
8191        # Common symbols not allowed in MH_DYLIB files
8192       case $cc_basename in
8193         xlc*)
8194         lt_prog_compiler_pic='-qnocommon'
8195         lt_prog_compiler_wl='-Wl,'
8196         ;;
8197       esac
8198       ;;
8199
8200    mingw* | pw32* | os2*)
8201      # This hack is so that the source file can tell whether it is being
8202      # built for inclusion in a dll (and should export symbols for example).
8203      lt_prog_compiler_pic='-DDLL_EXPORT'
8204      ;;
8205
8206    hpux9* | hpux10* | hpux11*)
8207      lt_prog_compiler_wl='-Wl,'
8208      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8209      # not for PA HP-UX.
8210      case $host_cpu in
8211      hppa*64*|ia64*)
8212        # +Z the default
8213        ;;
8214      *)
8215        lt_prog_compiler_pic='+Z'
8216        ;;
8217      esac
8218      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8219      lt_prog_compiler_static='${wl}-a ${wl}archive'
8220      ;;
8221
8222    irix5* | irix6* | nonstopux*)
8223      lt_prog_compiler_wl='-Wl,'
8224      # PIC (with -KPIC) is the default.
8225      lt_prog_compiler_static='-non_shared'
8226      ;;
8227
8228    newsos6)
8229      lt_prog_compiler_pic='-KPIC'
8230      lt_prog_compiler_static='-Bstatic'
8231      ;;
8232
8233    linux*)
8234      case $cc_basename in
8235      icc* | ecc*)
8236        lt_prog_compiler_wl='-Wl,'
8237        lt_prog_compiler_pic='-KPIC'
8238        lt_prog_compiler_static='-static'
8239        ;;
8240      pgcc* | pgf77* | pgf90* | pgf95*)
8241        # Portland Group compilers (*not* the Pentium gcc compiler,
8242        # which looks to be a dead project)
8243        lt_prog_compiler_wl='-Wl,'
8244        lt_prog_compiler_pic='-fpic'
8245        lt_prog_compiler_static='-Bstatic'
8246        ;;
8247      ccc*)
8248        lt_prog_compiler_wl='-Wl,'
8249        # All Alpha code is PIC.
8250        lt_prog_compiler_static='-non_shared'
8251        ;;
8252      esac
8253      ;;
8254
8255    osf3* | osf4* | osf5*)
8256      lt_prog_compiler_wl='-Wl,'
8257      # All OSF/1 code is PIC.
8258      lt_prog_compiler_static='-non_shared'
8259      ;;
8260
8261    solaris*)
8262      lt_prog_compiler_pic='-KPIC'
8263      lt_prog_compiler_static='-Bstatic'
8264      case $cc_basename in
8265      f77* | f90* | f95*)
8266        lt_prog_compiler_wl='-Qoption ld ';;
8267      *)
8268        lt_prog_compiler_wl='-Wl,';;
8269      esac
8270      ;;
8271
8272    sunos4*)
8273      lt_prog_compiler_wl='-Qoption ld '
8274      lt_prog_compiler_pic='-PIC'
8275      lt_prog_compiler_static='-Bstatic'
8276      ;;
8277
8278    sysv4 | sysv4.2uw2* | sysv4.3*)
8279      lt_prog_compiler_wl='-Wl,'
8280      lt_prog_compiler_pic='-KPIC'
8281      lt_prog_compiler_static='-Bstatic'
8282      ;;
8283
8284    sysv4*MP*)
8285      if test -d /usr/nec ;then
8286        lt_prog_compiler_pic='-Kconform_pic'
8287        lt_prog_compiler_static='-Bstatic'
8288      fi
8289      ;;
8290
8291    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8292      lt_prog_compiler_wl='-Wl,'
8293      lt_prog_compiler_pic='-KPIC'
8294      lt_prog_compiler_static='-Bstatic'
8295      ;;
8296
8297    unicos*)
8298      lt_prog_compiler_wl='-Wl,'
8299      lt_prog_compiler_can_build_shared=no
8300      ;;
8301
8302    uts4*)
8303      lt_prog_compiler_pic='-pic'
8304      lt_prog_compiler_static='-Bstatic'
8305      ;;
8306
8307    *)
8308      lt_prog_compiler_can_build_shared=no
8309      ;;
8310    esac
8311  fi
8312
8313echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8314echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8315
8316#
8317# Check to make sure the PIC flag actually works.
8318#
8319if test -n "$lt_prog_compiler_pic"; then
8320
8321echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8322echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8323if test "${lt_prog_compiler_pic_works+set}" = set; then
8324  echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326  lt_prog_compiler_pic_works=no
8327  ac_outfile=conftest.$ac_objext
8328   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8329   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8330   # Insert the option either (1) after the last *FLAGS variable, or
8331   # (2) before a word containing "conftest.", or (3) at the end.
8332   # Note that $ac_compile itself does not contain backslashes and begins
8333   # with a dollar sign (not a hyphen), so the echo should work correctly.
8334   # The option is referenced via a variable to avoid confusing sed.
8335   lt_compile=`echo "$ac_compile" | $SED \
8336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338   -e 's:$: $lt_compiler_flag:'`
8339   (eval echo "\"\$as_me:8339: $lt_compile\"" >&5)
8340   (eval "$lt_compile" 2>conftest.err)
8341   ac_status=$?
8342   cat conftest.err >&5
8343   echo "$as_me:8343: \$? = $ac_status" >&5
8344   if (exit $ac_status) && test -s "$ac_outfile"; then
8345     # The compiler can only warn and ignore the option if not recognized
8346     # So say no if there are warnings other than the usual output.
8347     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8348     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8349     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8350       lt_prog_compiler_pic_works=yes
8351     fi
8352   fi
8353   $rm conftest*
8354
8355fi
8356echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8357echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8358
8359if test x"$lt_prog_compiler_pic_works" = xyes; then
8360    case $lt_prog_compiler_pic in
8361     "" | " "*) ;;
8362     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8363     esac
8364else
8365    lt_prog_compiler_pic=
8366     lt_prog_compiler_can_build_shared=no
8367fi
8368
8369fi
8370case $host_os in
8371  # For platforms which do not support PIC, -DPIC is meaningless:
8372  *djgpp*)
8373    lt_prog_compiler_pic=
8374    ;;
8375  *)
8376    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8377    ;;
8378esac
8379
8380#
8381# Check to make sure the static flag actually works.
8382#
8383wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8384echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8385echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8386if test "${lt_prog_compiler_static_works+set}" = set; then
8387  echo $ECHO_N "(cached) $ECHO_C" >&6
8388else
8389  lt_prog_compiler_static_works=no
8390   save_LDFLAGS="$LDFLAGS"
8391   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8392   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8393   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8394     # The linker can only warn and ignore the option if not recognized
8395     # So say no if there are warnings
8396     if test -s conftest.err; then
8397       # Append any errors to the config.log.
8398       cat conftest.err 1>&5
8399       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8400       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8401       if diff conftest.exp conftest.er2 >/dev/null; then
8402         lt_prog_compiler_static_works=yes
8403       fi
8404     else
8405       lt_prog_compiler_static_works=yes
8406     fi
8407   fi
8408   $rm conftest*
8409   LDFLAGS="$save_LDFLAGS"
8410
8411fi
8412echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8413echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8414
8415if test x"$lt_prog_compiler_static_works" = xyes; then
8416    :
8417else
8418    lt_prog_compiler_static=
8419fi
8420
8421
8422echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8423echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8424if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427  lt_cv_prog_compiler_c_o=no
8428   $rm -r conftest 2>/dev/null
8429   mkdir conftest
8430   cd conftest
8431   mkdir out
8432   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
8434   lt_compiler_flag="-o out/conftest2.$ac_objext"
8435   # Insert the option either (1) after the last *FLAGS variable, or
8436   # (2) before a word containing "conftest.", or (3) at the end.
8437   # Note that $ac_compile itself does not contain backslashes and begins
8438   # with a dollar sign (not a hyphen), so the echo should work correctly.
8439   lt_compile=`echo "$ac_compile" | $SED \
8440   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442   -e 's:$: $lt_compiler_flag:'`
8443   (eval echo "\"\$as_me:8443: $lt_compile\"" >&5)
8444   (eval "$lt_compile" 2>out/conftest.err)
8445   ac_status=$?
8446   cat out/conftest.err >&5
8447   echo "$as_me:8447: \$? = $ac_status" >&5
8448   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8449   then
8450     # The compiler can only warn and ignore the option if not recognized
8451     # So say no if there are warnings
8452     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8453     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8454     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8455       lt_cv_prog_compiler_c_o=yes
8456     fi
8457   fi
8458   chmod u+w . 2>&5
8459   $rm conftest*
8460   # SGI C++ compiler will create directory out/ii_files/ for
8461   # template instantiation
8462   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8463   $rm out/* && rmdir out
8464   cd ..
8465   rmdir conftest
8466   $rm conftest*
8467
8468fi
8469echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8470echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8471
8472
8473hard_links="nottested"
8474if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8475  # do not overwrite the value of need_locks provided by the user
8476  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8477echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8478  hard_links=yes
8479  $rm conftest*
8480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8481  touch conftest.a
8482  ln conftest.a conftest.b 2>&5 || hard_links=no
8483  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8484  echo "$as_me:$LINENO: result: $hard_links" >&5
8485echo "${ECHO_T}$hard_links" >&6
8486  if test "$hard_links" = no; then
8487    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8488echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8489    need_locks=warn
8490  fi
8491else
8492  need_locks=no
8493fi
8494
8495echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8496echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8497
8498  runpath_var=
8499  allow_undefined_flag=
8500  enable_shared_with_static_runtimes=no
8501  archive_cmds=
8502  archive_expsym_cmds=
8503  old_archive_From_new_cmds=
8504  old_archive_from_expsyms_cmds=
8505  export_dynamic_flag_spec=
8506  whole_archive_flag_spec=
8507  thread_safe_flag_spec=
8508  hardcode_libdir_flag_spec=
8509  hardcode_libdir_flag_spec_ld=
8510  hardcode_libdir_separator=
8511  hardcode_direct=no
8512  hardcode_minus_L=no
8513  hardcode_shlibpath_var=unsupported
8514  link_all_deplibs=unknown
8515  hardcode_automatic=no
8516  module_cmds=
8517  module_expsym_cmds=
8518  always_export_symbols=no
8519  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8520  # include_expsyms should be a list of space-separated symbols to be *always*
8521  # included in the symbol list
8522  include_expsyms=
8523  # exclude_expsyms can be an extended regexp of symbols to exclude
8524  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8525  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8526  # as well as any symbol that contains `d'.
8527  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8528  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8529  # platforms (ab)use it in PIC code, but their linkers get confused if
8530  # the symbol is explicitly referenced.  Since portable code cannot
8531  # rely on this symbol name, it's probably fine to never include it in
8532  # preloaded symbol tables.
8533  extract_expsyms_cmds=
8534  # Just being paranoid about ensuring that cc_basename is set.
8535  for cc_temp in $compiler""; do
8536  case $cc_temp in
8537    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8538    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8539    \-*) ;;
8540    *) break;;
8541  esac
8542done
8543cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8544
8545  case $host_os in
8546  cygwin* | mingw* | pw32*)
8547    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8548    # When not using gcc, we currently assume that we are using
8549    # Microsoft Visual C++.
8550    if test "$GCC" != yes; then
8551      with_gnu_ld=no
8552    fi
8553    ;;
8554  interix*)
8555    # we just hope/assume this is gcc and not c89 (= MSVC++)
8556    with_gnu_ld=yes
8557    ;;
8558  openbsd*)
8559    with_gnu_ld=no
8560    ;;
8561  esac
8562
8563  ld_shlibs=yes
8564  if test "$with_gnu_ld" = yes; then
8565    # If archive_cmds runs LD, not CC, wlarc should be empty
8566    wlarc='${wl}'
8567
8568    # Set some defaults for GNU ld with shared library support. These
8569    # are reset later if shared libraries are not supported. Putting them
8570    # here allows them to be overridden if necessary.
8571    runpath_var=LD_RUN_PATH
8572    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8573    export_dynamic_flag_spec='${wl}--export-dynamic'
8574    # ancient GNU ld didn't support --whole-archive et. al.
8575    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8576        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577      else
8578        whole_archive_flag_spec=
8579    fi
8580    supports_anon_versioning=no
8581    case `$LD -v 2>/dev/null` in
8582      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8583      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8584      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8585      *\ 2.11.*) ;; # other 2.11 versions
8586      *) supports_anon_versioning=yes ;;
8587    esac
8588
8589    # See if GNU ld supports shared libraries.
8590    case $host_os in
8591    aix3* | aix4* | aix5*)
8592      # On AIX/PPC, the GNU linker is very broken
8593      if test "$host_cpu" != ia64; then
8594        ld_shlibs=no
8595        cat <<EOF 1>&2
8596
8597*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8598*** to be unable to reliably create shared libraries on AIX.
8599*** Therefore, libtool is disabling shared libraries support.  If you
8600*** really care for shared libraries, you may want to modify your PATH
8601*** so that a non-GNU linker is found, and then restart.
8602
8603EOF
8604      fi
8605      ;;
8606
8607    amigaos*)
8608      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)'
8609      hardcode_libdir_flag_spec='-L$libdir'
8610      hardcode_minus_L=yes
8611
8612      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8613      # that the semantics of dynamic libraries on AmigaOS, at least up
8614      # to version 4, is to share data among multiple programs linked
8615      # with the same dynamic library.  Since this doesn't match the
8616      # behavior of shared libraries on other platforms, we can't use
8617      # them.
8618      ld_shlibs=no
8619      ;;
8620
8621    beos*)
8622      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8623        allow_undefined_flag=unsupported
8624        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8625        # support --undefined.  This deserves some investigation.  FIXME
8626        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627      else
8628        ld_shlibs=no
8629      fi
8630      ;;
8631
8632    cygwin* | mingw* | pw32*)
8633      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8634      # as there is no search path for DLLs.
8635      hardcode_libdir_flag_spec='-L$libdir'
8636      allow_undefined_flag=unsupported
8637      always_export_symbols=no
8638      enable_shared_with_static_runtimes=yes
8639      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8640
8641      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8642        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8643        # If the export-symbols file already is a .def file (1st line
8644        # is EXPORTS), use it as is; otherwise, prepend...
8645        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8646          cp $export_symbols $output_objdir/$soname.def;
8647        else
8648          echo EXPORTS > $output_objdir/$soname.def;
8649          cat $export_symbols >> $output_objdir/$soname.def;
8650        fi~
8651        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8652      else
8653        ld_shlibs=no
8654      fi
8655      ;;
8656
8657    interix3*)
8658      hardcode_direct=no
8659      hardcode_shlibpath_var=no
8660      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661      export_dynamic_flag_spec='${wl}-E'
8662      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8663      # Instead, shared libraries are loaded at an image base (0x10000000 by
8664      # default) and relocated if they conflict, which is a slow very memory
8665      # consuming and fragmenting process.  To avoid this, we pick a random,
8666      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8667      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8668      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8669      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'
8670      ;;
8671
8672    linux*)
8673      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8674        tmp_addflag=
8675        case $cc_basename,$host_cpu in
8676        pgcc*)                          # Portland Group C compiler
8677          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'
8678          tmp_addflag=' $pic_flag'
8679          ;;
8680        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8681          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'
8682          tmp_addflag=' $pic_flag -Mnomain' ;;
8683        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8684          tmp_addflag=' -i_dynamic' ;;
8685        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8686          tmp_addflag=' -i_dynamic -nofor_main' ;;
8687        ifc* | ifort*)                  # Intel Fortran compiler
8688          tmp_addflag=' -nofor_main' ;;
8689        esac
8690        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691
8692        if test $supports_anon_versioning = yes; then
8693          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8694  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8695  $echo "local: *; };" >> $output_objdir/$libname.ver~
8696          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8697        fi
8698      else
8699        ld_shlibs=no
8700      fi
8701      ;;
8702
8703    netbsd*)
8704      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8705        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8706        wlarc=
8707      else
8708        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8710      fi
8711      ;;
8712
8713    solaris*)
8714      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8715        ld_shlibs=no
8716        cat <<EOF 1>&2
8717
8718*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8719*** create shared libraries on Solaris systems.  Therefore, libtool
8720*** is disabling shared libraries support.  We urge you to upgrade GNU
8721*** binutils to release 2.9.1 or newer.  Another option is to modify
8722*** your PATH or compiler configuration so that the native linker is
8723*** used, and then restart.
8724
8725EOF
8726      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8727        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729      else
8730        ld_shlibs=no
8731      fi
8732      ;;
8733
8734    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8735      case `$LD -v 2>&1` in
8736        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8737        ld_shlibs=no
8738        cat <<_LT_EOF 1>&2
8739
8740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8741*** reliably create shared libraries on SCO systems.  Therefore, libtool
8742*** is disabling shared libraries support.  We urge you to upgrade GNU
8743*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8744*** your PATH or compiler configuration so that the native linker is
8745*** used, and then restart.
8746
8747_LT_EOF
8748        ;;
8749        *)
8750          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8751            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8752            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8753            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8754          else
8755            ld_shlibs=no
8756          fi
8757        ;;
8758      esac
8759      ;;
8760
8761    sunos4*)
8762      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763      wlarc=
8764      hardcode_direct=yes
8765      hardcode_shlibpath_var=no
8766      ;;
8767
8768    *)
8769      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8770        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8772      else
8773        ld_shlibs=no
8774      fi
8775      ;;
8776    esac
8777
8778    if test "$ld_shlibs" = no; then
8779      runpath_var=
8780      hardcode_libdir_flag_spec=
8781      export_dynamic_flag_spec=
8782      whole_archive_flag_spec=
8783    fi
8784  else
8785    # PORTME fill in a description of your system's linker (not GNU ld)
8786    case $host_os in
8787    aix3*)
8788      allow_undefined_flag=unsupported
8789      always_export_symbols=yes
8790      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'
8791      # Note: this linker hardcodes the directories in LIBPATH if there
8792      # are no directories specified by -L.
8793      hardcode_minus_L=yes
8794      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8795        # Neither direct hardcoding nor static linking is supported with a
8796        # broken collect2.
8797        hardcode_direct=unsupported
8798      fi
8799      ;;
8800
8801    aix4* | aix5*)
8802      if test "$host_cpu" = ia64; then
8803        # On IA64, the linker does run time linking by default, so we don't
8804        # have to do anything special.
8805        aix_use_runtimelinking=no
8806        exp_sym_flag='-Bexport'
8807        no_entry_flag=""
8808      else
8809        # If we're using GNU nm, then we don't want the "-C" option.
8810        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8811        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8812          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'
8813        else
8814          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'
8815        fi
8816        aix_use_runtimelinking=no
8817
8818        # Test if we are trying to use run time linking or normal
8819        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820        # need to do runtime linking.
8821        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8822          for ld_flag in $LDFLAGS; do
8823          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824            aix_use_runtimelinking=yes
8825            break
8826          fi
8827          done
8828          ;;
8829        esac
8830
8831        exp_sym_flag='-bexport'
8832        no_entry_flag='-bnoentry'
8833      fi
8834
8835      # When large executables or shared objects are built, AIX ld can
8836      # have problems creating the table of contents.  If linking a library
8837      # or program results in "error TOC overflow" add -mminimal-toc to
8838      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8839      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8840
8841      archive_cmds=''
8842      hardcode_direct=yes
8843      hardcode_libdir_separator=':'
8844      link_all_deplibs=yes
8845
8846      if test "$GCC" = yes; then
8847        case $host_os in aix4.[012]|aix4.[012].*)
8848        # We only want to do this on AIX 4.2 and lower, the check
8849        # below for broken collect2 doesn't work under 4.3+
8850          collect2name=`${CC} -print-prog-name=collect2`
8851          if test -f "$collect2name" && \
8852           strings "$collect2name" | grep resolve_lib_name >/dev/null
8853          then
8854          # We have reworked collect2
8855          hardcode_direct=yes
8856          else
8857          # We have old collect2
8858          hardcode_direct=unsupported
8859          # It fails to find uninstalled libraries when the uninstalled
8860          # path is not listed in the libpath.  Setting hardcode_minus_L
8861          # to unsupported forces relinking
8862          hardcode_minus_L=yes
8863          hardcode_libdir_flag_spec='-L$libdir'
8864          hardcode_libdir_separator=
8865          fi
8866          ;;
8867        esac
8868        shared_flag='-shared'
8869        if test "$aix_use_runtimelinking" = yes; then
8870          shared_flag="$shared_flag "'${wl}-G'
8871        fi
8872      else
8873        # not using gcc
8874        if test "$host_cpu" = ia64; then
8875        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876        # chokes on -Wl,-G. The following line is correct:
8877          shared_flag='-G'
8878        else
8879          if test "$aix_use_runtimelinking" = yes; then
8880            shared_flag='${wl}-G'
8881          else
8882            shared_flag='${wl}-bM:SRE'
8883          fi
8884        fi
8885      fi
8886
8887      # It seems that -bexpall does not export symbols beginning with
8888      # underscore (_), so it is better to generate a list of symbols to export.
8889      always_export_symbols=yes
8890      if test "$aix_use_runtimelinking" = yes; then
8891        # Warning - without using the other runtime loading flags (-brtl),
8892        # -berok will link without error, but may produce a broken library.
8893        allow_undefined_flag='-berok'
8894       # Determine the default libpath from the value encoded in an empty executable.
8895       cat >conftest.$ac_ext <<_ACEOF
8896/* confdefs.h.  */
8897_ACEOF
8898cat confdefs.h >>conftest.$ac_ext
8899cat >>conftest.$ac_ext <<_ACEOF
8900/* end confdefs.h.  */
8901
8902int
8903main ()
8904{
8905
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext conftest$ac_exeext
8911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912  (eval $ac_link) 2>conftest.er1
8913  ac_status=$?
8914  grep -v '^ *+' conftest.er1 >conftest.err
8915  rm -f conftest.er1
8916  cat conftest.err >&5
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); } &&
8919         { ac_try='test -z "$ac_c_werror_flag"
8920                         || test ! -s conftest.err'
8921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922  (eval $ac_try) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; } &&
8926         { ac_try='test -s conftest$ac_exeext'
8927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928  (eval $ac_try) 2>&5
8929  ac_status=$?
8930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931  (exit $ac_status); }; }; then
8932
8933aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8934}'`
8935# Check for a 64-bit object if we didn't find anything.
8936if 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; }
8937}'`; fi
8938else
8939  echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
8942fi
8943rm -f conftest.err conftest.$ac_objext \
8944      conftest$ac_exeext conftest.$ac_ext
8945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8946
8947       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8948        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"
8949       else
8950        if test "$host_cpu" = ia64; then
8951          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8952          allow_undefined_flag="-z nodefs"
8953          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"
8954        else
8955         # Determine the default libpath from the value encoded in an empty executable.
8956         cat >conftest.$ac_ext <<_ACEOF
8957/* confdefs.h.  */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h.  */
8962
8963int
8964main ()
8965{
8966
8967  ;
8968  return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext conftest$ac_exeext
8972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973  (eval $ac_link) 2>conftest.er1
8974  ac_status=$?
8975  grep -v '^ *+' conftest.er1 >conftest.err
8976  rm -f conftest.er1
8977  cat conftest.err >&5
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } &&
8980         { ac_try='test -z "$ac_c_werror_flag"
8981                         || test ! -s conftest.err'
8982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983  (eval $ac_try) 2>&5
8984  ac_status=$?
8985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986  (exit $ac_status); }; } &&
8987         { ac_try='test -s conftest$ac_exeext'
8988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989  (eval $ac_try) 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); }; }; then
8993
8994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8995}'`
8996# Check for a 64-bit object if we didn't find anything.
8997if 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; }
8998}'`; fi
8999else
9000  echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003fi
9004rm -f conftest.err conftest.$ac_objext \
9005      conftest$ac_exeext conftest.$ac_ext
9006if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9007
9008         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9009          # Warning - without using the other run time loading flags,
9010          # -berok will link without error, but may produce a broken library.
9011          no_undefined_flag=' ${wl}-bernotok'
9012          allow_undefined_flag=' ${wl}-berok'
9013          # Exported symbols can be pulled into shared objects from archives
9014          whole_archive_flag_spec='$convenience'
9015          archive_cmds_need_lc=yes
9016          # This is similar to how AIX traditionally builds its shared libraries.
9017          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'
9018        fi
9019      fi
9020      ;;
9021
9022    amigaos*)
9023      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)'
9024      hardcode_libdir_flag_spec='-L$libdir'
9025      hardcode_minus_L=yes
9026      # see comment about different semantics on the GNU ld section
9027      ld_shlibs=no
9028      ;;
9029
9030    bsdi[45]*)
9031      export_dynamic_flag_spec=-rdynamic
9032      ;;
9033
9034    cygwin* | mingw* | pw32*)
9035      # When not using gcc, we currently assume that we are using
9036      # Microsoft Visual C++.
9037      # hardcode_libdir_flag_spec is actually meaningless, as there is
9038      # no search path for DLLs.
9039      hardcode_libdir_flag_spec=' '
9040      allow_undefined_flag=unsupported
9041      # Tell ltmain to make .lib files, not .a files.
9042      libext=lib
9043      # Tell ltmain to make .dll files, not .so files.
9044      shrext_cmds=".dll"
9045      # FIXME: Setting linknames here is a bad hack.
9046      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9047      # The linker will automatically build a .lib file if we build a DLL.
9048      old_archive_From_new_cmds='true'
9049      # FIXME: Should let the user specify the lib program.
9050      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9051      fix_srcfile_path='`cygpath -w "$srcfile"`'
9052      enable_shared_with_static_runtimes=yes
9053      ;;
9054
9055    darwin* | rhapsody*)
9056      case $host_os in
9057        rhapsody* | darwin1.[012])
9058         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9059         ;;
9060       *) # Darwin 1.3 on
9061         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9062           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9063         else
9064           case ${MACOSX_DEPLOYMENT_TARGET} in
9065             10.[012])
9066               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9067               ;;
9068             10.*)
9069               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9070               ;;
9071           esac
9072         fi
9073         ;;
9074      esac
9075      archive_cmds_need_lc=no
9076      hardcode_direct=no
9077      hardcode_automatic=yes
9078      hardcode_shlibpath_var=unsupported
9079      whole_archive_flag_spec=''
9080      link_all_deplibs=yes
9081    if test "$GCC" = yes ; then
9082        output_verbose_link_cmd='echo'
9083        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9084      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9085      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9086      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}'
9087      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}'
9088    else
9089      case $cc_basename in
9090        xlc*)
9091         output_verbose_link_cmd='echo'
9092         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9093         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9094          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9095         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}'
9096          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}'
9097          ;;
9098       *)
9099         ld_shlibs=no
9100          ;;
9101      esac
9102    fi
9103      ;;
9104
9105    dgux*)
9106      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107      hardcode_libdir_flag_spec='-L$libdir'
9108      hardcode_shlibpath_var=no
9109      ;;
9110
9111    freebsd1*)
9112      ld_shlibs=no
9113      ;;
9114
9115    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9116    # support.  Future versions do this automatically, but an explicit c++rt0.o
9117    # does not break anything, and helps significantly (at the cost of a little
9118    # extra space).
9119    freebsd2.2*)
9120      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9121      hardcode_libdir_flag_spec='-R$libdir'
9122      hardcode_direct=yes
9123      hardcode_shlibpath_var=no
9124      ;;
9125
9126    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9127    freebsd2*)
9128      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129      hardcode_direct=yes
9130      hardcode_minus_L=yes
9131      hardcode_shlibpath_var=no
9132      ;;
9133
9134    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9135    freebsd* | kfreebsd*-gnu | dragonfly*)
9136      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9137      hardcode_libdir_flag_spec='-R$libdir'
9138      hardcode_direct=yes
9139      hardcode_shlibpath_var=no
9140      ;;
9141
9142    hpux9*)
9143      if test "$GCC" = yes; then
9144        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'
9145      else
9146        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'
9147      fi
9148      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9149      hardcode_libdir_separator=:
9150      hardcode_direct=yes
9151
9152      # hardcode_minus_L: Not really in the search PATH,
9153      # but as the default location of the library.
9154      hardcode_minus_L=yes
9155      export_dynamic_flag_spec='${wl}-E'
9156      ;;
9157
9158    hpux10*)
9159      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9160        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161      else
9162        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9163      fi
9164      if test "$with_gnu_ld" = no; then
9165        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166        hardcode_libdir_separator=:
9167
9168        hardcode_direct=yes
9169        export_dynamic_flag_spec='${wl}-E'
9170
9171        # hardcode_minus_L: Not really in the search PATH,
9172        # but as the default location of the library.
9173        hardcode_minus_L=yes
9174      fi
9175      ;;
9176
9177    hpux11*)
9178      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9179        case $host_cpu in
9180        hppa*64*)
9181          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9182          ;;
9183        ia64*)
9184          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9185          ;;
9186        *)
9187          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9188          ;;
9189        esac
9190      else
9191        case $host_cpu in
9192        hppa*64*)
9193          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194          ;;
9195        ia64*)
9196          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197          ;;
9198        *)
9199          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200          ;;
9201        esac
9202      fi
9203      if test "$with_gnu_ld" = no; then
9204        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9205        hardcode_libdir_separator=:
9206
9207        case $host_cpu in
9208        hppa*64*|ia64*)
9209          hardcode_libdir_flag_spec_ld='+b $libdir'
9210          hardcode_direct=no
9211          hardcode_shlibpath_var=no
9212          ;;
9213        *)
9214          hardcode_direct=yes
9215          export_dynamic_flag_spec='${wl}-E'
9216
9217          # hardcode_minus_L: Not really in the search PATH,
9218          # but as the default location of the library.
9219          hardcode_minus_L=yes
9220          ;;
9221        esac
9222      fi
9223      ;;
9224
9225    irix5* | irix6* | nonstopux*)
9226      if test "$GCC" = yes; then
9227        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'
9228      else
9229        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'
9230        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9231      fi
9232      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233      hardcode_libdir_separator=:
9234      link_all_deplibs=yes
9235      ;;
9236
9237    netbsd*)
9238      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9239        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9240      else
9241        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9242      fi
9243      hardcode_libdir_flag_spec='-R$libdir'
9244      hardcode_direct=yes
9245      hardcode_shlibpath_var=no
9246      ;;
9247
9248    newsos6)
9249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9250      hardcode_direct=yes
9251      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252      hardcode_libdir_separator=:
9253      hardcode_shlibpath_var=no
9254      ;;
9255
9256    openbsd*)
9257      hardcode_direct=yes
9258      hardcode_shlibpath_var=no
9259      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9260        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9262        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9263        export_dynamic_flag_spec='${wl}-E'
9264      else
9265       case $host_os in
9266         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9267           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268           hardcode_libdir_flag_spec='-R$libdir'
9269           ;;
9270         *)
9271           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273           ;;
9274       esac
9275      fi
9276      ;;
9277
9278    os2*)
9279      hardcode_libdir_flag_spec='-L$libdir'
9280      hardcode_minus_L=yes
9281      allow_undefined_flag=unsupported
9282      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'
9283      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284      ;;
9285
9286    osf3*)
9287      if test "$GCC" = yes; then
9288        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289        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'
9290      else
9291        allow_undefined_flag=' -expect_unresolved \*'
9292        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'
9293      fi
9294      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295      hardcode_libdir_separator=:
9296      ;;
9297
9298    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9299      if test "$GCC" = yes; then
9300        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301        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'
9302        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303      else
9304        allow_undefined_flag=' -expect_unresolved \*'
9305        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'
9306        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9307        $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'
9308
9309        # Both c and cxx compiler support -rpath directly
9310        hardcode_libdir_flag_spec='-rpath $libdir'
9311      fi
9312      hardcode_libdir_separator=:
9313      ;;
9314
9315    solaris*)
9316      no_undefined_flag=' -z text'
9317      if test "$GCC" = yes; then
9318        wlarc='${wl}'
9319        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9321          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9322      else
9323        wlarc=''
9324        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9326        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9327      fi
9328      hardcode_libdir_flag_spec='-R$libdir'
9329      hardcode_shlibpath_var=no
9330      case $host_os in
9331      solaris2.[0-5] | solaris2.[0-5].*) ;;
9332      *)
9333        # The compiler driver will combine linker options so we
9334        # cannot just pass the convience library names through
9335        # without $wl, iff we do not link with $LD.
9336        # Luckily, gcc supports the same syntax we need for Sun Studio.
9337        # Supported since Solaris 2.6 (maybe 2.5.1?)
9338        case $wlarc in
9339        '')
9340          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9341        *)
9342          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' ;;
9343        esac ;;
9344      esac
9345      link_all_deplibs=yes
9346      ;;
9347
9348    sunos4*)
9349      if test "x$host_vendor" = xsequent; then
9350        # Use $CC to link under sequent, because it throws in some extra .o
9351        # files that make .init and .fini sections work.
9352        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9353      else
9354        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9355      fi
9356      hardcode_libdir_flag_spec='-L$libdir'
9357      hardcode_direct=yes
9358      hardcode_minus_L=yes
9359      hardcode_shlibpath_var=no
9360      ;;
9361
9362    sysv4)
9363      case $host_vendor in
9364        sni)
9365          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366          hardcode_direct=yes # is this really true???
9367        ;;
9368        siemens)
9369          ## LD is ld it makes a PLAMLIB
9370          ## CC just makes a GrossModule.
9371          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9372          reload_cmds='$CC -r -o $output$reload_objs'
9373          hardcode_direct=no
9374        ;;
9375        motorola)
9376          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378        ;;
9379      esac
9380      runpath_var='LD_RUN_PATH'
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    sysv4.3*)
9385      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386      hardcode_shlibpath_var=no
9387      export_dynamic_flag_spec='-Bexport'
9388      ;;
9389
9390    sysv4*MP*)
9391      if test -d /usr/nec; then
9392        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393        hardcode_shlibpath_var=no
9394        runpath_var=LD_RUN_PATH
9395        hardcode_runpath_var=yes
9396        ld_shlibs=yes
9397      fi
9398      ;;
9399
9400    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9401      no_undefined_flag='${wl}-z,text'
9402      archive_cmds_need_lc=no
9403      hardcode_shlibpath_var=no
9404      runpath_var='LD_RUN_PATH'
9405
9406      if test "$GCC" = yes; then
9407        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409      else
9410        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412      fi
9413      ;;
9414
9415    sysv5* | sco3.2v5* | sco5v6*)
9416      # Note: We can NOT use -z defs as we might desire, because we do not
9417      # link with -lc, and that would cause any symbols used from libc to
9418      # always be unresolved, which means just about no library would
9419      # ever link correctly.  If we're not using GNU ld we use -z text
9420      # though, which does catch some bad symbols but isn't as heavy-handed
9421      # as -z defs.
9422      no_undefined_flag='${wl}-z,text'
9423      allow_undefined_flag='${wl}-z,nodefs'
9424      archive_cmds_need_lc=no
9425      hardcode_shlibpath_var=no
9426      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9427      hardcode_libdir_separator=':'
9428      link_all_deplibs=yes
9429      export_dynamic_flag_spec='${wl}-Bexport'
9430      runpath_var='LD_RUN_PATH'
9431
9432      if test "$GCC" = yes; then
9433        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435      else
9436        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438      fi
9439      ;;
9440
9441    uts4*)
9442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443      hardcode_libdir_flag_spec='-L$libdir'
9444      hardcode_shlibpath_var=no
9445      ;;
9446
9447    *)
9448      ld_shlibs=no
9449      ;;
9450    esac
9451  fi
9452
9453echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9454echo "${ECHO_T}$ld_shlibs" >&6
9455test "$ld_shlibs" = no && can_build_shared=no
9456
9457#
9458# Do we need to explicitly link libc?
9459#
9460case "x$archive_cmds_need_lc" in
9461x|xyes)
9462  # Assume -lc should be added
9463  archive_cmds_need_lc=yes
9464
9465  if test "$enable_shared" = yes && test "$GCC" = yes; then
9466    case $archive_cmds in
9467    *'~'*)
9468      # FIXME: we may have to deal with multi-command sequences.
9469      ;;
9470    '$CC '*)
9471      # Test whether the compiler implicitly links with -lc since on some
9472      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9473      # to ld, don't add -lc before -lgcc.
9474      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9475echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9476      $rm conftest*
9477      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9478
9479      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480  (eval $ac_compile) 2>&5
9481  ac_status=$?
9482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483  (exit $ac_status); } 2>conftest.err; then
9484        soname=conftest
9485        lib=conftest
9486        libobjs=conftest.$ac_objext
9487        deplibs=
9488        wl=$lt_prog_compiler_wl
9489        pic_flag=$lt_prog_compiler_pic
9490        compiler_flags=-v
9491        linker_flags=-v
9492        verstring=
9493        output_objdir=.
9494        libname=conftest
9495        lt_save_allow_undefined_flag=$allow_undefined_flag
9496        allow_undefined_flag=
9497        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9498  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9499  ac_status=$?
9500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501  (exit $ac_status); }
9502        then
9503          archive_cmds_need_lc=no
9504        else
9505          archive_cmds_need_lc=yes
9506        fi
9507        allow_undefined_flag=$lt_save_allow_undefined_flag
9508      else
9509        cat conftest.err 1>&5
9510      fi
9511      $rm conftest*
9512      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9513echo "${ECHO_T}$archive_cmds_need_lc" >&6
9514      ;;
9515    esac
9516  fi
9517  ;;
9518esac
9519
9520echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9522library_names_spec=
9523libname_spec='lib$name'
9524soname_spec=
9525shrext_cmds=".so"
9526postinstall_cmds=
9527postuninstall_cmds=
9528finish_cmds=
9529finish_eval=
9530shlibpath_var=
9531shlibpath_overrides_runpath=unknown
9532version_type=none
9533dynamic_linker="$host_os ld.so"
9534sys_lib_dlsearch_path_spec="/lib /usr/lib"
9535if test "$GCC" = yes; then
9536  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9537  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9538    # if the path contains ";" then we assume it to be the separator
9539    # otherwise default to the standard path separator (i.e. ":") - it is
9540    # assumed that no part of a normal pathname contains ";" but that should
9541    # okay in the real world where ";" in dirpaths is itself problematic.
9542    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9543  else
9544    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9545  fi
9546else
9547  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9548fi
9549need_lib_prefix=unknown
9550hardcode_into_libs=no
9551
9552# when you set need_version to no, make sure it does not cause -set_version
9553# flags to be left without arguments
9554need_version=unknown
9555
9556case $host_os in
9557aix3*)
9558  version_type=linux
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9560  shlibpath_var=LIBPATH
9561
9562  # AIX 3 has no versioning support, so we append a major version to the name.
9563  soname_spec='${libname}${release}${shared_ext}$major'
9564  ;;
9565
9566aix4* | aix5*)
9567  version_type=linux
9568  need_lib_prefix=no
9569  need_version=no
9570  hardcode_into_libs=yes
9571  if test "$host_cpu" = ia64; then
9572    # AIX 5 supports IA64
9573    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9574    shlibpath_var=LD_LIBRARY_PATH
9575  else
9576    # With GCC up to 2.95.x, collect2 would create an import file
9577    # for dependence libraries.  The import file would start with
9578    # the line `#! .'.  This would cause the generated library to
9579    # depend on `.', always an invalid library.  This was fixed in
9580    # development snapshots of GCC prior to 3.0.
9581    case $host_os in
9582      aix4 | aix4.[01] | aix4.[01].*)
9583      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9584           echo ' yes '
9585           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9586        :
9587      else
9588        can_build_shared=no
9589      fi
9590      ;;
9591    esac
9592    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9593    # soname into executable. Probably we can add versioning support to
9594    # collect2, so additional links can be useful in future.
9595    if test "$aix_use_runtimelinking" = yes; then
9596      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9597      # instead of lib<name>.a to let people know that these are not
9598      # typical AIX shared libraries.
9599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600    else
9601      # We preserve .a as extension for shared libraries through AIX4.2
9602      # and later when we are not doing run time linking.
9603      library_names_spec='${libname}${release}.a $libname.a'
9604      soname_spec='${libname}${release}${shared_ext}$major'
9605    fi
9606    shlibpath_var=LIBPATH
9607  fi
9608  ;;
9609
9610amigaos*)
9611  library_names_spec='$libname.ixlibrary $libname.a'
9612  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613  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'
9614  ;;
9615
9616beos*)
9617  library_names_spec='${libname}${shared_ext}'
9618  dynamic_linker="$host_os ld.so"
9619  shlibpath_var=LIBRARY_PATH
9620  ;;
9621
9622bsdi[45]*)
9623  version_type=linux
9624  need_version=no
9625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626  soname_spec='${libname}${release}${shared_ext}$major'
9627  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9630  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9631  # the default ld.so.conf also contains /usr/contrib/lib and
9632  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9633  # libtool to hard-code these into programs
9634  ;;
9635
9636cygwin* | mingw* | pw32*)
9637  version_type=windows
9638  shrext_cmds=".dll"
9639  need_version=no
9640  need_lib_prefix=no
9641
9642  case $GCC,$host_os in
9643  yes,cygwin* | yes,mingw* | yes,pw32*)
9644    library_names_spec='$libname.dll.a'
9645    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9646    postinstall_cmds='base_file=`basename \${file}`~
9647      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9648      dldir=$destdir/`dirname \$dlpath`~
9649      test -d \$dldir || mkdir -p \$dldir~
9650      $install_prog $dir/$dlname \$dldir/$dlname~
9651      chmod a+x \$dldir/$dlname'
9652    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9653      dlpath=$dir/\$dldll~
9654       $rm \$dlpath'
9655    shlibpath_overrides_runpath=yes
9656
9657    case $host_os in
9658    cygwin*)
9659      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9660      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9662      ;;
9663    mingw*)
9664      # MinGW DLLs use traditional 'lib' prefix
9665      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9667      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9668        # It is most probably a Windows format PATH printed by
9669        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9670        # path with ; separators, and with drive letters. We can handle the
9671        # drive letters (cygwin fileutils understands them), so leave them,
9672        # especially as we might pass files found there to a mingw objdump,
9673        # which wouldn't understand a cygwinified path. Ahh.
9674        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9675      else
9676        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9677      fi
9678      ;;
9679    pw32*)
9680      # pw32 DLLs use 'pw' prefix rather than 'lib'
9681      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9682      ;;
9683    esac
9684    ;;
9685
9686  *)
9687    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9688    ;;
9689  esac
9690  dynamic_linker='Win32 ld.exe'
9691  # FIXME: first we should search . and the directory the executable is in
9692  shlibpath_var=PATH
9693  ;;
9694
9695darwin* | rhapsody*)
9696  dynamic_linker="$host_os dyld"
9697  version_type=darwin
9698  need_lib_prefix=no
9699  need_version=no
9700  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9701  soname_spec='${libname}${release}${major}$shared_ext'
9702  shlibpath_overrides_runpath=yes
9703  shlibpath_var=DYLD_LIBRARY_PATH
9704  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9705  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9706  if test "$GCC" = yes; then
9707    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"`
9708  else
9709    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9710  fi
9711  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9712  ;;
9713
9714dgux*)
9715  version_type=linux
9716  need_lib_prefix=no
9717  need_version=no
9718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9719  soname_spec='${libname}${release}${shared_ext}$major'
9720  shlibpath_var=LD_LIBRARY_PATH
9721  ;;
9722
9723freebsd1*)
9724  dynamic_linker=no
9725  ;;
9726
9727kfreebsd*-gnu)
9728  version_type=linux
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  shlibpath_overrides_runpath=no
9735  hardcode_into_libs=yes
9736  dynamic_linker='GNU ld.so'
9737  ;;
9738
9739freebsd* | dragonfly*)
9740  # DragonFly does not have aout.  When/if they implement a new
9741  # versioning mechanism, adjust this.
9742  if test -x /usr/bin/objformat; then
9743    objformat=`/usr/bin/objformat`
9744  else
9745    case $host_os in
9746    freebsd[123]*) objformat=aout ;;
9747    *) objformat=elf ;;
9748    esac
9749  fi
9750  version_type=freebsd-$objformat
9751  case $version_type in
9752    freebsd-elf*)
9753      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9754      need_version=no
9755      need_lib_prefix=no
9756      ;;
9757    freebsd-*)
9758      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9759      need_version=yes
9760      ;;
9761  esac
9762  shlibpath_var=LD_LIBRARY_PATH
9763  case $host_os in
9764  freebsd2*)
9765    shlibpath_overrides_runpath=yes
9766    ;;
9767  freebsd3.[01]* | freebsdelf3.[01]*)
9768    shlibpath_overrides_runpath=yes
9769    hardcode_into_libs=yes
9770    ;;
9771  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9772  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9773    shlibpath_overrides_runpath=no
9774    hardcode_into_libs=yes
9775    ;;
9776  freebsd*) # from 4.6 on
9777    shlibpath_overrides_runpath=yes
9778    hardcode_into_libs=yes
9779    ;;
9780  esac
9781  ;;
9782
9783gnu*)
9784  version_type=linux
9785  need_lib_prefix=no
9786  need_version=no
9787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9788  soname_spec='${libname}${release}${shared_ext}$major'
9789  shlibpath_var=LD_LIBRARY_PATH
9790  hardcode_into_libs=yes
9791  ;;
9792
9793hpux9* | hpux10* | hpux11*)
9794  # Give a soname corresponding to the major version so that dld.sl refuses to
9795  # link against other versions.
9796  version_type=sunos
9797  need_lib_prefix=no
9798  need_version=no
9799  case $host_cpu in
9800  ia64*)
9801    shrext_cmds='.so'
9802    hardcode_into_libs=yes
9803    dynamic_linker="$host_os dld.so"
9804    shlibpath_var=LD_LIBRARY_PATH
9805    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807    soname_spec='${libname}${release}${shared_ext}$major'
9808    if test "X$HPUX_IA64_MODE" = X32; then
9809      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9810    else
9811      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9812    fi
9813    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814    ;;
9815   hppa*64*)
9816     shrext_cmds='.sl'
9817     hardcode_into_libs=yes
9818     dynamic_linker="$host_os dld.sl"
9819     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9820     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822     soname_spec='${libname}${release}${shared_ext}$major'
9823     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9825     ;;
9826   *)
9827    shrext_cmds='.sl'
9828    dynamic_linker="$host_os dld.sl"
9829    shlibpath_var=SHLIB_PATH
9830    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832    soname_spec='${libname}${release}${shared_ext}$major'
9833    ;;
9834  esac
9835  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9836  postinstall_cmds='chmod 555 $lib'
9837  ;;
9838
9839interix3*)
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  shlibpath_overrides_runpath=no
9848  hardcode_into_libs=yes
9849  ;;
9850
9851irix5* | irix6* | nonstopux*)
9852  case $host_os in
9853    nonstopux*) version_type=nonstopux ;;
9854    *)
9855        if test "$lt_cv_prog_gnu_ld" = yes; then
9856                version_type=linux
9857        else
9858                version_type=irix
9859        fi ;;
9860  esac
9861  need_lib_prefix=no
9862  need_version=no
9863  soname_spec='${libname}${release}${shared_ext}$major'
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865  case $host_os in
9866  irix5* | nonstopux*)
9867    libsuff= shlibsuff=
9868    ;;
9869  *)
9870    case $LD in # libtool.m4 will add one of these switches to LD
9871    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872      libsuff= shlibsuff= libmagic=32-bit;;
9873    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874      libsuff=32 shlibsuff=N32 libmagic=N32;;
9875    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877    *) libsuff= shlibsuff= libmagic=never-match;;
9878    esac
9879    ;;
9880  esac
9881  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882  shlibpath_overrides_runpath=no
9883  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885  hardcode_into_libs=yes
9886  ;;
9887
9888# No shared lib support for Linux oldld, aout, or coff.
9889linux*oldld* | linux*aout* | linux*coff*)
9890  dynamic_linker=no
9891  ;;
9892
9893# This must be Linux ELF.
9894linux*)
9895  version_type=linux
9896  need_lib_prefix=no
9897  need_version=no
9898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899  soname_spec='${libname}${release}${shared_ext}$major'
9900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=no
9903  # This implies no fast_install, which is unacceptable.
9904  # Some rework will be needed to allow for fast_install
9905  # before this can be enabled.
9906  hardcode_into_libs=yes
9907
9908  # Append ld.so.conf contents to the search path
9909  if test -f /etc/ld.so.conf; then
9910    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' ' '`
9911    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9912  fi
9913
9914  # We used to test for /lib/ld.so.1 and disable shared libraries on
9915  # powerpc, because MkLinux only supported shared libraries with the
9916  # GNU dynamic linker.  Since this was broken with cross compilers,
9917  # most powerpc-linux boxes support dynamic linking these days and
9918  # people can always --disable-shared, the test was removed, and we
9919  # assume the GNU/Linux dynamic linker is in use.
9920  dynamic_linker='GNU/Linux ld.so'
9921  ;;
9922
9923knetbsd*-gnu)
9924  version_type=linux
9925  need_lib_prefix=no
9926  need_version=no
9927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928  soname_spec='${libname}${release}${shared_ext}$major'
9929  shlibpath_var=LD_LIBRARY_PATH
9930  shlibpath_overrides_runpath=no
9931  hardcode_into_libs=yes
9932  dynamic_linker='GNU ld.so'
9933  ;;
9934
9935netbsd*)
9936  version_type=sunos
9937  need_lib_prefix=no
9938  need_version=no
9939  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942    dynamic_linker='NetBSD (a.out) ld.so'
9943  else
9944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945    soname_spec='${libname}${release}${shared_ext}$major'
9946    dynamic_linker='NetBSD ld.elf_so'
9947  fi
9948  shlibpath_var=LD_LIBRARY_PATH
9949  shlibpath_overrides_runpath=yes
9950  hardcode_into_libs=yes
9951  ;;
9952
9953newsos6)
9954  version_type=linux
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  shlibpath_overrides_runpath=yes
9958  ;;
9959
9960nto-qnx*)
9961  version_type=linux
9962  need_lib_prefix=no
9963  need_version=no
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965  soname_spec='${libname}${release}${shared_ext}$major'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=yes
9968  ;;
9969
9970openbsd*)
9971  version_type=sunos
9972  sys_lib_dlsearch_path_spec="/usr/lib"
9973  need_lib_prefix=no
9974  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9975  case $host_os in
9976    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9977    *)                         need_version=no  ;;
9978  esac
9979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9980  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9981  shlibpath_var=LD_LIBRARY_PATH
9982  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9983    case $host_os in
9984      openbsd2.[89] | openbsd2.[89].*)
9985        shlibpath_overrides_runpath=no
9986        ;;
9987      *)
9988        shlibpath_overrides_runpath=yes
9989        ;;
9990      esac
9991  else
9992    shlibpath_overrides_runpath=yes
9993  fi
9994  ;;
9995
9996os2*)
9997  libname_spec='$name'
9998  shrext_cmds=".dll"
9999  need_lib_prefix=no
10000  library_names_spec='$libname${shared_ext} $libname.a'
10001  dynamic_linker='OS/2 ld.exe'
10002  shlibpath_var=LIBPATH
10003  ;;
10004
10005osf3* | osf4* | osf5*)
10006  version_type=osf
10007  need_lib_prefix=no
10008  need_version=no
10009  soname_spec='${libname}${release}${shared_ext}$major'
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011  shlibpath_var=LD_LIBRARY_PATH
10012  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10013  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10014  ;;
10015
10016solaris*)
10017  version_type=linux
10018  need_lib_prefix=no
10019  need_version=no
10020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021  soname_spec='${libname}${release}${shared_ext}$major'
10022  shlibpath_var=LD_LIBRARY_PATH
10023  shlibpath_overrides_runpath=yes
10024  hardcode_into_libs=yes
10025  # ldd complains unless libraries are executable
10026  postinstall_cmds='chmod +x $lib'
10027  ;;
10028
10029sunos4*)
10030  version_type=sunos
10031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10032  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10033  shlibpath_var=LD_LIBRARY_PATH
10034  shlibpath_overrides_runpath=yes
10035  if test "$with_gnu_ld" = yes; then
10036    need_lib_prefix=no
10037  fi
10038  need_version=yes
10039  ;;
10040
10041sysv4 | sysv4.3*)
10042  version_type=linux
10043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044  soname_spec='${libname}${release}${shared_ext}$major'
10045  shlibpath_var=LD_LIBRARY_PATH
10046  case $host_vendor in
10047    sni)
10048      shlibpath_overrides_runpath=no
10049      need_lib_prefix=no
10050      export_dynamic_flag_spec='${wl}-Blargedynsym'
10051      runpath_var=LD_RUN_PATH
10052      ;;
10053    siemens)
10054      need_lib_prefix=no
10055      ;;
10056    motorola)
10057      need_lib_prefix=no
10058      need_version=no
10059      shlibpath_overrides_runpath=no
10060      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10061      ;;
10062  esac
10063  ;;
10064
10065sysv4*MP*)
10066  if test -d /usr/nec ;then
10067    version_type=linux
10068    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10069    soname_spec='$libname${shared_ext}.$major'
10070    shlibpath_var=LD_LIBRARY_PATH
10071  fi
10072  ;;
10073
10074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10075  version_type=freebsd-elf
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  hardcode_into_libs=yes
10082  if test "$with_gnu_ld" = yes; then
10083    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10084    shlibpath_overrides_runpath=no
10085  else
10086    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10087    shlibpath_overrides_runpath=yes
10088    case $host_os in
10089      sco3.2v5*)
10090        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091        ;;
10092    esac
10093  fi
10094  sys_lib_dlsearch_path_spec='/usr/lib'
10095  ;;
10096
10097uts4*)
10098  version_type=linux
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100  soname_spec='${libname}${release}${shared_ext}$major'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  ;;
10103
10104*)
10105  dynamic_linker=no
10106  ;;
10107esac
10108echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10109echo "${ECHO_T}$dynamic_linker" >&6
10110test "$dynamic_linker" = no && can_build_shared=no
10111
10112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10113if test "$GCC" = yes; then
10114  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10115fi
10116
10117echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10118echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10119hardcode_action=
10120if test -n "$hardcode_libdir_flag_spec" || \
10121   test -n "$runpath_var" || \
10122   test "X$hardcode_automatic" = "Xyes" ; then
10123
10124  # We can hardcode non-existant directories.
10125  if test "$hardcode_direct" != no &&
10126     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10127     # have to relink, otherwise we might link with an installed library
10128     # when we should be linking with a yet-to-be-installed one
10129     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10130     test "$hardcode_minus_L" != no; then
10131    # Linking always hardcodes the temporary library directory.
10132    hardcode_action=relink
10133  else
10134    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10135    hardcode_action=immediate
10136  fi
10137else
10138  # We cannot hardcode anything, or else we can only hardcode existing
10139  # directories.
10140  hardcode_action=unsupported
10141fi
10142echo "$as_me:$LINENO: result: $hardcode_action" >&5
10143echo "${ECHO_T}$hardcode_action" >&6
10144
10145if test "$hardcode_action" = relink; then
10146  # Fast installation is not supported
10147  enable_fast_install=no
10148elif test "$shlibpath_overrides_runpath" = yes ||
10149     test "$enable_shared" = no; then
10150  # Fast installation is not necessary
10151  enable_fast_install=needless
10152fi
10153
10154striplib=
10155old_striplib=
10156echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10157echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10158if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10159  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10160  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10161  echo "$as_me:$LINENO: result: yes" >&5
10162echo "${ECHO_T}yes" >&6
10163else
10164# FIXME - insert some real tests, host_os isn't really good enough
10165  case $host_os in
10166   darwin*)
10167       if test -n "$STRIP" ; then
10168         striplib="$STRIP -x"
10169         echo "$as_me:$LINENO: result: yes" >&5
10170echo "${ECHO_T}yes" >&6
10171       else
10172  echo "$as_me:$LINENO: result: no" >&5
10173echo "${ECHO_T}no" >&6
10174fi
10175       ;;
10176   *)
10177  echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
10179    ;;
10180  esac
10181fi
10182
10183if test "x$enable_dlopen" != xyes; then
10184  enable_dlopen=unknown
10185  enable_dlopen_self=unknown
10186  enable_dlopen_self_static=unknown
10187else
10188  lt_cv_dlopen=no
10189  lt_cv_dlopen_libs=
10190
10191  case $host_os in
10192  beos*)
10193    lt_cv_dlopen="load_add_on"
10194    lt_cv_dlopen_libs=
10195    lt_cv_dlopen_self=yes
10196    ;;
10197
10198  mingw* | pw32*)
10199    lt_cv_dlopen="LoadLibrary"
10200    lt_cv_dlopen_libs=
10201   ;;
10202
10203  cygwin*)
10204    lt_cv_dlopen="dlopen"
10205    lt_cv_dlopen_libs=
10206   ;;
10207
10208  darwin*)
10209  # if libdl is installed we need to link against it
10210    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10211echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10212if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10213  echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215  ac_check_lib_save_LIBS=$LIBS
10216LIBS="-ldl  $LIBS"
10217cat >conftest.$ac_ext <<_ACEOF
10218/* confdefs.h.  */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h.  */
10223
10224/* Override any gcc2 internal prototype to avoid an error.  */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228/* We use char because int might match the return type of a gcc2
10229   builtin and then its argument prototype would still apply.  */
10230char dlopen ();
10231int
10232main ()
10233{
10234dlopen ();
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241  (eval $ac_link) 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } &&
10248         { ac_try='test -z "$ac_c_werror_flag"
10249                         || test ! -s conftest.err'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; } &&
10255         { ac_try='test -s conftest$ac_exeext'
10256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257  (eval $ac_try) 2>&5
10258  ac_status=$?
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); }; }; then
10261  ac_cv_lib_dl_dlopen=yes
10262else
10263  echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266ac_cv_lib_dl_dlopen=no
10267fi
10268rm -f conftest.err conftest.$ac_objext \
10269      conftest$ac_exeext conftest.$ac_ext
10270LIBS=$ac_check_lib_save_LIBS
10271fi
10272echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10273echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10274if test $ac_cv_lib_dl_dlopen = yes; then
10275  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10276else
10277
10278    lt_cv_dlopen="dyld"
10279    lt_cv_dlopen_libs=
10280    lt_cv_dlopen_self=yes
10281
10282fi
10283
10284   ;;
10285
10286  *)
10287    echo "$as_me:$LINENO: checking for shl_load" >&5
10288echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10289if test "${ac_cv_func_shl_load+set}" = set; then
10290  echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292  cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10300#define shl_load innocuous_shl_load
10301
10302/* System header to define __stub macros and hopefully few prototypes,
10303    which can conflict with char shl_load (); below.
10304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10305    <limits.h> exists even on freestanding compilers.  */
10306
10307#ifdef __STDC__
10308# include <limits.h>
10309#else
10310# include <assert.h>
10311#endif
10312
10313#undef shl_load
10314
10315/* Override any gcc2 internal prototype to avoid an error.  */
10316#ifdef __cplusplus
10317extern "C"
10318{
10319#endif
10320/* We use char because int might match the return type of a gcc2
10321   builtin and then its argument prototype would still apply.  */
10322char shl_load ();
10323/* The GNU C library defines this for functions which it implements
10324    to always fail with ENOSYS.  Some functions are actually named
10325    something starting with __ and the normal name is an alias.  */
10326#if defined (__stub_shl_load) || defined (__stub___shl_load)
10327choke me
10328#else
10329char (*f) () = shl_load;
10330#endif
10331#ifdef __cplusplus
10332}
10333#endif
10334
10335int
10336main ()
10337{
10338return f != shl_load;
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345  (eval $ac_link) 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } &&
10352         { ac_try='test -z "$ac_c_werror_flag"
10353                         || test ! -s conftest.err'
10354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355  (eval $ac_try) 2>&5
10356  ac_status=$?
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); }; } &&
10359         { ac_try='test -s conftest$ac_exeext'
10360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361  (eval $ac_try) 2>&5
10362  ac_status=$?
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); }; }; then
10365  ac_cv_func_shl_load=yes
10366else
10367  echo "$as_me: failed program was:" >&5
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370ac_cv_func_shl_load=no
10371fi
10372rm -f conftest.err conftest.$ac_objext \
10373      conftest$ac_exeext conftest.$ac_ext
10374fi
10375echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10376echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10377if test $ac_cv_func_shl_load = yes; then
10378  lt_cv_dlopen="shl_load"
10379else
10380  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10381echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10382if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10383  echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
10385  ac_check_lib_save_LIBS=$LIBS
10386LIBS="-ldld  $LIBS"
10387cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h.  */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h.  */
10393
10394/* Override any gcc2 internal prototype to avoid an error.  */
10395#ifdef __cplusplus
10396extern "C"
10397#endif
10398/* We use char because int might match the return type of a gcc2
10399   builtin and then its argument prototype would still apply.  */
10400char shl_load ();
10401int
10402main ()
10403{
10404shl_load ();
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
10410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411  (eval $ac_link) 2>conftest.er1
10412  ac_status=$?
10413  grep -v '^ *+' conftest.er1 >conftest.err
10414  rm -f conftest.er1
10415  cat conftest.err >&5
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); } &&
10418         { ac_try='test -z "$ac_c_werror_flag"
10419                         || test ! -s conftest.err'
10420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421  (eval $ac_try) 2>&5
10422  ac_status=$?
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); }; } &&
10425         { ac_try='test -s conftest$ac_exeext'
10426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427  (eval $ac_try) 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; }; then
10431  ac_cv_lib_dld_shl_load=yes
10432else
10433  echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436ac_cv_lib_dld_shl_load=no
10437fi
10438rm -f conftest.err conftest.$ac_objext \
10439      conftest$ac_exeext conftest.$ac_ext
10440LIBS=$ac_check_lib_save_LIBS
10441fi
10442echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10443echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10444if test $ac_cv_lib_dld_shl_load = yes; then
10445  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10446else
10447  echo "$as_me:$LINENO: checking for dlopen" >&5
10448echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10449if test "${ac_cv_func_dlopen+set}" = set; then
10450  echo $ECHO_N "(cached) $ECHO_C" >&6
10451else
10452  cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h.  */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h.  */
10458/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10459   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10460#define dlopen innocuous_dlopen
10461
10462/* System header to define __stub macros and hopefully few prototypes,
10463    which can conflict with char dlopen (); below.
10464    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10465    <limits.h> exists even on freestanding compilers.  */
10466
10467#ifdef __STDC__
10468# include <limits.h>
10469#else
10470# include <assert.h>
10471#endif
10472
10473#undef dlopen
10474
10475/* Override any gcc2 internal prototype to avoid an error.  */
10476#ifdef __cplusplus
10477extern "C"
10478{
10479#endif
10480/* We use char because int might match the return type of a gcc2
10481   builtin and then its argument prototype would still apply.  */
10482char dlopen ();
10483/* The GNU C library defines this for functions which it implements
10484    to always fail with ENOSYS.  Some functions are actually named
10485    something starting with __ and the normal name is an alias.  */
10486#if defined (__stub_dlopen) || defined (__stub___dlopen)
10487choke me
10488#else
10489char (*f) () = dlopen;
10490#endif
10491#ifdef __cplusplus
10492}
10493#endif
10494
10495int
10496main ()
10497{
10498return f != dlopen;
10499  ;
10500  return 0;
10501}
10502_ACEOF
10503rm -f conftest.$ac_objext conftest$ac_exeext
10504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10505  (eval $ac_link) 2>conftest.er1
10506  ac_status=$?
10507  grep -v '^ *+' conftest.er1 >conftest.err
10508  rm -f conftest.er1
10509  cat conftest.err >&5
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); } &&
10512         { ac_try='test -z "$ac_c_werror_flag"
10513                         || test ! -s conftest.err'
10514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515  (eval $ac_try) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); }; } &&
10519         { ac_try='test -s conftest$ac_exeext'
10520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521  (eval $ac_try) 2>&5
10522  ac_status=$?
10523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524  (exit $ac_status); }; }; then
10525  ac_cv_func_dlopen=yes
10526else
10527  echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530ac_cv_func_dlopen=no
10531fi
10532rm -f conftest.err conftest.$ac_objext \
10533      conftest$ac_exeext conftest.$ac_ext
10534fi
10535echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10536echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10537if test $ac_cv_func_dlopen = yes; then
10538  lt_cv_dlopen="dlopen"
10539else
10540  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10541echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10542if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10543  echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545  ac_check_lib_save_LIBS=$LIBS
10546LIBS="-ldl  $LIBS"
10547cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h.  */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h.  */
10553
10554/* Override any gcc2 internal prototype to avoid an error.  */
10555#ifdef __cplusplus
10556extern "C"
10557#endif
10558/* We use char because int might match the return type of a gcc2
10559   builtin and then its argument prototype would still apply.  */
10560char dlopen ();
10561int
10562main ()
10563{
10564dlopen ();
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571  (eval $ac_link) 2>conftest.er1
10572  ac_status=$?
10573  grep -v '^ *+' conftest.er1 >conftest.err
10574  rm -f conftest.er1
10575  cat conftest.err >&5
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); } &&
10578         { ac_try='test -z "$ac_c_werror_flag"
10579                         || test ! -s conftest.err'
10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581  (eval $ac_try) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); }; } &&
10585         { ac_try='test -s conftest$ac_exeext'
10586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587  (eval $ac_try) 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); }; }; then
10591  ac_cv_lib_dl_dlopen=yes
10592else
10593  echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596ac_cv_lib_dl_dlopen=no
10597fi
10598rm -f conftest.err conftest.$ac_objext \
10599      conftest$ac_exeext conftest.$ac_ext
10600LIBS=$ac_check_lib_save_LIBS
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10603echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10604if test $ac_cv_lib_dl_dlopen = yes; then
10605  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10606else
10607  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10608echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10609if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10610  echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612  ac_check_lib_save_LIBS=$LIBS
10613LIBS="-lsvld  $LIBS"
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h.  */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h.  */
10620
10621/* Override any gcc2 internal prototype to avoid an error.  */
10622#ifdef __cplusplus
10623extern "C"
10624#endif
10625/* We use char because int might match the return type of a gcc2
10626   builtin and then its argument prototype would still apply.  */
10627char dlopen ();
10628int
10629main ()
10630{
10631dlopen ();
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext conftest$ac_exeext
10637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638  (eval $ac_link) 2>conftest.er1
10639  ac_status=$?
10640  grep -v '^ *+' conftest.er1 >conftest.err
10641  rm -f conftest.er1
10642  cat conftest.err >&5
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); } &&
10645         { ac_try='test -z "$ac_c_werror_flag"
10646                         || test ! -s conftest.err'
10647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648  (eval $ac_try) 2>&5
10649  ac_status=$?
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); }; } &&
10652         { ac_try='test -s conftest$ac_exeext'
10653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654  (eval $ac_try) 2>&5
10655  ac_status=$?
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); }; }; then
10658  ac_cv_lib_svld_dlopen=yes
10659else
10660  echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663ac_cv_lib_svld_dlopen=no
10664fi
10665rm -f conftest.err conftest.$ac_objext \
10666      conftest$ac_exeext conftest.$ac_ext
10667LIBS=$ac_check_lib_save_LIBS
10668fi
10669echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10670echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10671if test $ac_cv_lib_svld_dlopen = yes; then
10672  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10673else
10674  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10675echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10676if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10677  echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679  ac_check_lib_save_LIBS=$LIBS
10680LIBS="-ldld  $LIBS"
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h.  */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h.  */
10687
10688/* Override any gcc2 internal prototype to avoid an error.  */
10689#ifdef __cplusplus
10690extern "C"
10691#endif
10692/* We use char because int might match the return type of a gcc2
10693   builtin and then its argument prototype would still apply.  */
10694char dld_link ();
10695int
10696main ()
10697{