source: stable/2.9/Cbc/configure @ 2539

Last change on this file since 2539 was 2508, checked in by stefan, 8 months ago

restoring Cbc/stable/2.9

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