source: stable/2.8/Cbc/configure @ 1994

Last change on this file since 1994 was 1994, checked in by tkr, 5 years ago

temporarily committing release candidate

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.8.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8.8'
433PACKAGE_STRING='Cbc 2.8.8'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS 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 CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8.8 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.8.8:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084
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-pkg-config    disable use of pkg-config (if available)
1098  --disable-interpackage-dependencies
1099                          disables deduction of Makefile dependencies from
1100                          package linker flags
1101  --enable-gnu-packages   compile with GNU packages (disabled by default)
1102  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1108  --with-cbc-checklevel specify the sanity check level for project Cbc
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116
1117  --with-coindepend-lib linker flags for using package CoinDepend
1118  --with-coindepend-incdir
1119                          directory with header files for using package
1120                          CoinDepend
1121  --with-coindepend-datadir
1122                          directory with data files for using package
1123                          CoinDepend
1124  --with-clp-lib linker flags for using package Clp
1125  --with-clp-incdir directory with header files for using package Clp
1126  --with-clp-datadir directory with data files for using package Clp
1127  --with-ositests-lib linker flags for using package OsiTests
1128  --with-ositests-incdir directory with header files for using package
1129                          OsiTests
1130  --with-ositests-datadir directory with data files for using package OsiTests
1131  --with-sample-lib linker flags for using package Sample
1132  --with-sample-incdir directory with header files for using package Sample
1133  --with-sample-datadir directory with data files for using package Sample
1134  --with-netlib-lib linker flags for using package Netlib
1135  --with-netlib-incdir directory with header files for using package Netlib
1136  --with-netlib-datadir directory with data files for using package Netlib
1137  --with-miplib3-lib linker flags for using package Miplib3
1138  --with-miplib3-incdir directory with header files for using package Miplib3
1139  --with-miplib3-datadir directory with data files for using package Miplib3
1140  --with-dylp-lib linker flags for using package DyLP
1141  --with-dylp-incdir directory with header files for using package DyLP
1142  --with-dylp-datadir directory with data files for using package DyLP
1143  --with-vol-lib linker flags for using package Vol
1144  --with-vol-incdir directory with header files for using package Vol
1145  --with-vol-datadir directory with data files for using package Vol
1146  --with-cpx-lib linker flags for using package Cpx
1147  --with-cpx-incdir directory with header files for using package Cpx
1148  --with-cpx-datadir directory with data files for using package Cpx
1149  --with-glpk-lib linker flags for using package Glpk
1150  --with-glpk-incdir directory with header files for using package Glpk
1151  --with-glpk-datadir directory with data files for using package Glpk
1152  --with-grb-lib linker flags for using package Grb
1153  --with-grb-incdir directory with header files for using package Grb
1154  --with-grb-datadir directory with data files for using package Grb
1155  --with-msk-lib linker flags for using package Msk
1156  --with-msk-incdir directory with header files for using package Msk
1157  --with-msk-datadir directory with data files for using package Msk
1158  --with-spx-lib linker flags for using package Spx
1159  --with-spx-incdir directory with header files for using package Spx
1160  --with-spx-datadir directory with data files for using package Spx
1161  --with-xpr-lib linker flags for using package Xpr
1162  --with-xpr-incdir directory with header files for using package Xpr
1163  --with-xpr-datadir directory with data files for using package Xpr
1164  --with-asl-lib linker flags for using package ASL
1165  --with-asl-incdir directory with header files for using package ASL
1166  --with-asl-datadir directory with data files for using package ASL
1167  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1168  --with-cbc-generic-solver
1169                          specify default solver for cbc-generic in lower case
1170                          letters (if not given, clp is assumed)
1171  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1172                          cl/icl builds only)
1173  --with-pthreadsw32-incdir
1174                          specify the path of the pthreads win32 header file
1175                          (for cl/icl builds only)
1176  --with-osicbc-default-solver
1177                          specify underlying solver for OsiCbc (default clp)
1178  --with-dot              use dot (from graphviz) when creating documentation
1179                          with doxygen if available; --without-dot to disable
1180
1181Some influential environment variables:
1182  CDEFS       Additional -D flags to be used when compiling C code.
1183  ADD_CFLAGS  Additional C compiler options
1184  DBG_CFLAGS  Debug C compiler options
1185  OPT_CFLAGS  Optimize C compiler options
1186  CC          C compiler command
1187  CFLAGS      C compiler flags
1188  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1189              nonstandard directory <lib dir>
1190  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1191              headers in a nonstandard directory <include dir>
1192  MPICC       C MPI Compiler
1193  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1194  ADD_CXXFLAGS
1195              Additional C++ compiler options
1196  DBG_CXXFLAGS
1197              Debug C++ compiler options
1198  OPT_CXXFLAGS
1199              Optimize C++ compiler options
1200  CXX         C++ compiler command
1201  CXXFLAGS    C++ compiler flags
1202  MPICXX      C++ MPI Compiler
1203  CPP         C preprocessor
1204  CXXCPP      C++ preprocessor
1205  F77         Fortran 77 compiler command
1206  FFLAGS      Fortran 77 compiler flags
1207  PKG_CONFIG  path to pkg-config utility
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <cbc@lists.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Cbc configure 2.8.8
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Cbc $as_me 2.8.8, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CBC_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CBC_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CBC_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CBC_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CBC
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CBC_SVN_REV $CBC_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854 coin_libversion=11:8:8
1855
1856
1857
1858
1859# Check if user wants to produce debugging code
1860
1861echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1862echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1863
1864# Check whether --enable-debug or --disable-debug was given.
1865if test "${enable_debug+set}" = set; then
1866  enableval="$enable_debug"
1867  case "${enableval}" in
1868   yes) coin_debug_compile=true
1869        if test "${enable_shared+set}" = set; then :; else
1870          enable_shared=no
1871        fi
1872        ;;
1873   no)  coin_debug_compile=false
1874        ;;
1875   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1876echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1877   { (exit 1); exit 1; }; }
1878        ;;
1879esac
1880else
1881  coin_debug_compile=false
1882fi;
1883
1884# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1885if test "${enable_debug_cbc+set}" = set; then
1886  enableval="$enable_debug_cbc"
1887  case "${enableval}" in
1888    yes) coin_debug_compile=true
1889         ;;
1890    no)  coin_debug_compile=false
1891         ;;
1892    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1893echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1894   { (exit 1); exit 1; }; }
1895         ;;
1896 esac
1897else
1898  :
1899fi;
1900
1901 # m4_ifvaln([Cbc],
1902
1903if test $coin_debug_compile = true; then
1904  echo "$as_me:$LINENO: result: yes" >&5
1905echo "${ECHO_T}yes" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911
1912# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1913if test "${with_cbc_verbosity+set}" = set; then
1914  withval="$with_cbc_verbosity"
1915  if test "$withval" = yes; then
1916                withval=1
1917              fi
1918              coin_cbc_verbosity=$withval
1919else
1920  coin_cbc_verbosity=0
1921fi;
1922
1923cat >>confdefs.h <<_ACEOF
1924#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1925_ACEOF
1926
1927
1928
1929# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1930if test "${with_cbc_checklevel+set}" = set; then
1931  withval="$with_cbc_checklevel"
1932  if test "$withval" = yes; then
1933                withval=1
1934              fi
1935              coin_cbc_checklevel=$withval
1936else
1937  coin_cbc_checklevel=0
1938fi;
1939
1940cat >>confdefs.h <<_ACEOF
1941#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1942_ACEOF
1943
1944
1945 # m4_ifvaln([Cbc],
1946
1947
1948
1949# Get the name of the C++ compiler and appropriate compiler options
1950
1951
1952  # for backward compatibility
1953  # Check whether --enable-doscompile or --disable-doscompile was given.
1954if test "${enable_doscompile+set}" = set; then
1955  enableval="$enable_doscompile"
1956  enable_doscompile=$enableval
1957else
1958  enable_doscompile=no
1959fi;
1960
1961  # Check whether --enable-msvc or --disable-msvc was given.
1962if test "${enable_msvc+set}" = set; then
1963  enableval="$enable_msvc"
1964  enable_msvc=$enableval
1965else
1966  enable_msvc=no
1967     if test "$enable_doscompile" = msvc ; then
1968       enable_msvc=yes
1969     elif test "$enable_doscompile" != no ; then
1970       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1971echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1972   { (exit 1); exit 1; }; }
1973     fi
1974
1975fi;
1976
1977  if test "$enable_msvc" = MD; then
1978    enable_shared=yes
1979    enable_msvc=yes
1980  fi
1981
1982  if test "$enable_msvc" = yes; then
1983    case $build in
1984      *-cygwin* | *-mingw*) ;;
1985      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1986echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1987   { (exit 1); exit 1; }; } ;;
1988    esac
1989  fi
1990
1991
1992 case $build in
1993  *-mingw*)
1994    if test "${LD+set}" = set; then :; else
1995      LD=link
1996    fi
1997    ;;
1998 esac
1999 if test $enable_msvc = yes ; then
2000   if test "x${LD+set}" = xset; then :; else
2001     LD=link
2002   fi
2003 fi
2004
2005
2006
2007
2008ac_ext=c
2009ac_cpp='$CPP $CPPFLAGS'
2010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
2014
2015# For consistency, we set the C compiler to the same value of the C++
2016# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2017if test x"$CXX" != x; then
2018  case "$CXX" in
2019    clang* ) ;;
2020    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2021      if test x"$CC" = x; then
2022        CC="$CXX"
2023        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2024echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2025      fi
2026      ;;
2027  esac
2028fi
2029
2030
2031
2032
2033
2034
2035coin_has_cc=yes
2036
2037save_cflags="$CFLAGS"
2038
2039# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2040# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2041# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2042# compiler. In this case, put cc after gcc.
2043
2044case $build in
2045  *-cygwin* | *-mingw*)
2046             if test "$enable_msvc" = yes ; then
2047               comps="icl cl gcc"
2048             else
2049               comps="gcc icl cl"
2050             fi ;;
2051  *-*-solaris*)
2052             # Extract the first word of "cc", so it can be a program name with args.
2053set dummy cc; ac_word=$2
2054echo "$as_me:$LINENO: checking for $ac_word" >&5
2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2057  echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059  if test -n "$sol_cc_compiler"; then
2060  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2061else
2062  ac_prog_rejected=no
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066  IFS=$as_save_IFS
2067  test -z "$as_dir" && as_dir=.
2068  for ac_exec_ext in '' $ac_executable_extensions; do
2069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2071       ac_prog_rejected=yes
2072       continue
2073     fi
2074    ac_cv_prog_sol_cc_compiler="cc"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080
2081if test $ac_prog_rejected = yes; then
2082  # We found a bogon in the path, so make sure we never use it.
2083  set dummy $ac_cv_prog_sol_cc_compiler
2084  shift
2085  if test $# != 0; then
2086    # We chose a different compiler from the bogus one.
2087    # However, it has the same basename, so the bogon will be chosen
2088    # first if we set sol_cc_compiler to just the basename; use the full file name.
2089    shift
2090    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2091  fi
2092fi
2093fi
2094fi
2095sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2096if test -n "$sol_cc_compiler"; then
2097  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2098echo "${ECHO_T}$sol_cc_compiler" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104             if test "$sol_cc_compiler" = "cc" ; then
2105               comps="cc xlc gcc pgcc icc"
2106             else
2107               comps="xlc gcc pgcc icc cc"
2108             fi
2109             ;;
2110  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2111  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2112  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2113esac
2114
2115# We delete the cached value, since the test might not have been
2116# performed with our choice of compilers earlier
2117$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2118# AC_MSG_NOTICE([C compiler candidates: $comps])
2119ac_ext=c
2120ac_cpp='$CPP $CPPFLAGS'
2121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124if test -n "$ac_tool_prefix"; then
2125  for ac_prog in $comps
2126  do
2127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2129echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131if test "${ac_cv_prog_CC+set}" = set; then
2132  echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134  if test -n "$CC"; then
2135  ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146    break 2
2147  fi
2148done
2149done
2150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
2155  echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6
2157else
2158  echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6
2160fi
2161
2162    test -n "$CC" && break
2163  done
2164fi
2165if test -z "$CC"; then
2166  ac_ct_CC=$CC
2167  for ac_prog in $comps
2168do
2169  # Extract the first word of "$ac_prog", so it can be a program name with args.
2170set dummy $ac_prog; ac_word=$2
2171echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174  echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176  if test -n "$ac_ct_CC"; then
2177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178else
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182  IFS=$as_save_IFS
2183  test -z "$as_dir" && as_dir=.
2184  for ac_exec_ext in '' $ac_executable_extensions; do
2185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186    ac_cv_prog_ac_ct_CC="$ac_prog"
2187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188    break 2
2189  fi
2190done
2191done
2192
2193fi
2194fi
2195ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196if test -n "$ac_ct_CC"; then
2197  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198echo "${ECHO_T}$ac_ct_CC" >&6
2199else
2200  echo "$as_me:$LINENO: result: no" >&5
2201echo "${ECHO_T}no" >&6
2202fi
2203
2204  test -n "$ac_ct_CC" && break
2205done
2206
2207  CC=$ac_ct_CC
2208fi
2209
2210
2211test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: no acceptable C compiler found in \$PATH
2214See \`config.log' for more details." >&2;}
2215   { (exit 1); exit 1; }; }
2216
2217# Provide some information about the compiler.
2218echo "$as_me:$LINENO:" \
2219     "checking for C compiler version" >&5
2220ac_compiler=`set X $ac_compile; echo $2`
2221{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2222  (eval $ac_compiler --version </dev/null >&5) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }
2226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2227  (eval $ac_compiler -v </dev/null >&5) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); }
2231{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2232  (eval $ac_compiler -V </dev/null >&5) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }
2236
2237cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h.  */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h.  */
2243
2244int
2245main ()
2246{
2247
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252ac_clean_files_save=$ac_clean_files
2253ac_clean_files="$ac_clean_files a.out a.exe b.out"
2254# Try to create an executable without -o first, disregard a.out.
2255# It will help us diagnose broken compilers, and finding out an intuition
2256# of exeext.
2257echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2258echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2259ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2260if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2261  (eval $ac_link_default) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  # Find the output, starting from the most likely.  This scheme is
2266# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2267# resort.
2268
2269# Be careful to initialize this variable, since it used to be cached.
2270# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2271ac_cv_exeext=
2272# b.out is created by i960 compilers.
2273for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2274do
2275  test -f "$ac_file" || continue
2276  case $ac_file in
2277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2278        ;;
2279    conftest.$ac_ext )
2280        # This is the source file.
2281        ;;
2282    [ab].out )
2283        # We found the default executable, but exeext='' is most
2284        # certainly right.
2285        break;;
2286    *.* )
2287        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288        # FIXME: I believe we export ac_cv_exeext for Libtool,
2289        # but it would be cool to find out if it's true.  Does anybody
2290        # maintain Libtool? --akim.
2291        export ac_cv_exeext
2292        break;;
2293    * )
2294        break;;
2295  esac
2296done
2297else
2298  echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: C compiler cannot create executables
2304See \`config.log' for more details." >&2;}
2305   { (exit 77); exit 77; }; }
2306fi
2307
2308ac_exeext=$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_file" >&5
2310echo "${ECHO_T}$ac_file" >&6
2311
2312# Check the compiler produces executables we can run.  If not, either
2313# the compiler is broken, or we cross compile.
2314echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2315echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2316# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2317# If not cross compiling, check that we can run a simple program.
2318if test "$cross_compiling" != yes; then
2319  if { ac_try='./$ac_file'
2320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321  (eval $ac_try) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }; }; then
2325    cross_compiling=no
2326  else
2327    if test "$cross_compiling" = maybe; then
2328        cross_compiling=yes
2329    else
2330        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331If you meant to cross compile, use \`--host'.
2332See \`config.log' for more details." >&5
2333echo "$as_me: error: cannot run C compiled programs.
2334If you meant to cross compile, use \`--host'.
2335See \`config.log' for more details." >&2;}
2336   { (exit 1); exit 1; }; }
2337    fi
2338  fi
2339fi
2340echo "$as_me:$LINENO: result: yes" >&5
2341echo "${ECHO_T}yes" >&6
2342
2343rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344ac_clean_files=$ac_clean_files_save
2345# Check the compiler produces executables we can run.  If not, either
2346# the compiler is broken, or we cross compile.
2347echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2349echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350echo "${ECHO_T}$cross_compiling" >&6
2351
2352echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355  (eval $ac_link) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; then
2359  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2360# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2361# work properly (i.e., refer to `conftest.exe'), while it won't with
2362# `rm'.
2363for ac_file in conftest.exe conftest conftest.*; do
2364  test -f "$ac_file" || continue
2365  case $ac_file in
2366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2367    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368          export ac_cv_exeext
2369          break;;
2370    * ) break;;
2371  esac
2372done
2373else
2374  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2375See \`config.log' for more details." >&5
2376echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2377See \`config.log' for more details." >&2;}
2378   { (exit 1); exit 1; }; }
2379fi
2380
2381rm -f conftest$ac_cv_exeext
2382echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2383echo "${ECHO_T}$ac_cv_exeext" >&6
2384
2385rm -f conftest.$ac_ext
2386EXEEXT=$ac_cv_exeext
2387ac_exeext=$EXEEXT
2388echo "$as_me:$LINENO: checking for suffix of object files" >&5
2389echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2390if test "${ac_cv_objext+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408rm -f conftest.o conftest.obj
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>&5
2411  ac_status=$?
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); }; then
2414  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2415  case $ac_file in
2416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2417    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418       break;;
2419  esac
2420done
2421else
2422  echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2426See \`config.log' for more details." >&5
2427echo "$as_me: error: cannot compute suffix of object files: cannot compile
2428See \`config.log' for more details." >&2;}
2429   { (exit 1); exit 1; }; }
2430fi
2431
2432rm -f conftest.$ac_cv_objext conftest.$ac_ext
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2435echo "${ECHO_T}$ac_cv_objext" >&6
2436OBJEXT=$ac_cv_objext
2437ac_objext=$OBJEXT
2438echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2439echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2440if test "${ac_cv_c_compiler_gnu+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453#ifndef __GNUC__
2454       choke me
2455#endif
2456
2457  ;
2458  return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463  (eval $ac_compile) 2>conftest.er1
2464  ac_status=$?
2465  grep -v '^ *+' conftest.er1 >conftest.err
2466  rm -f conftest.er1
2467  cat conftest.err >&5
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); } &&
2470         { ac_try='test -z "$ac_c_werror_flag"
2471                         || test ! -s conftest.err'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; } &&
2477         { ac_try='test -s conftest.$ac_objext'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; }; then
2483  ac_compiler_gnu=yes
2484else
2485  echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488ac_compiler_gnu=no
2489fi
2490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492
2493fi
2494echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2496GCC=`test $ac_compiler_gnu = yes && echo yes`
2497ac_test_CFLAGS=${CFLAGS+set}
2498ac_save_CFLAGS=$CFLAGS
2499CFLAGS="-g"
2500echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2501echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2502if test "${ac_cv_prog_cc_g+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h.  */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h.  */
2511
2512int
2513main ()
2514{
2515
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522  (eval $ac_compile) 2>conftest.er1
2523  ac_status=$?
2524  grep -v '^ *+' conftest.er1 >conftest.err
2525  rm -f conftest.er1
2526  cat conftest.err >&5
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); } &&
2529         { ac_try='test -z "$ac_c_werror_flag"
2530                         || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536         { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  ac_cv_prog_cc_g=yes
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547ac_cv_prog_cc_g=no
2548fi
2549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2552echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2553if test "$ac_test_CFLAGS" = set; then
2554  CFLAGS=$ac_save_CFLAGS
2555elif test $ac_cv_prog_cc_g = yes; then
2556  if test "$GCC" = yes; then
2557    CFLAGS="-g -O2"
2558  else
2559    CFLAGS="-g"
2560  fi
2561else
2562  if test "$GCC" = yes; then
2563    CFLAGS="-O2"
2564  else
2565    CFLAGS=
2566  fi
2567fi
2568echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2569echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571  echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573  ac_cv_prog_cc_stdc=no
2574ac_save_CC=$CC
2575cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581#include <stdarg.h>
2582#include <stdio.h>
2583#include <sys/types.h>
2584#include <sys/stat.h>
2585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586struct buf { int x; };
2587FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588static char *e (p, i)
2589     char **p;
2590     int i;
2591{
2592  return p[i];
2593}
2594static char *f (char * (*g) (char **, int), char **p, ...)
2595{
2596  char *s;
2597  va_list v;
2598  va_start (v,p);
2599  s = g (p, va_arg (v,int));
2600  va_end (v);
2601  return s;
2602}
2603
2604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2605   function prototypes and stuff, but not '\xHH' hex character constants.
2606   These don't provoke an error unfortunately, instead are silently treated
2607   as 'x'.  The following induces an error, until -std1 is added to get
2608   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2609   array size at least.  It's necessary to write '\x00'==0 to get something
2610   that's true only with -std1.  */
2611int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2612
2613int test (int i, double x);
2614struct s1 {int (*f) (int a);};
2615struct s2 {int (*f) (double a);};
2616int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617int argc;
2618char **argv;
2619int
2620main ()
2621{
2622return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627# Don't try gcc -ansi; that turns off useful extensions and
2628# breaks some systems' header files.
2629# AIX                   -qlanglvl=ansi
2630# Ultrix and OSF/1      -std1
2631# HP-UX 10.20 and later -Ae
2632# HP-UX older versions  -Aa -D_HPUX_SOURCE
2633# SVR4                  -Xc -D__EXTENSIONS__
2634for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2635do
2636  CC="$ac_save_CC $ac_arg"
2637  rm -f conftest.$ac_objext
2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639  (eval $ac_compile) 2>conftest.er1
2640  ac_status=$?
2641  grep -v '^ *+' conftest.er1 >conftest.err
2642  rm -f conftest.er1
2643  cat conftest.err >&5
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } &&
2646         { ac_try='test -z "$ac_c_werror_flag"
2647                         || test ! -s conftest.err'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; } &&
2653         { ac_try='test -s conftest.$ac_objext'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; }; then
2659  ac_cv_prog_cc_stdc=$ac_arg
2660break
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665fi
2666rm -f conftest.err conftest.$ac_objext
2667done
2668rm -f conftest.$ac_ext conftest.$ac_objext
2669CC=$ac_save_CC
2670
2671fi
2672
2673case "x$ac_cv_prog_cc_stdc" in
2674  x|xno)
2675    echo "$as_me:$LINENO: result: none needed" >&5
2676echo "${ECHO_T}none needed" >&6 ;;
2677  *)
2678    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2679echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2680    CC="$CC $ac_cv_prog_cc_stdc" ;;
2681esac
2682
2683# Some people use a C++ compiler to compile C.  Since we use `exit',
2684# in C++ we need to declare it.  In case someone uses the same compiler
2685# for both compiling C and C++ we need to have the C++ compiler decide
2686# the declaration of exit, since it's the most demanding environment.
2687cat >conftest.$ac_ext <<_ACEOF
2688#ifndef __cplusplus
2689  choke me
2690#endif
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  for ac_declaration in \
2715   '' \
2716   'extern "C" void std::exit (int) throw (); using std::exit;' \
2717   'extern "C" void std::exit (int); using std::exit;' \
2718   'extern "C" void exit (int) throw ();' \
2719   'extern "C" void exit (int);' \
2720   'void exit (int);'
2721do
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729#include <stdlib.h>
2730int
2731main ()
2732{
2733exit (42);
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740  (eval $ac_compile) 2>conftest.er1
2741  ac_status=$?
2742  grep -v '^ *+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -z "$ac_c_werror_flag"
2748                         || test ! -s conftest.err'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; } &&
2754         { ac_try='test -s conftest.$ac_objext'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; }; then
2760  :
2761else
2762  echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765continue
2766fi
2767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768  cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h.  */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h.  */
2774$ac_declaration
2775int
2776main ()
2777{
2778exit (42);
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785  (eval $ac_compile) 2>conftest.er1
2786  ac_status=$?
2787  grep -v '^ *+' conftest.er1 >conftest.err
2788  rm -f conftest.er1
2789  cat conftest.err >&5
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); } &&
2792         { ac_try='test -z "$ac_c_werror_flag"
2793                         || test ! -s conftest.err'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; } &&
2799         { ac_try='test -s conftest.$ac_objext'
2800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801  (eval $ac_try) 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); }; }; then
2805  break
2806else
2807  echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810fi
2811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812done
2813rm -f conftest*
2814if test -n "$ac_declaration"; then
2815  echo '#ifdef __cplusplus' >>confdefs.h
2816  echo $ac_declaration      >>confdefs.h
2817  echo '#endif'             >>confdefs.h
2818fi
2819
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826ac_ext=c
2827ac_cpp='$CPP $CPPFLAGS'
2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832if test -z "$CC" ; then
2833  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2834echo "$as_me: error: Failed to find a C compiler!" >&2;}
2835   { (exit 1); exit 1; }; }
2836fi
2837# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2838case "$CC" in
2839  clang* ) ;;
2840  cl* | */cl* | CL* | */CL* )
2841    if test "$ac_cv_prog_cc_g" = yes ; then
2842      ac_cv_prog_cc_g=no
2843      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2844echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2845    fi ;;
2846  * )
2847    if test x"$CYGPATH_W" = x ; then
2848      CYGPATH_W=echo
2849    fi
2850    ;;
2851esac
2852CFLAGS="$save_cflags"
2853
2854# add automake conditional so we can recognize cl compiler in makefile
2855coin_cc_is_cl=false
2856case "$CC" in
2857  clang* ) ;;
2858  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2859    coin_cc_is_cl=true
2860    ;;
2861esac
2862
2863
2864if test $coin_cc_is_cl = true; then
2865  COIN_CC_IS_CL_TRUE=
2866  COIN_CC_IS_CL_FALSE='#'
2867else
2868  COIN_CC_IS_CL_TRUE='#'
2869  COIN_CC_IS_CL_FALSE=
2870fi
2871
2872
2873# Check if a project specific CFLAGS variable has been set
2874if test x$COIN_PRJCT != x; then
2875  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2876  if test x$coin_tmp = xset; then
2877    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2878  fi
2879fi
2880
2881if test x"$CFLAGS" = x; then
2882
2883  coin_add_cflags=
2884  coin_opt_cflags=
2885  coin_dbg_cflags=
2886  coin_warn_cflags=
2887
2888  if test "$GCC" = "yes"; then
2889    case "$CC" in
2890      icc* | */icc*)
2891        ;;
2892      *)
2893        coin_opt_cflags="-O3"
2894        coin_add_cflags="-pipe"
2895        coin_dbg_cflags="-g -O0"
2896        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2897        case $build in
2898          *-darwin*)
2899            ;;
2900          *)
2901            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2902            ;;
2903        esac
2904    esac
2905  fi
2906  if test -z "$coin_opt_cflags"; then
2907    case $build in
2908      *-cygwin* | *-mingw*)
2909        case "$CC" in
2910          clang* ) ;;
2911          cl* | */cl* | CL* | */CL*)
2912            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2913              coin_opt_cflags='-MD -O2'
2914              coin_dbg_cflags='-MDd'
2915            else
2916              coin_opt_cflags='-MT -O2'
2917              coin_dbg_cflags='-MTd'
2918            fi
2919            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2920            ;;
2921          icl* | */icl* | ICL* | */ICL*)
2922            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2923              coin_opt_cflags='-MD -Ox'
2924              coin_dbg_cflags='-MDd -debug'
2925            else
2926              coin_opt_cflags='-MT -Ox'
2927              coin_dbg_cflags='-MTd -debug'
2928            fi
2929            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2930            ;;
2931        esac
2932        ;;
2933      *-linux-*)
2934        case "$CC" in
2935          icc* | */icc*)
2936            coin_opt_cflags="-O3 -ip -mp1"
2937            coin_add_cflags=""
2938            coin_dbg_cflags="-g"
2939            # Check if -i_dynamic is necessary (for new glibc library)
2940            CFLAGS=
2941            cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951int i=0; i++;
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958  (eval $ac_link) 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } &&
2965         { ac_try='test -z "$ac_c_werror_flag"
2966                         || test ! -s conftest.err'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; } &&
2972         { ac_try='test -s conftest$ac_exeext'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; }; then
2978  :
2979else
2980  echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983coin_add_cflags="-i_dynamic $coin_add_cflags"
2984fi
2985rm -f conftest.err conftest.$ac_objext \
2986      conftest$ac_exeext conftest.$ac_ext
2987            ;;
2988          pgcc* | */pgcc*)
2989            coin_opt_cflags="-fast"
2990            coin_add_cflags="-Kieee -pc 64"
2991            coin_dbg_cflags="-g"
2992            ;;
2993        esac
2994        ;;
2995      *-ibm-*)
2996        case "$CC" in
2997          xlc* | */xlc* | mpxlc* | */mpxlc*)
2998            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2999            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3000            coin_dbg_cflags="-g"
3001          ;;
3002        esac
3003        ;;
3004      *-hp-*)
3005        coin_opt_cflags="-O"
3006        coin_add_cflags="-Ae"
3007        coin_dbg_cflags="-g"
3008        ;;
3009      *-*-solaris*)
3010        coin_opt_cflags="-xO4"
3011        coin_dbg_cflags="-g"
3012        ;;
3013      *-sgi-*)
3014        coin_opt_cflags="-O -OPT:Olimit=0"
3015        coin_dbg_cflags="-g"
3016        ;;
3017    esac
3018  fi
3019
3020  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3021    coin_dbg_cflags="-g"
3022  fi
3023
3024  if test -z "$coin_opt_cflags"; then
3025    # Try if -O option works if nothing else is set
3026    CFLAGS="-O"
3027    cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037int i=0; i++;
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext conftest$ac_exeext
3043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3044  (eval $ac_link) 2>conftest.er1
3045  ac_status=$?
3046  grep -v '^ *+' conftest.er1 >conftest.err
3047  rm -f conftest.er1
3048  cat conftest.err >&5
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); } &&
3051         { ac_try='test -z "$ac_c_werror_flag"
3052                         || test ! -s conftest.err'
3053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054  (eval $ac_try) 2>&5
3055  ac_status=$?
3056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057  (exit $ac_status); }; } &&
3058         { ac_try='test -s conftest$ac_exeext'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; }; then
3064  coin_opt_cflags="-O"
3065else
3066  echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069fi
3070rm -f conftest.err conftest.$ac_objext \
3071      conftest$ac_exeext conftest.$ac_ext
3072  fi
3073
3074  # if PM doesn't want the warning messages, take them out
3075  if test x"$coin_skip_warn_cflags" = xyes; then
3076    coin_warn_cflags=
3077  fi
3078
3079  if test x${DBG_CFLAGS+set} != xset; then
3080    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3081  fi
3082  if test x${OPT_CFLAGS+set} != xset; then
3083    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3084  fi
3085
3086  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3087  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3088
3089  if test "$coin_debug_compile" = "true"; then
3090    CFLAGS="$DBG_CFLAGS"
3091  else
3092    CFLAGS="$OPT_CFLAGS"
3093  fi
3094else
3095  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3096  if test x${DBG_CFLAGS+set} != xset; then
3097    DBG_CFLAGS="$CFLAGS"
3098  fi
3099  if test x${OPT_CFLAGS+set} != xset; then
3100    OPT_CFLAGS="$CFLAGS"
3101  fi
3102fi
3103
3104# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3105if test x$COIN_PRJCT != x; then
3106  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3107fi
3108
3109# Try if CFLAGS works
3110save_CFLAGS="$CFLAGS"
3111cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h.  */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h.  */
3117
3118int
3119main ()
3120{
3121int i=0; i++;
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext conftest$ac_exeext
3127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3128  (eval $ac_link) 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } &&
3135         { ac_try='test -z "$ac_c_werror_flag"
3136                         || test ! -s conftest.err'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; } &&
3142         { ac_try='test -s conftest$ac_exeext'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; }; then
3148  :
3149else
3150  echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153CFLAGS=
3154fi
3155rm -f conftest.err conftest.$ac_objext \
3156      conftest$ac_exeext conftest.$ac_ext
3157if test -z "$CFLAGS"; then
3158  { 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
3159echo "$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;}
3160  CFLAGS='-O'
3161  cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167
3168int
3169main ()
3170{
3171int i=0; i++;
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext conftest$ac_exeext
3177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178  (eval $ac_link) 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185         { ac_try='test -z "$ac_c_werror_flag"
3186                         || test ! -s conftest.err'
3187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188  (eval $ac_try) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; } &&
3192         { ac_try='test -s conftest$ac_exeext'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; }; then
3198  :
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203CFLAGS=
3204fi
3205rm -f conftest.err conftest.$ac_objext \
3206      conftest$ac_exeext conftest.$ac_ext
3207  if test -z "$CFLAGS"; then
3208    { 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
3209echo "$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;}
3210  fi
3211fi
3212
3213{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3214echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3215
3216
3217if test x"$MPICC" = x; then :; else
3218  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3219echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3220  CC="$MPICC"
3221fi
3222
3223# Correct the LD variable if we are using the MS or Intel-windows compiler
3224case "$CC" in
3225  clang* ) ;;
3226  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3227
3228 case $build in
3229  *-mingw*)
3230    if test "${LD+set}" = set; then :; else
3231      LD=link
3232    fi
3233    ;;
3234 esac
3235 if test $enable_msvc = yes ; then
3236   if test "x${LD+set}" = xset; then :; else
3237     LD=link
3238   fi
3239 fi
3240
3241    ;;
3242esac
3243
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250
3251
3252 #Let's try if that overcomes configuration problem with VC++ 6.0
3253
3254ac_ext=cc
3255ac_cpp='$CXXCPP $CPPFLAGS'
3256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259
3260
3261
3262
3263
3264
3265
3266coin_has_cxx=yes
3267
3268save_cxxflags="$CXXFLAGS"
3269# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3270case $build in
3271  *-cygwin* | *-mingw*)
3272      if test "$enable_msvc" = yes ; then
3273         comps="icl cl g++"
3274      else
3275         comps="g++ icl cl"
3276      fi ;;
3277  *-*-solaris*)
3278             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3279  *-darwin*) comps="g++ c++ CC" ;;
3280  *-linux-gnu*)
3281             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3282          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3283esac
3284
3285# We delete the cached value, since the test might not have been
3286# performed with our choice of compilers earlier
3287$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3288# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3289ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3294if test -n "$ac_tool_prefix"; then
3295  for ac_prog in $CCC $comps
3296  do
3297    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299echo "$as_me:$LINENO: checking for $ac_word" >&5
3300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301if test "${ac_cv_prog_CXX+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304  if test -n "$CXX"; then
3305  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310  IFS=$as_save_IFS
3311  test -z "$as_dir" && as_dir=.
3312  for ac_exec_ext in '' $ac_executable_extensions; do
3313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316    break 2
3317  fi
3318done
3319done
3320
3321fi
3322fi
3323CXX=$ac_cv_prog_CXX
3324if test -n "$CXX"; then
3325  echo "$as_me:$LINENO: result: $CXX" >&5
3326echo "${ECHO_T}$CXX" >&6
3327else
3328  echo "$as_me:$LINENO: result: no" >&5
3329echo "${ECHO_T}no" >&6
3330fi
3331
3332    test -n "$CXX" && break
3333  done
3334fi
3335if test -z "$CXX"; then
3336  ac_ct_CXX=$CXX
3337  for ac_prog in $CCC $comps
3338do
3339  # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341echo "$as_me:$LINENO: checking for $ac_word" >&5
3342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3344  echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346  if test -n "$ac_ct_CXX"; then
3347  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354  for ac_exec_ext in '' $ac_executable_extensions; do
3355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_ac_ct_CXX="$ac_prog"
3357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361done
3362
3363fi
3364fi
3365ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3366if test -n "$ac_ct_CXX"; then
3367  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3368echo "${ECHO_T}$ac_ct_CXX" >&6
3369else
3370  echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372fi
3373
3374  test -n "$ac_ct_CXX" && break
3375done
3376test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3377
3378  CXX=$ac_ct_CXX
3379fi
3380
3381
3382# Provide some information about the compiler.
3383echo "$as_me:$LINENO:" \
3384     "checking for C++ compiler version" >&5
3385ac_compiler=`set X $ac_compile; echo $2`
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3387  (eval $ac_compiler --version </dev/null >&5) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }
3391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3392  (eval $ac_compiler -v </dev/null >&5) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }
3396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3397  (eval $ac_compiler -V </dev/null >&5) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }
3401
3402echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3403echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418       choke me
3419#endif
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427  (eval $ac_compile) 2>conftest.er1
3428  ac_status=$?
3429  grep -v '^ *+' conftest.er1 >conftest.err
3430  rm -f conftest.er1
3431  cat conftest.err >&5
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); } &&
3434         { ac_try='test -z "$ac_cxx_werror_flag"
3435                         || test ! -s conftest.err'
3436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); }; } &&
3441         { ac_try='test -s conftest.$ac_objext'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; }; then
3447  ac_compiler_gnu=yes
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_compiler_gnu=no
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3460GXX=`test $ac_compiler_gnu = yes && echo yes`
3461ac_test_CXXFLAGS=${CXXFLAGS+set}
3462ac_save_CXXFLAGS=$CXXFLAGS
3463CXXFLAGS="-g"
3464echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3465echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3466if test "${ac_cv_prog_cxx_g+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486  (eval $ac_compile) 2>conftest.er1
3487  ac_status=$?
3488  grep -v '^ *+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); } &&
3493         { ac_try='test -z "$ac_cxx_werror_flag"
3494                         || test ! -s conftest.err'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; } &&
3500         { ac_try='test -s conftest.$ac_objext'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; }; then
3506  ac_cv_prog_cxx_g=yes
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511ac_cv_prog_cxx_g=no
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514fi
3515echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3516echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3517if test "$ac_test_CXXFLAGS" = set; then
3518  CXXFLAGS=$ac_save_CXXFLAGS
3519elif test $ac_cv_prog_cxx_g = yes; then
3520  if test "$GXX" = yes; then
3521    CXXFLAGS="-g -O2"
3522  else
3523    CXXFLAGS="-g"
3524  fi
3525else
3526  if test "$GXX" = yes; then
3527    CXXFLAGS="-O2"
3528  else
3529    CXXFLAGS=
3530  fi
3531fi
3532for ac_declaration in \
3533   '' \
3534   'extern "C" void std::exit (int) throw (); using std::exit;' \
3535   'extern "C" void std::exit (int); using std::exit;' \
3536   'extern "C" void exit (int) throw ();' \
3537   'extern "C" void exit (int);' \
3538   'void exit (int);'
3539do
3540  cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546$ac_declaration
3547#include <stdlib.h>
3548int
3549main ()
3550{
3551exit (42);
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558  (eval $ac_compile) 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } &&
3565         { ac_try='test -z "$ac_cxx_werror_flag"
3566                         || test ! -s conftest.err'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; } &&
3572         { ac_try='test -s conftest.$ac_objext'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; }; then
3578  :
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583continue
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586  cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592$ac_declaration
3593int
3594main ()
3595{
3596exit (42);
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_cxx_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest.$ac_objext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  break
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630done
3631rm -f conftest*
3632if test -n "$ac_declaration"; then
3633  echo '#ifdef __cplusplus' >>confdefs.h
3634  echo $ac_declaration      >>confdefs.h
3635  echo '#endif'             >>confdefs.h
3636fi
3637
3638ac_ext=cc
3639ac_cpp='$CXXCPP $CPPFLAGS'
3640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3643
3644
3645#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3646#thus, we test here whether $CXX is actually working
3647ac_ext=cc
3648ac_cpp='$CXXCPP $CPPFLAGS'
3649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652
3653echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3654echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3655cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h.  */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h.  */
3661
3662int
3663main ()
3664{
3665int i=0;
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext
3671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672  (eval $ac_compile) 2>conftest.er1
3673  ac_status=$?
3674  grep -v '^ *+' conftest.er1 >conftest.err
3675  rm -f conftest.er1
3676  cat conftest.err >&5
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); } &&
3679         { ac_try='test -z "$ac_cxx_werror_flag"
3680                         || test ! -s conftest.err'
3681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682  (eval $ac_try) 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; } &&
3686         { ac_try='test -s conftest.$ac_objext'
3687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688  (eval $ac_try) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); }; }; then
3692  echo "$as_me:$LINENO: result: yes" >&5
3693echo "${ECHO_T}yes" >&6
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3701echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3702   { (exit 1); exit 1; }; }
3703
3704fi
3705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706ac_ext=cc
3707ac_cpp='$CXXCPP $CPPFLAGS'
3708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3711
3712
3713coin_cxx_is_cl=false
3714# It seems that we need to cleanup something here for the Windows
3715case "$CXX" in
3716  clang* ) ;;
3717  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3718    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3719    mv confdefs.hh confdefs.h
3720    coin_cxx_is_cl=true
3721    ;;
3722esac
3723
3724# add automake conditional so we can recognize cl compiler in makefile
3725
3726
3727if test $coin_cxx_is_cl = true; then
3728  COIN_CXX_IS_CL_TRUE=
3729  COIN_CXX_IS_CL_FALSE='#'
3730else
3731  COIN_CXX_IS_CL_TRUE='#'
3732  COIN_CXX_IS_CL_FALSE=
3733fi
3734
3735
3736# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3737case "$CXX" in
3738  clang* ) ;;
3739  cl* | */cl* | CL* | */CL* )
3740    if test "$ac_cv_prog_cxx_g" = yes ; then
3741      ac_cv_prog_cxx_g=no
3742      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3743echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3744    fi ;;
3745  * )
3746    if test x"$CYGPATH_W" = x ; then
3747      CYGPATH_W=echo
3748    fi
3749    ;;
3750esac
3751CXXFLAGS="$save_cxxflags"
3752
3753# Check if a project specific CXXFLAGS variable has been set
3754if test x$COIN_PRJCT != x; then
3755  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3756  if test x$coin_tmp = xset; then
3757    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3758  fi
3759fi
3760
3761if test x"$CXXFLAGS" = x; then
3762
3763# ToDo decide whether we want -DNDEBUG for optimization
3764  coin_add_cxxflags=
3765  coin_opt_cxxflags=
3766  coin_dbg_cxxflags=
3767  coin_warn_cxxflags=
3768
3769  if test "$GXX" = "yes"; then
3770    case "$CXX" in
3771      icpc* | */icpc*)
3772        ;;
3773      *)
3774# ToDo decide about unroll-loops
3775        coin_opt_cxxflags="-O3"
3776        coin_add_cxxflags="-pipe"
3777        coin_dbg_cxxflags="-g -O0"
3778        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3779        case $build in
3780          *-darwin*)
3781            ;;
3782          *)
3783            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3784            ;;
3785        esac
3786    esac
3787  fi
3788
3789# Note that we do not need to cover GCC in the following tests.
3790
3791  if test -z "$coin_opt_cxxflags"; then
3792    case $build in
3793      *-cygwin* | *-mingw*)
3794        case "$CXX" in
3795          clang* ) ;;
3796          cl* | */cl* | CL* | */CL*)
3797            # The MT and MTd options are mutually exclusive
3798            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3799               coin_opt_cxxflags='-MD -O2'
3800               coin_dbg_cxxflags='-MDd'
3801            else
3802               coin_opt_cxxflags='-MT -O2'
3803               coin_dbg_cxxflags='-MTd'
3804            fi
3805            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3806            ;;
3807          icl* | */icl* | ICL* | */ICL*)
3808          # The MT and MTd options are mutually exclusive
3809            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3810              coin_opt_cxxflags='-MD -Ox'
3811              coin_dbg_cxxflags='-MDd -debug'
3812            else
3813              coin_opt_cxxflags='-MT -Ox'
3814              coin_dbg_cxxflags='-MTd -debug'
3815            fi
3816            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3817            ;;
3818        esac
3819        ;;
3820      *-linux-*)
3821        case "$CXX" in
3822          icpc* | */icpc*)
3823            coin_opt_cxxflags="-O3 -ip -mp1"
3824            coin_add_cxxflags=""
3825            coin_dbg_cxxflags="-g"
3826            # Check if -i_dynamic is necessary (for new glibc library)
3827            CXXFLAGS=
3828            cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h.  */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h.  */
3834
3835int
3836main ()
3837{
3838int i=0; i++;
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext conftest$ac_exeext
3844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845  (eval $ac_link) 2>conftest.er1
3846  ac_status=$?
3847  grep -v '^ *+' conftest.er1 >conftest.err
3848  rm -f conftest.er1
3849  cat conftest.err >&5
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } &&
3852         { ac_try='test -z "$ac_cxx_werror_flag"
3853                         || test ! -s conftest.err'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; } &&
3859         { ac_try='test -s conftest$ac_exeext'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; }; then
3865  :
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3871fi
3872rm -f conftest.err conftest.$ac_objext \
3873      conftest$ac_exeext conftest.$ac_ext
3874            ;;
3875          pgCC* | */pgCC*)
3876            coin_opt_cxxflags="-fast"
3877            coin_add_cxxflags="-Kieee -pc 64"
3878            coin_dbg_cxxflags="-g"
3879            ;;
3880        esac
3881        ;;
3882      *-ibm-*)
3883        case "$CXX" in
3884          xlC* | */xlC* | mpxlC* | */mpxlC*)
3885            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3886            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3887            coin_dbg_cxxflags="-g"
3888            ;;
3889        esac
3890        ;;
3891      *-hp-*)
3892        case "$CXX" in
3893          aCC* | */aCC* )
3894            coin_opt_cxxflags="-O"
3895            coin_add_cxxflags="-AA"
3896            coin_dbg_cxxflags="-g"
3897            ;;
3898        esac
3899        ;;
3900      *-*-solaris*)
3901          coin_opt_cxxflags="-O4"
3902          coin_dbg_cxxflags="-g"
3903        ;;
3904    esac
3905  fi
3906
3907# Generic flag settings. If these don't work, add a case above.
3908
3909  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3910    coin_dbg_cxxflags="-g"
3911  fi
3912
3913  if test -z "$coin_opt_cxxflags"; then
3914    # Try if -O option works if nothing else is set
3915    CXXFLAGS=-O
3916    cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926int i=0; i++;
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext conftest$ac_exeext
3932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933  (eval $ac_link) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } &&
3940         { ac_try='test -z "$ac_cxx_werror_flag"
3941                         || test ! -s conftest.err'
3942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943  (eval $ac_try) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; } &&
3947         { ac_try='test -s conftest$ac_exeext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  coin_opt_cxxflags="-O"
3954else
3955  echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958fi
3959rm -f conftest.err conftest.$ac_objext \
3960      conftest$ac_exeext conftest.$ac_ext
3961  fi
3962
3963  # if PM doesn't want the warning messages, take them out
3964  if test x"$coin_skip_warn_cxxflags" = xyes; then
3965    coin_warn_cxxflags=
3966  fi
3967
3968# Do final setup of flags based on values determined above.
3969
3970  if test x${DBG_CXXFLAGS+set} != xset; then
3971    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3972  fi
3973  if test x${OPT_CXXFLAGS+set} != xset; then
3974    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3975  fi
3976
3977  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3978  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3979
3980  if test "$coin_debug_compile" = "true"; then
3981    CXXFLAGS="$DBG_CXXFLAGS"
3982  else
3983    CXXFLAGS="$OPT_CXXFLAGS"
3984  fi
3985
3986# Handle the case where CXXFLAGS was set externally.
3987else
3988  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3989  if test x${DBG_CXXFLAGS+set} != xset; then
3990    DBG_CXXFLAGS="$CXXFLAGS"
3991  fi
3992  if test x${OPT_CXXFLAGS+set} != xset; then
3993    OPT_CXXFLAGS="$CXXFLAGS"
3994  fi
3995fi
3996
3997# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3998if test x$COIN_PRJCT != x; then
3999  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4000fi
4001
4002# Try if CXXFLAGS works
4003save_CXXFLAGS="$CXXFLAGS"
4004cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h.  */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h.  */
4010
4011int
4012main ()
4013{
4014int i=0; i++;
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019rm -f conftest.$ac_objext conftest$ac_exeext
4020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4021  (eval $ac_link) 2>conftest.er1
4022  ac_status=$?
4023  grep -v '^ *+' conftest.er1 >conftest.err
4024  rm -f conftest.er1
4025  cat conftest.err >&5
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } &&
4028         { ac_try='test -z "$ac_cxx_werror_flag"
4029                         || test ! -s conftest.err'
4030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031  (eval $ac_try) 2>&5
4032  ac_status=$?
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); }; } &&
4035         { ac_try='test -s conftest$ac_exeext'
4036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037  (eval $ac_try) 2>&5
4038  ac_status=$?
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); }; }; then
4041  :
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046CXXFLAGS=
4047fi
4048rm -f conftest.err conftest.$ac_objext \
4049      conftest$ac_exeext conftest.$ac_ext
4050if test -z "$CXXFLAGS"; then
4051  { 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
4052echo "$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;}
4053  CXXFLAGS='-O'
4054  cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060
4061int
4062main ()
4063{
4064int i=0; i++;
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext conftest$ac_exeext
4070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071  (eval $ac_link) 2>conftest.er1
4072  ac_status=$?
4073  grep -v '^ *+' conftest.er1 >conftest.err
4074  rm -f conftest.er1
4075  cat conftest.err >&5
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); } &&
4078         { ac_try='test -z "$ac_cxx_werror_flag"
4079                         || test ! -s conftest.err'
4080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081  (eval $ac_try) 2>&5
4082  ac_status=$?
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); }; } &&
4085         { ac_try='test -s conftest$ac_exeext'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; }; then
4091  :
4092else
4093  echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096CXXFLAGS=
4097fi
4098rm -f conftest.err conftest.$ac_objext \
4099      conftest$ac_exeext conftest.$ac_ext
4100  if test -z "$CXXFLAGS"; then
4101    { 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
4102echo "$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;}
4103  fi
4104fi
4105
4106{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4107echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4108
4109
4110if test x"$MPICXX" = x; then :; else
4111  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4112echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4113  CXX="$MPICXX"
4114fi
4115
4116# correct the LD variable in a mingw build with MS or intel compiler
4117case "$CXX" in
4118  clang* ) ;;
4119  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4120
4121 case $build in
4122  *-mingw*)
4123    if test "${LD+set}" = set; then :; else
4124      LD=link
4125    fi
4126    ;;
4127 esac
4128 if test $enable_msvc = yes ; then
4129   if test "x${LD+set}" = xset; then :; else
4130     LD=link
4131   fi
4132 fi
4133
4134    ;;
4135esac
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143
4144
4145# Initialize automake and libtool
4146{
4147
4148
4149
4150# START
4151
4152coin_disable_shared=no
4153# Test if force_shared has been set
4154if test "x" = xforce_shared; then
4155  if test x$enable_shared = xno; then
4156    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4157echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4158   { (exit 1); exit 1; }; }
4159  fi
4160  enable_shared=yes;
4161else
4162  # On Cygwin and AIX, building DLLs doesn't work
4163  case $build in
4164    *-cygwin* | *-mingw*)
4165      coin_disable_shared=yes
4166      if test x"$enable_shared" = xyes; then
4167        case "$CC" in
4168          clang* )
4169            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4170echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4171            ;;
4172          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4173            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4174echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4175            ;;
4176          *gcc*)
4177            if test x"$enable_dependency_linking" = xyes; then
4178              coin_disable_shared=no
4179            else
4180              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4181echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4182            fi
4183            ;;
4184          *)
4185            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4186echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4187            ;;
4188        esac
4189      fi
4190    ;;
4191    *-aix*)
4192      coin_disable_shared=yes
4193      platform=AIX
4194      if test x"$enable_shared" = xyes; then
4195        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4196echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4197      fi
4198    ;;
4199  esac
4200fi
4201if test x"$coin_disable_shared" = xyes; then
4202  if test x"$enable_shared" = xyes; then
4203    :
4204  else
4205    # we don't disable shared, because it was not selected anyway
4206    coin_disable_shared=no
4207  fi
4208  enable_shared=no
4209fi
4210# By default, we only want the shared objects to be compiled
4211# Check whether --enable-static or --disable-static was given.
4212if test "${enable_static+set}" = set; then
4213  enableval="$enable_static"
4214  p=${PACKAGE-default}
4215    case $enableval in
4216    yes) enable_static=yes ;;
4217    no) enable_static=no ;;
4218    *)
4219     enable_static=no
4220      # Look at the argument we got.  We use all the common list separators.
4221      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4222      for pkg in $enableval; do
4223        IFS="$lt_save_ifs"
4224        if test "X$pkg" = "X$p"; then
4225          enable_static=yes
4226        fi
4227      done
4228      IFS="$lt_save_ifs"
4229      ;;
4230    esac
4231else
4232  enable_static=no
4233fi;
4234
4235
4236
4237
4238# Initialize automake
4239echo "$as_me:$LINENO: checking for egrep" >&5
4240echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4241if test "${ac_cv_prog_egrep+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4245    then ac_cv_prog_egrep='grep -E'
4246    else ac_cv_prog_egrep='egrep'
4247    fi
4248fi
4249echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4250echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4251 EGREP=$ac_cv_prog_egrep
4252
4253
4254echo "$as_me:$LINENO: checking whether ln -s works" >&5
4255echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4256LN_S=$as_ln_s
4257if test "$LN_S" = "ln -s"; then
4258  echo "$as_me:$LINENO: result: yes" >&5
4259echo "${ECHO_T}yes" >&6
4260else
4261  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4262echo "${ECHO_T}no, using $LN_S" >&6
4263fi
4264
4265am__api_version="1.9"
4266# Find a good install program.  We prefer a C program (faster),
4267# so one script is as good as another.  But avoid the broken or
4268# incompatible versions:
4269# SysV /etc/install, /usr/sbin/install
4270# SunOS /usr/etc/install
4271# IRIX /sbin/install
4272# AIX /bin/install
4273# AmigaOS /C/install, which installs bootblocks on floppy discs
4274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4275# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4277# OS/2's system install, which has a completely different semantic
4278# ./install, which can be erroneously created by make from ./install.sh.
4279echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4280echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4281if test -z "$INSTALL"; then
4282if test "${ac_cv_path_install+set}" = set; then
4283  echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290  # Account for people who put trailing slashes in PATH elements.
4291case $as_dir/ in
4292  ./ | .// | /cC/* | \
4293  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4294  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4295  /usr/ucb/* ) ;;
4296  *)
4297    # OSF1 and SCO ODT 3.0 have their own names for install.
4298    # Don't use installbsd from OSF since it installs stuff as root
4299    # by default.
4300    for ac_prog in ginstall scoinst install; do
4301      for ac_exec_ext in '' $ac_executable_extensions; do
4302        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4303          if test $ac_prog = install &&
4304            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4305            # AIX install.  It has an incompatible calling convention.
4306            :
4307          elif test $ac_prog = install &&
4308            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4309            # program-specific install script used by HP pwplus--don't use.
4310            :
4311          else
4312            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4313            break 3
4314          fi
4315        fi
4316      done
4317    done
4318    ;;
4319esac
4320done
4321
4322
4323fi
4324  if test "${ac_cv_path_install+set}" = set; then
4325    INSTALL=$ac_cv_path_install
4326  else
4327    # As a last resort, use the slow shell script.  We don't cache a
4328    # path for INSTALL within a source directory, because that will
4329    # break other packages using the cache if that directory is
4330    # removed, or if the path is relative.
4331    INSTALL=$ac_install_sh
4332  fi
4333fi
4334echo "$as_me:$LINENO: result: $INSTALL" >&5
4335echo "${ECHO_T}$INSTALL" >&6
4336
4337# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4338# It thinks the first close brace ends the variable substitution.
4339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4340
4341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4342
4343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4344
4345echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4346echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4347# Just in case
4348sleep 1
4349echo timestamp > conftest.file
4350# Do `set' in a subshell so we don't clobber the current shell's
4351# arguments.  Must try -L first in case configure is actually a
4352# symlink; some systems play weird games with the mod time of symlinks
4353# (eg FreeBSD returns the mod time of the symlink's containing
4354# directory).
4355if (
4356   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4357   if test "$*" = "X"; then
4358      # -L didn't work.
4359      set X `ls -t $srcdir/configure conftest.file`
4360   fi
4361   rm -f conftest.file
4362   if test "$*" != "X $srcdir/configure conftest.file" \
4363      && test "$*" != "X conftest.file $srcdir/configure"; then
4364
4365      # If neither matched, then we have a broken ls.  This can happen
4366      # if, for instance, CONFIG_SHELL is bash and it inherits a
4367      # broken ls alias from the environment.  This has actually
4368      # happened.  Such a system could not be considered "sane".
4369      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4370alias in your environment" >&5
4371echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4372alias in your environment" >&2;}
4373   { (exit 1); exit 1; }; }
4374   fi
4375
4376   test "$2" = conftest.file
4377   )
4378then
4379   # Ok.
4380   :
4381else
4382   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4383Check your system clock" >&5
4384echo "$as_me: error: newly created file is older than distributed files!
4385Check your system clock" >&2;}
4386   { (exit 1); exit 1; }; }
4387fi
4388echo "$as_me:$LINENO: result: yes" >&5
4389echo "${ECHO_T}yes" >&6
4390test "$program_prefix" != NONE &&
4391  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4392# Use a double $ so make ignores it.
4393test "$program_suffix" != NONE &&
4394  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4395# Double any \ or $.  echo might interpret backslashes.
4396# By default was `s,x,x', remove it if useless.
4397cat <<\_ACEOF >conftest.sed
4398s/[\\$]/&&/g;s/;s,x,x,$//
4399_ACEOF
4400program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4401rm conftest.sed
4402
4403# expand $ac_aux_dir to an absolute path
4404am_aux_dir=`cd $ac_aux_dir && pwd`
4405
4406test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4407# Use eval to expand $SHELL
4408if eval "$MISSING --run true"; then
4409  am_missing_run="$MISSING --run "
4410else
4411  am_missing_run=
4412  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4413echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4414fi
4415
4416if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4417  # We used to keeping the `.' as first argument, in order to
4418  # allow $(mkdir_p) to be used without argument.  As in
4419  #   $(mkdir_p) $(somedir)
4420  # where $(somedir) is conditionally defined.  However this is wrong
4421  # for two reasons:
4422  #  1. if the package is installed by a user who cannot write `.'
4423  #     make install will fail,
4424  #  2. the above comment should most certainly read
4425  #     $(mkdir_p) $(DESTDIR)$(somedir)
4426  #     so it does not work when $(somedir) is undefined and
4427  #     $(DESTDIR) is not.
4428  #  To support the latter case, we have to write
4429  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4430  #  so the `.' trick is pointless.
4431  mkdir_p='mkdir -p --'
4432else
4433  # On NextStep and OpenStep, the `mkdir' command does not
4434  # recognize any option.  It will interpret all options as
4435  # directories to create, and then abort because `.' already
4436  # exists.
4437  for d in ./-p ./--version;
4438  do
4439    test -d $d && rmdir $d
4440  done
4441  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4442  if test -f "$ac_aux_dir/mkinstalldirs"; then
4443    mkdir_p='$(mkinstalldirs)'
4444  else
4445    mkdir_p='$(install_sh) -d'
4446  fi
4447fi
4448
4449for ac_prog in gawk mawk nawk awk
4450do
4451  # Extract the first word of "$ac_prog", so it can be a program name with args.
4452set dummy $ac_prog; ac_word=$2
4453echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455if test "${ac_cv_prog_AWK+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  if test -n "$AWK"; then
4459  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464  IFS=$as_save_IFS
4465  test -z "$as_dir" && as_dir=.
4466  for ac_exec_ext in '' $ac_executable_extensions; do
4467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468    ac_cv_prog_AWK="$ac_prog"
4469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473done
4474
4475fi
4476fi
4477AWK=$ac_cv_prog_AWK
4478if test -n "$AWK"; then
4479  echo "$as_me:$LINENO: result: $AWK" >&5
4480echo "${ECHO_T}$AWK" >&6
4481else
4482  echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484fi
4485
4486  test -n "$AWK" && break
4487done
4488
4489echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4490echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4491set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4492if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  cat >conftest.make <<\_ACEOF
4496all:
4497        @echo 'ac_maketemp="$(MAKE)"'
4498_ACEOF
4499# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4500eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4501if test -n "$ac_maketemp"; then
4502  eval ac_cv_prog_make_${ac_make}_set=yes
4503else
4504  eval ac_cv_prog_make_${ac_make}_set=no
4505fi
4506rm -f conftest.make
4507fi
4508if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4509  echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
4511  SET_MAKE=
4512else
4513  echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515  SET_MAKE="MAKE=${MAKE-make}"
4516fi
4517
4518rm -rf .tst 2>/dev/null
4519mkdir .tst 2>/dev/null
4520if test -d .tst; then
4521  am__leading_dot=.
4522else
4523  am__leading_dot=_
4524fi
4525rmdir .tst 2>/dev/null
4526
4527DEPDIR="${am__leading_dot}deps"
4528
4529          ac_config_commands="$ac_config_commands depfiles"
4530
4531
4532am_make=${MAKE-make}
4533cat > confinc << 'END'
4534am__doit:
4535        @echo done
4536.PHONY: am__doit
4537END
4538# If we don't find an include directive, just comment out the code.
4539echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4540echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4541am__include="#"
4542am__quote=
4543_am_result=none
4544# First try GNU make style include.
4545echo "include confinc" > confmf
4546# We grep out `Entering directory' and `Leaving directory'
4547# messages which can occur if `w' ends up in MAKEFLAGS.
4548# In particular we don't look at `^make:' because GNU make might
4549# be invoked under some other name (usually "gmake"), in which
4550# case it prints its new name instead of `make'.
4551if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4552   am__include=include
4553   am__quote=
4554   _am_result=GNU
4555fi
4556# Now try BSD make style include.
4557if test "$am__include" = "#"; then
4558   echo '.include "confinc"' > confmf
4559   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4560      am__include=.include
4561      am__quote="\""
4562      _am_result=BSD
4563   fi
4564fi
4565
4566
4567echo "$as_me:$LINENO: result: $_am_result" >&5
4568echo "${ECHO_T}$_am_result" >&6
4569rm -f confinc confmf
4570
4571# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4572if test "${enable_dependency_tracking+set}" = set; then
4573  enableval="$enable_dependency_tracking"
4574
4575fi;
4576if test "x$enable_dependency_tracking" != xno; then
4577  am_depcomp="$ac_aux_dir/depcomp"
4578  AMDEPBACKSLASH='\'
4579fi
4580
4581
4582if test "x$enable_dependency_tracking" != xno; then
4583  AMDEP_TRUE=
4584  AMDEP_FALSE='#'
4585else
4586  AMDEP_TRUE='#'
4587  AMDEP_FALSE=
4588fi
4589
4590
4591
4592
4593
4594
4595# AC_MSG_NOTICE([Beginning automake initialisation.])
4596# Stuff for automake
4597# test to see if srcdir already configured
4598if test "`cd $srcdir && pwd`" != "`pwd`" &&
4599   test -f $srcdir/config.status; then
4600  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4601echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604
4605# test whether we have cygpath
4606if test -z "$CYGPATH_W"; then
4607  if (cygpath --version) >/dev/null 2>/dev/null; then
4608    CYGPATH_W='cygpath -w'
4609  else
4610    CYGPATH_W=echo
4611  fi
4612fi
4613
4614
4615# Define the identity of the package.
4616 PACKAGE='cbc'
4617 VERSION='2.8.8'
4618
4619
4620cat >>confdefs.h <<_ACEOF
4621#define PACKAGE "$PACKAGE"
4622_ACEOF
4623
4624
4625cat >>confdefs.h <<_ACEOF
4626#define VERSION "$VERSION"
4627_ACEOF
4628
4629# Some tools Automake needs.
4630
4631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4632
4633
4634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4635
4636
4637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4638
4639
4640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4641
4642
4643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4644
4645install_sh=${install_sh-"$am_aux_dir/install-sh"}
4646
4647# Installed binaries are usually stripped using `strip' when the user
4648# run `make install-strip'.  However `strip' might not be the right
4649# tool to use in cross-compilation environments, therefore Automake
4650# will honor the `STRIP' environment variable to overrule this program.
4651if test "$cross_compiling" != no; then
4652  if test -n "$ac_tool_prefix"; then
4653  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4654set dummy ${ac_tool_prefix}strip; ac_word=$2
4655echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657if test "${ac_cv_prog_STRIP+set}" = set; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  if test -n "$STRIP"; then
4661  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668  for ac_exec_ext in '' $ac_executable_extensions; do
4669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672    break 2
4673  fi
4674done
4675done
4676
4677fi
4678fi
4679STRIP=$ac_cv_prog_STRIP
4680if test -n "$STRIP"; then
4681  echo "$as_me:$LINENO: result: $STRIP" >&5
4682echo "${ECHO_T}$STRIP" >&6
4683else
4684  echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688fi
4689if test -z "$ac_cv_prog_STRIP"; then
4690  ac_ct_STRIP=$STRIP
4691  # Extract the first word of "strip", so it can be a program name with args.
4692set dummy strip; ac_word=$2
4693echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  if test -n "$ac_ct_STRIP"; then
4699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706  for ac_exec_ext in '' $ac_executable_extensions; do
4707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708    ac_cv_prog_ac_ct_STRIP="strip"
4709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713done
4714
4715  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4716fi
4717fi
4718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4719if test -n "$ac_ct_STRIP"; then
4720  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4721echo "${ECHO_T}$ac_ct_STRIP" >&6
4722else
4723  echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
4725fi
4726
4727  STRIP=$ac_ct_STRIP
4728else
4729  STRIP="$ac_cv_prog_STRIP"
4730fi
4731
4732fi
4733INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4734
4735# We need awk for the "check" target.  The system "awk" is bad on
4736# some platforms.
4737# Always define AMTAR for backward compatibility.
4738
4739AMTAR=${AMTAR-"${am_missing_run}tar"}
4740
4741am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4742
4743
4744
4745
4746depcc="$CC"   am_compiler_list=
4747
4748echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4749echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4750if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754  # We make a subdir and do the tests there.  Otherwise we can end up
4755  # making bogus files that we don't know about and never remove.  For
4756  # instance it was reported that on HP-UX the gcc test will end up
4757  # making a dummy file named `D' -- because `-MD' means `put the output
4758  # in D'.
4759  mkdir conftest.dir
4760  # Copy depcomp to subdir because otherwise we won't find it if we're
4761  # using a relative directory.
4762  cp "$am_depcomp" conftest.dir
4763  cd conftest.dir
4764  # We will build objects and dependencies in a subdirectory because
4765  # it helps to detect inapplicable dependency modes.  For instance
4766  # both Tru64's cc and ICC support -MD to output dependencies as a
4767  # side effect of compilation, but ICC will put the dependencies in
4768  # the current directory while Tru64 will put them in the object
4769  # directory.
4770  mkdir sub
4771
4772  am_cv_CC_dependencies_compiler_type=none
4773  if test "$am_compiler_list" = ""; then
4774     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4775  fi
4776  for depmode in $am_compiler_list; do
4777    # Setup a source with many dependencies, because some compilers
4778    # like to wrap large dependency lists on column 80 (with \), and
4779    # we should not choose a depcomp mode which is confused by this.
4780    #
4781    # We need to recreate these files for each test, as the compiler may
4782    # overwrite some of them when testing with obscure command lines.
4783    # This happens at least with the AIX C compiler.
4784    : > sub/conftest.c
4785    for i in 1 2 3 4 5 6; do
4786      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4787      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4788      # Solaris 8's {/usr,}/bin/sh.
4789      touch sub/conftst$i.h
4790    done
4791    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4792
4793    case $depmode in
4794    nosideeffect)
4795      # after this tag, mechanisms are not by side-effect, so they'll
4796      # only be used when explicitly requested
4797      if test "x$enable_dependency_tracking" = xyes; then
4798        continue
4799      else
4800        break
4801      fi
4802      ;;
4803    none) break ;;
4804    esac
4805    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4806    # mode.  It turns out that the SunPro C++ compiler does not properly
4807    # handle `-M -o', and we need to detect this.
4808    if depmode=$depmode \
4809       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4810       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4811       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4812         >/dev/null 2>conftest.err &&
4813       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4814       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4815       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4816      # icc doesn't choke on unknown options, it will just issue warnings
4817      # or remarks (even with -Werror).  So we grep stderr for any message
4818      # that says an option was ignored or not supported.
4819      # When given -MP, icc 7.0 and 7.1 complain thusly:
4820      #   icc: Command line warning: ignoring option '-M'; no argument required
4821      # The diagnosis changed in icc 8.0:
4822      #   icc: Command line remark: option '-MP' not supported
4823      if (grep 'ignoring option' conftest.err ||
4824          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4825        am_cv_CC_dependencies_compiler_type=$depmode
4826        break
4827      fi
4828    fi
4829  done
4830
4831  cd ..
4832  rm -rf conftest.dir
4833else
4834  am_cv_CC_dependencies_compiler_type=none
4835fi
4836
4837fi
4838echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4839echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4840CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4841
4842
4843
4844if
4845  test "x$enable_dependency_tracking" != xno \
4846  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4847  am__fastdepCC_TRUE=
4848  am__fastdepCC_FALSE='#'
4849else
4850  am__fastdepCC_TRUE='#'
4851  am__fastdepCC_FALSE=
4852fi
4853
4854
4855depcc="$CXX"  am_compiler_list=
4856
4857echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4858echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4859if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4860  echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4863  # We make a subdir and do the tests there.  Otherwise we can end up
4864  # making bogus files that we don't know about and never remove.  For
4865  # instance it was reported that on HP-UX the gcc test will end up
4866  # making a dummy file named `D' -- because `-MD' means `put the output
4867  # in D'.
4868  mkdir conftest.dir
4869  # Copy depcomp to subdir because otherwise we won't find it if we're
4870  # using a relative directory.
4871  cp "$am_depcomp" conftest.dir
4872  cd conftest.dir
4873  # We will build objects and dependencies in a subdirectory because
4874  # it helps to detect inapplicable dependency modes.  For instance
4875  # both Tru64's cc and ICC support -MD to output dependencies as a
4876  # side effect of compilation, but ICC will put the dependencies in
4877  # the current directory while Tru64 will put them in the object
4878  # directory.
4879  mkdir sub
4880
4881  am_cv_CXX_dependencies_compiler_type=none
4882  if test "$am_compiler_list" = ""; then
4883     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4884  fi
4885  for depmode in $am_compiler_list; do
4886    # Setup a source with many dependencies, because some compilers
4887    # like to wrap large dependency lists on column 80 (with \), and
4888    # we should not choose a depcomp mode which is confused by this.
4889    #
4890    # We need to recreate these files for each test, as the compiler may
4891    # overwrite some of them when testing with obscure command lines.
4892    # This happens at least with the AIX C compiler.
4893    : > sub/conftest.c
4894    for i in 1 2 3 4 5 6; do
4895      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4896      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4897      # Solaris 8's {/usr,}/bin/sh.
4898      touch sub/conftst$i.h
4899    done
4900    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901
4902    case $depmode in
4903    nosideeffect)
4904      # after this tag, mechanisms are not by side-effect, so they'll
4905      # only be used when explicitly requested
4906      if test "x$enable_dependency_tracking" = xyes; then
4907        continue
4908      else
4909        break
4910      fi
4911      ;;
4912    none) break ;;
4913    esac
4914    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4915    # mode.  It turns out that the SunPro C++ compiler does not properly
4916    # handle `-M -o', and we need to detect this.
4917    if depmode=$depmode \
4918       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4919       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4921         >/dev/null 2>conftest.err &&
4922       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4923       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4924       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4925      # icc doesn't choke on unknown options, it will just issue warnings
4926      # or remarks (even with -Werror).  So we grep stderr for any message
4927      # that says an option was ignored or not supported.
4928      # When given -MP, icc 7.0 and 7.1 complain thusly:
4929      #   icc: Command line warning: ignoring option '-M'; no argument required
4930      # The diagnosis changed in icc 8.0:
4931      #   icc: Command line remark: option '-MP' not supported
4932      if (grep 'ignoring option' conftest.err ||
4933          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4934        am_cv_CXX_dependencies_compiler_type=$depmode
4935        break
4936      fi
4937    fi
4938  done
4939
4940  cd ..
4941  rm -rf conftest.dir
4942else
4943  am_cv_CXX_dependencies_compiler_type=none
4944fi
4945
4946fi
4947echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4948echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4949CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4950
4951
4952
4953if
4954  test "x$enable_dependency_tracking" != xno \
4955  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4956  am__fastdepCXX_TRUE=
4957  am__fastdepCXX_FALSE='#'
4958else
4959  am__fastdepCXX_TRUE='#'
4960  am__fastdepCXX_FALSE=
4961fi
4962
4963
4964
4965echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4966echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4967    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4968if test "${enable_maintainer_mode+set}" = set; then
4969  enableval="$enable_maintainer_mode"
4970  USE_MAINTAINER_MODE=$enableval
4971else
4972  USE_MAINTAINER_MODE=no
4973fi;
4974  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4975echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4976
4977
4978if test $USE_MAINTAINER_MODE = yes; then
4979  MAINTAINER_MODE_TRUE=
4980  MAINTAINER_MODE_FALSE='#'
4981else
4982  MAINTAINER_MODE_TRUE='#'
4983  MAINTAINER_MODE_FALSE=
4984fi
4985
4986  MAINT=$MAINTAINER_MODE_TRUE
4987
4988
4989
4990coin_have_externals=no
4991if test "$enable_maintainer_mode" = yes; then
4992
4993  # If maintainer mode is chosen, we make sure that the correct versions
4994  # of the tools are used, and that we know where libtool.m4 is (to
4995  # recreate acinclude.m4)
4996
4997
4998  LIBTOOLM4=
4999  # Normally, $HOME
5000  AUTOTOOLS_DFLT=$HOME
5001
5002  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5003echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5004if test "${ac_cv_use_correct_autotools+set}" = set; then
5005  echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007  ac_cv_use_correct_autotools=check
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5010echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5011
5012  if test $ac_cv_use_correct_autotools = check; then
5013    ac_cv_use_correct_autotools=yes
5014    # Check if we have autoconf
5015    # Extract the first word of "autoconf", so it can be a program name with args.
5016set dummy autoconf; ac_word=$2
5017echo "$as_me:$LINENO: checking for $ac_word" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019if test "${ac_cv_prog_have_autoconf+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  if test -n "$have_autoconf"; then
5023  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5024else
5025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028  IFS=$as_save_IFS
5029  test -z "$as_dir" && as_dir=.
5030  for ac_exec_ext in '' $ac_executable_extensions; do
5031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032    ac_cv_prog_have_autoconf="yes"
5033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034    break 2
5035  fi
5036done
5037done
5038
5039  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5040fi
5041fi
5042have_autoconf=$ac_cv_prog_have_autoconf
5043if test -n "$have_autoconf"; then
5044  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5045echo "${ECHO_T}$have_autoconf" >&6
5046else
5047  echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6
5049fi
5050
5051    if test $have_autoconf = no; then
5052      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5053echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5054   { (exit 1); exit 1; }; }
5055    fi
5056
5057    # Check whether autoconf is the correct version
5058    correct_version='2.59'
5059    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5060    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5061echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5062    autoconf --version > confauto.out 2>&1
5063    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5064      echo "$as_me:$LINENO: result: yes" >&5
5065echo "${ECHO_T}yes" >&6
5066    else
5067      rm -f confauto.out
5068      echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5071echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5072   { (exit 1); exit 1; }; }
5073    fi
5074    rm -f confauto.out
5075
5076    # Check if the executable autoconf is picked up from the correct location
5077    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5078echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5079    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5080    autoconf_dir=`cd $autoconf_dir; pwd`
5081    if test x$AUTOTOOLS_DIR = x; then
5082      want_dir=$AUTOTOOLS_DFLT/bin
5083    else
5084      want_dir=$AUTOTOOLS_DIR/bin
5085    fi
5086    if test $autoconf_dir = `cd $want_dir; pwd`; then
5087      echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089    else
5090      rm -f confauto.out
5091      echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6
5093      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5094echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5095   { (exit 1); exit 1; }; }
5096    fi
5097
5098    # Check if we have automake
5099    # Extract the first word of "automake", so it can be a program name with args.
5100set dummy automake; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_prog_have_automake+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  if test -n "$have_automake"; then
5107  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112  IFS=$as_save_IFS
5113  test -z "$as_dir" && as_dir=.
5114  for ac_exec_ext in '' $ac_executable_extensions; do
5115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116    ac_cv_prog_have_automake="yes"
5117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118    break 2
5119  fi
5120done
5121done
5122
5123  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5124fi
5125fi
5126have_automake=$ac_cv_prog_have_automake
5127if test -n "$have_automake"; then
5128  echo "$as_me:$LINENO: result: $have_automake" >&5
5129echo "${ECHO_T}$have_automake" >&6
5130else
5131  echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135    if test $have_automake = no; then
5136      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5137echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5138   { (exit 1); exit 1; }; }
5139    fi
5140
5141    # Check whether automake is the correct version
5142    correct_version='1.9.6'
5143    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5144    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5145echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5146    automake --version > confauto.out 2>&1
5147    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5148      echo "$as_me:$LINENO: result: yes" >&5
5149echo "${ECHO_T}yes" >&6
5150    else
5151      rm -f confauto.out
5152      echo "$as_me:$LINENO: result: no" >&5
5153echo "${ECHO_T}no" >&6
5154      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5155echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5156   { (exit 1); exit 1; }; }
5157    fi
5158    rm -f confauto.out
5159
5160    # Check if the executable automake is picked up from the correct location
5161    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5162echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5163    automake_dir=`which automake | sed -e 's=/automake=='`
5164    automake_dir=`cd $automake_dir; pwd`
5165    if test x$AUTOTOOLS_DIR = x; then
5166      want_dir=$AUTOTOOLS_DFLT/bin
5167    else
5168      want_dir=$AUTOTOOLS_DIR/bin
5169    fi
5170    if test $automake_dir = `cd $want_dir; pwd`; then
5171      echo "$as_me:$LINENO: result: yes" >&5
5172echo "${ECHO_T}yes" >&6
5173    else
5174      rm -f confauto.out
5175      echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5178echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5179   { (exit 1); exit 1; }; }
5180    fi
5181
5182    # Check if this is the correct version of libtool (with escaped dots)
5183    if test x$AUTOTOOLS_DIR = x; then
5184      want_dir=$AUTOTOOLS_DFLT/share
5185    else
5186      want_dir=$AUTOTOOLS_DIR/share
5187    fi
5188    correct_version='1.5.22'
5189    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5190    if test -r $want_dir/libtool/ltmain.sh; then
5191  have_ltmain=yes
5192  :
5193else
5194  have_ltmain=no
5195  :
5196fi
5197
5198    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5199echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5200    if test $have_ltmain = yes; then
5201    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5202        echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204      else
5205        echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5208echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5209   { (exit 1); exit 1; }; }
5210      fi
5211    else
5212      echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5215echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5216   { (exit 1); exit 1; }; }
5217    fi
5218  fi
5219
5220  # Check if we can find the libtool file
5221  if test x$AUTOTOOLS_DIR = x; then
5222    want_dir=$AUTOTOOLS_DFLT/share
5223  else
5224    want_dir=$AUTOTOOLS_DIR/share
5225  fi
5226  if test -r $want_dir/aclocal/libtool.m4; then
5227  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5228  :
5229else
5230  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5231echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5232   { (exit 1); exit 1; }; }
5233  :
5234fi
5235
5236
5237  # Check if we have an Dependencies file
5238  if test -r $srcdir/Dependencies; then
5239    coin_have_externals=yes
5240  fi
5241  # Check if subversion is installed and understands https
5242  # Extract the first word of "svn", so it can be a program name with args.
5243set dummy svn; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_have_svn+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$have_svn"; then
5250  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259    ac_cv_prog_have_svn="yes"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265
5266  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5267fi
5268fi
5269have_svn=$ac_cv_prog_have_svn
5270if test -n "$have_svn"; then
5271  echo "$as_me:$LINENO: result: $have_svn" >&5
5272echo "${ECHO_T}$have_svn" >&6
5273else
5274  echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
5276fi
5277
5278  if test x$have_svn = xyes; then
5279    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5280echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5281if test "${ac_cv_svn_understands_https+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  svn --version > confauto.out 2>&1
5285                    if $EGREP https confauto.out >/dev/null 2>&1; then
5286                      ac_cv_svn_understands_https=yes
5287                    else
5288                      ac_cv_svn_understands_https=no
5289                      have_svn=no
5290                      ac_cv_prog_have_svn=no
5291                    fi
5292                    rm -f confauto.out
5293fi
5294echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5295echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5296  fi
5297
5298  # Find the location of the BuildTools directory
5299  BUILDTOOLSDIR=
5300  if test -r $srcdir/BuildTools/coin.m4; then
5301    BUILDTOOLSDIR=$srcdir/BuildTools
5302  else
5303    if test -r $srcdir/../BuildTools/coin.m4; then
5304      BUILDTOOLSDIR=$srcdir/../BuildTools
5305    else
5306      if test -r $srcdir/../../BuildTools/coin.m4; then
5307        BUILDTOOLSDIR=$srcdir/../../BuildTools
5308      else
5309        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5310echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5311   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5312      fi
5313    fi
5314  fi
5315
5316
5317  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5318  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5319    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5320  fi
5321
5322  # The following variable is set to the name of the directory where
5323  # the autotool scripts are located
5324
5325  AUX_DIR=$ac_aux_dir
5326fi
5327
5328# helpful variable for the base directory of this package
5329abs_source_dir=`cd $srcdir; pwd`
5330
5331
5332# Stuff for example Makefiles
5333if test x$prefix = xNONE; then
5334  full_prefix=$ac_default_prefix
5335else
5336  full_prefix=$prefix
5337fi
5338full_prefix=`cd $full_prefix ; pwd`
5339
5340abs_lib_dir=$full_prefix/lib
5341
5342abs_include_dir=$full_prefix/include
5343
5344abs_bin_dir=$full_prefix/bin
5345
5346
5347
5348if test $coin_have_externals = yes && test x$have_svn = xyes; then
5349  HAVE_EXTERNALS_TRUE=
5350  HAVE_EXTERNALS_FALSE='#'
5351else
5352  HAVE_EXTERNALS_TRUE='#'
5353  HAVE_EXTERNALS_FALSE=
5354fi
5355
5356
5357# AC_MSG_NOTICE([End automake initialisation.])
5358
5359
5360
5361LIBTOOL=
5362if test -f ../libtool; then
5363  coin_config_dir=..
5364  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5365fi
5366if test "x$LIBTOOL" = x; then
5367  if test -f ../../libtool; then
5368    coin_config_dir=../..
5369    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5370  fi
5371fi
5372
5373if test "x$LIBTOOL" = x; then
5374# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5375  # Stuff for libtool
5376  # Check whether --enable-shared or --disable-shared was given.
5377if test "${enable_shared+set}" = set; then
5378  enableval="$enable_shared"
5379  p=${PACKAGE-default}
5380    case $enableval in
5381    yes) enable_shared=yes ;;
5382    no) enable_shared=no ;;
5383    *)
5384      enable_shared=no
5385      # Look at the argument we got.  We use all the common list separators.
5386      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5387      for pkg in $enableval; do
5388        IFS="$lt_save_ifs"
5389        if test "X$pkg" = "X$p"; then
5390          enable_shared=yes
5391        fi
5392      done
5393      IFS="$lt_save_ifs"
5394      ;;
5395    esac
5396else
5397  enable_shared=yes
5398fi;
5399
5400# Check whether --enable-fast-install or --disable-fast-install was given.
5401if test "${enable_fast_install+set}" = set; then
5402  enableval="$enable_fast_install"
5403  p=${PACKAGE-default}
5404    case $enableval in
5405    yes) enable_fast_install=yes ;;
5406    no) enable_fast_install=no ;;
5407    *)
5408      enable_fast_install=no
5409      # Look at the argument we got.  We use all the common list separators.
5410      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5411      for pkg in $enableval; do
5412        IFS="$lt_save_ifs"
5413        if test "X$pkg" = "X$p"; then
5414          enable_fast_install=yes
5415        fi
5416      done
5417      IFS="$lt_save_ifs"
5418      ;;
5419    esac
5420else
5421  enable_fast_install=yes
5422fi;
5423
5424echo "$as_me:$LINENO: checking host system type" >&5
5425echo $ECHO_N "checking host system type... $ECHO_C" >&6
5426if test "${ac_cv_host+set}" = set; then
5427  echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429  ac_cv_host_alias=$host_alias
5430test -z "$ac_cv_host_alias" &&
5431  ac_cv_host_alias=$ac_cv_build_alias
5432ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5433  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5434echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5435   { (exit 1); exit 1; }; }
5436
5437fi
5438echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5439echo "${ECHO_T}$ac_cv_host" >&6
5440host=$ac_cv_host
5441host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5442host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5443host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5444
5445
5446echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5447echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5448if test "${lt_cv_path_SED+set}" = set; then
5449  echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451  # Loop through the user's path and test for sed and gsed.
5452# Then use that list of sed's as ones to test for truncation.
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458  for lt_ac_prog in sed gsed; do
5459    for ac_exec_ext in '' $ac_executable_extensions; do
5460      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5461        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5462      fi
5463    done
5464  done
5465done
5466lt_ac_max=0
5467lt_ac_count=0
5468# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5469# along with /bin/sed that truncates output.
5470for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5471  test ! -f $lt_ac_sed && continue
5472  cat /dev/null > conftest.in
5473  lt_ac_count=0
5474  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5475  # Check for GNU sed and select it if it is found.
5476  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5477    lt_cv_path_SED=$lt_ac_sed
5478    break
5479  fi
5480  while true; do
5481    cat conftest.in conftest.in >conftest.tmp
5482    mv conftest.tmp conftest.in
5483    cp conftest.in conftest.nl
5484    echo >>conftest.nl
5485    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5486    cmp -s conftest.out conftest.nl || break
5487    # 10000 chars as input seems more than enough
5488    test $lt_ac_count -gt 10 && break
5489    lt_ac_count=`expr $lt_ac_count + 1`
5490    if test $lt_ac_count -gt $lt_ac_max; then
5491      lt_ac_max=$lt_ac_count
5492      lt_cv_path_SED=$lt_ac_sed
5493    fi
5494  done
5495done
5496
5497fi
5498
5499SED=$lt_cv_path_SED
5500echo "$as_me:$LINENO: result: $SED" >&5
5501echo "${ECHO_T}$SED" >&6
5502
5503
5504# Check whether --with-gnu-ld or --without-gnu-ld was given.
5505if test "${with_gnu_ld+set}" = set; then
5506  withval="$with_gnu_ld"
5507  test "$withval" = no || with_gnu_ld=yes
5508else
5509  with_gnu_ld=no
5510fi;
5511ac_prog=ld
5512if test "$GCC" = yes; then
5513  # Check if gcc -print-prog-name=ld gives a path.
5514  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5515echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5516  case $host in
5517  *-*-mingw*)
5518    # gcc leaves a trailing carriage return which upsets mingw
5519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5520  *)
5521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5522  esac
5523  case $ac_prog in
5524    # Accept absolute paths.
5525    [\\/]* | ?:[\\/]*)
5526      re_direlt='/[^/][^/]*/\.\./'
5527      # Canonicalize the pathname of ld
5528      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5529      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5530        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5531      done
5532      test -z "$LD" && LD="$ac_prog"
5533      ;;
5534  "")
5535    # If it fails, then pretend we aren't using GCC.
5536    ac_prog=ld
5537    ;;
5538  *)
5539    # If it is relative, then search for the first ld in PATH.
5540    with_gnu_ld=unknown
5541    ;;
5542  esac
5543elif test "$with_gnu_ld" = yes; then
5544  echo "$as_me:$LINENO: checking for GNU ld" >&5
5545echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5546else
5547  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5548echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5549fi
5550if test "${lt_cv_path_LD+set}" = set; then
5551  echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553  if test -z "$LD"; then
5554  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5555  for ac_dir in $PATH; do
5556    IFS="$lt_save_ifs"
5557    test -z "$ac_dir" && ac_dir=.
5558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5559      lt_cv_path_LD="$ac_dir/$ac_prog"
5560      # Check to see if the program is GNU ld.  I'd rather use --version,
5561      # but apparently some variants of GNU ld only accept -v.
5562      # Break only if it was the GNU/non-GNU ld that we prefer.
5563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5564      *GNU* | *'with BFD'*)
5565        test "$with_gnu_ld" != no && break
5566        ;;
5567      *)
5568        test "$with_gnu_ld" != yes && break
5569        ;;
5570      esac
5571    fi
5572  done
5573  IFS="$lt_save_ifs"
5574else
5575  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5576fi
5577fi
5578
5579LD="$lt_cv_path_LD"
5580if test -n "$LD"; then
5581  echo "$as_me:$LINENO: result: $LD" >&5
5582echo "${ECHO_T}$LD" >&6
5583else
5584  echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586fi
5587test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5588echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5589   { (exit 1); exit 1; }; }
5590echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5591echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5592if test "${lt_cv_prog_gnu_ld+set}" = set; then
5593  echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5596case `$LD -v 2>&1 </dev/null` in
5597*GNU* | *'with BFD'*)
5598  lt_cv_prog_gnu_ld=yes
5599  ;;
5600*)
5601  lt_cv_prog_gnu_ld=no
5602  ;;
5603esac
5604fi
5605echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5606echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5607with_gnu_ld=$lt_cv_prog_gnu_ld
5608
5609
5610echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5611echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5612if test "${lt_cv_ld_reload_flag+set}" = set; then
5613  echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615  lt_cv_ld_reload_flag='-r'
5616fi
5617echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5618echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5619reload_flag=$lt_cv_ld_reload_flag
5620case $reload_flag in
5621"" | " "*) ;;
5622*) reload_flag=" $reload_flag" ;;
5623esac
5624reload_cmds='$LD$reload_flag -o $output$reload_objs'
5625case $host_os in
5626  darwin*)
5627    if test "$GCC" = yes; then
5628      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5629    else
5630      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5631    fi
5632    ;;
5633esac
5634
5635echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5636echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5637if test "${lt_cv_path_NM+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  if test -n "$NM"; then
5641  # Let the user override the test.
5642  lt_cv_path_NM="$NM"
5643else
5644  lt_nm_to_check="${ac_tool_prefix}nm"
5645  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5646    lt_nm_to_check="$lt_nm_to_check nm"
5647  fi
5648  for lt_tmp_nm in $lt_nm_to_check; do
5649    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5650    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5651      IFS="$lt_save_ifs"
5652      test -z "$ac_dir" && ac_dir=.
5653      tmp_nm="$ac_dir/$lt_tmp_nm"
5654      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5655        # Check to see if the nm accepts a BSD-compat flag.
5656        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5657        #   nm: unknown option "B" ignored
5658        # Tru64's nm complains that /dev/null is an invalid object file
5659        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5660        */dev/null* | *'Invalid file or object type'*)
5661          lt_cv_path_NM="$tmp_nm -B"
5662          break
5663          ;;
5664        *)
5665          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5666          */dev/null*)
5667            lt_cv_path_NM="$tmp_nm -p"
5668            break
5669            ;;
5670          *)
5671            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5672            continue # so that we can try to find one that supports BSD flags
5673            ;;
5674          esac
5675          ;;
5676        esac
5677      fi
5678    done
5679    IFS="$lt_save_ifs"
5680  done
5681  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5682fi
5683fi
5684echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5685echo "${ECHO_T}$lt_cv_path_NM" >&6
5686NM="$lt_cv_path_NM"
5687
5688echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5689echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5690if test "${lt_cv_deplibs_check_method+set}" = set; then
5691  echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693  lt_cv_file_magic_cmd='$MAGIC_CMD'
5694lt_cv_file_magic_test_file=
5695lt_cv_deplibs_check_method='unknown'
5696# Need to set the preceding variable on all platforms that support
5697# interlibrary dependencies.
5698# 'none' -- dependencies not supported.
5699# `unknown' -- same as none, but documents that we really don't know.
5700# 'pass_all' -- all dependencies passed with no checks.
5701# 'test_compile' -- check by making test program.
5702# 'file_magic [[regex]]' -- check by looking for files in library path
5703# which responds to the $file_magic_cmd with a given extended regex.
5704# If you have `file' or equivalent on your system and you're not sure
5705# whether `pass_all' will *always* work, you probably want this one.
5706
5707case $host_os in
5708aix4* | aix5*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712beos*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716bsdi[45]*)
5717  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5718  lt_cv_file_magic_cmd='/usr/bin/file -L'
5719  lt_cv_file_magic_test_file=/shlib/libc.so
5720  ;;
5721
5722cygwin*)
5723  # func_win32_libid is a shell function defined in ltmain.sh
5724  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5725  lt_cv_file_magic_cmd='func_win32_libid'
5726  ;;
5727
5728mingw* | pw32*)
5729  # Base MSYS/MinGW do not provide the 'file' command needed by
5730  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5731  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5732  lt_cv_file_magic_cmd='$OBJDUMP -f'
5733  ;;
5734
5735darwin* | rhapsody*)
5736  lt_cv_deplibs_check_method=pass_all
5737  ;;
5738
5739freebsd* | kfreebsd*-gnu | dragonfly*)
5740  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5741    case $host_cpu in
5742    i*86 )
5743      # Not sure whether the presence of OpenBSD here was a mistake.
5744      # Let's accept both of them until this is cleared up.
5745      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746      lt_cv_file_magic_cmd=/usr/bin/file
5747      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5748      ;;
5749    esac
5750  else
5751    lt_cv_deplibs_check_method=pass_all
5752  fi
5753  ;;
5754
5755gnu*)
5756  lt_cv_deplibs_check_method=pass_all
5757  ;;
5758
5759hpux10.20* | hpux11*)
5760  lt_cv_file_magic_cmd=/usr/bin/file
5761  case $host_cpu in
5762  ia64*)
5763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5764    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5765    ;;
5766  hppa*64*)
5767    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]'
5768    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5769    ;;
5770  *)
5771    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5772    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5773    ;;
5774  esac
5775  ;;
5776
5777interix3*)
5778  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5779  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5780  ;;
5781
5782irix5* | irix6* | nonstopux*)
5783  case $LD in
5784  *-32|*"-32 ") libmagic=32-bit;;
5785  *-n32|*"-n32 ") libmagic=N32;;
5786  *-64|*"-64 ") libmagic=64-bit;;
5787  *) libmagic=never-match;;
5788  esac
5789  lt_cv_deplibs_check_method=pass_all
5790  ;;
5791
5792# This must be Linux ELF.
5793linux*)
5794  lt_cv_deplibs_check_method=pass_all
5795  ;;
5796
5797netbsd*)
5798  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5799    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5800  else
5801    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5802  fi
5803  ;;
5804
5805newos6*)
5806  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5807  lt_cv_file_magic_cmd=/usr/bin/file
5808  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5809  ;;
5810
5811nto-qnx*)
5812  lt_cv_deplibs_check_method=unknown
5813  ;;
5814
5815openbsd*)
5816  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5817    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5818  else
5819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820  fi
5821  ;;
5822
5823osf3* | osf4* | osf5*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827solaris*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831sysv4 | sysv4.3*)
5832  case $host_vendor in
5833  motorola)
5834    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]'
5835    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5836    ;;
5837  ncr)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  sequent)
5841    lt_cv_file_magic_cmd='/bin/file'
5842    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5843    ;;
5844  sni)
5845    lt_cv_file_magic_cmd='/bin/file'
5846    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5847    lt_cv_file_magic_test_file=/lib/libc.so
5848    ;;
5849  siemens)
5850    lt_cv_deplibs_check_method=pass_all
5851    ;;
5852  pc)
5853    lt_cv_deplibs_check_method=pass_all
5854    ;;
5855  esac
5856  ;;
5857
5858sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861esac
5862
5863fi
5864echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5865echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5866file_magic_cmd=$lt_cv_file_magic_cmd
5867deplibs_check_method=$lt_cv_deplibs_check_method
5868test -z "$deplibs_check_method" && deplibs_check_method=unknown
5869
5870
5871
5872
5873# If no C compiler was specified, use CC.
5874LTCC=${LTCC-"$CC"}
5875
5876# If no C compiler flags were specified, use CFLAGS.
5877LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5878
5879# Allow CC to be a program name with arguments.
5880compiler=$CC
5881
5882# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5883if test "${enable_libtool_lock+set}" = set; then
5884  enableval="$enable_libtool_lock"
5885
5886fi;
5887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5888
5889# Some flags need to be propagated to the compiler or linker for good
5890# libtool support.
5891case $host in
5892ia64-*-hpux*)
5893  # Find out which ABI we are using.
5894  echo 'int i;' > conftest.$ac_ext
5895  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896  (eval $ac_compile) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }; then
5900    case `/usr/bin/file conftest.$ac_objext` in
5901    *ELF-32*)
5902      HPUX_IA64_MODE="32"
5903      ;;
5904    *ELF-64*)
5905      HPUX_IA64_MODE="64"
5906      ;;
5907    esac
5908  fi
5909  rm -rf conftest*
5910  ;;
5911*-*-irix6*)
5912  # Find out which ABI we are using.
5913  echo '#line 5913 "configure"' > conftest.$ac_ext
5914  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915  (eval $ac_compile) 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }; then
5919   if test "$lt_cv_prog_gnu_ld" = yes; then
5920    case `/usr/bin/file conftest.$ac_objext` in
5921    *32-bit*)
5922      LD="${LD-ld} -melf32bsmip"
5923      ;;
5924    *N32*)
5925      LD="${LD-ld} -melf32bmipn32"
5926      ;;
5927    *64-bit*)
5928      LD="${LD-ld} -melf64bmip"
5929      ;;
5930    esac
5931   else
5932    case `/usr/bin/file conftest.$ac_objext` in
5933    *32-bit*)
5934      LD="${LD-ld} -32"
5935      ;;
5936    *N32*)
5937      LD="${LD-ld} -n32"
5938      ;;
5939    *64-bit*)
5940      LD="${LD-ld} -64"
5941      ;;
5942    esac
5943   fi
5944  fi
5945  rm -rf conftest*
5946  ;;
5947
5948x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5949  # Find out which ABI we are using.
5950  echo 'int i;' > conftest.$ac_ext
5951  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952  (eval $ac_compile) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; then
5956    case `/usr/bin/file conftest.o` in
5957    *32-bit*)
5958      case $host in
5959        x86_64-*linux*)
5960          LD="${LD-ld} -m elf_i386"
5961          ;;
5962        ppc64-*linux*|powerpc64-*linux*)
5963          LD="${LD-ld} -m elf32ppclinux"
5964          ;;
5965        s390x-*linux*)
5966          LD="${LD-ld} -m elf_s390"
5967          ;;
5968        sparc64-*linux*)
5969          LD="${LD-ld} -m elf32_sparc"
5970          ;;
5971      esac
5972      ;;
5973    *64-bit*)
5974      case $host in
5975        x86_64-*linux*)
5976          LD="${LD-ld} -m elf_x86_64"
5977          ;;
5978        ppc*-*linux*|powerpc*-*linux*)
5979          LD="${LD-ld} -m elf64ppc"
5980          ;;
5981        s390*-*linux*)
5982          LD="${LD-ld} -m elf64_s390"
5983          ;;
5984        sparc*-*linux*)
5985          LD="${LD-ld} -m elf64_sparc"
5986          ;;
5987      esac
5988      ;;
5989    esac
5990  fi
5991  rm -rf conftest*
5992  ;;
5993
5994*-*-sco3.2v5*)
5995  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5996  SAVE_CFLAGS="$CFLAGS"
5997  CFLAGS="$CFLAGS -belf"
5998  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5999echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6000if test "${lt_cv_cc_needs_belf+set}" = set; then
6001  echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003  ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
6009     cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h.  */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h.  */
6015
6016int
6017main ()
6018{
6019
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024rm -f conftest.$ac_objext conftest$ac_exeext
6025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026  (eval $ac_link) 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } &&
6033         { ac_try='test -z "$ac_c_werror_flag"
6034                         || test ! -s conftest.err'
6035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036  (eval $ac_try) 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }; } &&
6040         { ac_try='test -s conftest$ac_exeext'
6041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042  (eval $ac_try) 2>&5
6043  ac_status=$?
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); }; }; then
6046  lt_cv_cc_needs_belf=yes
6047else
6048  echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051lt_cv_cc_needs_belf=no
6052fi
6053rm -f conftest.err conftest.$ac_objext \
6054      conftest$ac_exeext conftest.$ac_ext
6055     ac_ext=c
6056ac_cpp='$CPP $CPPFLAGS'
6057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060
6061fi
6062echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6063echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6064  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6065    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6066    CFLAGS="$SAVE_CFLAGS"
6067  fi
6068  ;;
6069sparc*-*solaris*)
6070  # Find out which ABI we are using.
6071  echo 'int i;' > conftest.$ac_ext
6072  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073  (eval $ac_compile) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; then
6077    case `/usr/bin/file conftest.o` in
6078    *64-bit*)
6079      case $lt_cv_prog_gnu_ld in
6080      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6081      *)    LD="${LD-ld} -64" ;;
6082      esac
6083      ;;
6084    esac
6085  fi
6086  rm -rf conftest*
6087  ;;
6088
6089
6090esac
6091
6092need_locks="$enable_libtool_lock"
6093
6094
6095ac_ext=c
6096ac_cpp='$CPP $CPPFLAGS'
6097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6101echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6102# On Suns, sometimes $CPP names a directory.
6103if test -n "$CPP" && test -d "$CPP"; then
6104  CPP=
6105fi
6106if test -z "$CPP"; then
6107  if test "${ac_cv_prog_CPP+set}" = set; then
6108  echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110      # Double quotes because CPP needs to be expanded
6111    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6112    do
6113      ac_preproc_ok=false
6114for ac_c_preproc_warn_flag in '' yes
6115do
6116  # Use a header file that comes with gcc, so configuring glibc
6117  # with a fresh cross-compiler works.
6118  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119  # <limits.h> exists even on freestanding compilers.
6120  # On the NeXT, cc -E runs the code through the compiler's parser,
6121  # not just through cpp. "Syntax error" is here to catch this case.
6122  cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h.  */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
6127/* end confdefs.h.  */
6128#ifdef __STDC__
6129# include <limits.h>
6130#else
6131# include <assert.h>
6132#endif
6133                     Syntax error
6134_ACEOF
6135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137  ac_status=$?
6138  grep -v '^ *+' conftest.er1 >conftest.err
6139  rm -f conftest.er1
6140  cat conftest.err >&5
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); } >/dev/null; then
6143  if test -s conftest.err; then
6144    ac_cpp_err=$ac_c_preproc_warn_flag
6145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6146  else
6147    ac_cpp_err=
6148  fi
6149else
6150  ac_cpp_err=yes
6151fi
6152if test -z "$ac_cpp_err"; then
6153  :
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158  # Broken: fails on valid input.
6159continue
6160fi
6161rm -f conftest.err conftest.$ac_ext
6162
6163  # OK, works on sane cases.  Now check whether non-existent headers
6164  # can be detected and how.
6165  cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h.  */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h.  */
6171#include <ac_nonexistent.h>
6172_ACEOF
6173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175  ac_status=$?
6176  grep -v '^ *+' conftest.er1 >conftest.err
6177  rm -f conftest.er1
6178  cat conftest.err >&5
6179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180  (exit $ac_status); } >/dev/null; then
6181  if test -s conftest.err; then
6182    ac_cpp_err=$ac_c_preproc_warn_flag
6183    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184  else
6185    ac_cpp_err=
6186  fi
6187else
6188  ac_cpp_err=yes
6189fi
6190if test -z "$ac_cpp_err"; then
6191  # Broken: success on invalid input.
6192continue
6193else
6194  echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197  # Passes both tests.
6198ac_preproc_ok=:
6199break
6200fi
6201rm -f conftest.err conftest.$ac_ext
6202
6203done
6204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205rm -f conftest.err conftest.$ac_ext
6206if $ac_preproc_ok; then
6207  break
6208fi
6209
6210    done
6211    ac_cv_prog_CPP=$CPP
6212
6213fi
6214  CPP=$ac_cv_prog_CPP
6215else
6216  ac_cv_prog_CPP=$CPP
6217fi
6218echo "$as_me:$LINENO: result: $CPP" >&5
6219echo "${ECHO_T}$CPP" >&6
6220ac_preproc_ok=false
6221for ac_c_preproc_warn_flag in '' yes
6222do
6223  # Use a header file that comes with gcc, so configuring glibc
6224  # with a fresh cross-compiler works.
6225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226  # <limits.h> exists even on freestanding compilers.
6227  # On the NeXT, cc -E runs the code through the compiler's parser,
6228  # not just through cpp. "Syntax error" is here to catch this case.
6229  cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235#ifdef __STDC__
6236# include <limits.h>
6237#else
6238# include <assert.h>
6239#endif
6240                     Syntax error
6241_ACEOF
6242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244  ac_status=$?
6245  grep -v '^ *+' conftest.er1 >conftest.err
6246  rm -f conftest.er1
6247  cat conftest.err >&5
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); } >/dev/null; then
6250  if test -s conftest.err; then
6251    ac_cpp_err=$ac_c_preproc_warn_flag
6252    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6253  else
6254    ac_cpp_err=
6255  fi
6256else
6257  ac_cpp_err=yes
6258fi
6259if test -z "$ac_cpp_err"; then
6260  :
6261else
6262  echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265  # Broken: fails on valid input.
6266continue
6267fi
6268rm -f conftest.err conftest.$ac_ext
6269
6270  # OK, works on sane cases.  Now check whether non-existent headers
6271  # can be detected and how.
6272  cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h.  */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h.  */
6278#include <ac_nonexistent.h>
6279_ACEOF
6280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282  ac_status=$?
6283  grep -v '^ *+' conftest.er1 >conftest.err
6284  rm -f conftest.er1
6285  cat conftest.err >&5
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); } >/dev/null; then
6288  if test -s conftest.err; then
6289    ac_cpp_err=$ac_c_preproc_warn_flag
6290    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6291  else
6292    ac_cpp_err=
6293  fi
6294else
6295  ac_cpp_err=yes
6296fi
6297if test -z "$ac_cpp_err"; then
6298  # Broken: success on invalid input.
6299continue
6300else
6301  echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304  # Passes both tests.
6305ac_preproc_ok=:
6306break
6307fi
6308rm -f conftest.err conftest.$ac_ext
6309
6310done
6311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312rm -f conftest.err conftest.$ac_ext
6313if $ac_preproc_ok; then
6314  :
6315else
6316  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6317See \`config.log' for more details." >&5
6318echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6319See \`config.log' for more details." >&2;}
6320   { (exit 1); exit 1; }; }
6321fi
6322
6323ac_ext=c
6324ac_cpp='$CPP $CPPFLAGS'
6325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328
6329
6330echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6331echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6332if test "${ac_cv_header_stdc+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h.  */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h.  */
6341#include <stdlib.h>
6342#include <stdarg.h>
6343#include <string.h>
6344#include <float.h>
6345
6346int
6347main ()
6348{
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356  (eval $ac_compile) 2>conftest.er1
6357  ac_status=$?
6358  grep -v '^ *+' conftest.er1 >conftest.err
6359  rm -f conftest.er1
6360  cat conftest.err >&5
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); } &&
6363         { ac_try='test -z "$ac_c_werror_flag"
6364                         || test ! -s conftest.err'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; } &&
6370         { ac_try='test -s conftest.$ac_objext'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; }; then
6376  ac_cv_header_stdc=yes
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381ac_cv_header_stdc=no
6382fi
6383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385if test $ac_cv_header_stdc = yes; then
6386  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6387  cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h.  */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h.  */
6393#include <string.h>
6394
6395_ACEOF
6396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397  $EGREP "memchr" >/dev/null 2>&1; then
6398  :
6399else
6400  ac_cv_header_stdc=no
6401fi
6402rm -f conftest*
6403
6404fi
6405
6406if test $ac_cv_header_stdc = yes; then
6407  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408  cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414#include <stdlib.h>
6415
6416_ACEOF
6417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418  $EGREP "free" >/dev/null 2>&1; then
6419  :
6420else
6421  ac_cv_header_stdc=no
6422fi
6423rm -f conftest*
6424
6425fi
6426
6427if test $ac_cv_header_stdc = yes; then
6428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6429  if test "$cross_compiling" = yes; then
6430  :
6431else
6432  cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h.  */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h.  */
6438#include <ctype.h>
6439#if ((' ' & 0x0FF) == 0x020)
6440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6442#else
6443# define ISLOWER(c) \
6444                   (('a' <= (c) && (c) <= 'i') \
6445                     || ('j' <= (c) && (c) <= 'r') \
6446                     || ('s' <= (c) && (c) <= 'z'))
6447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448#endif
6449
6450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6451int
6452main ()
6453{
6454  int i;
6455  for (i = 0; i < 256; i++)
6456    if (XOR (islower (i), ISLOWER (i))
6457        || toupper (i) != TOUPPER (i))
6458      exit(2);
6459  exit (0);
6460}
6461_ACEOF
6462rm -f conftest$ac_exeext
6463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464  (eval $ac_link) 2>&5
6465  ac_status=$?
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469  (eval $ac_try) 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; }; then
6473  :
6474else
6475  echo "$as_me: program exited with status $ac_status" >&5
6476echo "$as_me: failed program was:" >&5
6477sed 's/^/| /' conftest.$ac_ext >&5
6478
6479( exit $ac_status )
6480ac_cv_header_stdc=no
6481fi
6482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6483fi
6484fi
6485fi
6486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6487echo "${ECHO_T}$ac_cv_header_stdc" >&6
6488if test $ac_cv_header_stdc = yes; then
6489
6490cat >>confdefs.h <<\_ACEOF
6491#define STDC_HEADERS 1
6492_ACEOF
6493
6494fi
6495
6496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6507                  inttypes.h stdint.h unistd.h
6508do
6509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6510echo "$as_me:$LINENO: checking for $ac_header" >&5
6511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6512if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513  echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515  cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h.  */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h.  */
6521$ac_includes_default
6522
6523#include <$ac_header>
6524_ACEOF
6525rm -f conftest.$ac_objext
6526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527  (eval $ac_compile) 2>conftest.er1
6528  ac_status=$?
6529  grep -v '^ *+' conftest.er1 >conftest.err
6530  rm -f conftest.er1
6531  cat conftest.err >&5
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); } &&
6534         { ac_try='test -z "$ac_c_werror_flag"
6535                         || test ! -s conftest.err'
6536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537  (eval $ac_try) 2>&5
6538  ac_status=$?
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); }; } &&
6541         { ac_try='test -s conftest.$ac_objext'
6542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543  (eval $ac_try) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; }; then
6547  eval "$as_ac_Header=yes"
6548else
6549  echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552eval "$as_ac_Header=no"
6553fi
6554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6558if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559  cat >>confdefs.h <<_ACEOF
6560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6561_ACEOF
6562
6563fi
6564
6565done
6566
6567
6568
6569for ac_header in dlfcn.h
6570do
6571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573  echo "$as_me:$LINENO: checking for $ac_header" >&5
6574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577fi
6578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580else
6581  # Is the header compilable?
6582echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590$ac_includes_default
6591#include <$ac_header>
6592_ACEOF
6593rm -f conftest.$ac_objext
6594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595  (eval $ac_compile) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } &&
6602         { ac_try='test -z "$ac_c_werror_flag"
6603                         || test ! -s conftest.err'
6604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605  (eval $ac_try) 2>&5
6606  ac_status=$?
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); }; } &&
6609         { ac_try='test -s conftest.$ac_objext'
6610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611  (eval $ac_try) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }; }; then
6615  ac_header_compiler=yes
6616else
6617  echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_header_compiler=no
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624echo "${ECHO_T}$ac_header_compiler" >&6
6625
6626# Is the header present?
6627echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h.  */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h.  */
6635#include <$ac_header>
6636_ACEOF
6637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639  ac_status=$?
6640  grep -v '^ *+' conftest.er1 >conftest.err
6641  rm -f conftest.er1
6642  cat conftest.err >&5
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); } >/dev/null; then
6645  if test -s conftest.err; then
6646    ac_cpp_err=$ac_c_preproc_warn_flag
6647    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6648  else
6649    ac_cpp_err=
6650  fi
6651else
6652  ac_cpp_err=yes
6653fi
6654if test -z "$ac_cpp_err"; then
6655  ac_header_preproc=yes
6656else
6657  echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660  ac_header_preproc=no
6661fi
6662rm -f conftest.err conftest.$ac_ext
6663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664echo "${ECHO_T}$ac_header_preproc" >&6
6665
6666# So?  What about this header?
6667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668  yes:no: )
6669    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673    ac_header_preproc=yes
6674    ;;
6675  no:yes:* )
6676    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6679echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6680    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6683echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688    (
6689      cat <<\_ASBOX
6690## ------------------------------------ ##
6691## Report this to cbc@lists.coin-or.org ##
6692## ------------------------------------ ##
6693_ASBOX
6694    ) |
6695      sed "s/^/$as_me: WARNING:     /" >&2
6696    ;;
6697esac
6698echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  eval "$as_ac_Header=\$ac_header_preproc"
6704fi
6705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707
6708fi
6709if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710  cat >>confdefs.h <<_ACEOF
6711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712_ACEOF
6713
6714fi
6715
6716done
6717
6718
6719
6720if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6721    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6722    (test "X$CXX" != "Xg++"))) ; then
6723  ac_ext=cc
6724ac_cpp='$CXXCPP $CPPFLAGS'
6725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6728echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6729echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6730if test -z "$CXXCPP"; then
6731  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734      # Double quotes because CXXCPP needs to be expanded
6735    for CXXCPP in "$CXX -E" "/lib/cpp"
6736    do
6737      ac_preproc_ok=false
6738for ac_cxx_preproc_warn_flag in '' yes
6739do
6740  # Use a header file that comes with gcc, so configuring glibc
6741  # with a fresh cross-compiler works.
6742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6743  # <limits.h> exists even on freestanding compilers.
6744  # On the NeXT, cc -E runs the code through the compiler's parser,
6745  # not just through cpp. "Syntax error" is here to catch this case.
6746  cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752#ifdef __STDC__
6753# include <limits.h>
6754#else
6755# include <assert.h>
6756#endif
6757                     Syntax error
6758_ACEOF
6759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null; then
6767  if test -s conftest.err; then
6768    ac_cpp_err=$ac_cxx_preproc_warn_flag
6769    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6770  else
6771    ac_cpp_err=
6772  fi
6773else
6774  ac_cpp_err=yes
6775fi
6776if test -z "$ac_cpp_err"; then
6777  :
6778else
6779  echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782  # Broken: fails on valid input.
6783continue
6784fi
6785rm -f conftest.err conftest.$ac_ext
6786
6787  # OK, works on sane cases.  Now check whether non-existent headers
6788  # can be detected and how.
6789  cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h.  */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h.  */
6795#include <ac_nonexistent.h>
6796_ACEOF
6797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799  ac_status=$?
6800  grep -v '^ *+' conftest.er1 >conftest.err
6801  rm -f conftest.er1
6802  cat conftest.err >&5
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); } >/dev/null; then
6805  if test -s conftest.err; then
6806    ac_cpp_err=$ac_cxx_preproc_warn_flag
6807    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6808  else
6809    ac_cpp_err=
6810  fi
6811else
6812  ac_cpp_err=yes
6813fi
6814if test -z "$ac_cpp_err"; then
6815  # Broken: success on invalid input.
6816continue
6817else
6818  echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
6821  # Passes both tests.
6822ac_preproc_ok=:
6823break
6824fi
6825rm -f conftest.err conftest.$ac_ext
6826
6827done
6828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6829rm -f conftest.err conftest.$ac_ext
6830if $ac_preproc_ok; then
6831  break
6832fi
6833
6834    done
6835    ac_cv_prog_CXXCPP=$CXXCPP
6836
6837fi
6838  CXXCPP=$ac_cv_prog_CXXCPP
6839else
6840  ac_cv_prog_CXXCPP=$CXXCPP
6841fi
6842echo "$as_me:$LINENO: result: $CXXCPP" >&5
6843echo "${ECHO_T}$CXXCPP" >&6
6844ac_preproc_ok=false
6845for ac_cxx_preproc_warn_flag in '' yes
6846do
6847  # Use a header file that comes with gcc, so configuring glibc
6848  # with a fresh cross-compiler works.
6849  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6850  # <limits.h> exists even on freestanding compilers.
6851  # On the NeXT, cc -E runs the code through the compiler's parser,
6852  # not just through cpp. "Syntax error" is here to catch this case.
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#ifdef __STDC__
6860# include <limits.h>
6861#else
6862# include <assert.h>
6863#endif
6864                     Syntax error
6865_ACEOF
6866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6868  ac_status=$?
6869  grep -v '^ *+' conftest.er1 >conftest.err
6870  rm -f conftest.er1
6871  cat conftest.err >&5
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); } >/dev/null; then
6874  if test -s conftest.err; then
6875    ac_cpp_err=$ac_cxx_preproc_warn_flag
6876    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6877  else
6878    ac_cpp_err=
6879  fi
6880else
6881  ac_cpp_err=yes
6882fi
6883if test -z "$ac_cpp_err"; then
6884  :
6885else
6886  echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889  # Broken: fails on valid input.
6890continue
6891fi
6892rm -f conftest.err conftest.$ac_ext
6893
6894  # OK, works on sane cases.  Now check whether non-existent headers
6895  # can be detected and how.
6896  cat >conftest.$ac_ext <<_ACEOF
6897/* confdefs.h.  */
6898_ACEOF
6899cat confdefs.h >>conftest.$ac_ext
6900cat >>conftest.$ac_ext <<_ACEOF
6901/* end confdefs.h.  */
6902#include <ac_nonexistent.h>
6903_ACEOF
6904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906  ac_status=$?
6907  grep -v '^ *+' conftest.er1 >conftest.err
6908  rm -f conftest.er1
6909  cat conftest.err >&5
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); } >/dev/null; then
6912  if test -s conftest.err; then
6913    ac_cpp_err=$ac_cxx_preproc_warn_flag
6914    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6915  else
6916    ac_cpp_err=
6917  fi
6918else
6919  ac_cpp_err=yes
6920fi
6921if test -z "$ac_cpp_err"; then
6922  # Broken: success on invalid input.
6923continue
6924else
6925  echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5
6927
6928  # Passes both tests.
6929ac_preproc_ok=:
6930break
6931fi
6932rm -f conftest.err conftest.$ac_ext
6933
6934done
6935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6936rm -f conftest.err conftest.$ac_ext
6937if $ac_preproc_ok; then
6938  :
6939else
6940  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6941See \`config.log' for more details." >&5
6942echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6943See \`config.log' for more details." >&2;}
6944   { (exit 1); exit 1; }; }
6945fi
6946
6947ac_ext=cc
6948ac_cpp='$CXXCPP $CPPFLAGS'
6949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6952
6953fi
6954
6955ac_ext=f
6956ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6957ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6959if test -n "$ac_tool_prefix"; then
6960  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6961  do
6962    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6964echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966if test "${ac_cv_prog_F77+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  if test -n "$F77"; then
6970  ac_cv_prog_F77="$F77" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975  IFS=$as_save_IFS
6976  test -z "$as_dir" && as_dir=.
6977  for ac_exec_ext in '' $ac_executable_extensions; do
6978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981    break 2
6982  fi
6983done
6984done
6985
6986fi
6987fi
6988F77=$ac_cv_prog_F77
6989if test -n "$F77"; then
6990  echo "$as_me:$LINENO: result: $F77" >&5
6991echo "${ECHO_T}$F77" >&6
6992else
6993  echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6
6995fi
6996
6997    test -n "$F77" && break
6998  done
6999fi
7000if test -z "$F77"; then
7001  ac_ct_F77=$F77
7002  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7003do
7004  # Extract the first word of "$ac_prog", so it can be a program name with args.
7005set dummy $ac_prog; ac_word=$2
7006echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7008if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7009  echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011  if test -n "$ac_ct_F77"; then
7012  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  test -z "$as_dir" && as_dir=.
7019  for ac_exec_ext in '' $ac_executable_extensions; do
7020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021    ac_cv_prog_ac_ct_F77="$ac_prog"
7022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026done
7027
7028fi
7029fi
7030ac_ct_F77=$ac_cv_prog_ac_ct_F77
7031if test -n "$ac_ct_F77"; then
7032  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7033echo "${ECHO_T}$ac_ct_F77" >&6
7034else
7035  echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6
7037fi
7038
7039  test -n "$ac_ct_F77" && break
7040done
7041
7042  F77=$ac_ct_F77
7043fi
7044
7045
7046# Provide some information about the compiler.
7047echo "$as_me:7047:" \
7048     "checking for Fortran 77 compiler version" >&5
7049ac_compiler=`set X $ac_compile; echo $2`
7050{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7051  (eval $ac_compiler --version </dev/null >&5) 2>&5
7052  ac_status=$?
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); }
7055{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7056  (eval $ac_compiler -v </dev/null >&5) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); }
7060{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7061  (eval $ac_compiler -V </dev/null >&5) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }
7065rm -f a.out
7066
7067# If we don't use `.F' as extension, the preprocessor is not run on the
7068# input file.  (Note that this only needs to work for GNU compilers.)
7069ac_save_ext=$ac_ext
7070ac_ext=F
7071echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7072echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7073if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  cat >conftest.$ac_ext <<_ACEOF
7077      program main
7078#ifndef __GNUC__
7079       choke me
7080#endif
7081
7082      end
7083_ACEOF
7084rm -f conftest.$ac_objext
7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086  (eval $ac_compile) 2>conftest.er1
7087  ac_status=$?
7088  grep -v '^ *+' conftest.er1 >conftest.err
7089  rm -f conftest.er1
7090  cat conftest.err >&5
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); } &&
7093         { ac_try='test -z "$ac_f77_werror_flag"
7094                         || test ! -s conftest.err'
7095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096  (eval $ac_try) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }; } &&
7100         { ac_try='test -s conftest.$ac_objext'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; }; then
7106  ac_compiler_gnu=yes
7107else
7108  echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_compiler_gnu=no
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7115
7116fi
7117echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7118echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7119ac_ext=$ac_save_ext
7120ac_test_FFLAGS=${FFLAGS+set}
7121ac_save_FFLAGS=$FFLAGS
7122FFLAGS=
7123echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7124echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7125if test "${ac_cv_prog_f77_g+set}" = set; then
7126  echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128  FFLAGS=-g
7129cat >conftest.$ac_ext <<_ACEOF
7130      program main
7131
7132      end
7133_ACEOF
7134rm -f conftest.$ac_objext
7135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136  (eval $ac_compile) 2>conftest.er1
7137  ac_status=$?
7138  grep -v '^ *+' conftest.er1 >conftest.err
7139  rm -f conftest.er1
7140  cat conftest.err >&5
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); } &&
7143         { ac_try='test -z "$ac_f77_werror_flag"
7144                         || test ! -s conftest.err'
7145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146  (eval $ac_try) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); }; } &&
7150         { ac_try='test -s conftest.$ac_objext'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; }; then
7156  ac_cv_prog_f77_g=yes
7157else
7158  echo "$as_me: failed program was:" >&5
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
7161ac_cv_prog_f77_g=no
7162fi
7163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7164
7165fi
7166echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7167echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7168if test "$ac_test_FFLAGS" = set; then
7169  FFLAGS=$ac_save_FFLAGS
7170elif test $ac_cv_prog_f77_g = yes; then
7171  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7172    FFLAGS="-g -O2"
7173  else
7174    FFLAGS="-g"
7175  fi
7176else
7177  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7178    FFLAGS="-O2"
7179  else
7180    FFLAGS=
7181  fi
7182fi
7183
7184G77=`test $ac_compiler_gnu = yes && echo yes`
7185ac_ext=c
7186ac_cpp='$CPP $CPPFLAGS'
7187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190
7191
7192
7193# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7194
7195# find the maximum length of command line arguments
7196echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7197echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7198if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7199  echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201    i=0
7202  teststring="ABCD"
7203
7204  case $build_os in
7205  msdosdjgpp*)
7206    # On DJGPP, this test can blow up pretty badly due to problems in libc
7207    # (any single argument exceeding 2000 bytes causes a buffer overrun
7208    # during glob expansion).  Even if it were fixed, the result of this
7209    # check would be larger than it should be.
7210    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7211    ;;
7212
7213  gnu*)
7214    # Under GNU Hurd, this test is not required because there is
7215    # no limit to the length of command line arguments.
7216    # Libtool will interpret -1 as no limit whatsoever
7217    lt_cv_sys_max_cmd_len=-1;
7218    ;;
7219
7220  cygwin* | mingw*)
7221    # On Win9x/ME, this test blows up -- it succeeds, but takes
7222    # about 5 minutes as the teststring grows exponentially.
7223    # Worse, since 9x/ME are not pre-emptively multitasking,
7224    # you end up with a "frozen" computer, even though with patience
7225    # the test eventually succeeds (with a max line length of 256k).
7226    # Instead, let's just punt: use the minimum linelength reported by
7227    # all of the supported platforms: 8192 (on NT/2K/XP).
7228    lt_cv_sys_max_cmd_len=8192;
7229    ;;
7230
7231  amigaos*)
7232    # On AmigaOS with pdksh, this test takes hours, literally.
7233    # So we just punt and use a minimum line length of 8192.
7234    lt_cv_sys_max_cmd_len=8192;
7235    ;;
7236
7237  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7238    # This has been around since 386BSD, at least.  Likely further.
7239    if test -x /sbin/sysctl; then
7240      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7241    elif test -x /usr/sbin/sysctl; then
7242      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7243    else
7244      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7245    fi
7246    # And add a safety zone
7247    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7248    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7249    ;;
7250
7251  interix*)
7252    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7253    lt_cv_sys_max_cmd_len=196608
7254    ;;
7255
7256  osf*)
7257    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7258    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7259    # nice to cause kernel panics so lets avoid the loop below.
7260    # First set a reasonable default.
7261    lt_cv_sys_max_cmd_len=16384
7262    #
7263    if test -x /sbin/sysconfig; then
7264      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7265        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7266      esac
7267    fi
7268    ;;
7269  sco3.2v5*)
7270    lt_cv_sys_max_cmd_len=102400
7271    ;;
7272  sysv5* | sco5v6* | sysv4.2uw2*)
7273    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7274    if test -n "$kargmax"; then
7275      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7276    else
7277      lt_cv_sys_max_cmd_len=32768
7278    fi
7279    ;;
7280  *)
7281    # If test is not a shell built-in, we'll probably end up computing a
7282    # maximum length that is only half of the actual maximum length, but
7283    # we can't tell.
7284    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7285    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7286               = "XX$teststring") >/dev/null 2>&1 &&
7287            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7288            lt_cv_sys_max_cmd_len=$new_result &&
7289            test $i != 17 # 1/2 MB should be enough
7290    do
7291      i=`expr $i + 1`
7292      teststring=$teststring$teststring
7293    done
7294    teststring=
7295    # Add a significant safety factor because C++ compilers can tack on massive
7296    # amounts of additional arguments before passing them to the linker.
7297    # It appears as though 1/2 is a usable value.
7298    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7299    ;;
7300  esac
7301
7302fi
7303
7304if test -n $lt_cv_sys_max_cmd_len ; then
7305  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7306echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7307else
7308  echo "$as_me:$LINENO: result: none" >&5
7309echo "${ECHO_T}none" >&6
7310fi
7311
7312
7313
7314
7315# Check for command to grab the raw symbol name followed by C symbol from nm.
7316echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7317echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7318if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7319  echo $ECHO_N "(cached) $ECHO_C" >&6
7320else
7321
7322# These are sane defaults that work on at least a few old systems.
7323# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7324
7325# Character class describing NM global symbol codes.
7326symcode='[BCDEGRST]'
7327
7328# Regexp to match symbols that can be accessed directly from C.
7329sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7330
7331# Transform an extracted symbol line into a proper C declaration
7332lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7333
7334# Transform an extracted symbol line into symbol name and symbol address
7335lt_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'"
7336
7337# Define system-specific variables.
7338case $host_os in
7339aix*)
7340  symcode='[BCDT]'
7341  ;;
7342cygwin* | mingw* | pw32*)
7343  symcode='[ABCDGISTW]'
7344  ;;
7345hpux*) # Its linker distinguishes data from code symbols
7346  if test "$host_cpu" = ia64; then
7347    symcode='[ABCDEGRST]'
7348  fi
7349  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7350  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'"
7351  ;;
7352linux*)
7353  if test "$host_cpu" = ia64; then
7354    symcode='[ABCDGIRSTW]'
7355    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356    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'"
7357  fi
7358  ;;
7359irix* | nonstopux*)
7360  symcode='[BCDEGRST]'
7361  ;;
7362osf*)
7363  symcode='[BCDEGQRST]'
7364  ;;
7365solaris*)
7366  symcode='[BDRT]'
7367  ;;
7368sco3.2v5*)
7369  symcode='[DT]'
7370  ;;
7371sysv4.2uw2*)
7372  symcode='[DT]'
7373  ;;
7374sysv5* | sco5v6* | unixware* | OpenUNIX*)
7375  symcode='[ABDT]'
7376  ;;
7377sysv4)
7378  symcode='[DFNSTU]'
7379  ;;
7380esac
7381
7382# Handle CRLF in mingw tool chain
7383opt_cr=
7384case $build_os in
7385mingw*)
7386  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7387  ;;
7388esac
7389
7390# If we're using GNU nm, then use its standard symbol codes.
7391case `$NM -V 2>&1` in
7392*GNU* | *'with BFD'*)
7393  symcode='[ABCDGIRSTW]' ;;
7394esac
7395
7396# Try without a prefix undercore, then with it.
7397for ac_symprfx in "" "_"; do
7398
7399  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7400  symxfrm="\\1 $ac_symprfx\\2 \\2"
7401
7402  # Write the raw and C identifiers.
7403  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7404
7405  # Check to see that the pipe works correctly.
7406  pipe_works=no
7407
7408  rm -f conftest*
7409  cat > conftest.$ac_ext <<EOF
7410#ifdef __cplusplus
7411extern "C" {
7412#endif
7413char nm_test_var;
7414void nm_test_func(){}
7415#ifdef __cplusplus
7416}
7417#endif
7418int main(){nm_test_var='a';nm_test_func();return(0);}
7419EOF
7420
7421  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422  (eval $ac_compile) 2>&5
7423  ac_status=$?
7424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425  (exit $ac_status); }; then
7426    # Now try to grab the symbols.
7427    nlist=conftest.nm
7428    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7429  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7430  ac_status=$?
7431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432  (exit $ac_status); } && test -s "$nlist"; then
7433      # Try sorting and uniquifying the output.
7434      if sort "$nlist" | uniq > "$nlist"T; then
7435        mv -f "$nlist"T "$nlist"
7436      else
7437        rm -f "$nlist"T
7438      fi
7439
7440      # Make sure that we snagged all the symbols we need.
7441      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7442        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7443          cat <<EOF > conftest.$ac_ext
7444#ifdef __cplusplus
7445extern "C" {
7446#endif
7447
7448EOF
7449          # Now generate the symbol file.
7450          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7451
7452          cat <<EOF >> conftest.$ac_ext
7453#if defined (__STDC__) && __STDC__
7454# define lt_ptr_t void *
7455#else
7456# define lt_ptr_t char *
7457# define const
7458#endif
7459
7460/* The mapping between symbol names and symbols. */
7461const struct {
7462  const char *name;
7463  lt_ptr_t address;
7464}
7465lt_preloaded_symbols[] =
7466{
7467EOF
7468          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7469          cat <<\EOF >> conftest.$ac_ext
7470  {0, (lt_ptr_t) 0}
7471};
7472
7473#ifdef __cplusplus
7474}
7475#endif
7476EOF
7477          # Now try linking the two files.
7478          mv conftest.$ac_objext conftstm.$ac_objext
7479          lt_save_LIBS="$LIBS"
7480          lt_save_CFLAGS="$CFLAGS"
7481          LIBS="conftstm.$ac_objext"
7482          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7483          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484  (eval $ac_link) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7488            pipe_works=yes
7489          fi
7490          LIBS="$lt_save_LIBS"
7491          CFLAGS="$lt_save_CFLAGS"
7492        else
7493          echo "cannot find nm_test_func in $nlist" >&5
7494        fi
7495      else
7496        echo "cannot find nm_test_var in $nlist" >&5
7497      fi
7498    else
7499      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7500    fi
7501  else
7502    echo "$progname: failed program was:" >&5
7503    cat conftest.$ac_ext >&5
7504  fi
7505  rm -f conftest* conftst*
7506
7507  # Do not use the global_symbol_pipe unless it works.
7508  if test "$pipe_works" = yes; then
7509    break
7510  else
7511    lt_cv_sys_global_symbol_pipe=
7512  fi
7513done
7514
7515fi
7516
7517if test -z "$lt_cv_sys_global_symbol_pipe"; then
7518  lt_cv_sys_global_symbol_to_cdecl=
7519fi
7520if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7521  echo "$as_me:$LINENO: result: failed" >&5
7522echo "${ECHO_T}failed" >&6
7523else
7524  echo "$as_me:$LINENO: result: ok" >&5
7525echo "${ECHO_T}ok" >&6
7526fi
7527
7528echo "$as_me:$LINENO: checking for objdir" >&5
7529echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7530if test "${lt_cv_objdir+set}" = set; then
7531  echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533  rm -f .libs 2>/dev/null
7534mkdir .libs 2>/dev/null
7535if test -d .libs; then
7536  lt_cv_objdir=.libs
7537else
7538  # MS-DOS does not allow filenames that begin with a dot.
7539  lt_cv_objdir=_libs
7540fi
7541rmdir .libs 2>/dev/null
7542fi
7543echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7544echo "${ECHO_T}$lt_cv_objdir" >&6
7545objdir=$lt_cv_objdir
7546
7547
7548
7549
7550
7551case $host_os in
7552aix3*)
7553  # AIX sometimes has problems with the GCC collect2 program.  For some
7554  # reason, if we set the COLLECT_NAMES environment variable, the problems
7555  # vanish in a puff of smoke.
7556  if test "X${COLLECT_NAMES+set}" != Xset; then
7557    COLLECT_NAMES=
7558    export COLLECT_NAMES
7559  fi
7560  ;;
7561esac
7562
7563# Sed substitution that helps us do robust quoting.  It backslashifies
7564# metacharacters that are still active within double-quoted strings.
7565Xsed='sed -e 1s/^X//'
7566sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7567
7568# Same as above, but do not quote variable references.
7569double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7570
7571# Sed substitution to delay expansion of an escaped shell variable in a
7572# double_quote_subst'ed string.
7573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7574
7575# Sed substitution to avoid accidental globbing in evaled expressions
7576no_glob_subst='s/\*/\\\*/g'
7577
7578# Constants:
7579rm="rm -f"
7580
7581# Global variables:
7582default_ofile=libtool
7583can_build_shared=yes
7584
7585# All known linkers require a `.a' archive for static linking (except MSVC,
7586# which needs '.lib').
7587libext=a
7588ltmain="$ac_aux_dir/ltmain.sh"
7589ofile="$default_ofile"
7590with_gnu_ld="$lt_cv_prog_gnu_ld"
7591
7592if test -n "$ac_tool_prefix"; then
7593  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7594set dummy ${ac_tool_prefix}ar; ac_word=$2
7595echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7597if test "${ac_cv_prog_AR+set}" = set; then
7598  echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600  if test -n "$AR"; then
7601  ac_cv_prog_AR="$AR" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  test -z "$as_dir" && as_dir=.
7608  for ac_exec_ext in '' $ac_executable_extensions; do
7609  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610    ac_cv_prog_AR="${ac_tool_prefix}ar"
7611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612    break 2
7613  fi
7614done
7615done
7616
7617fi
7618fi
7619AR=$ac_cv_prog_AR
7620if test -n "$AR"; then
7621  echo "$as_me:$LINENO: result: $AR" >&5
7622echo "${ECHO_T}$AR" >&6
7623else
7624  echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626fi
7627
7628fi
7629if test -z "$ac_cv_prog_AR"; then
7630  ac_ct_AR=$AR
7631  # Extract the first word of "ar", so it can be a program name with args.
7632set dummy ar; ac_word=$2
7633echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7635if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7636  echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638  if test -n "$ac_ct_AR"; then
7639  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646  for ac_exec_ext in '' $ac_executable_extensions; do
7647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648    ac_cv_prog_ac_ct_AR="ar"
7649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653done
7654
7655  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7656fi
7657fi
7658ac_ct_AR=$ac_cv_prog_ac_ct_AR
7659if test -n "$ac_ct_AR"; then
7660  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7661echo "${ECHO_T}$ac_ct_AR" >&6
7662else
7663  echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665fi
7666
7667  AR=$ac_ct_AR
7668else
7669  AR="$ac_cv_prog_AR"
7670fi
7671
7672if test -n "$ac_tool_prefix"; then
7673  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7674set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7675echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677if test "${ac_cv_prog_RANLIB+set}" = set; then
7678  echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680  if test -n "$RANLIB"; then
7681  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686  IFS=$as_save_IFS
7687  test -z "$as_dir" && as_dir=.
7688  for ac_exec_ext in '' $ac_executable_extensions; do
7689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695done
7696
7697fi
7698fi
7699RANLIB=$ac_cv_prog_RANLIB
7700if test -n "$RANLIB"; then
7701  echo "$as_me:$LINENO: result: $RANLIB" >&5
7702echo "${ECHO_T}$RANLIB" >&6
7703else
7704  echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708fi
7709if test -z "$ac_cv_prog_RANLIB"; then
7710  ac_ct_RANLIB=$RANLIB
7711  # Extract the first word of "ranlib", so it can be a program name with args.
7712set dummy ranlib; ac_word=$2
7713echo "$as_me:$LINENO: checking for $ac_word" >&5
7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7715if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718  if test -n "$ac_ct_RANLIB"; then
7719  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726  for ac_exec_ext in '' $ac_executable_extensions; do
7727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_ac_ct_RANLIB="ranlib"
7729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733done
7734
7735  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7736fi
7737fi
7738ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7739if test -n "$ac_ct_RANLIB"; then
7740  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7741echo "${ECHO_T}$ac_ct_RANLIB" >&6
7742else
7743  echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745fi
7746
7747  RANLIB=$ac_ct_RANLIB
7748else
7749  RANLIB="$ac_cv_prog_RANLIB"
7750fi
7751
7752if test -n "$ac_tool_prefix"; then
7753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7754set dummy ${ac_tool_prefix}strip; ac_word=$2
7755echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757if test "${ac_cv_prog_STRIP+set}" = set; then
7758  echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760  if test -n "$STRIP"; then
7761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  test -z "$as_dir" && as_dir=.
7768  for ac_exec_ext in '' $ac_executable_extensions; do
7769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772    break 2
7773  fi
7774done
7775done
7776
7777fi
7778fi
7779STRIP=$ac_cv_prog_STRIP
7780if test -n "$STRIP"; then
7781  echo "$as_me:$LINENO: result: $STRIP" >&5
7782echo "${ECHO_T}$STRIP" >&6
7783else
7784  echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786fi
7787
7788fi
7789if test -z "$ac_cv_prog_STRIP"; then
7790  ac_ct_STRIP=$STRIP
7791  # Extract the first word of "strip", so it can be a program name with args.
7792set dummy strip; ac_word=$2
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7796  echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798  if test -n "$ac_ct_STRIP"; then
7799  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806  for ac_exec_ext in '' $ac_executable_extensions; do
7807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_ac_ct_STRIP="strip"
7809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813done
7814
7815  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7816fi
7817fi
7818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7819if test -n "$ac_ct_STRIP"; then
7820  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7821echo "${ECHO_T}$ac_ct_STRIP" >&6
7822else
7823  echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
7826
7827  STRIP=$ac_ct_STRIP
7828else
7829  STRIP="$ac_cv_prog_STRIP"
7830fi
7831
7832
7833old_CC="$CC"
7834old_CFLAGS="$CFLAGS"
7835
7836# Set sane defaults for various variables
7837test -z "$AR" && AR=ar
7838test -z "$AR_FLAGS" && AR_FLAGS=cru
7839test -z "$AS" && AS=as
7840test -z "$CC" && CC=cc
7841test -z "$LTCC" && LTCC=$CC
7842test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7843test -z "$DLLTOOL" && DLLTOOL=dlltool
7844test -z "$LD" && LD=ld
7845test -z "$LN_S" && LN_S="ln -s"
7846test -z "$MAGIC_CMD" && MAGIC_CMD=file
7847test -z "$NM" && NM=nm
7848test -z "$SED" && SED=sed
7849test -z "$OBJDUMP" && OBJDUMP=objdump
7850test -z "$RANLIB" && RANLIB=:
7851test -z "$STRIP" && STRIP=:
7852test -z "$ac_objext" && ac_objext=o
7853
7854# Determine commands to create old-style static archives.
7855old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7856old_postinstall_cmds='chmod 644 $oldlib'
7857old_postuninstall_cmds=
7858
7859if test -n "$RANLIB"; then
7860  case $host_os in
7861  openbsd*)
7862    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7863    ;;
7864  *)
7865    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7866    ;;
7867  esac
7868  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7869fi
7870
7871for cc_temp in $compiler""; do
7872  case $cc_temp in
7873    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875    \-*) ;;
7876    *) break;;
7877  esac
7878done
7879cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7880
7881
7882# Only perform the check for file, if the check method requires it
7883case $deplibs_check_method in
7884file_magic*)
7885  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7886    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7887echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7888if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7889  echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891  case $MAGIC_CMD in
7892[\\/*] |  ?:[\\/]*)
7893  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7894  ;;
7895*)
7896  lt_save_MAGIC_CMD="$MAGIC_CMD"
7897  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7898  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7899  for ac_dir in $ac_dummy; do
7900    IFS="$lt_save_ifs"
7901    test -z "$ac_dir" && ac_dir=.
7902    if test -f $ac_dir/${ac_tool_prefix}file; then
7903      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7904      if test -n "$file_magic_test_file"; then
7905        case $deplibs_check_method in
7906        "file_magic "*)
7907          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7908          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7909          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7910            $EGREP "$file_magic_regex" > /dev/null; then
7911            :
7912          else
7913            cat <<EOF 1>&2
7914
7915*** Warning: the command libtool uses to detect shared libraries,
7916*** $file_magic_cmd, produces output that libtool cannot recognize.
7917*** The result is that libtool may fail to recognize shared libraries
7918*** as such.  This will affect the creation of libtool libraries that
7919*** depend on shared libraries, but programs linked with such libtool
7920*** libraries will work regardless of this problem.  Nevertheless, you
7921*** may want to report the problem to your system manager and/or to
7922*** bug-libtool@gnu.org
7923
7924EOF
7925          fi ;;
7926        esac
7927      fi
7928      break
7929    fi
7930  done
7931  IFS="$lt_save_ifs"
7932  MAGIC_CMD="$lt_save_MAGIC_CMD"
7933  ;;
7934esac
7935fi
7936
7937MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938if test -n "$MAGIC_CMD"; then
7939  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7940echo "${ECHO_T}$MAGIC_CMD" >&6
7941else
7942  echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
7944fi
7945
7946if test -z "$lt_cv_path_MAGIC_CMD"; then
7947  if test -n "$ac_tool_prefix"; then
7948    echo "$as_me:$LINENO: checking for file" >&5
7949echo $ECHO_N "checking for file... $ECHO_C" >&6
7950if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  case $MAGIC_CMD in
7954[\\/*] |  ?:[\\/]*)
7955  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7956  ;;
7957*)
7958  lt_save_MAGIC_CMD="$MAGIC_CMD"
7959  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961  for ac_dir in $ac_dummy; do
7962    IFS="$lt_save_ifs"
7963    test -z "$ac_dir" && ac_dir=.
7964    if test -f $ac_dir/file; then
7965      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7966      if test -n "$file_magic_test_file"; then
7967        case $deplibs_check_method in
7968        "file_magic "*)
7969          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972            $EGREP "$file_magic_regex" > /dev/null; then
7973            :
7974          else
7975            cat <<EOF 1>&2
7976
7977*** Warning: the command libtool uses to detect shared libraries,
7978*** $file_magic_cmd, produces output that libtool cannot recognize.
7979*** The result is that libtool may fail to recognize shared libraries
7980*** as such.  This will affect the creation of libtool libraries that
7981*** depend on shared libraries, but programs linked with such libtool
7982*** libraries will work regardless of this problem.  Nevertheless, you
7983*** may want to report the problem to your system manager and/or to
7984*** bug-libtool@gnu.org
7985
7986EOF
7987          fi ;;
7988        esac
7989      fi
7990      break
7991    fi
7992  done
7993  IFS="$lt_save_ifs"
7994  MAGIC_CMD="$lt_save_MAGIC_CMD"
7995  ;;
7996esac
7997fi
7998
7999MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000if test -n "$MAGIC_CMD"; then
8001  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8002echo "${ECHO_T}$MAGIC_CMD" >&6
8003else
8004  echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6
8006fi
8007
8008  else
8009    MAGIC_CMD=:
8010  fi
8011fi
8012
8013  fi
8014  ;;
8015esac
8016
8017enable_dlopen=no
8018enable_win32_dll=no
8019
8020# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8021if test "${enable_libtool_lock+set}" = set; then
8022  enableval="$enable_libtool_lock"
8023
8024fi;
8025test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8026
8027
8028# Check whether --with-pic or --without-pic was given.
8029if test "${with_pic+set}" = set; then
8030  withval="$with_pic"
8031  pic_mode="$withval"
8032else
8033  pic_mode=default
8034fi;
8035test -z "$pic_mode" && pic_mode=default
8036
8037# Use C for the default configuration in the libtool script
8038tagname=
8039lt_save_CC="$CC"
8040ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046
8047# Source file extension for C test sources.
8048ac_ext=c
8049
8050# Object file extension for compiled C test sources.
8051objext=o
8052objext=$objext
8053
8054# Code to be used in simple compile tests
8055lt_simple_compile_test_code="int some_variable = 0;\n"
8056
8057# Code to be used in simple link tests
8058lt_simple_link_test_code='int main(){return(0);}\n'
8059
8060
8061# If no C compiler was specified, use CC.
8062LTCC=${LTCC-"$CC"}
8063
8064# If no C compiler flags were specified, use CFLAGS.
8065LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8066
8067# Allow CC to be a program name with arguments.
8068compiler=$CC
8069
8070
8071# save warnings/boilerplate of simple test code
8072ac_outfile=conftest.$ac_objext
8073printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8074eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075_lt_compiler_boilerplate=`cat conftest.err`
8076$rm conftest*
8077
8078ac_outfile=conftest.$ac_objext
8079printf "$lt_simple_link_test_code" >conftest.$ac_ext
8080eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081_lt_linker_boilerplate=`cat conftest.err`
8082$rm conftest*
8083
8084
8085## CAVEAT EMPTOR:
8086## There is no encapsulation within the following macros, do not change
8087## the running order or otherwise move them around unless you know exactly
8088## what you are doing...
8089
8090lt_prog_compiler_no_builtin_flag=
8091
8092if test "$GCC" = yes; then
8093  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8094
8095
8096echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8097echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8098if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8099  echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101  lt_cv_prog_compiler_rtti_exceptions=no
8102  ac_outfile=conftest.$ac_objext
8103   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8104   lt_compiler_flag="-fno-rtti -fno-exceptions"
8105   # Insert the option either (1) after the last *FLAGS variable, or
8106   # (2) before a word containing "conftest.", or (3) at the end.
8107   # Note that $ac_compile itself does not contain backslashes and begins
8108   # with a dollar sign (not a hyphen), so the echo should work correctly.
8109   # The option is referenced via a variable to avoid confusing sed.
8110   lt_compile=`echo "$ac_compile" | $SED \
8111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8113   -e 's:$: $lt_compiler_flag:'`
8114   (eval echo "\"\$as_me:8114: $lt_compile\"" >&5)
8115   (eval "$lt_compile" 2>conftest.err)
8116   ac_status=$?
8117   cat conftest.err >&5
8118   echo "$as_me:8118: \$? = $ac_status" >&5
8119   if (exit $ac_status) && test -s "$ac_outfile"; then
8120     # The compiler can only warn and ignore the option if not recognized
8121     # So say no if there are warnings other than the usual output.
8122     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8123     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8124     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8125       lt_cv_prog_compiler_rtti_exceptions=yes
8126     fi
8127   fi
8128   $rm conftest*
8129
8130fi
8131echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8132echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8133
8134if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8135    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8136else
8137    :
8138fi
8139
8140fi
8141
8142lt_prog_compiler_wl=
8143lt_prog_compiler_pic=
8144lt_prog_compiler_static=
8145
8146echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8147echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8148
8149  if test "$GCC" = yes; then
8150    lt_prog_compiler_wl='-Wl,'
8151    lt_prog_compiler_static='-static'
8152
8153    case $host_os in
8154      aix*)
8155      # All AIX code is PIC.
8156      if test "$host_cpu" = ia64; then
8157        # AIX 5 now supports IA64 processor
8158        lt_prog_compiler_static='-Bstatic'
8159      fi
8160      ;;
8161
8162    amigaos*)
8163      # FIXME: we need at least 68020 code to build shared libraries, but
8164      # adding the `-m68020' flag to GCC prevents building anything better,
8165      # like `-m68040'.
8166      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8167      ;;
8168
8169    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8170      # PIC is the default for these OSes.
8171      ;;
8172
8173    mingw* | pw32* | os2*)
8174      # This hack is so that the source file can tell whether it is being
8175      # built for inclusion in a dll (and should export symbols for example).
8176      lt_prog_compiler_pic='-DDLL_EXPORT'
8177      ;;
8178
8179    darwin* | rhapsody*)
8180      # PIC is the default on this platform
8181      # Common symbols not allowed in MH_DYLIB files
8182      lt_prog_compiler_pic='-fno-common'
8183      ;;
8184
8185    interix3*)
8186      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8187      # Instead, we relocate shared libraries at runtime.
8188      ;;
8189
8190    msdosdjgpp*)
8191      # Just because we use GCC doesn't mean we suddenly get shared libraries
8192      # on systems that don't support them.
8193      lt_prog_compiler_can_build_shared=no
8194      enable_shared=no
8195      ;;
8196
8197    sysv4*MP*)
8198      if test -d /usr/nec; then
8199        lt_prog_compiler_pic=-Kconform_pic
8200      fi
8201      ;;
8202
8203    hpux*)
8204      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8205      # not for PA HP-UX.
8206      case $host_cpu in
8207      hppa*64*|ia64*)
8208        # +Z the default
8209        ;;
8210      *)
8211        lt_prog_compiler_pic='-fPIC'
8212        ;;
8213      esac
8214      ;;
8215
8216    *)
8217      lt_prog_compiler_pic='-fPIC'
8218      ;;
8219    esac
8220  else
8221    # PORTME Check for flag to pass linker flags through the system compiler.
8222    case $host_os in
8223    aix*)
8224      lt_prog_compiler_wl='-Wl,'
8225      if test "$host_cpu" = ia64; then
8226        # AIX 5 now supports IA64 processor
8227        lt_prog_compiler_static='-Bstatic'
8228      else
8229        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8230      fi
8231      ;;
8232      darwin*)
8233        # PIC is the default on this platform
8234        # Common symbols not allowed in MH_DYLIB files
8235       case $cc_basename in
8236         xlc*)
8237         lt_prog_compiler_pic='-qnocommon'
8238         lt_prog_compiler_wl='-Wl,'
8239         ;;
8240       esac
8241       ;;
8242
8243    mingw* | pw32* | os2*)
8244      # This hack is so that the source file can tell whether it is being
8245      # built for inclusion in a dll (and should export symbols for example).
8246      lt_prog_compiler_pic='-DDLL_EXPORT'
8247      ;;
8248
8249    hpux9* | hpux10* | hpux11*)
8250      lt_prog_compiler_wl='-Wl,'
8251      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8252      # not for PA HP-UX.
8253      case $host_cpu in
8254      hppa*64*|ia64*)
8255        # +Z the default
8256        ;;
8257      *)
8258        lt_prog_compiler_pic='+Z'
8259        ;;
8260      esac
8261      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8262      lt_prog_compiler_static='${wl}-a ${wl}archive'
8263      ;;
8264
8265    irix5* | irix6* | nonstopux*)
8266      lt_prog_compiler_wl='-Wl,'
8267      # PIC (with -KPIC) is the default.
8268      lt_prog_compiler_static='-non_shared'
8269      ;;
8270
8271    newsos6)
8272      lt_prog_compiler_pic='-KPIC'
8273      lt_prog_compiler_static='-Bstatic'
8274      ;;
8275
8276    linux*)
8277      case $cc_basename in
8278      icc* | ecc*)
8279        lt_prog_compiler_wl='-Wl,'
8280        lt_prog_compiler_pic='-KPIC'
8281        lt_prog_compiler_static='-static'
8282        ;;
8283      pgcc* | pgf77* | pgf90* | pgf95*)
8284        # Portland Group compilers (*not* the Pentium gcc compiler,
8285        # which looks to be a dead project)
8286        lt_prog_compiler_wl='-Wl,'
8287        lt_prog_compiler_pic='-fpic'
8288        lt_prog_compiler_static='-Bstatic'
8289        ;;
8290      ccc*)
8291        lt_prog_compiler_wl='-Wl,'
8292        # All Alpha code is PIC.
8293        lt_prog_compiler_static='-non_shared'
8294        ;;
8295      esac
8296      ;;
8297
8298    osf3* | osf4* | osf5*)
8299      lt_prog_compiler_wl='-Wl,'
8300      # All OSF/1 code is PIC.
8301      lt_prog_compiler_static='-non_shared'
8302      ;;
8303
8304    solaris*)
8305      lt_prog_compiler_pic='-KPIC'
8306      lt_prog_compiler_static='-Bstatic'
8307      case $cc_basename in
8308      f77* | f90* | f95*)
8309        lt_prog_compiler_wl='-Qoption ld ';;
8310      *)
8311        lt_prog_compiler_wl='-Wl,';;
8312      esac
8313      ;;
8314
8315    sunos4*)
8316      lt_prog_compiler_wl='-Qoption ld '
8317      lt_prog_compiler_pic='-PIC'
8318      lt_prog_compiler_static='-Bstatic'
8319      ;;
8320
8321    sysv4 | sysv4.2uw2* | sysv4.3*)
8322      lt_prog_compiler_wl='-Wl,'
8323      lt_prog_compiler_pic='-KPIC'
8324      lt_prog_compiler_static='-Bstatic'
8325      ;;
8326
8327    sysv4*MP*)
8328      if test -d /usr/nec ;then
8329        lt_prog_compiler_pic='-Kconform_pic'
8330        lt_prog_compiler_static='-Bstatic'
8331      fi
8332      ;;
8333
8334    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8335      lt_prog_compiler_wl='-Wl,'
8336      lt_prog_compiler_pic='-KPIC'
8337      lt_prog_compiler_static='-Bstatic'
8338      ;;
8339
8340    unicos*)
8341      lt_prog_compiler_wl='-Wl,'
8342      lt_prog_compiler_can_build_shared=no
8343      ;;
8344
8345    uts4*)
8346      lt_prog_compiler_pic='-pic'
8347      lt_prog_compiler_static='-Bstatic'
8348      ;;
8349
8350    *)
8351      lt_prog_compiler_can_build_shared=no
8352      ;;
8353    esac
8354  fi
8355
8356echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8357echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8358
8359#
8360# Check to make sure the PIC flag actually works.
8361#
8362if test -n "$lt_prog_compiler_pic"; then
8363
8364echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8365echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8366if test "${lt_prog_compiler_pic_works+set}" = set; then
8367  echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369  lt_prog_compiler_pic_works=no
8370  ac_outfile=conftest.$ac_objext
8371   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8372   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8373   # Insert the option either (1) after the last *FLAGS variable, or
8374   # (2) before a word containing "conftest.", or (3) at the end.
8375   # Note that $ac_compile itself does not contain backslashes and begins
8376   # with a dollar sign (not a hyphen), so the echo should work correctly.
8377   # The option is referenced via a variable to avoid confusing sed.
8378   lt_compile=`echo "$ac_compile" | $SED \
8379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381   -e 's:$: $lt_compiler_flag:'`
8382   (eval echo "\"\$as_me:8382: $lt_compile\"" >&5)
8383   (eval "$lt_compile" 2>conftest.err)
8384   ac_status=$?
8385   cat conftest.err >&5
8386   echo "$as_me:8386: \$? = $ac_status" >&5
8387   if (exit $ac_status) && test -s "$ac_outfile"; then
8388     # The compiler can only warn and ignore the option if not recognized
8389     # So say no if there are warnings other than the usual output.
8390     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8391     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8392     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8393       lt_prog_compiler_pic_works=yes
8394     fi
8395   fi
8396   $rm conftest*
8397
8398fi
8399echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8400echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8401
8402if test x"$lt_prog_compiler_pic_works" = xyes; then
8403    case $lt_prog_compiler_pic in
8404     "" | " "*) ;;
8405     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8406     esac
8407else
8408    lt_prog_compiler_pic=
8409     lt_prog_compiler_can_build_shared=no
8410fi
8411
8412fi
8413case $host_os in
8414  # For platforms which do not support PIC, -DPIC is meaningless:
8415  *djgpp*)
8416    lt_prog_compiler_pic=
8417    ;;
8418  *)
8419    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420    ;;
8421esac
8422
8423#
8424# Check to make sure the static flag actually works.
8425#
8426wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8427echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8428echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8429if test "${lt_prog_compiler_static_works+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  lt_prog_compiler_static_works=no
8433   save_LDFLAGS="$LDFLAGS"
8434   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8435   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8436   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8437     # The linker can only warn and ignore the option if not recognized
8438     # So say no if there are warnings
8439     if test -s conftest.err; then
8440       # Append any errors to the config.log.
8441       cat conftest.err 1>&5
8442       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8443       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444       if diff conftest.exp conftest.er2 >/dev/null; then
8445         lt_prog_compiler_static_works=yes
8446       fi
8447     else
8448       lt_prog_compiler_static_works=yes
8449     fi
8450   fi
8451   $rm conftest*
8452   LDFLAGS="$save_LDFLAGS"
8453
8454fi
8455echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8456echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8457
8458if test x"$lt_prog_compiler_static_works" = xyes; then
8459    :
8460else
8461    lt_prog_compiler_static=
8462fi
8463
8464
8465echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8466echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8467if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8468  echo $ECHO_N "(cached) $ECHO_C" >&6
8469else
8470  lt_cv_prog_compiler_c_o=no
8471   $rm -r conftest 2>/dev/null
8472   mkdir conftest
8473   cd conftest
8474   mkdir out
8475   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8476
8477   lt_compiler_flag="-o out/conftest2.$ac_objext"
8478   # Insert the option either (1) after the last *FLAGS variable, or
8479   # (2) before a word containing "conftest.", or (3) at the end.
8480   # Note that $ac_compile itself does not contain backslashes and begins
8481   # with a dollar sign (not a hyphen), so the echo should work correctly.
8482   lt_compile=`echo "$ac_compile" | $SED \
8483   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485   -e 's:$: $lt_compiler_flag:'`
8486   (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
8487   (eval "$lt_compile" 2>out/conftest.err)
8488   ac_status=$?
8489   cat out/conftest.err >&5
8490   echo "$as_me:8490: \$? = $ac_status" >&5
8491   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8492   then
8493     # The compiler can only warn and ignore the option if not recognized
8494     # So say no if there are warnings
8495     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8496     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8497     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8498       lt_cv_prog_compiler_c_o=yes
8499     fi
8500   fi
8501   chmod u+w . 2>&5
8502   $rm conftest*
8503   # SGI C++ compiler will create directory out/ii_files/ for
8504   # template instantiation
8505   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8506   $rm out/* && rmdir out
8507   cd ..
8508   rmdir conftest
8509   $rm conftest*
8510
8511fi
8512echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8513echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8514
8515
8516hard_links="nottested"
8517if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518  # do not overwrite the value of need_locks provided by the user
8519  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8520echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8521  hard_links=yes
8522  $rm conftest*
8523  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524  touch conftest.a
8525  ln conftest.a conftest.b 2>&5 || hard_links=no
8526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527  echo "$as_me:$LINENO: result: $hard_links" >&5
8528echo "${ECHO_T}$hard_links" >&6
8529  if test "$hard_links" = no; then
8530    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532    need_locks=warn
8533  fi
8534else
8535  need_locks=no
8536fi
8537
8538echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8539echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8540
8541  runpath_var=
8542  allow_undefined_flag=
8543  enable_shared_with_static_runtimes=no
8544  archive_cmds=
8545  archive_expsym_cmds=
8546  old_archive_From_new_cmds=
8547  old_archive_from_expsyms_cmds=
8548  export_dynamic_flag_spec=
8549  whole_archive_flag_spec=
8550  thread_safe_flag_spec=
8551  hardcode_libdir_flag_spec=
8552  hardcode_libdir_flag_spec_ld=
8553  hardcode_libdir_separator=
8554  hardcode_direct=no
8555  hardcode_minus_L=no
8556  hardcode_shlibpath_var=unsupported
8557  link_all_deplibs=unknown
8558  hardcode_automatic=no
8559  module_cmds=
8560  module_expsym_cmds=
8561  always_export_symbols=no
8562  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8563  # include_expsyms should be a list of space-separated symbols to be *always*
8564  # included in the symbol list
8565  include_expsyms=
8566  # exclude_expsyms can be an extended regexp of symbols to exclude
8567  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8568  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8569  # as well as any symbol that contains `d'.
8570  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8571  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8572  # platforms (ab)use it in PIC code, but their linkers get confused if
8573  # the symbol is explicitly referenced.  Since portable code cannot
8574  # rely on this symbol name, it's probably fine to never include it in
8575  # preloaded symbol tables.
8576  extract_expsyms_cmds=
8577  # Just being paranoid about ensuring that cc_basename is set.
8578  for cc_temp in $compiler""; do
8579  case $cc_temp in
8580    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8581    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8582    \-*) ;;
8583    *) break;;
8584  esac
8585done
8586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8587
8588  case $host_os in
8589  cygwin* | mingw* | pw32*)
8590    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8591    # When not using gcc, we currently assume that we are using
8592    # Microsoft Visual C++.
8593    if test "$GCC" != yes; then
8594      with_gnu_ld=no
8595    fi
8596    ;;
8597  interix*)
8598    # we just hope/assume this is gcc and not c89 (= MSVC++)
8599    with_gnu_ld=yes
8600    ;;
8601  openbsd*)
8602    with_gnu_ld=no
8603    ;;
8604  esac
8605
8606  ld_shlibs=yes
8607  if test "$with_gnu_ld" = yes; then
8608    # If archive_cmds runs LD, not CC, wlarc should be empty
8609    wlarc='${wl}'
8610
8611    # Set some defaults for GNU ld with shared library support. These
8612    # are reset later if shared libraries are not supported. Putting them
8613    # here allows them to be overridden if necessary.
8614    runpath_var=LD_RUN_PATH
8615    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8616    export_dynamic_flag_spec='${wl}--export-dynamic'
8617    # ancient GNU ld didn't support --whole-archive et. al.
8618    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8619        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8620      else
8621        whole_archive_flag_spec=
8622    fi
8623    supports_anon_versioning=no
8624    case `$LD -v 2>/dev/null` in
8625      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8626      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8627      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8628      *\ 2.11.*) ;; # other 2.11 versions
8629      *) supports_anon_versioning=yes ;;
8630    esac
8631
8632    # See if GNU ld supports shared libraries.
8633    case $host_os in
8634    aix3* | aix4* | aix5*)
8635      # On AIX/PPC, the GNU linker is very broken
8636      if test "$host_cpu" != ia64; then
8637        ld_shlibs=no
8638        cat <<EOF 1>&2
8639
8640*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8641*** to be unable to reliably create shared libraries on AIX.
8642*** Therefore, libtool is disabling shared libraries support.  If you
8643*** really care for shared libraries, you may want to modify your PATH
8644*** so that a non-GNU linker is found, and then restart.
8645
8646EOF
8647      fi
8648      ;;
8649
8650    amigaos*)
8651      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)'
8652      hardcode_libdir_flag_spec='-L$libdir'
8653      hardcode_minus_L=yes
8654
8655      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8656      # that the semantics of dynamic libraries on AmigaOS, at least up
8657      # to version 4, is to share data among multiple programs linked
8658      # with the same dynamic library.  Since this doesn't match the
8659      # behavior of shared libraries on other platforms, we can't use
8660      # them.
8661      ld_shlibs=no
8662      ;;
8663
8664    beos*)
8665      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8666        allow_undefined_flag=unsupported
8667        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8668        # support --undefined.  This deserves some investigation.  FIXME
8669        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670      else
8671        ld_shlibs=no
8672      fi
8673      ;;
8674
8675    cygwin* | mingw* | pw32*)
8676      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8677      # as there is no search path for DLLs.
8678      hardcode_libdir_flag_spec='-L$libdir'
8679      allow_undefined_flag=unsupported
8680      always_export_symbols=no
8681      enable_shared_with_static_runtimes=yes
8682      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8683
8684      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8685        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8686        # If the export-symbols file already is a .def file (1st line
8687        # is EXPORTS), use it as is; otherwise, prepend...
8688        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8689          cp $export_symbols $output_objdir/$soname.def;
8690        else
8691          echo EXPORTS > $output_objdir/$soname.def;
8692          cat $export_symbols >> $output_objdir/$soname.def;
8693        fi~
8694        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8695      else
8696        ld_shlibs=no
8697      fi
8698      ;;
8699
8700    interix3*)
8701      hardcode_direct=no
8702      hardcode_shlibpath_var=no
8703      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8704      export_dynamic_flag_spec='${wl}-E'
8705      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8706      # Instead, shared libraries are loaded at an image base (0x10000000 by
8707      # default) and relocated if they conflict, which is a slow very memory
8708      # consuming and fragmenting process.  To avoid this, we pick a random,
8709      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8710      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8711      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8712      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'
8713      ;;
8714
8715    linux*)
8716      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8717        tmp_addflag=
8718        case $cc_basename,$host_cpu in
8719        pgcc*)                          # Portland Group C compiler
8720          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'
8721          tmp_addflag=' $pic_flag'
8722          ;;
8723        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8724          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'
8725          tmp_addflag=' $pic_flag -Mnomain' ;;
8726        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8727          tmp_addflag=' -i_dynamic' ;;
8728        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8729          tmp_addflag=' -i_dynamic -nofor_main' ;;
8730        ifc* | ifort*)                  # Intel Fortran compiler
8731          tmp_addflag=' -nofor_main' ;;
8732        esac
8733        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734
8735        if test $supports_anon_versioning = yes; then
8736          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8737  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8738  $echo "local: *; };" >> $output_objdir/$libname.ver~
8739          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8740        fi
8741      else
8742        ld_shlibs=no
8743      fi
8744      ;;
8745
8746    netbsd*)
8747      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8748        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8749        wlarc=
8750      else
8751        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753      fi
8754      ;;
8755
8756    solaris*)
8757      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8758        ld_shlibs=no
8759        cat <<EOF 1>&2
8760
8761*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8762*** create shared libraries on Solaris systems.  Therefore, libtool
8763*** is disabling shared libraries support.  We urge you to upgrade GNU
8764*** binutils to release 2.9.1 or newer.  Another option is to modify
8765*** your PATH or compiler configuration so that the native linker is
8766*** used, and then restart.
8767
8768EOF
8769      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8770        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8772      else
8773        ld_shlibs=no
8774      fi
8775      ;;
8776
8777    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8778      case `$LD -v 2>&1` in
8779        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8780        ld_shlibs=no
8781        cat <<_LT_EOF 1>&2
8782
8783*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8784*** reliably create shared libraries on SCO systems.  Therefore, libtool
8785*** is disabling shared libraries support.  We urge you to upgrade GNU
8786*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8787*** your PATH or compiler configuration so that the native linker is
8788*** used, and then restart.
8789
8790_LT_EOF
8791        ;;
8792        *)
8793          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8794            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8795            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8796            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8797          else
8798            ld_shlibs=no
8799          fi
8800        ;;
8801      esac
8802      ;;
8803
8804    sunos4*)
8805      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806      wlarc=
8807      hardcode_direct=yes
8808      hardcode_shlibpath_var=no
8809      ;;
8810
8811    *)
8812      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8813        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8815      else
8816        ld_shlibs=no
8817      fi
8818      ;;
8819    esac
8820
8821    if test "$ld_shlibs" = no; then
8822      runpath_var=
8823      hardcode_libdir_flag_spec=
8824      export_dynamic_flag_spec=
8825      whole_archive_flag_spec=
8826    fi
8827  else
8828    # PORTME fill in a description of your system's linker (not GNU ld)
8829    case $host_os in
8830    aix3*)
8831      allow_undefined_flag=unsupported
8832      always_export_symbols=yes
8833      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'
8834      # Note: this linker hardcodes the directories in LIBPATH if there
8835      # are no directories specified by -L.
8836      hardcode_minus_L=yes
8837      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8838        # Neither direct hardcoding nor static linking is supported with a
8839        # broken collect2.
8840        hardcode_direct=unsupported
8841      fi
8842      ;;
8843
8844    aix4* | aix5*)
8845      if test "$host_cpu" = ia64; then
8846        # On IA64, the linker does run time linking by default, so we don't
8847        # have to do anything special.
8848        aix_use_runtimelinking=no
8849        exp_sym_flag='-Bexport'
8850        no_entry_flag=""
8851      else
8852        # If we're using GNU nm, then we don't want the "-C" option.
8853        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8854        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8855          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'
8856        else
8857          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'
8858        fi
8859        aix_use_runtimelinking=no
8860
8861        # Test if we are trying to use run time linking or normal
8862        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8863        # need to do runtime linking.
8864        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8865          for ld_flag in $LDFLAGS; do
8866          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8867            aix_use_runtimelinking=yes
8868            break
8869          fi
8870          done
8871          ;;
8872        esac
8873
8874        exp_sym_flag='-bexport'
8875        no_entry_flag='-bnoentry'
8876      fi
8877
8878      # When large executables or shared objects are built, AIX ld can
8879      # have problems creating the table of contents.  If linking a library
8880      # or program results in "error TOC overflow" add -mminimal-toc to
8881      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8882      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8883
8884      archive_cmds=''
8885      hardcode_direct=yes
8886      hardcode_libdir_separator=':'
8887      link_all_deplibs=yes
8888
8889      if test "$GCC" = yes; then
8890        case $host_os in aix4.[012]|aix4.[012].*)
8891        # We only want to do this on AIX 4.2 and lower, the check
8892        # below for broken collect2 doesn't work under 4.3+
8893          collect2name=`${CC} -print-prog-name=collect2`
8894          if test -f "$collect2name" && \
8895           strings "$collect2name" | grep resolve_lib_name >/dev/null
8896          then
8897          # We have reworked collect2
8898          hardcode_direct=yes
8899          else
8900          # We have old collect2
8901          hardcode_direct=unsupported
8902          # It fails to find uninstalled libraries when the uninstalled
8903          # path is not listed in the libpath.  Setting hardcode_minus_L
8904          # to unsupported forces relinking
8905          hardcode_minus_L=yes
8906          hardcode_libdir_flag_spec='-L$libdir'
8907          hardcode_libdir_separator=
8908          fi
8909          ;;
8910        esac
8911        shared_flag='-shared'
8912        if test "$aix_use_runtimelinking" = yes; then
8913          shared_flag="$shared_flag "'${wl}-G'
8914        fi
8915      else
8916        # not using gcc
8917        if test "$host_cpu" = ia64; then
8918        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8919        # chokes on -Wl,-G. The following line is correct:
8920          shared_flag='-G'
8921        else
8922          if test "$aix_use_runtimelinking" = yes; then
8923            shared_flag='${wl}-G'
8924          else
8925            shared_flag='${wl}-bM:SRE'
8926          fi
8927        fi
8928      fi
8929
8930      # It seems that -bexpall does not export symbols beginning with
8931      # underscore (_), so it is better to generate a list of symbols to export.
8932      always_export_symbols=yes
8933      if test "$aix_use_runtimelinking" = yes; then
8934        # Warning - without using the other runtime loading flags (-brtl),
8935        # -berok will link without error, but may produce a broken library.
8936        allow_undefined_flag='-berok'
8937       # Determine the default libpath from the value encoded in an empty executable.
8938       cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h.  */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
8943/* end confdefs.h.  */
8944
8945int
8946main ()
8947{
8948
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953rm -f conftest.$ac_objext conftest$ac_exeext
8954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955  (eval $ac_link) 2>conftest.er1
8956  ac_status=$?
8957  grep -v '^ *+' conftest.er1 >conftest.err
8958  rm -f conftest.er1
8959  cat conftest.err >&5
8960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961  (exit $ac_status); } &&
8962         { ac_try='test -z "$ac_c_werror_flag"
8963                         || test ! -s conftest.err'
8964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965  (eval $ac_try) 2>&5
8966  ac_status=$?
8967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968  (exit $ac_status); }; } &&
8969         { ac_try='test -s conftest$ac_exeext'
8970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971  (eval $ac_try) 2>&5
8972  ac_status=$?
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); }; }; then
8975
8976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8977}'`
8978# Check for a 64-bit object if we didn't find anything.
8979if 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; }
8980}'`; fi
8981else
8982  echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985fi
8986rm -f conftest.err conftest.$ac_objext \
8987      conftest$ac_exeext conftest.$ac_ext
8988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989
8990       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991        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"
8992       else
8993        if test "$host_cpu" = ia64; then
8994          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8995          allow_undefined_flag="-z nodefs"
8996          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"
8997        else
8998         # Determine the default libpath from the value encoded in an empty executable.
8999         cat >conftest.$ac_ext <<_ACEOF
9000/* confdefs.h.  */
9001_ACEOF
9002cat confdefs.h >>conftest.$ac_ext
9003cat >>conftest.$ac_ext <<_ACEOF
9004/* end confdefs.h.  */
9005
9006int
9007main ()
9008{
9009
9010  ;
9011  return 0;
9012}
9013_ACEOF
9014rm -f conftest.$ac_objext conftest$ac_exeext
9015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016  (eval $ac_link) 2>conftest.er1
9017  ac_status=$?
9018  grep -v '^ *+' conftest.er1 >conftest.err
9019  rm -f conftest.er1
9020  cat conftest.err >&5
9021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); } &&
9023         { ac_try='test -z "$ac_c_werror_flag"
9024                         || test ! -s conftest.err'
9025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026  (eval $ac_try) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; } &&
9030         { ac_try='test -s conftest$ac_exeext'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; }; then
9036
9037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9038}'`
9039# Check for a 64-bit object if we didn't find anything.
9040if 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; }
9041}'`; fi
9042else
9043  echo "$as_me: failed program was:" >&5
9044sed 's/^/| /' conftest.$ac_ext >&5
9045
9046fi
9047rm -f conftest.err conftest.$ac_objext \
9048      conftest$ac_exeext conftest.$ac_ext
9049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9050
9051         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9052          # Warning - without using the other run time loading flags,
9053          # -berok will link without error, but may produce a broken library.
9054          no_undefined_flag=' ${wl}-bernotok'
9055          allow_undefined_flag=' ${wl}-berok'
9056          # Exported symbols can be pulled into shared objects from archives
9057          whole_archive_flag_spec='$convenience'
9058          archive_cmds_need_lc=yes
9059          # This is similar to how AIX traditionally builds its shared libraries.
9060          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'
9061        fi
9062      fi
9063      ;;
9064
9065    amigaos*)
9066      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)'
9067      hardcode_libdir_flag_spec='-L$libdir'
9068      hardcode_minus_L=yes
9069      # see comment about different semantics on the GNU ld section
9070      ld_shlibs=no
9071      ;;
9072
9073    bsdi[45]*)
9074      export_dynamic_flag_spec=-rdynamic
9075      ;;
9076
9077    cygwin* | mingw* | pw32*)
9078      # When not using gcc, we currently assume that we are using
9079      # Microsoft Visual C++.
9080      # hardcode_libdir_flag_spec is actually meaningless, as there is
9081      # no search path for DLLs.
9082      hardcode_libdir_flag_spec=' '
9083      allow_undefined_flag=unsupported
9084      # Tell ltmain to make .lib files, not .a files.
9085      libext=lib
9086      # Tell ltmain to make .dll files, not .so files.
9087      shrext_cmds=".dll"
9088      # FIXME: Setting linknames here is a bad hack.
9089      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9090      # The linker will automatically build a .lib file if we build a DLL.
9091      old_archive_From_new_cmds='true'
9092      # FIXME: Should let the user specify the lib program.
9093      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9094      fix_srcfile_path='`cygpath -w "$srcfile"`'
9095      enable_shared_with_static_runtimes=yes
9096      ;;
9097
9098    darwin* | rhapsody*)
9099      case $host_os in
9100        rhapsody* | darwin1.[012])
9101         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9102         ;;
9103       *) # Darwin 1.3 on
9104         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9105           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9106         else
9107           case ${MACOSX_DEPLOYMENT_TARGET} in
9108             10.[012])
9109               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9110               ;;
9111             10.*)
9112               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9113               ;;
9114           esac
9115         fi
9116         ;;
9117      esac
9118      archive_cmds_need_lc=no
9119      hardcode_direct=no
9120      hardcode_automatic=yes
9121      hardcode_shlibpath_var=unsupported
9122      whole_archive_flag_spec=''
9123      link_all_deplibs=yes
9124    if test "$GCC" = yes ; then
9125        output_verbose_link_cmd='echo'
9126        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9127      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9128      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9129      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}'
9130      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}'
9131    else
9132      case $cc_basename in
9133        xlc*)
9134         output_verbose_link_cmd='echo'
9135         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9136         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9137          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9138         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}'
9139          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}'
9140          ;;
9141       *)
9142         ld_shlibs=no
9143          ;;
9144      esac
9145    fi
9146      ;;
9147
9148    dgux*)
9149      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150      hardcode_libdir_flag_spec='-L$libdir'
9151      hardcode_shlibpath_var=no
9152      ;;
9153
9154    freebsd1*)
9155      ld_shlibs=no
9156      ;;
9157
9158    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9159    # support.  Future versions do this automatically, but an explicit c++rt0.o
9160    # does not break anything, and helps significantly (at the cost of a little
9161    # extra space).
9162    freebsd2.2*)
9163      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9164      hardcode_libdir_flag_spec='-R$libdir'
9165      hardcode_direct=yes
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9170    freebsd2*)
9171      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9172      hardcode_direct=yes
9173      hardcode_minus_L=yes
9174      hardcode_shlibpath_var=no
9175      ;;
9176
9177    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9178    freebsd* | kfreebsd*-gnu | dragonfly*)
9179      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9180      hardcode_libdir_flag_spec='-R$libdir'
9181      hardcode_direct=yes
9182      hardcode_shlibpath_var=no
9183      ;;
9184
9185    hpux9*)
9186      if test "$GCC" = yes; then
9187        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'
9188      else
9189        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'
9190      fi
9191      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9192      hardcode_libdir_separator=:
9193      hardcode_direct=yes
9194
9195      # hardcode_minus_L: Not really in the search PATH,
9196      # but as the default location of the library.
9197      hardcode_minus_L=yes
9198      export_dynamic_flag_spec='${wl}-E'
9199      ;;
9200
9201    hpux10*)
9202      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9203        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9204      else
9205        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9206      fi
9207      if test "$with_gnu_ld" = no; then
9208        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9209        hardcode_libdir_separator=:
9210
9211        hardcode_direct=yes
9212        export_dynamic_flag_spec='${wl}-E'
9213
9214        # hardcode_minus_L: Not really in the search PATH,
9215        # but as the default location of the library.
9216        hardcode_minus_L=yes
9217      fi
9218      ;;
9219
9220    hpux11*)
9221      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9222        case $host_cpu in
9223        hppa*64*)
9224          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9225          ;;
9226        ia64*)
9227          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9228          ;;
9229        *)
9230          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9231          ;;
9232        esac
9233      else
9234        case $host_cpu in
9235        hppa*64*)
9236          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9237          ;;
9238        ia64*)
9239          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9240          ;;
9241        *)
9242          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243          ;;
9244        esac
9245      fi
9246      if test "$with_gnu_ld" = no; then
9247        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248        hardcode_libdir_separator=:
9249
9250        case $host_cpu in
9251        hppa*64*|ia64*)
9252          hardcode_libdir_flag_spec_ld='+b $libdir'
9253          hardcode_direct=no
9254          hardcode_shlibpath_var=no
9255          ;;
9256        *)
9257          hardcode_direct=yes
9258          export_dynamic_flag_spec='${wl}-E'
9259
9260          # hardcode_minus_L: Not really in the search PATH,
9261          # but as the default location of the library.
9262          hardcode_minus_L=yes
9263          ;;
9264        esac
9265      fi
9266      ;;
9267
9268    irix5* | irix6* | nonstopux*)
9269      if test "$GCC" = yes; then
9270        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'
9271      else
9272        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'
9273        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9274      fi
9275      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276      hardcode_libdir_separator=:
9277      link_all_deplibs=yes
9278      ;;
9279
9280    netbsd*)
9281      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9282        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9283      else
9284        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9285      fi
9286      hardcode_libdir_flag_spec='-R$libdir'
9287      hardcode_direct=yes
9288      hardcode_shlibpath_var=no
9289      ;;
9290
9291    newsos6)
9292      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293      hardcode_direct=yes
9294      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295      hardcode_libdir_separator=:
9296      hardcode_shlibpath_var=no
9297      ;;
9298
9299    openbsd*)
9300      hardcode_direct=yes
9301      hardcode_shlibpath_var=no
9302      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9303        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9304        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9305        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9306        export_dynamic_flag_spec='${wl}-E'
9307      else
9308       case $host_os in
9309         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9310           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9311           hardcode_libdir_flag_spec='-R$libdir'
9312           ;;
9313         *)
9314           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316           ;;
9317       esac
9318      fi
9319      ;;
9320
9321    os2*)
9322      hardcode_libdir_flag_spec='-L$libdir'
9323      hardcode_minus_L=yes
9324      allow_undefined_flag=unsupported
9325      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'
9326      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9327      ;;
9328
9329    osf3*)
9330      if test "$GCC" = yes; then
9331        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332        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'
9333      else
9334        allow_undefined_flag=' -expect_unresolved \*'
9335        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'
9336      fi
9337      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338      hardcode_libdir_separator=:
9339      ;;
9340
9341    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9342      if test "$GCC" = yes; then
9343        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9344        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'
9345        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346      else
9347        allow_undefined_flag=' -expect_unresolved \*'
9348        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'
9349        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9350        $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'
9351
9352        # Both c and cxx compiler support -rpath directly
9353        hardcode_libdir_flag_spec='-rpath $libdir'
9354      fi
9355      hardcode_libdir_separator=:
9356      ;;
9357
9358    solaris*)
9359      no_undefined_flag=' -z text'
9360      if test "$GCC" = yes; then
9361        wlarc='${wl}'
9362        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9363        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9364          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9365      else
9366        wlarc=''
9367        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9369        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9370      fi
9371      hardcode_libdir_flag_spec='-R$libdir'
9372      hardcode_shlibpath_var=no
9373      case $host_os in
9374      solaris2.[0-5] | solaris2.[0-5].*) ;;
9375      *)
9376        # The compiler driver will combine linker options so we
9377        # cannot just pass the convience library names through
9378        # without $wl, iff we do not link with $LD.
9379        # Luckily, gcc supports the same syntax we need for Sun Studio.
9380        # Supported since Solaris 2.6 (maybe 2.5.1?)
9381        case $wlarc in
9382        '')
9383          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9384        *)
9385          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' ;;
9386        esac ;;
9387      esac
9388      link_all_deplibs=yes
9389      ;;
9390
9391    sunos4*)
9392      if test "x$host_vendor" = xsequent; then
9393        # Use $CC to link under sequent, because it throws in some extra .o
9394        # files that make .init and .fini sections work.
9395        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9396      else
9397        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9398      fi
9399      hardcode_libdir_flag_spec='-L$libdir'
9400      hardcode_direct=yes
9401      hardcode_minus_L=yes
9402      hardcode_shlibpath_var=no
9403      ;;
9404
9405    sysv4)
9406      case $host_vendor in
9407        sni)
9408          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409          hardcode_direct=yes # is this really true???
9410        ;;
9411        siemens)
9412          ## LD is ld it makes a PLAMLIB
9413          ## CC just makes a GrossModule.
9414          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9415          reload_cmds='$CC -r -o $output$reload_objs'
9416          hardcode_direct=no
9417        ;;
9418        motorola)
9419          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9421        ;;
9422      esac
9423      runpath_var='LD_RUN_PATH'
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    sysv4.3*)
9428      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429      hardcode_shlibpath_var=no
9430      export_dynamic_flag_spec='-Bexport'
9431      ;;
9432
9433    sysv4*MP*)
9434      if test -d /usr/nec; then
9435        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436        hardcode_shlibpath_var=no
9437        runpath_var=LD_RUN_PATH
9438        hardcode_runpath_var=yes
9439        ld_shlibs=yes
9440      fi
9441      ;;
9442
9443    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9444      no_undefined_flag='${wl}-z,text'
9445      archive_cmds_need_lc=no
9446      hardcode_shlibpath_var=no
9447      runpath_var='LD_RUN_PATH'
9448
9449      if test "$GCC" = yes; then
9450        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452      else
9453        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455      fi
9456      ;;
9457
9458    sysv5* | sco3.2v5* | sco5v6*)
9459      # Note: We can NOT use -z defs as we might desire, because we do not
9460      # link with -lc, and that would cause any symbols used from libc to
9461      # always be unresolved, which means just about no library would
9462      # ever link correctly.  If we're not using GNU ld we use -z text
9463      # though, which does catch some bad symbols but isn't as heavy-handed
9464      # as -z defs.
9465      no_undefined_flag='${wl}-z,text'
9466      allow_undefined_flag='${wl}-z,nodefs'
9467      archive_cmds_need_lc=no
9468      hardcode_shlibpath_var=no
9469      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9470      hardcode_libdir_separator=':'
9471      link_all_deplibs=yes
9472      export_dynamic_flag_spec='${wl}-Bexport'
9473      runpath_var='LD_RUN_PATH'
9474
9475      if test "$GCC" = yes; then
9476        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478      else
9479        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481      fi
9482      ;;
9483
9484    uts4*)
9485      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486      hardcode_libdir_flag_spec='-L$libdir'
9487      hardcode_shlibpath_var=no
9488      ;;
9489
9490    *)
9491      ld_shlibs=no
9492      ;;
9493    esac
9494  fi
9495
9496echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9497echo "${ECHO_T}$ld_shlibs" >&6
9498test "$ld_shlibs" = no && can_build_shared=no
9499
9500#
9501# Do we need to explicitly link libc?
9502#
9503case "x$archive_cmds_need_lc" in
9504x|xyes)
9505  # Assume -lc should be added
9506  archive_cmds_need_lc=yes
9507
9508  if test "$enable_shared" = yes && test "$GCC" = yes; then
9509    case $archive_cmds in
9510    *'~'*)
9511      # FIXME: we may have to deal with multi-command sequences.
9512      ;;
9513    '$CC '*)
9514      # Test whether the compiler implicitly links with -lc since on some
9515      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9516      # to ld, don't add -lc before -lgcc.
9517      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9519      $rm conftest*
9520      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523  (eval $ac_compile) 2>&5
9524  ac_status=$?
9525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526  (exit $ac_status); } 2>conftest.err; then
9527        soname=conftest
9528        lib=conftest
9529        libobjs=conftest.$ac_objext
9530        deplibs=
9531        wl=$lt_prog_compiler_wl
9532        pic_flag=$lt_prog_compiler_pic
9533        compiler_flags=-v
9534        linker_flags=-v
9535        verstring=
9536        output_objdir=.
9537        libname=conftest
9538        lt_save_allow_undefined_flag=$allow_undefined_flag
9539        allow_undefined_flag=
9540        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9541  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9542  ac_status=$?
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); }
9545        then
9546          archive_cmds_need_lc=no
9547        else
9548          archive_cmds_need_lc=yes
9549        fi
9550        allow_undefined_flag=$lt_save_allow_undefined_flag
9551      else
9552        cat conftest.err 1>&5
9553      fi
9554      $rm conftest*
9555      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9556echo "${ECHO_T}$archive_cmds_need_lc" >&6
9557      ;;
9558    esac
9559  fi
9560  ;;
9561esac
9562
9563echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9565library_names_spec=
9566libname_spec='lib$name'
9567soname_spec=
9568shrext_cmds=".so"
9569postinstall_cmds=
9570postuninstall_cmds=
9571finish_cmds=
9572finish_eval=
9573shlibpath_var=
9574shlibpath_overrides_runpath=unknown
9575version_type=none
9576dynamic_linker="$host_os ld.so"
9577sys_lib_dlsearch_path_spec="/lib /usr/lib"
9578if test "$GCC" = yes; then
9579  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9580  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9581    # if the path contains ";" then we assume it to be the separator
9582    # otherwise default to the standard path separator (i.e. ":") - it is
9583    # assumed that no part of a normal pathname contains ";" but that should
9584    # okay in the real world where ";" in dirpaths is itself problematic.
9585    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586  else
9587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9588  fi
9589else
9590  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9591fi
9592need_lib_prefix=unknown
9593hardcode_into_libs=no
9594
9595# when you set need_version to no, make sure it does not cause -set_version
9596# flags to be left without arguments
9597need_version=unknown
9598
9599case $host_os in
9600aix3*)
9601  version_type=linux
9602  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9603  shlibpath_var=LIBPATH
9604
9605  # AIX 3 has no versioning support, so we append a major version to the name.
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  ;;
9608
9609aix4* | aix5*)
9610  version_type=linux
9611  need_lib_prefix=no
9612  need_version=no
9613  hardcode_into_libs=yes
9614  if test "$host_cpu" = ia64; then
9615    # AIX 5 supports IA64
9616    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9617    shlibpath_var=LD_LIBRARY_PATH
9618  else
9619    # With GCC up to 2.95.x, collect2 would create an import file
9620    # for dependence libraries.  The import file would start with
9621    # the line `#! .'.  This would cause the generated library to
9622    # depend on `.', always an invalid library.  This was fixed in
9623    # development snapshots of GCC prior to 3.0.
9624    case $host_os in
9625      aix4 | aix4.[01] | aix4.[01].*)
9626      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9627           echo ' yes '
9628           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9629        :
9630      else
9631        can_build_shared=no
9632      fi
9633      ;;
9634    esac
9635    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9636    # soname into executable. Probably we can add versioning support to
9637    # collect2, so additional links can be useful in future.
9638    if test "$aix_use_runtimelinking" = yes; then
9639      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9640      # instead of lib<name>.a to let people know that these are not
9641      # typical AIX shared libraries.
9642      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643    else
9644      # We preserve .a as extension for shared libraries through AIX4.2
9645      # and later when we are not doing run time linking.
9646      library_names_spec='${libname}${release}.a $libname.a'
9647      soname_spec='${libname}${release}${shared_ext}$major'
9648    fi
9649    shlibpath_var=LIBPATH
9650  fi
9651  ;;
9652
9653amigaos*)
9654  library_names_spec='$libname.ixlibrary $libname.a'
9655  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9656  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'
9657  ;;
9658
9659beos*)
9660  library_names_spec='${libname}${shared_ext}'
9661  dynamic_linker="$host_os ld.so"
9662  shlibpath_var=LIBRARY_PATH
9663  ;;
9664
9665bsdi[45]*)
9666  version_type=linux
9667  need_version=no
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9671  shlibpath_var=LD_LIBRARY_PATH
9672  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9673  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9674  # the default ld.so.conf also contains /usr/contrib/lib and
9675  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9676  # libtool to hard-code these into programs
9677  ;;
9678
9679cygwin* | mingw* | pw32*)
9680  version_type=windows
9681  shrext_cmds=".dll"
9682  need_version=no
9683  need_lib_prefix=no
9684
9685  case $GCC,$host_os in
9686  yes,cygwin* | yes,mingw* | yes,pw32*)
9687    library_names_spec='$libname.dll.a'
9688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9689    postinstall_cmds='base_file=`basename \${file}`~
9690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9691      dldir=$destdir/`dirname \$dlpath`~
9692      test -d \$dldir || mkdir -p \$dldir~
9693      $install_prog $dir/$dlname \$dldir/$dlname~
9694      chmod a+x \$dldir/$dlname'
9695    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9696      dlpath=$dir/\$dldll~
9697       $rm \$dlpath'
9698    shlibpath_overrides_runpath=yes
9699
9700    case $host_os in
9701    cygwin*)
9702      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9703      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9704      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9705      ;;
9706    mingw*)
9707      # MinGW DLLs use traditional 'lib' prefix
9708      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9709      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9710      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9711        # It is most probably a Windows format PATH printed by
9712        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9713        # path with ; separators, and with drive letters. We can handle the
9714        # drive letters (cygwin fileutils understands them), so leave them,
9715        # especially as we might pass files found there to a mingw objdump,
9716        # which wouldn't understand a cygwinified path. Ahh.
9717        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9718      else
9719        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9720      fi
9721      ;;
9722    pw32*)
9723      # pw32 DLLs use 'pw' prefix rather than 'lib'
9724      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9725      ;;
9726    esac
9727    ;;
9728
9729  *)
9730    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9731    ;;
9732  esac
9733  dynamic_linker='Win32 ld.exe'
9734  # FIXME: first we should search . and the directory the executable is in
9735  shlibpath_var=PATH
9736  ;;
9737
9738darwin* | rhapsody*)
9739  dynamic_linker="$host_os dyld"
9740  version_type=darwin
9741  need_lib_prefix=no
9742  need_version=no
9743  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9744  soname_spec='${libname}${release}${major}$shared_ext'
9745  shlibpath_overrides_runpath=yes
9746  shlibpath_var=DYLD_LIBRARY_PATH
9747  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9748  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9749  if test "$GCC" = yes; then
9750    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"`
9751  else
9752    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9753  fi
9754  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9755  ;;
9756
9757dgux*)
9758  version_type=linux
9759  need_lib_prefix=no
9760  need_version=no
9761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9762  soname_spec='${libname}${release}${shared_ext}$major'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  ;;
9765
9766freebsd1*)
9767  dynamic_linker=no
9768  ;;
9769
9770kfreebsd*-gnu)
9771  version_type=linux
9772  need_lib_prefix=no
9773  need_version=no
9774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9775  soname_spec='${libname}${release}${shared_ext}$major'
9776  shlibpath_var=LD_LIBRARY_PATH
9777  shlibpath_overrides_runpath=no
9778  hardcode_into_libs=yes
9779  dynamic_linker='GNU ld.so'
9780  ;;
9781
9782freebsd* | dragonfly*)
9783  # DragonFly does not have aout.  When/if they implement a new
9784  # versioning mechanism, adjust this.
9785  if test -x /usr/bin/objformat; then
9786    objformat=`/usr/bin/objformat`
9787  else
9788    case $host_os in
9789    freebsd[123]*) objformat=aout ;;
9790    *) objformat=elf ;;
9791    esac
9792  fi
9793  version_type=freebsd-$objformat
9794  case $version_type in
9795    freebsd-elf*)
9796      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9797      need_version=no
9798      need_lib_prefix=no
9799      ;;
9800    freebsd-*)
9801      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9802      need_version=yes
9803      ;;
9804  esac
9805  shlibpath_var=LD_LIBRARY_PATH
9806  case $host_os in
9807  freebsd2*)
9808    shlibpath_overrides_runpath=yes
9809    ;;
9810  freebsd3.[01]* | freebsdelf3.[01]*)
9811    shlibpath_overrides_runpath=yes
9812    hardcode_into_libs=yes
9813    ;;
9814  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9815  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9816    shlibpath_overrides_runpath=no
9817    hardcode_into_libs=yes
9818    ;;
9819  freebsd*) # from 4.6 on
9820    shlibpath_overrides_runpath=yes
9821    hardcode_into_libs=yes
9822    ;;
9823  esac
9824  ;;
9825
9826gnu*)
9827  version_type=linux
9828  need_lib_prefix=no
9829  need_version=no
9830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9831  soname_spec='${libname}${release}${shared_ext}$major'
9832  shlibpath_var=LD_LIBRARY_PATH
9833  hardcode_into_libs=yes
9834  ;;
9835
9836hpux9* | hpux10* | hpux11*)
9837  # Give a soname corresponding to the major version so that dld.sl refuses to
9838  # link against other versions.
9839  version_type=sunos
9840  need_lib_prefix=no
9841  need_version=no
9842  case $host_cpu in
9843  ia64*)
9844    shrext_cmds='.so'
9845    hardcode_into_libs=yes
9846    dynamic_linker="$host_os dld.so"
9847    shlibpath_var=LD_LIBRARY_PATH
9848    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850    soname_spec='${libname}${release}${shared_ext}$major'
9851    if test "X$HPUX_IA64_MODE" = X32; then
9852      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9853    else
9854      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9855    fi
9856    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9857    ;;
9858   hppa*64*)
9859     shrext_cmds='.sl'
9860     hardcode_into_libs=yes
9861     dynamic_linker="$host_os dld.sl"
9862     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865     soname_spec='${libname}${release}${shared_ext}$major'
9866     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9867     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9868     ;;
9869   *)
9870    shrext_cmds='.sl'
9871    dynamic_linker="$host_os dld.sl"
9872    shlibpath_var=SHLIB_PATH
9873    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875    soname_spec='${libname}${release}${shared_ext}$major'
9876    ;;
9877  esac
9878  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9879  postinstall_cmds='chmod 555 $lib'
9880  ;;
9881
9882interix3*)
9883  version_type=linux
9884  need_lib_prefix=no
9885  need_version=no
9886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9889  shlibpath_var=LD_LIBRARY_PATH
9890  shlibpath_overrides_runpath=no
9891  hardcode_into_libs=yes
9892  ;;
9893
9894irix5* | irix6* | nonstopux*)
9895  case $host_os in
9896    nonstopux*) version_type=nonstopux ;;
9897    *)
9898        if test "$lt_cv_prog_gnu_ld" = yes; then
9899                version_type=linux
9900        else
9901                version_type=irix
9902        fi ;;
9903  esac
9904  need_lib_prefix=no
9905  need_version=no
9906  soname_spec='${libname}${release}${shared_ext}$major'
9907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9908  case $host_os in
9909  irix5* | nonstopux*)
9910    libsuff= shlibsuff=
9911    ;;
9912  *)
9913    case $LD in # libtool.m4 will add one of these switches to LD
9914    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9915      libsuff= shlibsuff= libmagic=32-bit;;
9916    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9917      libsuff=32 shlibsuff=N32 libmagic=N32;;
9918    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9919      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9920    *) libsuff= shlibsuff= libmagic=never-match;;
9921    esac
9922    ;;
9923  esac
9924  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9925  shlibpath_overrides_runpath=no
9926  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9927  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9928  hardcode_into_libs=yes
9929  ;;
9930
9931# No shared lib support for Linux oldld, aout, or coff.
9932linux*oldld* | linux*aout* | linux*coff*)
9933  dynamic_linker=no
9934  ;;
9935
9936# This must be Linux ELF.
9937linux*)
9938  version_type=linux
9939  need_lib_prefix=no
9940  need_version=no
9941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942  soname_spec='${libname}${release}${shared_ext}$major'
9943  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9944  shlibpath_var=LD_LIBRARY_PATH
9945  shlibpath_overrides_runpath=no
9946  # This implies no fast_install, which is unacceptable.
9947  # Some rework will be needed to allow for fast_install
9948  # before this can be enabled.
9949  hardcode_into_libs=yes
9950
9951  # Append ld.so.conf contents to the search path
9952  if test -f /etc/ld.so.conf; then
9953    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' ' '`
9954    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9955  fi
9956
9957  # We used to test for /lib/ld.so.1 and disable shared libraries on
9958  # powerpc, because MkLinux only supported shared libraries with the
9959  # GNU dynamic linker.  Since this was broken with cross compilers,
9960  # most powerpc-linux boxes support dynamic linking these days and
9961  # people can always --disable-shared, the test was removed, and we
9962  # assume the GNU/Linux dynamic linker is in use.
9963  dynamic_linker='GNU/Linux ld.so'
9964  ;;
9965
9966knetbsd*-gnu)
9967  version_type=linux
9968  need_lib_prefix=no
9969  need_version=no
9970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9971  soname_spec='${libname}${release}${shared_ext}$major'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  shlibpath_overrides_runpath=no
9974  hardcode_into_libs=yes
9975  dynamic_linker='GNU ld.so'
9976  ;;
9977
9978netbsd*)
9979  version_type=sunos
9980  need_lib_prefix=no
9981  need_version=no
9982  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9983    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9985    dynamic_linker='NetBSD (a.out) ld.so'
9986  else
9987    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9988    soname_spec='${libname}${release}${shared_ext}$major'
9989    dynamic_linker='NetBSD ld.elf_so'
9990  fi
9991  shlibpath_var=LD_LIBRARY_PATH
9992  shlibpath_overrides_runpath=yes
9993  hardcode_into_libs=yes
9994  ;;
9995
9996newsos6)
9997  version_type=linux
9998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999  shlibpath_var=LD_LIBRARY_PATH
10000  shlibpath_overrides_runpath=yes
10001  ;;
10002
10003nto-qnx*)
10004  version_type=linux
10005  need_lib_prefix=no
10006  need_version=no
10007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008  soname_spec='${libname}${release}${shared_ext}$major'
10009  shlibpath_var=LD_LIBRARY_PATH
10010  shlibpath_overrides_runpath=yes
10011  ;;
10012
10013openbsd*)
10014  version_type=sunos
10015  sys_lib_dlsearch_path_spec="/usr/lib"
10016  need_lib_prefix=no
10017  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10018  case $host_os in
10019    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10020    *)                         need_version=no  ;;
10021  esac
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10026    case $host_os in
10027      openbsd2.[89] | openbsd2.[89].*)
10028        shlibpath_overrides_runpath=no
10029        ;;
10030      *)
10031        shlibpath_overrides_runpath=yes
10032        ;;
10033      esac
10034  else
10035    shlibpath_overrides_runpath=yes
10036  fi
10037  ;;
10038
10039os2*)
10040  libname_spec='$name'
10041  shrext_cmds=".dll"
10042  need_lib_prefix=no
10043  library_names_spec='$libname${shared_ext} $libname.a'
10044  dynamic_linker='OS/2 ld.exe'
10045  shlibpath_var=LIBPATH
10046  ;;
10047
10048osf3* | osf4* | osf5*)
10049  version_type=osf
10050  need_lib_prefix=no
10051  need_version=no
10052  soname_spec='${libname}${release}${shared_ext}$major'
10053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054  shlibpath_var=LD_LIBRARY_PATH
10055  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10056  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10057  ;;
10058
10059solaris*)
10060  version_type=linux
10061  need_lib_prefix=no
10062  need_version=no
10063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064  soname_spec='${libname}${release}${shared_ext}$major'
10065  shlibpath_var=LD_LIBRARY_PATH
10066  shlibpath_overrides_runpath=yes
10067  hardcode_into_libs=yes
10068  # ldd complains unless libraries are executable
10069  postinstall_cmds='chmod +x $lib'
10070  ;;
10071
10072sunos4*)
10073  version_type=sunos
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10075  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10076  shlibpath_var=LD_LIBRARY_PATH
10077  shlibpath_overrides_runpath=yes
10078  if test "$with_gnu_ld" = yes; then
10079    need_lib_prefix=no
10080  fi
10081  need_version=yes
10082  ;;
10083
10084sysv4 | sysv4.3*)
10085  version_type=linux
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  case $host_vendor in
10090    sni)
10091      shlibpath_overrides_runpath=no
10092      need_lib_prefix=no
10093      export_dynamic_flag_spec='${wl}-Blargedynsym'
10094      runpath_var=LD_RUN_PATH
10095      ;;
10096    siemens)
10097      need_lib_prefix=no
10098      ;;
10099    motorola)
10100      need_lib_prefix=no
10101      need_version=no
10102      shlibpath_overrides_runpath=no
10103      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10104      ;;
10105  esac
10106  ;;
10107
10108sysv4*MP*)
10109  if test -d /usr/nec ;then
10110    version_type=linux
10111    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10112    soname_spec='$libname${shared_ext}.$major'
10113    shlibpath_var=LD_LIBRARY_PATH
10114  fi
10115  ;;
10116
10117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10118  version_type=freebsd-elf
10119  need_lib_prefix=no
10120  need_version=no
10121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10122  soname_spec='${libname}${release}${shared_ext}$major'
10123  shlibpath_var=LD_LIBRARY_PATH
10124  hardcode_into_libs=yes
10125  if test "$with_gnu_ld" = yes; then
10126    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10127    shlibpath_overrides_runpath=no
10128  else
10129    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10130    shlibpath_overrides_runpath=yes
10131    case $host_os in
10132      sco3.2v5*)
10133        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10134        ;;
10135    esac
10136  fi
10137  sys_lib_dlsearch_path_spec='/usr/lib'
10138  ;;
10139
10140uts4*)
10141  version_type=linux
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  shlibpath_var=LD_LIBRARY_PATH
10145  ;;
10146
10147*)
10148  dynamic_linker=no
10149  ;;
10150esac
10151echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10152echo "${ECHO_T}$dynamic_linker" >&6
10153test "$dynamic_linker" = no && can_build_shared=no
10154
10155variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10156if test "$GCC" = yes; then
10157  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10158fi
10159
10160echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10161echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10162hardcode_action=
10163if test -n "$hardcode_libdir_flag_spec" || \
10164   test -n "$runpath_var" || \
10165   test "X$hardcode_automatic" = "Xyes" ; then
10166
10167  # We can hardcode non-existant directories.
10168  if test "$hardcode_direct" != no &&
10169     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10170     # have to relink, otherwise we might link with an installed library
10171     # when we should be linking with a yet-to-be-installed one
10172     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10173     test "$hardcode_minus_L" != no; then
10174    # Linking always hardcodes the temporary library directory.
10175    hardcode_action=relink
10176  else
10177    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10178    hardcode_action=immediate
10179  fi
10180else
10181  # We cannot hardcode anything, or else we can only hardcode existing
10182  # directories.
10183  hardcode_action=unsupported
10184fi
10185echo "$as_me:$LINENO: result: $hardcode_action" >&5
10186echo "${ECHO_T}$hardcode_action" >&6
10187
10188if test "$hardcode_action" = relink; then
10189  # Fast installation is not supported
10190  enable_fast_install=no
10191elif test "$shlibpath_overrides_runpath" = yes ||
10192     test "$enable_shared" = no; then
10193  # Fast installation is not necessary
10194  enable_fast_install=needless
10195fi
10196
10197striplib=
10198old_striplib=
10199echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10200echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10201if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10202  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10203  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10204  echo "$as_me:$LINENO: result: yes" >&5
10205echo "${ECHO_T}yes" >&6
10206else
10207# FIXME - insert some real tests, host_os isn't really good enough
10208  case $host_os in
10209   darwin*)
10210       if test -n "$STRIP" ; then
10211         striplib="$STRIP -x"
10212         echo "$as_me:$LINENO: result: yes" >&5
10213echo "${ECHO_T}yes" >&6
10214       else
10215  echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
10217fi
10218       ;;
10219   *)
10220  echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222    ;;
10223  esac
10224fi
10225
10226if test "x$enable_dlopen" != xyes; then
10227  enable_dlopen=unknown
10228  enable_dlopen_self=unknown
10229  enable_dlopen_self_static=unknown
10230else
10231  lt_cv_dlopen=no
10232  lt_cv_dlopen_libs=
10233
10234  case $host_os in
10235  beos*)
10236    lt_cv_dlopen="load_add_on"
10237    lt_cv_dlopen_libs=
10238    lt_cv_dlopen_self=yes
10239    ;;
10240
10241  mingw* | pw32*)
10242    lt_cv_dlopen="LoadLibrary"
10243    lt_cv_dlopen_libs=
10244   ;;
10245
10246  cygwin*)
10247    lt_cv_dlopen="dlopen"
10248    lt_cv_dlopen_libs=
10249   ;;
10250
10251  darwin*)
10252  # if libdl is installed we need to link against it
10253    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10254echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10255if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258  ac_check_lib_save_LIBS=$LIBS
10259LIBS="-ldl  $LIBS"
10260cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h.  */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h.  */
10266
10267/* Override any gcc2 internal prototype to avoid an error.  */
10268#ifdef __cplusplus
10269extern "C"
10270#endif
10271/* We use char because int might match the return type of a gcc2
10272   builtin and then its argument prototype would still apply.  */
10273char dlopen ();
10274int
10275main ()
10276{
10277dlopen ();
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282rm -f conftest.$ac_objext conftest$ac_exeext
10283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284  (eval $ac_link) 2>conftest.er1
10285  ac_status=$?
10286  grep -v '^ *+' conftest.er1 >conftest.err
10287  rm -f conftest.er1
10288  cat conftest.err >&5
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); } &&
10291         { ac_try='test -z "$ac_c_werror_flag"
10292                         || test ! -s conftest.err'
10293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294  (eval $ac_try) 2>&5
10295  ac_status=$?
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); }; } &&
10298         { ac_try='test -s conftest$ac_exeext'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; }; then
10304  ac_cv_lib_dl_dlopen=yes
10305else
10306  echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309ac_cv_lib_dl_dlopen=no
10310fi
10311rm -f conftest.err conftest.$ac_objext \
10312      conftest$ac_exeext conftest.$ac_ext
10313LIBS=$ac_check_lib_save_LIBS
10314fi
10315echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10316echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10317if test $ac_cv_lib_dl_dlopen = yes; then
10318  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10319else
10320
10321    lt_cv_dlopen="dyld"
10322    lt_cv_dlopen_libs=
10323    lt_cv_dlopen_self=yes
10324
10325fi
10326
10327   ;;
10328
10329  *)
10330    echo "$as_me:$LINENO: checking for shl_load" >&5
10331echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10332if test "${ac_cv_func_shl_load+set}" = set; then
10333  echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
10335  cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h.  */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h.  */
10341/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10342   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10343#define shl_load innocuous_shl_load
10344
10345/* System header to define __stub macros and hopefully few prototypes,
10346    which can conflict with char shl_load (); below.
10347    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348    <limits.h> exists even on freestanding compilers.  */
10349
10350#ifdef __STDC__
10351# include <limits.h>
10352#else
10353# include <assert.h>
10354#endif
10355
10356#undef shl_load
10357
10358/* Override any gcc2 internal prototype to avoid an error.  */
10359#ifdef __cplusplus
10360extern "C"
10361{
10362#endif
10363/* We use char because int might match the return type of a gcc2
10364   builtin and then its argument prototype would still apply.  */
10365char shl_load ();
10366/* The GNU C library defines this for functions which it implements
10367    to always fail with ENOSYS.  Some functions are actually named
10368    something starting with __ and the normal name is an alias.  */
10369#if defined (__stub_shl_load) || defined (__stub___shl_load)
10370choke me
10371#else
10372char (*f) () = shl_load;
10373#endif
10374#ifdef __cplusplus
10375}
10376#endif
10377
10378int
10379main ()
10380{
10381return f != shl_load;
10382  ;
10383  return 0;
10384}
10385_ACEOF
10386rm -f conftest.$ac_objext conftest$ac_exeext
10387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388  (eval $ac_link) 2>conftest.er1
10389  ac_status=$?
10390  grep -v '^ *+' conftest.er1 >conftest.err
10391  rm -f conftest.er1
10392  cat conftest.err >&5
10393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394  (exit $ac_status); } &&
10395         { ac_try='test -z "$ac_c_werror_flag"
10396                         || test ! -s conftest.err'
10397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398  (eval $ac_try) 2>&5
10399  ac_status=$?
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); }; } &&
10402         { ac_try='test -s conftest$ac_exeext'
10403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404  (eval $ac_try) 2>&5
10405  ac_status=$?
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); }; }; then
10408  ac_cv_func_shl_load=yes
10409else
10410  echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413ac_cv_func_shl_load=no
10414fi
10415rm -f conftest.err conftest.$ac_objext \
10416      conftest$ac_exeext conftest.$ac_ext
10417fi
10418echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10419echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10420if test $ac_cv_func_shl_load = yes; then
10421  lt_cv_dlopen="shl_load"
10422else
10423  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10424echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10425if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10426  echo $ECHO_N "(cached) $ECHO_C" >&6
10427else
10428  ac_check_lib_save_LIBS=$LIBS
10429LIBS="-ldld  $LIBS"
10430cat >conftest.$ac_ext <<_ACEOF
10431/* confdefs.h.  */
10432_ACEOF
10433cat confdefs.h >>conftest.$ac_ext
10434cat >>conftest.$ac_ext <<_ACEOF
10435/* end confdefs.h.  */
10436
10437/* Override any gcc2 internal prototype to avoid an error.  */
10438#ifdef __cplusplus
10439extern "C"
10440#endif
10441/* We use char because int might match the return type of a gcc2
10442   builtin and then its argument prototype would still apply.  */
10443char shl_load ();
10444int
10445main ()
10446{
10447shl_load ();
10448  ;
10449  return 0;
10450}
10451_ACEOF
10452rm -f conftest.$ac_objext conftest$ac_exeext
10453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454  (eval $ac_link) 2>conftest.er1
10455  ac_status=$?
10456  grep -v '^ *+' conftest.er1 >conftest.err
10457  rm -f conftest.er1
10458  cat conftest.err >&5
10459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460  (exit $ac_status); } &&
10461         { ac_try='test -z "$ac_c_werror_flag"
10462                         || test ! -s conftest.err'
10463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464  (eval $ac_try) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); }; } &&
10468         { ac_try='test -s conftest$ac_exeext'
10469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470  (eval $ac_try) 2>&5
10471  ac_status=$?
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); }; }; then
10474  ac_cv_lib_dld_shl_load=yes
10475else
10476  echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479ac_cv_lib_dld_shl_load=no
10480fi
10481rm -f conftest.err conftest.$ac_objext \
10482      conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10486echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10487if test $ac_cv_lib_dld_shl_load = yes; then
10488  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10489else
10490  echo "$as_me:$LINENO: checking for dlopen" >&5
10491echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10492if test "${ac_cv_func_dlopen+set}" = set; then
10493  echo $ECHO_N "(cached) $ECHO_C" >&6
10494else
10495  cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h.  */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h.  */
10501/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10503#define dlopen innocuous_dlopen
10504
10505/* System header to define __stub macros and hopefully few prototypes,
10506    which can conflict with char dlopen (); below.
10507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10508    <limits.h> exists even on freestanding compilers.  */
10509
10510#ifdef __STDC__
10511# include <limits.h>
10512#else
10513# include <assert.h>
10514#endif
10515
10516#undef dlopen
10517
10518/* Override any gcc2 internal prototype to avoid an error.  */
10519#ifdef __cplusplus
10520extern "C"
10521{
10522#endif
10523/* We use char because int might match the return type of a gcc2
10524   builtin and then its argument prototype would still apply.  */
10525char dlopen ();
10526/* The GNU C library defines this for functions which it implements
10527    to always fail with ENOSYS.  Some functions are actually named
10528    something starting with __ and the normal name is an alias.  */
10529#if defined (__stub_dlopen) || defined (__stub___dlopen)
10530choke me
10531#else
10532char (*f) () = dlopen;
10533#endif
10534#ifdef __cplusplus
10535}
10536#endif
10537
10538int
10539main ()
10540{
10541return f != dlopen;
10542  ;
10543  return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext conftest$ac_exeext
10547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548  (eval $ac_link) 2>conftest.er1
10549  ac_status=$?
10550  grep -v '^ *+' conftest.er1 >conftest.err
10551  rm -f conftest.er1
10552  cat conftest.err >&5
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } &&
10555         { ac_try='test -z "$ac_c_werror_flag"
10556                         || test ! -s conftest.err'
10557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558  (eval $ac_try) 2>&5
10559  ac_status=$?
10560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561  (exit $ac_status); }; } &&
10562         { ac_try='test -s conftest$ac_exeext'
10563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564  (eval $ac_try) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); }; }; then
10568  ac_cv_func_dlopen=yes
10569else
10570  echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573ac_cv_func_dlopen=no
10574fi
10575rm -f conftest.err conftest.$ac_objext \
10576      conftest$ac_exeext conftest.$ac_ext
10577fi
10578echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10579echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10580if test $ac_cv_func_dlopen = yes; then
10581  lt_cv_dlopen="dlopen"
10582else
10583  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10585if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10586  echo $ECHO_N "(cached) $ECHO_C" >&6
10587else
10588  ac_check_lib_save_LIBS=$LIBS
10589LIBS="-ldl  $LIBS"
10590cat >conftest.$ac_ext <<_ACEOF
10591/* confdefs.h.  */
10592_ACEOF
10593cat confdefs.h >>conftest.$ac_ext
10594cat >>conftest.$ac_ext <<_ACEOF
10595/* end confdefs.h.  */
10596
10597/* Override any gcc2 internal prototype to avoid an error.  */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
10601/* We use char because int might match the return type of a gcc2
10602   builtin and then its argument prototype would still apply.  */
10603char dlopen ();
10604int
10605main ()
10606{
10607dlopen ();
10608  ;
10609  return 0;
10610}
10611_ACEOF
10612rm -f conftest.$ac_objext conftest$ac_exeext
10613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614  (eval $ac_link) 2>conftest.er1
10615  ac_status=$?
10616  grep -v '^ *+' conftest.er1 >conftest.err
10617  rm -f conftest.er1
10618  cat conftest.err >&5
10619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620  (exit $ac_status); } &&
10621         { ac_try='test -z "$ac_c_werror_flag"
10622                         || test ! -s conftest.err'
10623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624  (eval $ac_try) 2>&5
10625  ac_status=$?
10626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627  (exit $ac_status); }; } &&
10628         { ac_try='test -s conftest$ac_exeext'
10629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630  (eval $ac_try) 2>&5
10631  ac_status=$?
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); }; }; then
10634  ac_cv_lib_dl_dlopen=yes
10635else
10636  echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
10639ac_cv_lib_dl_dlopen=no
10640fi
10641rm -f conftest.err conftest.$ac_objext \
10642      conftest$ac_exeext conftest.$ac_ext
10643LIBS=$ac_check_lib_save_LIBS
10644fi
10645echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10647if test $ac_cv_lib_dl_dlopen = yes; then
10648  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649else
10650  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10651echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10652if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10653  echo $ECHO_N "(cached) $ECHO_C" >&6
10654else
10655  ac_check_lib_save_LIBS=$LIBS
10656LIBS="-lsvld  $LIBS"
10657cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h.  */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h.  */
10663
10664/* Override any gcc2 internal prototype to avoid an error.  */
10665#ifdef __cplusplus
10666extern "C"
10667#endif
10668/* We use char because int might match the return type of a gcc2
10669   builtin and then its argument prototype would still apply.  */
10670char dlopen ();
10671int
10672main ()
10673{
10674dlopen ();
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext conftest$ac_exeext
10680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681  (eval $ac_link) 2>conftest.er1
10682  ac_status=$?
10683  grep -v '^ *+' conftest.er1 >conftest.err
10684  rm -f conftest.er1
10685  cat conftest.err >&5
10686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687  (exit $ac_status); } &&
10688         { ac_try='test -z "$ac_c_werror_flag"
10689                         || test ! -s conftest.err'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; } &&
10695         { ac_try='test -s conftest$ac_exeext'
10696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697  (eval $ac_try) 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; }; then
10701  ac_cv_lib_svld_dlopen=yes
10702else
10703  echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&