source: trunk/Cbc/configure @ 1762

Last change on this file since 1762 was 1762, checked in by tkr, 8 years ago

Updating configure file for tweak in build tools

  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
1174  --with-osicbc-default-solver
1175                          specify underlying solver for OsiCbc (default clp)
1176  --with-dot              use dot (from graphviz) when creating documentation
1177                          with doxygen if available; --without-dot to disable
1178
1179Some influential environment variables:
1180  CDEFS       Additional -D flags to be used when compiling C code.
1181  ADD_CFLAGS  Additional C compiler options
1182  DBG_CFLAGS  Debug C compiler options
1183  OPT_CFLAGS  Optimize C compiler options
1184  CC          C compiler command
1185  CFLAGS      C compiler flags
1186  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1187              nonstandard directory <lib dir>
1188  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1189              headers in a nonstandard directory <include dir>
1190  MPICC       C MPI Compiler
1191  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1192  ADD_CXXFLAGS
1193              Additional C++ compiler options
1194  DBG_CXXFLAGS
1195              Debug C++ compiler options
1196  OPT_CXXFLAGS
1197              Optimize C++ compiler options
1198  CXX         C++ compiler command
1199  CXXFLAGS    C++ compiler flags
1200  MPICXX      C++ MPI Compiler
1201  CPP         C preprocessor
1202  CXXCPP      C++ preprocessor
1203  F77         Fortran 77 compiler command
1204  FFLAGS      Fortran 77 compiler flags
1205  PKG_CONFIG  path to pkg-config utility
1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
1210Report bugs to <cbc@lists.coin-or.org>.
1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215  # If there are subdirs, report their specific --help.
1216  ac_popdir=`pwd`
1217  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218    test -d $ac_dir || continue
1219    ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223  # A "../" for each directory in $ac_dir_suffix.
1224  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226  ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230  .)  # No --srcdir option.  We are building in place.
1231    ac_srcdir=.
1232    if test -z "$ac_top_builddir"; then
1233       ac_top_srcdir=.
1234    else
1235       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236    fi ;;
1237  [\\/]* | ?:[\\/]* )  # Absolute path.
1238    ac_srcdir=$srcdir$ac_dir_suffix;
1239    ac_top_srcdir=$srcdir ;;
1240  *) # Relative path.
1241    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250  case "$ac_dir" in
1251  .) ac_abs_builddir=`pwd`;;
1252  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254  esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259  case ${ac_top_builddir}. in
1260  .) ac_abs_top_builddir=$ac_abs_builddir;;
1261  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263  esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268  case $ac_srcdir in
1269  .) ac_abs_srcdir=$ac_abs_builddir;;
1270  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272  esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277  case $ac_top_srcdir in
1278  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281  esac;;
1282esac
1283
1284    cd $ac_dir
1285    # Check for guested configure; otherwise get Cygnus style configure.
1286    if test -f $ac_srcdir/configure.gnu; then
1287      echo
1288      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1289    elif test -f $ac_srcdir/configure; then
1290      echo
1291      $SHELL $ac_srcdir/configure  --help=recursive
1292    elif test -f $ac_srcdir/configure.ac ||
1293           test -f $ac_srcdir/configure.in; then
1294      echo
1295      $ac_configure --help
1296    else
1297      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298    fi
1299    cd $ac_popdir
1300  done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305  cat <<\_ACEOF
1306Cbc configure trunk
1307generated by GNU Autoconf 2.59
1308
1309Copyright (C) 2003 Free Software Foundation, Inc.
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312
1313
1314Copyright 2006 International Business Machines and others.
1315All Rights Reserved.
1316This file is part of the open source package Coin which is distributed
1317under the Eclipse Public License.
1318_ACEOF
1319  exit 0
1320fi
1321exec 5>config.log
1322cat >&5 <<_ACEOF
1323This file contains any messages produced by compilers while
1324running configure, to aid debugging if configure makes a mistake.
1325
1326It was created by Cbc $as_me trunk, which was
1327generated by GNU Autoconf 2.59.  Invocation command line was
1328
1329  $ $0 $@
1330
1331_ACEOF
1332{
1333cat <<_ASUNAME
1334## --------- ##
1335## Platform. ##
1336## --------- ##
1337
1338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1339uname -m = `(uname -m) 2>/dev/null || echo unknown`
1340uname -r = `(uname -r) 2>/dev/null || echo unknown`
1341uname -s = `(uname -s) 2>/dev/null || echo unknown`
1342uname -v = `(uname -v) 2>/dev/null || echo unknown`
1343
1344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1345/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1346
1347/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1348/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1350hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1351/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1352/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1353/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1354
1355_ASUNAME
1356
1357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358for as_dir in $PATH
1359do
1360  IFS=$as_save_IFS
1361  test -z "$as_dir" && as_dir=.
1362  echo "PATH: $as_dir"
1363done
1364
1365} >&5
1366
1367cat >&5 <<_ACEOF
1368
1369
1370## ----------- ##
1371## Core tests. ##
1372## ----------- ##
1373
1374_ACEOF
1375
1376
1377# Keep a trace of the command line.
1378# Strip out --no-create and --no-recursion so they do not pile up.
1379# Strip out --silent because we don't want to record it for future runs.
1380# Also quote any args containing shell meta-characters.
1381# Make two passes to allow for proper duplicate-argument suppression.
1382ac_configure_args=
1383ac_configure_args0=
1384ac_configure_args1=
1385ac_sep=
1386ac_must_keep_next=false
1387for ac_pass in 1 2
1388do
1389  for ac_arg
1390  do
1391    case $ac_arg in
1392    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1393    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394    | -silent | --silent | --silen | --sile | --sil)
1395      continue ;;
1396    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1397      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1398    esac
1399    case $ac_pass in
1400    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1401    2)
1402      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1403      if test $ac_must_keep_next = true; then
1404        ac_must_keep_next=false # Got value, back to normal.
1405      else
1406        case $ac_arg in
1407          *=* | --config-cache | -C | -disable-* | --disable-* \
1408          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1409          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1410          | -with-* | --with-* | -without-* | --without-* | --x)
1411            case "$ac_configure_args0 " in
1412              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1413            esac
1414            ;;
1415          -* ) ac_must_keep_next=true ;;
1416        esac
1417      fi
1418      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1419      # Get rid of the leading space.
1420      ac_sep=" "
1421      ;;
1422    esac
1423  done
1424done
1425$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1427
1428# When interrupted or exit'd, cleanup temporary files, and complete
1429# config.log.  We remove comments because anyway the quotes in there
1430# would cause problems or look ugly.
1431# WARNING: Be sure not to use single quotes in there, as some shells,
1432# such as our DU 5.0 friend, will then `close' the trap.
1433trap 'exit_status=$?
1434  # Save into config.log some information that might help in debugging.
1435  {
1436    echo
1437
1438    cat <<\_ASBOX
1439## ---------------- ##
1440## Cache variables. ##
1441## ---------------- ##
1442_ASBOX
1443    echo
1444    # The following way of writing the cache mishandles newlines in values,
1445{
1446  (set) 2>&1 |
1447    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1448    *ac_space=\ *)
1449      sed -n \
1450        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1451          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1452      ;;
1453    *)
1454      sed -n \
1455        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1456      ;;
1457    esac;
1458}
1459    echo
1460
1461    cat <<\_ASBOX
1462## ----------------- ##
1463## Output variables. ##
1464## ----------------- ##
1465_ASBOX
1466    echo
1467    for ac_var in $ac_subst_vars
1468    do
1469      eval ac_val=$`echo $ac_var`
1470      echo "$ac_var='"'"'$ac_val'"'"'"
1471    done | sort
1472    echo
1473
1474    if test -n "$ac_subst_files"; then
1475      cat <<\_ASBOX
1476## ------------- ##
1477## Output files. ##
1478## ------------- ##
1479_ASBOX
1480      echo
1481      for ac_var in $ac_subst_files
1482      do
1483        eval ac_val=$`echo $ac_var`
1484        echo "$ac_var='"'"'$ac_val'"'"'"
1485      done | sort
1486      echo
1487    fi
1488
1489    if test -s confdefs.h; then
1490      cat <<\_ASBOX
1491## ----------- ##
1492## confdefs.h. ##
1493## ----------- ##
1494_ASBOX
1495      echo
1496      sed "/^$/d" confdefs.h | sort
1497      echo
1498    fi
1499    test "$ac_signal" != 0 &&
1500      echo "$as_me: caught signal $ac_signal"
1501    echo "$as_me: exit $exit_status"
1502  } >&5
1503  rm -f core *.core &&
1504  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1505    exit $exit_status
1506     ' 0
1507for ac_signal in 1 2 13 15; do
1508  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1509done
1510ac_signal=0
1511
1512# confdefs.h avoids OS command line length limits that DEFS can exceed.
1513rm -rf conftest* confdefs.h
1514# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1515echo >confdefs.h
1516
1517# Predefined preprocessor variables.
1518
1519cat >>confdefs.h <<_ACEOF
1520#define PACKAGE_NAME "$PACKAGE_NAME"
1521_ACEOF
1522
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_VERSION "$PACKAGE_VERSION"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_STRING "$PACKAGE_STRING"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1541_ACEOF
1542
1543
1544# Let the site file select an alternate cache file if it wants to.
1545# Prefer explicitly selected file to automatically selected ones.
1546if test -z "$CONFIG_SITE"; then
1547  if test "x$prefix" != xNONE; then
1548    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1549  else
1550    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1551  fi
1552fi
1553for ac_site_file in $CONFIG_SITE; do
1554  if test -r "$ac_site_file"; then
1555    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556echo "$as_me: loading site script $ac_site_file" >&6;}
1557    sed 's/^/| /' "$ac_site_file" >&5
1558    . "$ac_site_file"
1559  fi
1560done
1561
1562if test -r "$cache_file"; then
1563  # Some versions of bash will fail to source /dev/null (special
1564  # files actually), so we avoid doing that.
1565  if test -f "$cache_file"; then
1566    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567echo "$as_me: loading cache $cache_file" >&6;}
1568    case $cache_file in
1569      [\\/]* | ?:[\\/]* ) . $cache_file;;
1570      *)                      . ./$cache_file;;
1571    esac
1572  fi
1573else
1574  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575echo "$as_me: creating cache $cache_file" >&6;}
1576  >$cache_file
1577fi
1578
1579# Check that the precious variables saved in the cache have kept the same
1580# value.
1581ac_cache_corrupted=false
1582for ac_var in `(set) 2>&1 |
1583               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1584  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1585  eval ac_new_set=\$ac_env_${ac_var}_set
1586  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1587  eval ac_new_val="\$ac_env_${ac_var}_value"
1588  case $ac_old_set,$ac_new_set in
1589    set,)
1590      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1591echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1592      ac_cache_corrupted=: ;;
1593    ,set)
1594      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1595echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1596      ac_cache_corrupted=: ;;
1597    ,);;
1598    *)
1599      if test "x$ac_old_val" != "x$ac_new_val"; then
1600        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1601echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1602        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1603echo "$as_me:   former value:  $ac_old_val" >&2;}
1604        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1605echo "$as_me:   current value: $ac_new_val" >&2;}
1606        ac_cache_corrupted=:
1607      fi;;
1608  esac
1609  # Pass precious variables to config.status.
1610  if test "$ac_new_set" = set; then
1611    case $ac_new_val in
1612    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1613      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1614    *) ac_arg=$ac_var=$ac_new_val ;;
1615    esac
1616    case " $ac_configure_args " in
1617      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1618      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1619    esac
1620  fi
1621done
1622if $ac_cache_corrupted; then
1623  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1624echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1625  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1626echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1627   { (exit 1); exit 1; }; }
1628fi
1629
1630ac_ext=c
1631ac_cpp='$CPP $CPPFLAGS'
1632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665# List one file in the package so that the configure script can test
1666# whether the package is actually there
1667
1668
1669# Where should everything be installed by default?  Here, we want it
1670# to be installed directly in 'bin', 'lib', 'include' subdirectories
1671# of the directory where configure is run.  The default would be
1672# /usr/local.
1673
1674
1675#############################################################################
1676#                         Standard build tool stuff                         #
1677#############################################################################
1678
1679# Get the system type
1680ac_aux_dir=
1681for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1682  if test -f $ac_dir/install-sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install-sh -c"
1685    break
1686  elif test -f $ac_dir/install.sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install.sh -c"
1689    break
1690  elif test -f $ac_dir/shtool; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/shtool install -c"
1693    break
1694  fi
1695done
1696if test -z "$ac_aux_dir"; then
1697  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1698echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1699   { (exit 1); exit 1; }; }
1700fi
1701ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1702ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1703ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1704
1705# Make sure we can run config.sub.
1706$ac_config_sub sun4 >/dev/null 2>&1 ||
1707  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1708echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1709   { (exit 1); exit 1; }; }
1710
1711echo "$as_me:$LINENO: checking build system type" >&5
1712echo $ECHO_N "checking build system type... $ECHO_C" >&6
1713if test "${ac_cv_build+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  ac_cv_build_alias=$build_alias
1717test -z "$ac_cv_build_alias" &&
1718  ac_cv_build_alias=`$ac_config_guess`
1719test -z "$ac_cv_build_alias" &&
1720  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1721echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1722   { (exit 1); exit 1; }; }
1723ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1724  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1725echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1726   { (exit 1); exit 1; }; }
1727
1728fi
1729echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1730echo "${ECHO_T}$ac_cv_build" >&6
1731build=$ac_cv_build
1732build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737
1738# If this project depends on external projects, the Externals file in
1739# the source root directory contains definition of where to find those
1740# externals.  The following macro ensures that those externals are
1741# retrieved by svn if they are not there yet.
1742
1743# As backup, we make sure we don't loose an FLIBS if it has been set
1744# by the user
1745save_FLIBS="$FLIBS"
1746
1747# A useful makefile conditional that is always false
1748
1749
1750if false; then
1751  ALWAYS_FALSE_TRUE=
1752  ALWAYS_FALSE_FALSE='#'
1753else
1754  ALWAYS_FALSE_TRUE='#'
1755  ALWAYS_FALSE_FALSE=
1756fi
1757
1758
1759# We set the following variable so that we know later in AC_COIN_FINALIZE
1760# that we are in a project main directory
1761coin_projectdir=yes
1762
1763# Set the project's version numbers
1764
1765
1766cat >>confdefs.h <<_ACEOF
1767#define CBC_VERSION "$PACKAGE_VERSION"
1768_ACEOF
1769
1770
1771  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1772  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1774  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1775  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1776  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1777
1778cat >>confdefs.h <<_ACEOF
1779#define CBC_VERSION_MAJOR $coin_majorver
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MINOR $coin_minorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_RELEASE $coin_releasever
1790_ACEOF
1791
1792
1793  # We use the following variable to have a string with the upper case
1794  # version of the project name
1795  COIN_PRJCT=CBC
1796
1797  # Set the project's SVN revision number. The complicated sed expression
1798  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1799  # as a single number.
1800  # Extract the first word of "svnversion", so it can be a program name with args.
1801set dummy svnversion; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_have_svnversion+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  if test -n "$have_svnversion"; then
1808  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1809else
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813  IFS=$as_save_IFS
1814  test -z "$as_dir" && as_dir=.
1815  for ac_exec_ext in '' $ac_executable_extensions; do
1816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817    ac_cv_prog_have_svnversion="yes"
1818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819    break 2
1820  fi
1821done
1822done
1823
1824  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1825fi
1826fi
1827have_svnversion=$ac_cv_prog_have_svnversion
1828if test -n "$have_svnversion"; then
1829  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1830echo "${ECHO_T}$have_svnversion" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836  if test "x$have_svnversion" = xyes; then
1837
1838    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1839    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1840      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1841
1842cat >>confdefs.h <<_ACEOF
1843#define CBC_SVN_REV $CBC_SVN_REV
1844_ACEOF
1845
1846    fi
1847  fi
1848
1849
1850
1851# Capture libtool library version, if given.
1852
1853
1854
1855
1856# Check if user wants to produce debugging code
1857
1858echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1859echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1860
1861# Check whether --enable-debug or --disable-debug was given.
1862if test "${enable_debug+set}" = set; then
1863  enableval="$enable_debug"
1864  case "${enableval}" in
1865   yes) coin_debug_compile=true
1866        if test "${enable_shared+set}" = set; then :; else
1867          enable_shared=no
1868        fi
1869        ;;
1870   no)  coin_debug_compile=false
1871        ;;
1872   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1873echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1874   { (exit 1); exit 1; }; }
1875        ;;
1876esac
1877else
1878  coin_debug_compile=false
1879fi;
1880
1881# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1882if test "${enable_debug_cbc+set}" = set; then
1883  enableval="$enable_debug_cbc"
1884  case "${enableval}" in
1885    yes) coin_debug_compile=true
1886         ;;
1887    no)  coin_debug_compile=false
1888         ;;
1889    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1890echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1891   { (exit 1); exit 1; }; }
1892         ;;
1893 esac
1894else
1895  :
1896fi;
1897
1898 # m4_ifvaln([Cbc],
1899
1900if test $coin_debug_compile = true; then
1901  echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908
1909# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1910if test "${with_cbc_verbosity+set}" = set; then
1911  withval="$with_cbc_verbosity"
1912  if test "$withval" = yes; then
1913                withval=1
1914              fi
1915              coin_cbc_verbosity=$withval
1916else
1917  coin_cbc_verbosity=0
1918fi;
1919
1920cat >>confdefs.h <<_ACEOF
1921#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1922_ACEOF
1923
1924
1925
1926# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1927if test "${with_cbc_checklevel+set}" = set; then
1928  withval="$with_cbc_checklevel"
1929  if test "$withval" = yes; then
1930                withval=1
1931              fi
1932              coin_cbc_checklevel=$withval
1933else
1934  coin_cbc_checklevel=0
1935fi;
1936
1937cat >>confdefs.h <<_ACEOF
1938#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1939_ACEOF
1940
1941
1942 # m4_ifvaln([Cbc],
1943
1944
1945
1946# Get the name of the C++ compiler and appropriate compiler options
1947case $build in
1948  *-mingw*)
1949    if test "${LD+set}" = set; then :; else
1950      LD=link
1951    fi
1952    ;;
1953 esac
1954 case $enable_doscompile in
1955   msvc)
1956     if test "x${LD+set}" = xset; then :; else
1957       LD=link
1958     fi
1959     ;;
1960 esac
1961
1962
1963 # Check whether --enable-doscompile or --disable-doscompile was given.
1964if test "${enable_doscompile+set}" = set; then
1965  enableval="$enable_doscompile"
1966  if test "$enable_doscompile" != no; then
1967     case $build in
1968       *-cygwin* | *-mingw*) ;;
1969       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1970echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1971   { (exit 1); exit 1; }; } ;;
1972     esac
1973   fi
1974else
1975  enable_doscompile=no
1976fi;
1977 case "$enable_doscompile" in
1978   mingw)
1979     case $build in
1980       *-mingw*) enable_doscompile=no ;;
1981     esac
1982     ;;
1983   msvc|no) ;;
1984   yes) enable_doscompile=mingw ;;
1985   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1986                    Try configure --help=recursive." >&5
1987echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1988                    Try configure --help=recursive." >&2;}
1989   { (exit 1); exit 1; }; }
1990      ;;
1991  esac
1992  if test "$enable_doscompile" != no ; then
1993    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1994echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1995  fi
1996
1997
1998
1999
2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007# For consistency, we set the C compiler to the same value of the C++
2008# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2009if test x"$CXX" != x; then
2010  case "$CXX" in
2011    clang* ) ;;
2012    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2013      if test x"$CC" = x; then
2014        CC="$CXX"
2015        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2016echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2017      fi
2018      ;;
2019  esac
2020fi
2021
2022
2023
2024
2025
2026
2027coin_has_cc=yes
2028
2029save_cflags="$CFLAGS"
2030
2031# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2032# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2033# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2034# compiler. In this case, put cc after gcc.
2035
2036case $build in
2037  *-cygwin* | *-mingw*)
2038             if test "$enable_doscompile" = msvc ; then
2039               comps="icl cl"
2040             else
2041               comps="gcc cl"
2042             fi ;;
2043  *-*-solaris*)
2044             # Extract the first word of "cc", so it can be a program name with args.
2045set dummy cc; ac_word=$2
2046echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test -n "$sol_cc_compiler"; then
2052  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2053else
2054  ac_prog_rejected=no
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058  IFS=$as_save_IFS
2059  test -z "$as_dir" && as_dir=.
2060  for ac_exec_ext in '' $ac_executable_extensions; do
2061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2063       ac_prog_rejected=yes
2064       continue
2065     fi
2066    ac_cv_prog_sol_cc_compiler="cc"
2067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068    break 2
2069  fi
2070done
2071done
2072
2073if test $ac_prog_rejected = yes; then
2074  # We found a bogon in the path, so make sure we never use it.
2075  set dummy $ac_cv_prog_sol_cc_compiler
2076  shift
2077  if test $# != 0; then
2078    # We chose a different compiler from the bogus one.
2079    # However, it has the same basename, so the bogon will be chosen
2080    # first if we set sol_cc_compiler to just the basename; use the full file name.
2081    shift
2082    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2083  fi
2084fi
2085fi
2086fi
2087sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2088if test -n "$sol_cc_compiler"; then
2089  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2090echo "${ECHO_T}$sol_cc_compiler" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096             if test "$sol_cc_compiler" = "cc" ; then
2097               comps="cc xlc gcc pgcc icc"
2098             else
2099               comps="xlc gcc pgcc icc cc"
2100             fi
2101             ;;
2102  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2103  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2104  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2105esac
2106
2107# We delete the cached value, since the test might not have been
2108# performed with our choice of compilers earlier
2109$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2110# AC_MSG_NOTICE([C compiler candidates: $comps])
2111ac_ext=c
2112ac_cpp='$CPP $CPPFLAGS'
2113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116if test -n "$ac_tool_prefix"; then
2117  for ac_prog in $comps
2118  do
2119    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2120set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2121echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123if test "${ac_cv_prog_CC+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test -n "$CC"; then
2127  ac_cv_prog_CC="$CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  for ac_exec_ext in '' $ac_executable_extensions; do
2135  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138    break 2
2139  fi
2140done
2141done
2142
2143fi
2144fi
2145CC=$ac_cv_prog_CC
2146if test -n "$CC"; then
2147  echo "$as_me:$LINENO: result: $CC" >&5
2148echo "${ECHO_T}$CC" >&6
2149else
2150  echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6
2152fi
2153
2154    test -n "$CC" && break
2155  done
2156fi
2157if test -z "$CC"; then
2158  ac_ct_CC=$CC
2159  for ac_prog in $comps
2160do
2161  # Extract the first word of "$ac_prog", so it can be a program name with args.
2162set dummy $ac_prog; ac_word=$2
2163echo "$as_me:$LINENO: checking for $ac_word" >&5
2164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166  echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168  if test -n "$ac_ct_CC"; then
2169  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170else
2171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172for as_dir in $PATH
2173do
2174  IFS=$as_save_IFS
2175  test -z "$as_dir" && as_dir=.
2176  for ac_exec_ext in '' $ac_executable_extensions; do
2177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178    ac_cv_prog_ac_ct_CC="$ac_prog"
2179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180    break 2
2181  fi
2182done
2183done
2184
2185fi
2186fi
2187ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188if test -n "$ac_ct_CC"; then
2189  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190echo "${ECHO_T}$ac_ct_CC" >&6
2191else
2192  echo "$as_me:$LINENO: result: no" >&5
2193echo "${ECHO_T}no" >&6
2194fi
2195
2196  test -n "$ac_ct_CC" && break
2197done
2198
2199  CC=$ac_ct_CC
2200fi
2201
2202
2203test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: no acceptable C compiler found in \$PATH
2206See \`config.log' for more details." >&2;}
2207   { (exit 1); exit 1; }; }
2208
2209# Provide some information about the compiler.
2210echo "$as_me:$LINENO:" \
2211     "checking for C compiler version" >&5
2212ac_compiler=`set X $ac_compile; echo $2`
2213{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2214  (eval $ac_compiler --version </dev/null >&5) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2219  (eval $ac_compiler -v </dev/null >&5) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2224  (eval $ac_compiler -V </dev/null >&5) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }
2228
2229cat >conftest.$ac_ext <<_ACEOF
2230/* confdefs.h.  */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h.  */
2235
2236int
2237main ()
2238{
2239
2240  ;
2241  return 0;
2242}
2243_ACEOF
2244ac_clean_files_save=$ac_clean_files
2245ac_clean_files="$ac_clean_files a.out a.exe b.out"
2246# Try to create an executable without -o first, disregard a.out.
2247# It will help us diagnose broken compilers, and finding out an intuition
2248# of exeext.
2249echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2250echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2251ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2252if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2253  (eval $ac_link_default) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; then
2257  # Find the output, starting from the most likely.  This scheme is
2258# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2259# resort.
2260
2261# Be careful to initialize this variable, since it used to be cached.
2262# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2263ac_cv_exeext=
2264# b.out is created by i960 compilers.
2265for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2266do
2267  test -f "$ac_file" || continue
2268  case $ac_file in
2269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2270        ;;
2271    conftest.$ac_ext )
2272        # This is the source file.
2273        ;;
2274    [ab].out )
2275        # We found the default executable, but exeext='' is most
2276        # certainly right.
2277        break;;
2278    *.* )
2279        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280        # FIXME: I believe we export ac_cv_exeext for Libtool,
2281        # but it would be cool to find out if it's true.  Does anybody
2282        # maintain Libtool? --akim.
2283        export ac_cv_exeext
2284        break;;
2285    * )
2286        break;;
2287  esac
2288done
2289else
2290  echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: C compiler cannot create executables
2296See \`config.log' for more details." >&2;}
2297   { (exit 77); exit 77; }; }
2298fi
2299
2300ac_exeext=$ac_cv_exeext
2301echo "$as_me:$LINENO: result: $ac_file" >&5
2302echo "${ECHO_T}$ac_file" >&6
2303
2304# Check the compiler produces executables we can run.  If not, either
2305# the compiler is broken, or we cross compile.
2306echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2307echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2308# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2309# If not cross compiling, check that we can run a simple program.
2310if test "$cross_compiling" != yes; then
2311  if { ac_try='./$ac_file'
2312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313  (eval $ac_try) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; }; then
2317    cross_compiling=no
2318  else
2319    if test "$cross_compiling" = maybe; then
2320        cross_compiling=yes
2321    else
2322        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2323If you meant to cross compile, use \`--host'.
2324See \`config.log' for more details." >&5
2325echo "$as_me: error: cannot run C compiled programs.
2326If you meant to cross compile, use \`--host'.
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329    fi
2330  fi
2331fi
2332echo "$as_me:$LINENO: result: yes" >&5
2333echo "${ECHO_T}yes" >&6
2334
2335rm -f a.out a.exe conftest$ac_cv_exeext b.out
2336ac_clean_files=$ac_clean_files_save
2337# Check the compiler produces executables we can run.  If not, either
2338# the compiler is broken, or we cross compile.
2339echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2340echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2341echo "$as_me:$LINENO: result: $cross_compiling" >&5
2342echo "${ECHO_T}$cross_compiling" >&6
2343
2344echo "$as_me:$LINENO: checking for suffix of executables" >&5
2345echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2347  (eval $ac_link) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; then
2351  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2352# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2353# work properly (i.e., refer to `conftest.exe'), while it won't with
2354# `rm'.
2355for ac_file in conftest.exe conftest conftest.*; do
2356  test -f "$ac_file" || continue
2357  case $ac_file in
2358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2359    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360          export ac_cv_exeext
2361          break;;
2362    * ) break;;
2363  esac
2364done
2365else
2366  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2367See \`config.log' for more details." >&5
2368echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2369See \`config.log' for more details." >&2;}
2370   { (exit 1); exit 1; }; }
2371fi
2372
2373rm -f conftest$ac_cv_exeext
2374echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2375echo "${ECHO_T}$ac_cv_exeext" >&6
2376
2377rm -f conftest.$ac_ext
2378EXEEXT=$ac_cv_exeext
2379ac_exeext=$EXEEXT
2380echo "$as_me:$LINENO: checking for suffix of object files" >&5
2381echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2382if test "${ac_cv_objext+set}" = set; then
2383  echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385  cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h.  */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h.  */
2391
2392int
2393main ()
2394{
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400rm -f conftest.o conftest.obj
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; then
2406  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2407  case $ac_file in
2408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2409    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2410       break;;
2411  esac
2412done
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2418See \`config.log' for more details." >&5
2419echo "$as_me: error: cannot compute suffix of object files: cannot compile
2420See \`config.log' for more details." >&2;}
2421   { (exit 1); exit 1; }; }
2422fi
2423
2424rm -f conftest.$ac_cv_objext conftest.$ac_ext
2425fi
2426echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2427echo "${ECHO_T}$ac_cv_objext" >&6
2428OBJEXT=$ac_cv_objext
2429ac_objext=$OBJEXT
2430echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2431echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2432if test "${ac_cv_c_compiler_gnu+set}" = set; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441
2442int
2443main ()
2444{
2445#ifndef __GNUC__
2446       choke me
2447#endif
2448
2449  ;
2450  return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455  (eval $ac_compile) 2>conftest.er1
2456  ac_status=$?
2457  grep -v '^ *+' conftest.er1 >conftest.err
2458  rm -f conftest.er1
2459  cat conftest.err >&5
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); } &&
2462         { ac_try='test -z "$ac_c_werror_flag"
2463                         || test ! -s conftest.err'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; } &&
2469         { ac_try='test -s conftest.$ac_objext'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; }; then
2475  ac_compiler_gnu=yes
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480ac_compiler_gnu=no
2481fi
2482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483ac_cv_c_compiler_gnu=$ac_compiler_gnu
2484
2485fi
2486echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2487echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2488GCC=`test $ac_compiler_gnu = yes && echo yes`
2489ac_test_CFLAGS=${CFLAGS+set}
2490ac_save_CFLAGS=$CFLAGS
2491CFLAGS="-g"
2492echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2493echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2494if test "${ac_cv_prog_cc_g+set}" = set; then
2495  echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497  cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503
2504int
2505main ()
2506{
2507
2508  ;
2509  return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514  (eval $ac_compile) 2>conftest.er1
2515  ac_status=$?
2516  grep -v '^ *+' conftest.er1 >conftest.err
2517  rm -f conftest.er1
2518  cat conftest.err >&5
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); } &&
2521         { ac_try='test -z "$ac_c_werror_flag"
2522                         || test ! -s conftest.err'
2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524  (eval $ac_try) 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }; } &&
2528         { ac_try='test -s conftest.$ac_objext'
2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530  (eval $ac_try) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }; }; then
2534  ac_cv_prog_cc_g=yes
2535else
2536  echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539ac_cv_prog_cc_g=no
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542fi
2543echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2544echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2545if test "$ac_test_CFLAGS" = set; then
2546  CFLAGS=$ac_save_CFLAGS
2547elif test $ac_cv_prog_cc_g = yes; then
2548  if test "$GCC" = yes; then
2549    CFLAGS="-g -O2"
2550  else
2551    CFLAGS="-g"
2552  fi
2553else
2554  if test "$GCC" = yes; then
2555    CFLAGS="-O2"
2556  else
2557    CFLAGS=
2558  fi
2559fi
2560echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2561echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2562if test "${ac_cv_prog_cc_stdc+set}" = set; then
2563  echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565  ac_cv_prog_cc_stdc=no
2566ac_save_CC=$CC
2567cat >conftest.$ac_ext <<_ACEOF
2568/* confdefs.h.  */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h.  */
2573#include <stdarg.h>
2574#include <stdio.h>
2575#include <sys/types.h>
2576#include <sys/stat.h>
2577/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2578struct buf { int x; };
2579FILE * (*rcsopen) (struct buf *, struct stat *, int);
2580static char *e (p, i)
2581     char **p;
2582     int i;
2583{
2584  return p[i];
2585}
2586static char *f (char * (*g) (char **, int), char **p, ...)
2587{
2588  char *s;
2589  va_list v;
2590  va_start (v,p);
2591  s = g (p, va_arg (v,int));
2592  va_end (v);
2593  return s;
2594}
2595
2596/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2597   function prototypes and stuff, but not '\xHH' hex character constants.
2598   These don't provoke an error unfortunately, instead are silently treated
2599   as 'x'.  The following induces an error, until -std1 is added to get
2600   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2601   array size at least.  It's necessary to write '\x00'==0 to get something
2602   that's true only with -std1.  */
2603int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2604
2605int test (int i, double x);
2606struct s1 {int (*f) (int a);};
2607struct s2 {int (*f) (double a);};
2608int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2609int argc;
2610char **argv;
2611int
2612main ()
2613{
2614return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2615  ;
2616  return 0;
2617}
2618_ACEOF
2619# Don't try gcc -ansi; that turns off useful extensions and
2620# breaks some systems' header files.
2621# AIX                   -qlanglvl=ansi
2622# Ultrix and OSF/1      -std1
2623# HP-UX 10.20 and later -Ae
2624# HP-UX older versions  -Aa -D_HPUX_SOURCE
2625# SVR4                  -Xc -D__EXTENSIONS__
2626for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2627do
2628  CC="$ac_save_CC $ac_arg"
2629  rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631  (eval $ac_compile) 2>conftest.er1
2632  ac_status=$?
2633  grep -v '^ *+' conftest.er1 >conftest.err
2634  rm -f conftest.er1
2635  cat conftest.err >&5
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); } &&
2638         { ac_try='test -z "$ac_c_werror_flag"
2639                         || test ! -s conftest.err'
2640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641  (eval $ac_try) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); }; } &&
2645         { ac_try='test -s conftest.$ac_objext'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; }; then
2651  ac_cv_prog_cc_stdc=$ac_arg
2652break
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657fi
2658rm -f conftest.err conftest.$ac_objext
2659done
2660rm -f conftest.$ac_ext conftest.$ac_objext
2661CC=$ac_save_CC
2662
2663fi
2664
2665case "x$ac_cv_prog_cc_stdc" in
2666  x|xno)
2667    echo "$as_me:$LINENO: result: none needed" >&5
2668echo "${ECHO_T}none needed" >&6 ;;
2669  *)
2670    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2671echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2672    CC="$CC $ac_cv_prog_cc_stdc" ;;
2673esac
2674
2675# Some people use a C++ compiler to compile C.  Since we use `exit',
2676# in C++ we need to declare it.  In case someone uses the same compiler
2677# for both compiling C and C++ we need to have the C++ compiler decide
2678# the declaration of exit, since it's the most demanding environment.
2679cat >conftest.$ac_ext <<_ACEOF
2680#ifndef __cplusplus
2681  choke me
2682#endif
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  for ac_declaration in \
2707   '' \
2708   'extern "C" void std::exit (int) throw (); using std::exit;' \
2709   'extern "C" void std::exit (int); using std::exit;' \
2710   'extern "C" void exit (int) throw ();' \
2711   'extern "C" void exit (int);' \
2712   'void exit (int);'
2713do
2714  cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h.  */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h.  */
2720$ac_declaration
2721#include <stdlib.h>
2722int
2723main ()
2724{
2725exit (42);
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732  (eval $ac_compile) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest.$ac_objext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  :
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757continue
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760  cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h.  */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h.  */
2766$ac_declaration
2767int
2768main ()
2769{
2770exit (42);
2771  ;
2772  return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777  (eval $ac_compile) 2>conftest.er1
2778  ac_status=$?
2779  grep -v '^ *+' conftest.er1 >conftest.err
2780  rm -f conftest.er1
2781  cat conftest.err >&5
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); } &&
2784         { ac_try='test -z "$ac_c_werror_flag"
2785                         || test ! -s conftest.err'
2786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787  (eval $ac_try) 2>&5
2788  ac_status=$?
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); }; } &&
2791         { ac_try='test -s conftest.$ac_objext'
2792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793  (eval $ac_try) 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; }; then
2797  break
2798else
2799  echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802fi
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805rm -f conftest*
2806if test -n "$ac_declaration"; then
2807  echo '#ifdef __cplusplus' >>confdefs.h
2808  echo $ac_declaration      >>confdefs.h
2809  echo '#endif'             >>confdefs.h
2810fi
2811
2812else
2813  echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816fi
2817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824if test -z "$CC" ; then
2825  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2826echo "$as_me: error: Failed to find a C compiler!" >&2;}
2827   { (exit 1); exit 1; }; }
2828fi
2829# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2830case "$CC" in
2831  clang* ) ;;
2832  cl* | */cl* | CL* | */CL* )
2833    if test "$ac_cv_prog_cc_g" = yes ; then
2834      ac_cv_prog_cc_g=no
2835      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2836echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2837    fi ;;
2838esac
2839CFLAGS="$save_cflags"
2840
2841# add automake conditional so we can recognize cl compiler in makefile
2842coin_cc_is_cl=false
2843case "$CC" in
2844  clang* ) ;;
2845  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2846    coin_cc_is_cl=true
2847    ;;
2848esac
2849
2850
2851if test $coin_cc_is_cl = true; then
2852  COIN_CC_IS_CL_TRUE=
2853  COIN_CC_IS_CL_FALSE='#'
2854else
2855  COIN_CC_IS_CL_TRUE='#'
2856  COIN_CC_IS_CL_FALSE=
2857fi
2858
2859
2860# Check if a project specific CFLAGS variable has been set
2861if test x$COIN_PRJCT != x; then
2862  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2863  if test x$coin_tmp = xset; then
2864    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2865  fi
2866fi
2867
2868if test x"$CFLAGS" = x; then
2869
2870  coin_add_cflags=
2871  coin_opt_cflags=
2872  coin_dbg_cflags=
2873  coin_warn_cflags=
2874
2875  if test "$GCC" = "yes"; then
2876    case "$CC" in
2877      icc* | */icc*)
2878        ;;
2879      *)
2880        coin_opt_cflags="-O3"
2881        coin_add_cflags="-pipe"
2882        coin_dbg_cflags="-g -O0"
2883        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2884        case $build in
2885          *-darwin*)
2886            ;;
2887          *)
2888            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2889            ;;
2890        esac
2891        case $enable_doscompile in
2892          mingw)
2893            CFLAGS="-mno-cygwin"
2894            cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936fi
2937rm -f conftest.err conftest.$ac_objext \
2938      conftest$ac_exeext conftest.$ac_ext
2939            CFLAGS=
2940          ;;
2941        esac
2942    esac
2943  fi
2944  if test -z "$coin_opt_cflags"; then
2945    case $build in
2946      *-cygwin* | *-mingw*)
2947        case "$CC" in
2948          clang* ) ;;
2949          cl* | */cl* | CL* | */CL*)
2950            coin_opt_cflags='-MT -O2'
2951            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2952            coin_dbg_cflags='-MTd'
2953            ;;
2954          icl* | */icl* | ICL* | */ICL*)
2955            coin_opt_cflags='-MT -Ox'
2956            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2957            coin_dbg_cflags='-MTd -debug'
2958            ;;
2959        esac
2960        ;;
2961      *-linux-*)
2962        case "$CC" in
2963          icc* | */icc*)
2964            coin_opt_cflags="-O3 -ip -mp1"
2965            coin_add_cflags=""
2966            coin_dbg_cflags="-g"
2967            # Check if -i_dynamic is necessary (for new glibc library)
2968            CFLAGS=
2969            cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979int i=0; i++;
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
2985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986  (eval $ac_link) 2>conftest.er1
2987  ac_status=$?
2988  grep -v '^ *+' conftest.er1 >conftest.err
2989  rm -f conftest.er1
2990  cat conftest.err >&5
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); } &&
2993         { ac_try='test -z "$ac_c_werror_flag"
2994                         || test ! -s conftest.err'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; } &&
3000         { ac_try='test -s conftest$ac_exeext'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; }; then
3006  :
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011coin_add_cflags="-i_dynamic $coin_add_cflags"
3012fi
3013rm -f conftest.err conftest.$ac_objext \
3014      conftest$ac_exeext conftest.$ac_ext
3015            ;;
3016          pgcc* | */pgcc*)
3017            coin_opt_cflags="-fast"
3018            coin_add_cflags="-Kieee -pc 64"
3019            coin_dbg_cflags="-g"
3020            ;;
3021        esac
3022        ;;
3023      *-ibm-*)
3024        case "$CC" in
3025          xlc* | */xlc* | mpxlc* | */mpxlc*)
3026            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3027            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3028            coin_dbg_cflags="-g"
3029          ;;
3030        esac
3031        ;;
3032      *-hp-*)
3033        coin_opt_cflags="-O"
3034        coin_add_cflags="-Ae"
3035        coin_dbg_cflags="-g"
3036        ;;
3037      *-*-solaris*)
3038        coin_opt_cflags="-xO4"
3039        coin_dbg_cflags="-g"
3040        ;;
3041      *-sgi-*)
3042        coin_opt_cflags="-O -OPT:Olimit=0"
3043        coin_dbg_cflags="-g"
3044        ;;
3045    esac
3046  fi
3047
3048  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3049    coin_dbg_cflags="-g"
3050  fi
3051
3052  if test -z "$coin_opt_cflags"; then
3053    # Try if -O option works if nothing else is set
3054    CFLAGS="-O"
3055    cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065int i=0; i++;
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext conftest$ac_exeext
3071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072  (eval $ac_link) 2>conftest.er1
3073  ac_status=$?
3074  grep -v '^ *+' conftest.er1 >conftest.err
3075  rm -f conftest.er1
3076  cat conftest.err >&5
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); } &&
3079         { ac_try='test -z "$ac_c_werror_flag"
3080                         || test ! -s conftest.err'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; } &&
3086         { ac_try='test -s conftest$ac_exeext'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; }; then
3092  coin_opt_cflags="-O"
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100  fi
3101
3102  # if PM doesn't want the warning messages, take them out
3103  if test x"$coin_skip_warn_cflags" = xyes; then
3104    coin_warn_cflags=
3105  fi
3106
3107  if test x${DBG_CFLAGS+set} != xset; then
3108    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3109  fi
3110  if test x${OPT_CFLAGS+set} != xset; then
3111    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3112  fi
3113
3114  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3115  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3116
3117  if test "$coin_debug_compile" = "true"; then
3118    CFLAGS="$DBG_CFLAGS"
3119  else
3120    CFLAGS="$OPT_CFLAGS"
3121  fi
3122else
3123  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3124  if test x${DBG_CFLAGS+set} != xset; then
3125    DBG_CFLAGS="$CFLAGS"
3126  fi
3127  if test x${OPT_CFLAGS+set} != xset; then
3128    OPT_CFLAGS="$CFLAGS"
3129  fi
3130fi
3131
3132# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3133
3134case "$CFLAGS" in
3135  *-mno-cygwin*)
3136    if test x${CPPFLAGS+set} != xset ; then
3137      CPPFLAGS="-mno-cygwin"
3138    else
3139      case "$CPPFLAGS" in
3140        *-mno-cygwin*)
3141          ;;
3142        *)
3143          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3144          ;;
3145      esac
3146    fi ;;
3147esac
3148
3149# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3150if test x$COIN_PRJCT != x; then
3151  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3152fi
3153
3154# Try if CFLAGS works
3155save_CFLAGS="$CFLAGS"
3156cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h.  */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h.  */
3162
3163int
3164main ()
3165{
3166int i=0; i++;
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext conftest$ac_exeext
3172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173  (eval $ac_link) 2>conftest.er1
3174  ac_status=$?
3175  grep -v '^ *+' conftest.er1 >conftest.err
3176  rm -f conftest.er1
3177  cat conftest.err >&5
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); } &&
3180         { ac_try='test -z "$ac_c_werror_flag"
3181                         || test ! -s conftest.err'
3182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183  (eval $ac_try) 2>&5
3184  ac_status=$?
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); }; } &&
3187         { ac_try='test -s conftest$ac_exeext'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; }; then
3193  :
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198CFLAGS=
3199fi
3200rm -f conftest.err conftest.$ac_objext \
3201      conftest$ac_exeext conftest.$ac_ext
3202if test -z "$CFLAGS"; then
3203  { 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
3204echo "$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;}
3205  CFLAGS='-O'
3206  cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h.  */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h.  */
3212
3213int
3214main ()
3215{
3216int i=0; i++;
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext conftest$ac_exeext
3222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223  (eval $ac_link) 2>conftest.er1
3224  ac_status=$?
3225  grep -v '^ *+' conftest.er1 >conftest.err
3226  rm -f conftest.er1
3227  cat conftest.err >&5
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); } &&
3230         { ac_try='test -z "$ac_c_werror_flag"
3231                         || test ! -s conftest.err'
3232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233  (eval $ac_try) 2>&5
3234  ac_status=$?
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); }; } &&
3237         { ac_try='test -s conftest$ac_exeext'
3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239  (eval $ac_try) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }; }; then
3243  :
3244else
3245  echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248CFLAGS=
3249fi
3250rm -f conftest.err conftest.$ac_objext \
3251      conftest$ac_exeext conftest.$ac_ext
3252  if test -z "$CFLAGS"; then
3253    { 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
3254echo "$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;}
3255  fi
3256fi
3257
3258{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3259echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3260
3261
3262if test x"$MPICC" = x; then :; else
3263  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3264echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3265  CC="$MPICC"
3266fi
3267
3268# Correct the LD variable if we are using the MS or Intel-windows compiler
3269case "$CC" in
3270  clang* ) ;;
3271  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3272    case $build in
3273  *-mingw*)
3274    if test "${LD+set}" = set; then :; else
3275      LD=link
3276    fi
3277    ;;
3278 esac
3279 case $enable_doscompile in
3280   msvc)
3281     if test "x${LD+set}" = xset; then :; else
3282       LD=link
3283     fi
3284     ;;
3285 esac
3286
3287    ;;
3288esac
3289
3290ac_ext=c
3291ac_cpp='$CPP $CPPFLAGS'
3292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297
3298 #Let's try if that overcomes configuration problem with VC++ 6.0
3299
3300ac_ext=cc
3301ac_cpp='$CXXCPP $CPPFLAGS'
3302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3305
3306
3307
3308
3309
3310
3311
3312coin_has_cxx=yes
3313
3314save_cxxflags="$CXXFLAGS"
3315# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3316case $build in
3317  *-cygwin* | *-mingw*)
3318             if test "$enable_doscompile" = msvc ; then
3319               comps="icl cl"
3320             else
3321               comps="g++ cl"
3322             fi ;;
3323  *-*-solaris*)
3324             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3325  *-darwin*) comps="g++ c++ CC" ;;
3326  *-linux-gnu*)
3327             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3328          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3329esac
3330
3331# We delete the cached value, since the test might not have been
3332# performed with our choice of compilers earlier
3333$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3334# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3335ac_ext=cc
3336ac_cpp='$CXXCPP $CPPFLAGS'
3337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3340if test -n "$ac_tool_prefix"; then
3341  for ac_prog in $CCC $comps
3342  do
3343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345echo "$as_me:$LINENO: checking for $ac_word" >&5
3346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347if test "${ac_cv_prog_CXX+set}" = set; then
3348  echo $ECHO_N "(cached) $ECHO_C" >&6
3349else
3350  if test -n "$CXX"; then
3351  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356  IFS=$as_save_IFS
3357  test -z "$as_dir" && as_dir=.
3358  for ac_exec_ext in '' $ac_executable_extensions; do
3359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362    break 2
3363  fi
3364done
3365done
3366
3367fi
3368fi
3369CXX=$ac_cv_prog_CXX
3370if test -n "$CXX"; then
3371  echo "$as_me:$LINENO: result: $CXX" >&5
3372echo "${ECHO_T}$CXX" >&6
3373else
3374  echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376fi
3377
3378    test -n "$CXX" && break
3379  done
3380fi
3381if test -z "$CXX"; then
3382  ac_ct_CXX=$CXX
3383  for ac_prog in $CCC $comps
3384do
3385  # Extract the first word of "$ac_prog", so it can be a program name with args.
3386set dummy $ac_prog; ac_word=$2
3387echo "$as_me:$LINENO: checking for $ac_word" >&5
3388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3390  echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392  if test -n "$ac_ct_CXX"; then
3393  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398  IFS=$as_save_IFS
3399  test -z "$as_dir" && as_dir=.
3400  for ac_exec_ext in '' $ac_executable_extensions; do
3401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402    ac_cv_prog_ac_ct_CXX="$ac_prog"
3403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407done
3408
3409fi
3410fi
3411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3412if test -n "$ac_ct_CXX"; then
3413  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3414echo "${ECHO_T}$ac_ct_CXX" >&6
3415else
3416  echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
3418fi
3419
3420  test -n "$ac_ct_CXX" && break
3421done
3422test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3423
3424  CXX=$ac_ct_CXX
3425fi
3426
3427
3428# Provide some information about the compiler.
3429echo "$as_me:$LINENO:" \
3430     "checking for C++ compiler version" >&5
3431ac_compiler=`set X $ac_compile; echo $2`
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3433  (eval $ac_compiler --version </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3438  (eval $ac_compiler -v </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3443  (eval $ac_compiler -V </dev/null >&5) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }
3447
3448echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3449echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3450if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3451  echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453  cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h.  */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463#ifndef __GNUC__
3464       choke me
3465#endif
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473  (eval $ac_compile) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480         { ac_try='test -z "$ac_cxx_werror_flag"
3481                         || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487         { ac_try='test -s conftest.$ac_objext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  ac_compiler_gnu=yes
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498ac_compiler_gnu=no
3499fi
3500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3502
3503fi
3504echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3505echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3506GXX=`test $ac_compiler_gnu = yes && echo yes`
3507ac_test_CXXFLAGS=${CXXFLAGS+set}
3508ac_save_CXXFLAGS=$CXXFLAGS
3509CXXFLAGS="-g"
3510echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3511echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3512if test "${ac_cv_prog_cxx_g+set}" = set; then
3513  echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515  cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h.  */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532  (eval $ac_compile) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539         { ac_try='test -z "$ac_cxx_werror_flag"
3540                         || test ! -s conftest.err'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; } &&
3546         { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552  ac_cv_prog_cxx_g=yes
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557ac_cv_prog_cxx_g=no
3558fi
3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3563if test "$ac_test_CXXFLAGS" = set; then
3564  CXXFLAGS=$ac_save_CXXFLAGS
3565elif test $ac_cv_prog_cxx_g = yes; then
3566  if test "$GXX" = yes; then
3567    CXXFLAGS="-g -O2"
3568  else
3569    CXXFLAGS="-g"
3570  fi
3571else
3572  if test "$GXX" = yes; then
3573    CXXFLAGS="-O2"
3574  else
3575    CXXFLAGS=
3576  fi
3577fi
3578for ac_declaration in \
3579   '' \
3580   'extern "C" void std::exit (int) throw (); using std::exit;' \
3581   'extern "C" void std::exit (int); using std::exit;' \
3582   'extern "C" void exit (int) throw ();' \
3583   'extern "C" void exit (int);' \
3584   'void exit (int);'
3585do
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
3593#include <stdlib.h>
3594int
3595main ()
3596{
3597exit (42);
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604  (eval $ac_compile) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -z "$ac_cxx_werror_flag"
3612                         || test ! -s conftest.err'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; } &&
3618         { ac_try='test -s conftest.$ac_objext'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; }; then
3624  :
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629continue
3630fi
3631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632  cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638$ac_declaration
3639int
3640main ()
3641{
3642exit (42);
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647rm -f conftest.$ac_objext
3648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649  (eval $ac_compile) 2>conftest.er1
3650  ac_status=$?
3651  grep -v '^ *+' conftest.er1 >conftest.err
3652  rm -f conftest.er1
3653  cat conftest.err >&5
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); } &&
3656         { ac_try='test -z "$ac_cxx_werror_flag"
3657                         || test ! -s conftest.err'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; } &&
3663         { ac_try='test -s conftest.$ac_objext'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; }; then
3669  break
3670else
3671  echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674fi
3675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3676done
3677rm -f conftest*
3678if test -n "$ac_declaration"; then
3679  echo '#ifdef __cplusplus' >>confdefs.h
3680  echo $ac_declaration      >>confdefs.h
3681  echo '#endif'             >>confdefs.h
3682fi
3683
3684ac_ext=cc
3685ac_cpp='$CXXCPP $CPPFLAGS'
3686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689
3690
3691#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3692#thus, we test here whether $CXX is actually working
3693ac_ext=cc
3694ac_cpp='$CXXCPP $CPPFLAGS'
3695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3698
3699echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3700echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3701cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h.  */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711int i=0;
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716rm -f conftest.$ac_objext
3717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718  (eval $ac_compile) 2>conftest.er1
3719  ac_status=$?
3720  grep -v '^ *+' conftest.er1 >conftest.err
3721  rm -f conftest.er1
3722  cat conftest.err >&5
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); } &&
3725         { ac_try='test -z "$ac_cxx_werror_flag"
3726                         || test ! -s conftest.err'
3727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728  (eval $ac_try) 2>&5
3729  ac_status=$?
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); }; } &&
3732         { ac_try='test -s conftest.$ac_objext'
3733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734  (eval $ac_try) 2>&5
3735  ac_status=$?
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); }; }; then
3738  echo "$as_me:$LINENO: result: yes" >&5
3739echo "${ECHO_T}yes" >&6
3740else
3741  echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744echo "$as_me:$LINENO: result: no" >&5
3745echo "${ECHO_T}no" >&6
3746   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3747echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3748   { (exit 1); exit 1; }; }
3749
3750fi
3751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752ac_ext=cc
3753ac_cpp='$CXXCPP $CPPFLAGS'
3754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3757
3758
3759coin_cxx_is_cl=false
3760# It seems that we need to cleanup something here for the Windows
3761case "$CXX" in
3762  clang* ) ;;
3763  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3764    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3765    mv confdefs.hh confdefs.h
3766    coin_cxx_is_cl=true
3767    ;;
3768esac
3769
3770# add automake conditional so we can recognize cl compiler in makefile
3771
3772
3773if test $coin_cxx_is_cl = true; then
3774  COIN_CXX_IS_CL_TRUE=
3775  COIN_CXX_IS_CL_FALSE='#'
3776else
3777  COIN_CXX_IS_CL_TRUE='#'
3778  COIN_CXX_IS_CL_FALSE=
3779fi
3780
3781
3782# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3783case "$CXX" in
3784  clang* ) ;;
3785  cl* | */cl* | CL* | */CL* )
3786    if test "$ac_cv_prog_cxx_g" = yes ; then
3787      ac_cv_prog_cxx_g=no
3788      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3789echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3790    fi ;;
3791esac
3792CXXFLAGS="$save_cxxflags"
3793
3794# Check if a project specific CXXFLAGS variable has been set
3795if test x$COIN_PRJCT != x; then
3796  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3797  if test x$coin_tmp = xset; then
3798    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3799  fi
3800fi
3801
3802if test x"$CXXFLAGS" = x; then
3803
3804# ToDo decide whether we want -DNDEBUG for optimization
3805  coin_add_cxxflags=
3806  coin_opt_cxxflags=
3807  coin_dbg_cxxflags=
3808  coin_warn_cxxflags=
3809
3810  if test "$GXX" = "yes"; then
3811    case "$CXX" in
3812      icpc* | */icpc*)
3813        ;;
3814      *)
3815# ToDo decide about unroll-loops
3816        coin_opt_cxxflags="-O3"
3817        coin_add_cxxflags="-pipe"
3818        coin_dbg_cxxflags="-g -O0"
3819        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3820        case $build in
3821          *-darwin*)
3822            ;;
3823          *)
3824            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3825            ;;
3826        esac
3827
3828        case $enable_doscompile in
3829          mingw)
3830            CXXFLAGS="-mno-cygwin"
3831            cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841int i=0; i++;
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
3847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848  (eval $ac_link) 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855         { ac_try='test -z "$ac_cxx_werror_flag"
3856                         || test ! -s conftest.err'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; } &&
3862         { ac_try='test -s conftest$ac_exeext'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; }; then
3868  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3869else
3870  echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873fi
3874rm -f conftest.err conftest.$ac_objext \
3875      conftest$ac_exeext conftest.$ac_ext
3876            CXXFLAGS=
3877          ;;
3878        esac
3879    esac
3880  fi
3881
3882# Note that we do not need to cover GCC in the following tests.
3883
3884  if test -z "$coin_opt_cxxflags"; then
3885    case $build in
3886      *-cygwin* | *-mingw*)
3887        case "$CXX" in
3888          clang* ) ;;
3889          cl* | */cl* | CL* | */CL*)
3890            # The MT and MTd options are mutually exclusive
3891            coin_opt_cxxflags='-MT -O2'
3892            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3893            coin_dbg_cxxflags='-MTd'
3894            ;;
3895          icl* | */icl* | ICL* | */ICL*)
3896            # The MT and MTd options are mutually exclusive
3897            coin_opt_cxxflags='-MT -Ox'
3898            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3899            coin_dbg_cxxflags='-MTd -debug'
3900            ;;
3901        esac
3902        ;;
3903      *-linux-*)
3904        case "$CXX" in
3905          icpc* | */icpc*)
3906            coin_opt_cxxflags="-O3 -ip -mp1"
3907            coin_add_cxxflags=""
3908            coin_dbg_cxxflags="-g"
3909            # Check if -i_dynamic is necessary (for new glibc library)
3910            CXXFLAGS=
3911            cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h.  */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921int i=0; i++;
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926rm -f conftest.$ac_objext conftest$ac_exeext
3927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928  (eval $ac_link) 2>conftest.er1
3929  ac_status=$?
3930  grep -v '^ *+' conftest.er1 >conftest.err
3931  rm -f conftest.er1
3932  cat conftest.err >&5
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); } &&
3935         { ac_try='test -z "$ac_cxx_werror_flag"
3936                         || test ! -s conftest.err'
3937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938  (eval $ac_try) 2>&5
3939  ac_status=$?
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); }; } &&
3942         { ac_try='test -s conftest$ac_exeext'
3943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944  (eval $ac_try) 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); }; }; then
3948  :
3949else
3950  echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3954fi
3955rm -f conftest.err conftest.$ac_objext \
3956      conftest$ac_exeext conftest.$ac_ext
3957            ;;
3958          pgCC* | */pgCC*)
3959            coin_opt_cxxflags="-fast"
3960            coin_add_cxxflags="-Kieee -pc 64"
3961            coin_dbg_cxxflags="-g"
3962            ;;
3963        esac
3964        ;;
3965      *-ibm-*)
3966        case "$CXX" in
3967          xlC* | */xlC* | mpxlC* | */mpxlC*)
3968            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3969            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3970            coin_dbg_cxxflags="-g"
3971            ;;
3972        esac
3973        ;;
3974      *-hp-*)
3975        case "$CXX" in
3976          aCC* | */aCC* )
3977            coin_opt_cxxflags="-O"
3978            coin_add_cxxflags="-AA"
3979            coin_dbg_cxxflags="-g"
3980            ;;
3981        esac
3982        ;;
3983      *-*-solaris*)
3984          coin_opt_cxxflags="-O4"
3985          coin_dbg_cxxflags="-g"
3986        ;;
3987    esac
3988  fi
3989
3990# Generic flag settings. If these don't work, add a case above.
3991
3992  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3993    coin_dbg_cxxflags="-g"
3994  fi
3995
3996  if test -z "$coin_opt_cxxflags"; then
3997    # Try if -O option works if nothing else is set
3998    CXXFLAGS=-O
3999    cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h.  */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h.  */
4005
4006int
4007main ()
4008{
4009int i=0; i++;
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext conftest$ac_exeext
4015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016  (eval $ac_link) 2>conftest.er1
4017  ac_status=$?
4018  grep -v '^ *+' conftest.er1 >conftest.err
4019  rm -f conftest.er1
4020  cat conftest.err >&5
4021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022  (exit $ac_status); } &&
4023         { ac_try='test -z "$ac_cxx_werror_flag"
4024                         || test ! -s conftest.err'
4025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026  (eval $ac_try) 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); }; } &&
4030         { ac_try='test -s conftest$ac_exeext'
4031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032  (eval $ac_try) 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; }; then
4036  coin_opt_cxxflags="-O"
4037else
4038  echo "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041fi
4042rm -f conftest.err conftest.$ac_objext \
4043      conftest$ac_exeext conftest.$ac_ext
4044  fi
4045
4046  # if PM doesn't want the warning messages, take them out
4047  if test x"$coin_skip_warn_cxxflags" = xyes; then
4048    coin_warn_cxxflags=
4049  fi
4050
4051# Do final setup of flags based on values determined above.
4052
4053  if test x${DBG_CXXFLAGS+set} != xset; then
4054    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4055  fi
4056  if test x${OPT_CXXFLAGS+set} != xset; then
4057    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4058  fi
4059
4060  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4061  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4062
4063  if test "$coin_debug_compile" = "true"; then
4064    CXXFLAGS="$DBG_CXXFLAGS"
4065  else
4066    CXXFLAGS="$OPT_CXXFLAGS"
4067  fi
4068
4069# Handle the case where CXXFLAGS was set externally.
4070else
4071  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4072  if test x${DBG_CXXFLAGS+set} != xset; then
4073    DBG_CXXFLAGS="$CXXFLAGS"
4074  fi
4075  if test x${OPT_CXXFLAGS+set} != xset; then
4076    OPT_CXXFLAGS="$CXXFLAGS"
4077  fi
4078fi
4079
4080# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4081
4082case "$CXXFLAGS" in
4083  *-mno-cygwin*)
4084    if test x${CPPFLAGS+set} != xset ; then
4085      CPPFLAGS="-mno-cygwin"
4086    else
4087      case "$CPPFLAGS" in
4088        *-mno-cygwin*)
4089          ;;
4090        *)
4091          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4092          ;;
4093      esac
4094    fi ;;
4095esac
4096
4097# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4098if test x$COIN_PRJCT != x; then
4099  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4100fi
4101
4102# Try if CXXFLAGS works
4103save_CXXFLAGS="$CXXFLAGS"
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h.  */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h.  */
4110
4111int
4112main ()
4113{
4114int i=0; i++;
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext conftest$ac_exeext
4120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121  (eval $ac_link) 2>conftest.er1
4122  ac_status=$?
4123  grep -v '^ *+' conftest.er1 >conftest.err
4124  rm -f conftest.er1
4125  cat conftest.err >&5
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); } &&
4128         { ac_try='test -z "$ac_cxx_werror_flag"
4129                         || test ! -s conftest.err'
4130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131  (eval $ac_try) 2>&5
4132  ac_status=$?
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); }; } &&
4135         { ac_try='test -s conftest$ac_exeext'
4136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137  (eval $ac_try) 2>&5
4138  ac_status=$?
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); }; }; then
4141  :
4142else
4143  echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146CXXFLAGS=
4147fi
4148rm -f conftest.err conftest.$ac_objext \
4149      conftest$ac_exeext conftest.$ac_ext
4150if test -z "$CXXFLAGS"; then
4151  { 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
4152echo "$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;}
4153  CXXFLAGS='-O'
4154  cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h.  */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h.  */
4160
4161int
4162main ()
4163{
4164int i=0; i++;
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171  (eval $ac_link) 2>conftest.er1
4172  ac_status=$?
4173  grep -v '^ *+' conftest.er1 >conftest.err
4174  rm -f conftest.er1
4175  cat conftest.err >&5
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } &&
4178         { ac_try='test -z "$ac_cxx_werror_flag"
4179                         || test ! -s conftest.err'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; } &&
4185         { ac_try='test -s conftest$ac_exeext'
4186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187  (eval $ac_try) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; }; then
4191  :
4192else
4193  echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196CXXFLAGS=
4197fi
4198rm -f conftest.err conftest.$ac_objext \
4199      conftest$ac_exeext conftest.$ac_ext
4200  if test -z "$CXXFLAGS"; then
4201    { 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
4202echo "$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;}
4203  fi
4204fi
4205
4206{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4207echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4208
4209
4210if test x"$MPICXX" = x; then :; else
4211  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4212echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4213  CXX="$MPICXX"
4214fi
4215
4216# correct the LD variable in a mingw build with MS or intel compiler
4217case "$CXX" in
4218  clang* ) ;;
4219  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4220    case $build in
4221  *-mingw*)
4222    if test "${LD+set}" = set; then :; else
4223      LD=link
4224    fi
4225    ;;
4226 esac
4227 case $enable_doscompile in
4228   msvc)
4229     if test "x${LD+set}" = xset; then :; else
4230       LD=link
4231     fi
4232     ;;
4233 esac
4234
4235    ;;
4236esac
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245
4246# Initialize automake and libtool
4247{
4248
4249
4250
4251# START
4252
4253# Test if force_shared has been set
4254if test "x" = xforce_shared; then
4255  if test x$enable_shared = xno; then
4256    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4257echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4258   { (exit 1); exit 1; }; }
4259  fi
4260  enable_shared=yes;
4261else
4262  # On Cygwin and AIX, building DLLs doesn't work
4263  case $build in
4264    *-cygwin*)
4265      coin_disable_shared=yes
4266      platform=Cygwin
4267    ;;
4268    *-aix*)
4269      coin_disable_shared=yes
4270      platform=AIX
4271    ;;
4272    *-mingw*)
4273      coin_disable_shared=yes
4274      platform="Msys"
4275#      case "$CXX" in
4276#        cl*)
4277#          coin_disable_shared=yes
4278#          platform="Msys with cl"
4279#      ;;
4280#      esac
4281    ;;
4282  esac
4283fi
4284if test x"$coin_disable_shared" = xyes; then
4285  if test x"$enable_shared" = xyes; then
4286    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4287echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4288  fi
4289  enable_shared=no
4290fi
4291# By default, we only want the shared objects to be compiled
4292# Check whether --enable-static or --disable-static was given.
4293if test "${enable_static+set}" = set; then
4294  enableval="$enable_static"
4295  p=${PACKAGE-default}
4296    case $enableval in
4297    yes) enable_static=yes ;;
4298    no) enable_static=no ;;
4299    *)
4300     enable_static=no
4301      # Look at the argument we got.  We use all the common list separators.
4302      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4303      for pkg in $enableval; do
4304        IFS="$lt_save_ifs"
4305        if test "X$pkg" = "X$p"; then
4306          enable_static=yes
4307        fi
4308      done
4309      IFS="$lt_save_ifs"
4310      ;;
4311    esac
4312else
4313  enable_static=no
4314fi;
4315
4316
4317
4318
4319# Initialize automake
4320echo "$as_me:$LINENO: checking for egrep" >&5
4321echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4322if test "${ac_cv_prog_egrep+set}" = set; then
4323  echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4326    then ac_cv_prog_egrep='grep -E'
4327    else ac_cv_prog_egrep='egrep'
4328    fi
4329fi
4330echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4331echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4332 EGREP=$ac_cv_prog_egrep
4333
4334
4335echo "$as_me:$LINENO: checking whether ln -s works" >&5
4336echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4337LN_S=$as_ln_s
4338if test "$LN_S" = "ln -s"; then
4339  echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341else
4342  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4343echo "${ECHO_T}no, using $LN_S" >&6
4344fi
4345
4346am__api_version="1.9"
4347# Find a good install program.  We prefer a C program (faster),
4348# so one script is as good as another.  But avoid the broken or
4349# incompatible versions:
4350# SysV /etc/install, /usr/sbin/install
4351# SunOS /usr/etc/install
4352# IRIX /sbin/install
4353# AIX /bin/install
4354# AmigaOS /C/install, which installs bootblocks on floppy discs
4355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4356# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4358# OS/2's system install, which has a completely different semantic
4359# ./install, which can be erroneously created by make from ./install.sh.
4360echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4361echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4362if test -z "$INSTALL"; then
4363if test "${ac_cv_path_install+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371  # Account for people who put trailing slashes in PATH elements.
4372case $as_dir/ in
4373  ./ | .// | /cC/* | \
4374  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4375  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4376  /usr/ucb/* ) ;;
4377  *)
4378    # OSF1 and SCO ODT 3.0 have their own names for install.
4379    # Don't use installbsd from OSF since it installs stuff as root
4380    # by default.
4381    for ac_prog in ginstall scoinst install; do
4382      for ac_exec_ext in '' $ac_executable_extensions; do
4383        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4384          if test $ac_prog = install &&
4385            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386            # AIX install.  It has an incompatible calling convention.
4387            :
4388          elif test $ac_prog = install &&
4389            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4390            # program-specific install script used by HP pwplus--don't use.
4391            :
4392          else
4393            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4394            break 3
4395          fi
4396        fi
4397      done
4398    done
4399    ;;
4400esac
4401done
4402
4403
4404fi
4405  if test "${ac_cv_path_install+set}" = set; then
4406    INSTALL=$ac_cv_path_install
4407  else
4408    # As a last resort, use the slow shell script.  We don't cache a
4409    # path for INSTALL within a source directory, because that will
4410    # break other packages using the cache if that directory is
4411    # removed, or if the path is relative.
4412    INSTALL=$ac_install_sh
4413  fi
4414fi
4415echo "$as_me:$LINENO: result: $INSTALL" >&5
4416echo "${ECHO_T}$INSTALL" >&6
4417
4418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4419# It thinks the first close brace ends the variable substitution.
4420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4421
4422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4423
4424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4425
4426echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4427echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4428# Just in case
4429sleep 1
4430echo timestamp > conftest.file
4431# Do `set' in a subshell so we don't clobber the current shell's
4432# arguments.  Must try -L first in case configure is actually a
4433# symlink; some systems play weird games with the mod time of symlinks
4434# (eg FreeBSD returns the mod time of the symlink's containing
4435# directory).
4436if (
4437   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4438   if test "$*" = "X"; then
4439      # -L didn't work.
4440      set X `ls -t $srcdir/configure conftest.file`
4441   fi
4442   rm -f conftest.file
4443   if test "$*" != "X $srcdir/configure conftest.file" \
4444      && test "$*" != "X conftest.file $srcdir/configure"; then
4445
4446      # If neither matched, then we have a broken ls.  This can happen
4447      # if, for instance, CONFIG_SHELL is bash and it inherits a
4448      # broken ls alias from the environment.  This has actually
4449      # happened.  Such a system could not be considered "sane".
4450      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4451alias in your environment" >&5
4452echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4453alias in your environment" >&2;}
4454   { (exit 1); exit 1; }; }
4455   fi
4456
4457   test "$2" = conftest.file
4458   )
4459then
4460   # Ok.
4461   :
4462else
4463   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4464Check your system clock" >&5
4465echo "$as_me: error: newly created file is older than distributed files!
4466Check your system clock" >&2;}
4467   { (exit 1); exit 1; }; }
4468fi
4469echo "$as_me:$LINENO: result: yes" >&5
4470echo "${ECHO_T}yes" >&6
4471test "$program_prefix" != NONE &&
4472  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4473# Use a double $ so make ignores it.
4474test "$program_suffix" != NONE &&
4475  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4476# Double any \ or $.  echo might interpret backslashes.
4477# By default was `s,x,x', remove it if useless.
4478cat <<\_ACEOF >conftest.sed
4479s/[\\$]/&&/g;s/;s,x,x,$//
4480_ACEOF
4481program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4482rm conftest.sed
4483
4484# expand $ac_aux_dir to an absolute path
4485am_aux_dir=`cd $ac_aux_dir && pwd`
4486
4487test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4488# Use eval to expand $SHELL
4489if eval "$MISSING --run true"; then
4490  am_missing_run="$MISSING --run "
4491else
4492  am_missing_run=
4493  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4494echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4495fi
4496
4497if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4498  # We used to keeping the `.' as first argument, in order to
4499  # allow $(mkdir_p) to be used without argument.  As in
4500  #   $(mkdir_p) $(somedir)
4501  # where $(somedir) is conditionally defined.  However this is wrong
4502  # for two reasons:
4503  #  1. if the package is installed by a user who cannot write `.'
4504  #     make install will fail,
4505  #  2. the above comment should most certainly read
4506  #     $(mkdir_p) $(DESTDIR)$(somedir)
4507  #     so it does not work when $(somedir) is undefined and
4508  #     $(DESTDIR) is not.
4509  #  To support the latter case, we have to write
4510  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4511  #  so the `.' trick is pointless.
4512  mkdir_p='mkdir -p --'
4513else
4514  # On NextStep and OpenStep, the `mkdir' command does not
4515  # recognize any option.  It will interpret all options as
4516  # directories to create, and then abort because `.' already
4517  # exists.
4518  for d in ./-p ./--version;
4519  do
4520    test -d $d && rmdir $d
4521  done
4522  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4523  if test -f "$ac_aux_dir/mkinstalldirs"; then
4524    mkdir_p='$(mkinstalldirs)'
4525  else
4526    mkdir_p='$(install_sh) -d'
4527  fi
4528fi
4529
4530for ac_prog in gawk mawk nawk awk
4531do
4532  # Extract the first word of "$ac_prog", so it can be a program name with args.
4533set dummy $ac_prog; ac_word=$2
4534echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536if test "${ac_cv_prog_AWK+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  if test -n "$AWK"; then
4540  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547  for ac_exec_ext in '' $ac_executable_extensions; do
4548  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549    ac_cv_prog_AWK="$ac_prog"
4550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551    break 2
4552  fi
4553done
4554done
4555
4556fi
4557fi
4558AWK=$ac_cv_prog_AWK
4559if test -n "$AWK"; then
4560  echo "$as_me:$LINENO: result: $AWK" >&5
4561echo "${ECHO_T}$AWK" >&6
4562else
4563  echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
4565fi
4566
4567  test -n "$AWK" && break
4568done
4569
4570echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4571echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4572set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4573if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  cat >conftest.make <<\_ACEOF
4577all:
4578        @echo 'ac_maketemp="$(MAKE)"'
4579_ACEOF
4580# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4581eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4582if test -n "$ac_maketemp"; then
4583  eval ac_cv_prog_make_${ac_make}_set=yes
4584else
4585  eval ac_cv_prog_make_${ac_make}_set=no
4586fi
4587rm -f conftest.make
4588fi
4589if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4590  echo "$as_me:$LINENO: result: yes" >&5
4591echo "${ECHO_T}yes" >&6
4592  SET_MAKE=
4593else
4594  echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
4596  SET_MAKE="MAKE=${MAKE-make}"
4597fi
4598
4599rm -rf .tst 2>/dev/null
4600mkdir .tst 2>/dev/null
4601if test -d .tst; then
4602  am__leading_dot=.
4603else
4604  am__leading_dot=_
4605fi
4606rmdir .tst 2>/dev/null
4607
4608DEPDIR="${am__leading_dot}deps"
4609
4610          ac_config_commands="$ac_config_commands depfiles"
4611
4612
4613am_make=${MAKE-make}
4614cat > confinc << 'END'
4615am__doit:
4616        @echo done
4617.PHONY: am__doit
4618END
4619# If we don't find an include directive, just comment out the code.
4620echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4621echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4622am__include="#"
4623am__quote=
4624_am_result=none
4625# First try GNU make style include.
4626echo "include confinc" > confmf
4627# We grep out `Entering directory' and `Leaving directory'
4628# messages which can occur if `w' ends up in MAKEFLAGS.
4629# In particular we don't look at `^make:' because GNU make might
4630# be invoked under some other name (usually "gmake"), in which
4631# case it prints its new name instead of `make'.
4632if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4633   am__include=include
4634   am__quote=
4635   _am_result=GNU
4636fi
4637# Now try BSD make style include.
4638if test "$am__include" = "#"; then
4639   echo '.include "confinc"' > confmf
4640   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4641      am__include=.include
4642      am__quote="\""
4643      _am_result=BSD
4644   fi
4645fi
4646
4647
4648echo "$as_me:$LINENO: result: $_am_result" >&5
4649echo "${ECHO_T}$_am_result" >&6
4650rm -f confinc confmf
4651
4652# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4653if test "${enable_dependency_tracking+set}" = set; then
4654  enableval="$enable_dependency_tracking"
4655
4656fi;
4657if test "x$enable_dependency_tracking" != xno; then
4658  am_depcomp="$ac_aux_dir/depcomp"
4659  AMDEPBACKSLASH='\'
4660fi
4661
4662
4663if test "x$enable_dependency_tracking" != xno; then
4664  AMDEP_TRUE=
4665  AMDEP_FALSE='#'
4666else
4667  AMDEP_TRUE='#'
4668  AMDEP_FALSE=
4669fi
4670
4671
4672
4673
4674
4675
4676# AC_MSG_NOTICE([Beginning automake initialisation.])
4677# Stuff for automake
4678# test to see if srcdir already configured
4679if test "`cd $srcdir && pwd`" != "`pwd`" &&
4680   test -f $srcdir/config.status; then
4681  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4682echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4683   { (exit 1); exit 1; }; }
4684fi
4685
4686# test whether we have cygpath
4687if test -z "$CYGPATH_W"; then
4688  if (cygpath --version) >/dev/null 2>/dev/null; then
4689    CYGPATH_W='cygpath -w'
4690  else
4691    CYGPATH_W=echo
4692  fi
4693fi
4694
4695
4696# Define the identity of the package.
4697 PACKAGE='cbc'
4698 VERSION='trunk'
4699
4700
4701cat >>confdefs.h <<_ACEOF
4702#define PACKAGE "$PACKAGE"
4703_ACEOF
4704
4705
4706cat >>confdefs.h <<_ACEOF
4707#define VERSION "$VERSION"
4708_ACEOF
4709
4710# Some tools Automake needs.
4711
4712ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4713
4714
4715AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4716
4717
4718AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4719
4720
4721AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4722
4723
4724MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4725
4726install_sh=${install_sh-"$am_aux_dir/install-sh"}
4727
4728# Installed binaries are usually stripped using `strip' when the user
4729# run `make install-strip'.  However `strip' might not be the right
4730# tool to use in cross-compilation environments, therefore Automake
4731# will honor the `STRIP' environment variable to overrule this program.
4732if test "$cross_compiling" != no; then
4733  if test -n "$ac_tool_prefix"; then
4734  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4735set dummy ${ac_tool_prefix}strip; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_prog_STRIP+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  if test -n "$STRIP"; then
4742  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747  IFS=$as_save_IFS
4748  test -z "$as_dir" && as_dir=.
4749  for ac_exec_ext in '' $ac_executable_extensions; do
4750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753    break 2
4754  fi
4755done
4756done
4757
4758fi
4759fi
4760STRIP=$ac_cv_prog_STRIP
4761if test -n "$STRIP"; then
4762  echo "$as_me:$LINENO: result: $STRIP" >&5
4763echo "${ECHO_T}$STRIP" >&6
4764else
4765  echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767fi
4768
4769fi
4770if test -z "$ac_cv_prog_STRIP"; then
4771  ac_ct_STRIP=$STRIP
4772  # Extract the first word of "strip", so it can be a program name with args.
4773set dummy strip; ac_word=$2
4774echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4777  echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779  if test -n "$ac_ct_STRIP"; then
4780  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787  for ac_exec_ext in '' $ac_executable_extensions; do
4788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789    ac_cv_prog_ac_ct_STRIP="strip"
4790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794done
4795
4796  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4797fi
4798fi
4799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4800if test -n "$ac_ct_STRIP"; then
4801  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4802echo "${ECHO_T}$ac_ct_STRIP" >&6
4803else
4804  echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6
4806fi
4807
4808  STRIP=$ac_ct_STRIP
4809else
4810  STRIP="$ac_cv_prog_STRIP"
4811fi
4812
4813fi
4814INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4815
4816# We need awk for the "check" target.  The system "awk" is bad on
4817# some platforms.
4818# Always define AMTAR for backward compatibility.
4819
4820AMTAR=${AMTAR-"${am_missing_run}tar"}
4821
4822am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4823
4824
4825
4826
4827depcc="$CC"   am_compiler_list=
4828
4829echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4830echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4831if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4835  # We make a subdir and do the tests there.  Otherwise we can end up
4836  # making bogus files that we don't know about and never remove.  For
4837  # instance it was reported that on HP-UX the gcc test will end up
4838  # making a dummy file named `D' -- because `-MD' means `put the output
4839  # in D'.
4840  mkdir conftest.dir
4841  # Copy depcomp to subdir because otherwise we won't find it if we're
4842  # using a relative directory.
4843  cp "$am_depcomp" conftest.dir
4844  cd conftest.dir
4845  # We will build objects and dependencies in a subdirectory because
4846  # it helps to detect inapplicable dependency modes.  For instance
4847  # both Tru64's cc and ICC support -MD to output dependencies as a
4848  # side effect of compilation, but ICC will put the dependencies in
4849  # the current directory while Tru64 will put them in the object
4850  # directory.
4851  mkdir sub
4852
4853  am_cv_CC_dependencies_compiler_type=none
4854  if test "$am_compiler_list" = ""; then
4855     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4856  fi
4857  for depmode in $am_compiler_list; do
4858    # Setup a source with many dependencies, because some compilers
4859    # like to wrap large dependency lists on column 80 (with \), and
4860    # we should not choose a depcomp mode which is confused by this.
4861    #
4862    # We need to recreate these files for each test, as the compiler may
4863    # overwrite some of them when testing with obscure command lines.
4864    # This happens at least with the AIX C compiler.
4865    : > sub/conftest.c
4866    for i in 1 2 3 4 5 6; do
4867      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4868      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4869      # Solaris 8's {/usr,}/bin/sh.
4870      touch sub/conftst$i.h
4871    done
4872    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4873
4874    case $depmode in
4875    nosideeffect)
4876      # after this tag, mechanisms are not by side-effect, so they'll
4877      # only be used when explicitly requested
4878      if test "x$enable_dependency_tracking" = xyes; then
4879        continue
4880      else
4881        break
4882      fi
4883      ;;
4884    none) break ;;
4885    esac
4886    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4887    # mode.  It turns out that the SunPro C++ compiler does not properly
4888    # handle `-M -o', and we need to detect this.
4889    if depmode=$depmode \
4890       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4891       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4892       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4893         >/dev/null 2>conftest.err &&
4894       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4895       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4896       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4897      # icc doesn't choke on unknown options, it will just issue warnings
4898      # or remarks (even with -Werror).  So we grep stderr for any message
4899      # that says an option was ignored or not supported.
4900      # When given -MP, icc 7.0 and 7.1 complain thusly:
4901      #   icc: Command line warning: ignoring option '-M'; no argument required
4902      # The diagnosis changed in icc 8.0:
4903      #   icc: Command line remark: option '-MP' not supported
4904      if (grep 'ignoring option' conftest.err ||
4905          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4906        am_cv_CC_dependencies_compiler_type=$depmode
4907        break
4908      fi
4909    fi
4910  done
4911
4912  cd ..
4913  rm -rf conftest.dir
4914else
4915  am_cv_CC_dependencies_compiler_type=none
4916fi
4917
4918fi
4919echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4920echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4922
4923
4924
4925if
4926  test "x$enable_dependency_tracking" != xno \
4927  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4928  am__fastdepCC_TRUE=
4929  am__fastdepCC_FALSE='#'
4930else
4931  am__fastdepCC_TRUE='#'
4932  am__fastdepCC_FALSE=
4933fi
4934
4935
4936depcc="$CXX"  am_compiler_list=
4937
4938echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4939echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4940if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944  # We make a subdir and do the tests there.  Otherwise we can end up
4945  # making bogus files that we don't know about and never remove.  For
4946  # instance it was reported that on HP-UX the gcc test will end up
4947  # making a dummy file named `D' -- because `-MD' means `put the output
4948  # in D'.
4949  mkdir conftest.dir
4950  # Copy depcomp to subdir because otherwise we won't find it if we're
4951  # using a relative directory.
4952  cp "$am_depcomp" conftest.dir
4953  cd conftest.dir
4954  # We will build objects and dependencies in a subdirectory because
4955  # it helps to detect inapplicable dependency modes.  For instance
4956  # both Tru64's cc and ICC support -MD to output dependencies as a
4957  # side effect of compilation, but ICC will put the dependencies in
4958  # the current directory while Tru64 will put them in the object
4959  # directory.
4960  mkdir sub
4961
4962  am_cv_CXX_dependencies_compiler_type=none
4963  if test "$am_compiler_list" = ""; then
4964     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4965  fi
4966  for depmode in $am_compiler_list; do
4967    # Setup a source with many dependencies, because some compilers
4968    # like to wrap large dependency lists on column 80 (with \), and
4969    # we should not choose a depcomp mode which is confused by this.
4970    #
4971    # We need to recreate these files for each test, as the compiler may
4972    # overwrite some of them when testing with obscure command lines.
4973    # This happens at least with the AIX C compiler.
4974    : > sub/conftest.c
4975    for i in 1 2 3 4 5 6; do
4976      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4977      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4978      # Solaris 8's {/usr,}/bin/sh.
4979      touch sub/conftst$i.h
4980    done
4981    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4982
4983    case $depmode in
4984    nosideeffect)
4985      # after this tag, mechanisms are not by side-effect, so they'll
4986      # only be used when explicitly requested
4987      if test "x$enable_dependency_tracking" = xyes; then
4988        continue
4989      else
4990        break
4991      fi
4992      ;;
4993    none) break ;;
4994    esac
4995    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4996    # mode.  It turns out that the SunPro C++ compiler does not properly
4997    # handle `-M -o', and we need to detect this.
4998    if depmode=$depmode \
4999       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5001       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5002         >/dev/null 2>conftest.err &&
5003       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5004       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5005       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5006      # icc doesn't choke on unknown options, it will just issue warnings
5007      # or remarks (even with -Werror).  So we grep stderr for any message
5008      # that says an option was ignored or not supported.
5009      # When given -MP, icc 7.0 and 7.1 complain thusly:
5010      #   icc: Command line warning: ignoring option '-M'; no argument required
5011      # The diagnosis changed in icc 8.0:
5012      #   icc: Command line remark: option '-MP' not supported
5013      if (grep 'ignoring option' conftest.err ||
5014          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5015        am_cv_CXX_dependencies_compiler_type=$depmode
5016        break
5017      fi
5018    fi
5019  done
5020
5021  cd ..
5022  rm -rf conftest.dir
5023else
5024  am_cv_CXX_dependencies_compiler_type=none
5025fi
5026
5027fi
5028echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5029echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5030CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5031
5032
5033
5034if
5035  test "x$enable_dependency_tracking" != xno \
5036  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5037  am__fastdepCXX_TRUE=
5038  am__fastdepCXX_FALSE='#'
5039else
5040  am__fastdepCXX_TRUE='#'
5041  am__fastdepCXX_FALSE=
5042fi
5043
5044
5045
5046echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5047echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5048    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5049if test "${enable_maintainer_mode+set}" = set; then
5050  enableval="$enable_maintainer_mode"
5051  USE_MAINTAINER_MODE=$enableval
5052else
5053  USE_MAINTAINER_MODE=no
5054fi;
5055  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5056echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5057
5058
5059if test $USE_MAINTAINER_MODE = yes; then
5060  MAINTAINER_MODE_TRUE=
5061  MAINTAINER_MODE_FALSE='#'
5062else
5063  MAINTAINER_MODE_TRUE='#'
5064  MAINTAINER_MODE_FALSE=
5065fi
5066
5067  MAINT=$MAINTAINER_MODE_TRUE
5068
5069
5070
5071coin_have_externals=no
5072if test "$enable_maintainer_mode" = yes; then
5073
5074  # If maintainer mode is chosen, we make sure that the correct versions
5075  # of the tools are used, and that we know where libtool.m4 is (to
5076  # recreate acinclude.m4)
5077
5078
5079  LIBTOOLM4=
5080  # Normally, $HOME
5081  AUTOTOOLS_DFLT=$HOME
5082
5083  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5084echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5085if test "${ac_cv_use_correct_autotools+set}" = set; then
5086  echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088  ac_cv_use_correct_autotools=check
5089fi
5090echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5091echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5092
5093  if test $ac_cv_use_correct_autotools = check; then
5094    ac_cv_use_correct_autotools=yes
5095    # Check if we have autoconf
5096    # Extract the first word of "autoconf", so it can be a program name with args.
5097set dummy autoconf; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_prog_have_autoconf+set}" = set; then
5101  echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103  if test -n "$have_autoconf"; then
5104  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_have_autoconf="yes"
5114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119
5120  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5121fi
5122fi
5123have_autoconf=$ac_cv_prog_have_autoconf
5124if test -n "$have_autoconf"; then
5125  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5126echo "${ECHO_T}$have_autoconf" >&6
5127else
5128  echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130fi
5131
5132    if test $have_autoconf = no; then
5133      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5134echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5135   { (exit 1); exit 1; }; }
5136    fi
5137
5138    # Check whether autoconf is the correct version
5139    correct_version='2.59'
5140    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5141    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5142echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5143    autoconf --version > confauto.out 2>&1
5144    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5145      echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147    else
5148      rm -f confauto.out
5149      echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5152echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5153   { (exit 1); exit 1; }; }
5154    fi
5155    rm -f confauto.out
5156
5157    # Check if the executable autoconf is picked up from the correct location
5158    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5159echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5160    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5161    autoconf_dir=`cd $autoconf_dir; pwd`
5162    if test x$AUTOTOOLS_DIR = x; then
5163      want_dir=$AUTOTOOLS_DFLT/bin
5164    else
5165      want_dir=$AUTOTOOLS_DIR/bin
5166    fi
5167    if test $autoconf_dir = `cd $want_dir; pwd`; then
5168      echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
5170    else
5171      rm -f confauto.out
5172      echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5175echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5176   { (exit 1); exit 1; }; }
5177    fi
5178
5179    # Check if we have automake
5180    # Extract the first word of "automake", so it can be a program name with args.
5181set dummy automake; ac_word=$2
5182echo "$as_me:$LINENO: checking for $ac_word" >&5
5183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184if test "${ac_cv_prog_have_automake+set}" = set; then
5185  echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187  if test -n "$have_automake"; then
5188  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195  for ac_exec_ext in '' $ac_executable_extensions; do
5196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197    ac_cv_prog_have_automake="yes"
5198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199    break 2
5200  fi
5201done
5202done
5203
5204  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5205fi
5206fi
5207have_automake=$ac_cv_prog_have_automake
5208if test -n "$have_automake"; then
5209  echo "$as_me:$LINENO: result: $have_automake" >&5
5210echo "${ECHO_T}$have_automake" >&6
5211else
5212  echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214fi
5215
5216    if test $have_automake = no; then
5217      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5218echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5219   { (exit 1); exit 1; }; }
5220    fi
5221
5222    # Check whether automake is the correct version
5223    correct_version='1.9.6'
5224    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5225    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5226echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5227    automake --version > confauto.out 2>&1
5228    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5229      echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231    else
5232      rm -f confauto.out
5233      echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
5235      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5236echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5237   { (exit 1); exit 1; }; }
5238    fi
5239    rm -f confauto.out
5240
5241    # Check if the executable automake is picked up from the correct location
5242    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5243echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5244    automake_dir=`which automake | sed -e 's=/automake=='`
5245    automake_dir=`cd $automake_dir; pwd`
5246    if test x$AUTOTOOLS_DIR = x; then
5247      want_dir=$AUTOTOOLS_DFLT/bin
5248    else
5249      want_dir=$AUTOTOOLS_DIR/bin
5250    fi
5251    if test $automake_dir = `cd $want_dir; pwd`; then
5252      echo "$as_me:$LINENO: result: yes" >&5
5253echo "${ECHO_T}yes" >&6
5254    else
5255      rm -f confauto.out
5256      echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5259echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5260   { (exit 1); exit 1; }; }
5261    fi
5262
5263    # Check if this is the correct version of libtool (with escaped dots)
5264    if test x$AUTOTOOLS_DIR = x; then
5265      want_dir=$AUTOTOOLS_DFLT/share
5266    else
5267      want_dir=$AUTOTOOLS_DIR/share
5268    fi
5269    correct_version='1.5.22'
5270    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5271    if test -r $want_dir/libtool/ltmain.sh; then
5272  have_ltmain=yes
5273  :
5274else
5275  have_ltmain=no
5276  :
5277fi
5278
5279    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5280echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5281    if test $have_ltmain = yes; then
5282    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5283        echo "$as_me:$LINENO: result: yes" >&5
5284echo "${ECHO_T}yes" >&6
5285      else
5286        echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5289echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5290   { (exit 1); exit 1; }; }
5291      fi
5292    else
5293      echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5296echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5297   { (exit 1); exit 1; }; }
5298    fi
5299  fi
5300
5301  # Check if we can find the libtool file
5302  if test x$AUTOTOOLS_DIR = x; then
5303    want_dir=$AUTOTOOLS_DFLT/share
5304  else
5305    want_dir=$AUTOTOOLS_DIR/share
5306  fi
5307  if test -r $want_dir/aclocal/libtool.m4; then
5308  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5309  :
5310else
5311  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5312echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5313   { (exit 1); exit 1; }; }
5314  :
5315fi
5316
5317
5318  # Check if we have an Dependencies file
5319  if test -r $srcdir/Dependencies; then
5320    coin_have_externals=yes
5321  fi
5322  # Check if subversion is installed and understands https
5323  # Extract the first word of "svn", so it can be a program name with args.
5324set dummy svn; ac_word=$2
5325echo "$as_me:$LINENO: checking for $ac_word" >&5
5326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5327if test "${ac_cv_prog_have_svn+set}" = set; then
5328  echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330  if test -n "$have_svn"; then
5331  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338  for ac_exec_ext in '' $ac_executable_extensions; do
5339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340    ac_cv_prog_have_svn="yes"
5341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345done
5346
5347  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5348fi
5349fi
5350have_svn=$ac_cv_prog_have_svn
5351if test -n "$have_svn"; then
5352  echo "$as_me:$LINENO: result: $have_svn" >&5
5353echo "${ECHO_T}$have_svn" >&6
5354else
5355  echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357fi
5358
5359  if test x$have_svn = xyes; then
5360    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5361echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5362if test "${ac_cv_svn_understands_https+set}" = set; then
5363  echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365  svn --version > confauto.out 2>&1
5366                    if $EGREP https confauto.out >/dev/null 2>&1; then
5367                      ac_cv_svn_understands_https=yes
5368                    else
5369                      ac_cv_svn_understands_https=no
5370                      have_svn=no
5371                      ac_cv_prog_have_svn=no
5372                    fi
5373                    rm -f confauto.out
5374fi
5375echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5376echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5377  fi
5378
5379  # Find the location of the BuildTools directory
5380  BUILDTOOLSDIR=
5381  if test -r $srcdir/BuildTools/coin.m4; then
5382    BUILDTOOLSDIR=$srcdir/BuildTools
5383  else
5384    if test -r $srcdir/../BuildTools/coin.m4; then
5385      BUILDTOOLSDIR=$srcdir/../BuildTools
5386    else
5387      if test -r $srcdir/../../BuildTools/coin.m4; then
5388        BUILDTOOLSDIR=$srcdir/../../BuildTools
5389      else
5390        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5391echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5392   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5393      fi
5394    fi
5395  fi
5396
5397
5398  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5399  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5400    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5401  fi
5402
5403  # The following variable is set to the name of the directory where
5404  # the autotool scripts are located
5405
5406  AUX_DIR=$ac_aux_dir
5407fi
5408
5409# helpful variable for the base directory of this package
5410abs_source_dir=`cd $srcdir; pwd`
5411
5412
5413# Stuff for example Makefiles
5414if test x$prefix = xNONE; then
5415  full_prefix=$ac_default_prefix
5416else
5417  full_prefix=$prefix
5418fi
5419full_prefix=`cd $full_prefix ; pwd`
5420
5421abs_lib_dir=$full_prefix/lib
5422
5423abs_include_dir=$full_prefix/include
5424
5425abs_bin_dir=$full_prefix/bin
5426
5427
5428
5429if test $coin_have_externals = yes && test x$have_svn = xyes; then
5430  HAVE_EXTERNALS_TRUE=
5431  HAVE_EXTERNALS_FALSE='#'
5432else
5433  HAVE_EXTERNALS_TRUE='#'
5434  HAVE_EXTERNALS_FALSE=
5435fi
5436
5437
5438# AC_MSG_NOTICE([End automake initialisation.])
5439
5440
5441
5442LIBTOOL=
5443if test -r ../libtool; then
5444  coin_config_dir=..
5445  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5446fi
5447if test "x$LIBTOOL" = x; then
5448  if test -r ../../libtool; then
5449    coin_config_dir=../..
5450    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5451  fi
5452fi
5453
5454if test "x$LIBTOOL" = x; then
5455# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5456  # Stuff for libtool
5457  # Check whether --enable-shared or --disable-shared was given.
5458if test "${enable_shared+set}" = set; then
5459  enableval="$enable_shared"
5460  p=${PACKAGE-default}
5461    case $enableval in
5462    yes) enable_shared=yes ;;
5463    no) enable_shared=no ;;
5464    *)
5465      enable_shared=no
5466      # Look at the argument we got.  We use all the common list separators.
5467      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5468      for pkg in $enableval; do
5469        IFS="$lt_save_ifs"
5470        if test "X$pkg" = "X$p"; then
5471          enable_shared=yes
5472        fi
5473      done
5474      IFS="$lt_save_ifs"
5475      ;;
5476    esac
5477else
5478  enable_shared=yes
5479fi;
5480
5481# Check whether --enable-fast-install or --disable-fast-install was given.
5482if test "${enable_fast_install+set}" = set; then
5483  enableval="$enable_fast_install"
5484  p=${PACKAGE-default}
5485    case $enableval in
5486    yes) enable_fast_install=yes ;;
5487    no) enable_fast_install=no ;;
5488    *)
5489      enable_fast_install=no
5490      # Look at the argument we got.  We use all the common list separators.
5491      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5492      for pkg in $enableval; do
5493        IFS="$lt_save_ifs"
5494        if test "X$pkg" = "X$p"; then
5495          enable_fast_install=yes
5496        fi
5497      done
5498      IFS="$lt_save_ifs"
5499      ;;
5500    esac
5501else
5502  enable_fast_install=yes
5503fi;
5504
5505echo "$as_me:$LINENO: checking host system type" >&5
5506echo $ECHO_N "checking host system type... $ECHO_C" >&6
5507if test "${ac_cv_host+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  ac_cv_host_alias=$host_alias
5511test -z "$ac_cv_host_alias" &&
5512  ac_cv_host_alias=$ac_cv_build_alias
5513ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5514  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5515echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5516   { (exit 1); exit 1; }; }
5517
5518fi
5519echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5520echo "${ECHO_T}$ac_cv_host" >&6
5521host=$ac_cv_host
5522host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5523host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5524host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5525
5526
5527echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5528echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5529if test "${lt_cv_path_SED+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  # Loop through the user's path and test for sed and gsed.
5533# Then use that list of sed's as ones to test for truncation.
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537  IFS=$as_save_IFS
5538  test -z "$as_dir" && as_dir=.
5539  for lt_ac_prog in sed gsed; do
5540    for ac_exec_ext in '' $ac_executable_extensions; do
5541      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5542        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5543      fi
5544    done
5545  done
5546done
5547lt_ac_max=0
5548lt_ac_count=0
5549# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5550# along with /bin/sed that truncates output.
5551for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5552  test ! -f $lt_ac_sed && continue
5553  cat /dev/null > conftest.in
5554  lt_ac_count=0
5555  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5556  # Check for GNU sed and select it if it is found.
5557  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5558    lt_cv_path_SED=$lt_ac_sed
5559    break
5560  fi
5561  while true; do
5562    cat conftest.in conftest.in >conftest.tmp
5563    mv conftest.tmp conftest.in
5564    cp conftest.in conftest.nl
5565    echo >>conftest.nl
5566    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5567    cmp -s conftest.out conftest.nl || break
5568    # 10000 chars as input seems more than enough
5569    test $lt_ac_count -gt 10 && break
5570    lt_ac_count=`expr $lt_ac_count + 1`
5571    if test $lt_ac_count -gt $lt_ac_max; then
5572      lt_ac_max=$lt_ac_count
5573      lt_cv_path_SED=$lt_ac_sed
5574    fi
5575  done
5576done
5577
5578fi
5579
5580SED=$lt_cv_path_SED
5581echo "$as_me:$LINENO: result: $SED" >&5
5582echo "${ECHO_T}$SED" >&6
5583
5584
5585# Check whether --with-gnu-ld or --without-gnu-ld was given.
5586if test "${with_gnu_ld+set}" = set; then
5587  withval="$with_gnu_ld"
5588  test "$withval" = no || with_gnu_ld=yes
5589else
5590  with_gnu_ld=no
5591fi;
5592ac_prog=ld
5593if test "$GCC" = yes; then
5594  # Check if gcc -print-prog-name=ld gives a path.
5595  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5596echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5597  case $host in
5598  *-*-mingw*)
5599    # gcc leaves a trailing carriage return which upsets mingw
5600    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5601  *)
5602    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5603  esac
5604  case $ac_prog in
5605    # Accept absolute paths.
5606    [\\/]* | ?:[\\/]*)
5607      re_direlt='/[^/][^/]*/\.\./'
5608      # Canonicalize the pathname of ld
5609      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5610      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5611        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5612      done
5613      test -z "$LD" && LD="$ac_prog"
5614      ;;
5615  "")
5616    # If it fails, then pretend we aren't using GCC.
5617    ac_prog=ld
5618    ;;
5619  *)
5620    # If it is relative, then search for the first ld in PATH.
5621    with_gnu_ld=unknown
5622    ;;
5623  esac
5624elif test "$with_gnu_ld" = yes; then
5625  echo "$as_me:$LINENO: checking for GNU ld" >&5
5626echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5627else
5628  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5629echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5630fi
5631if test "${lt_cv_path_LD+set}" = set; then
5632  echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634  if test -z "$LD"; then
5635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636  for ac_dir in $PATH; do
5637    IFS="$lt_save_ifs"
5638    test -z "$ac_dir" && ac_dir=.
5639    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5640      lt_cv_path_LD="$ac_dir/$ac_prog"
5641      # Check to see if the program is GNU ld.  I'd rather use --version,
5642      # but apparently some variants of GNU ld only accept -v.
5643      # Break only if it was the GNU/non-GNU ld that we prefer.
5644      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5645      *GNU* | *'with BFD'*)
5646        test "$with_gnu_ld" != no && break
5647        ;;
5648      *)
5649        test "$with_gnu_ld" != yes && break
5650        ;;
5651      esac
5652    fi
5653  done
5654  IFS="$lt_save_ifs"
5655else
5656  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5657fi
5658fi
5659
5660LD="$lt_cv_path_LD"
5661if test -n "$LD"; then
5662  echo "$as_me:$LINENO: result: $LD" >&5
5663echo "${ECHO_T}$LD" >&6
5664else
5665  echo "$as_me:$LINENO: result: no" >&5
5666echo "${ECHO_T}no" >&6
5667fi
5668test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5669echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5670   { (exit 1); exit 1; }; }
5671echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5672echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5673if test "${lt_cv_prog_gnu_ld+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
5676  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5677case `$LD -v 2>&1 </dev/null` in
5678*GNU* | *'with BFD'*)
5679  lt_cv_prog_gnu_ld=yes
5680  ;;
5681*)
5682  lt_cv_prog_gnu_ld=no
5683  ;;
5684esac
5685fi
5686echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5687echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5688with_gnu_ld=$lt_cv_prog_gnu_ld
5689
5690
5691echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5692echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5693if test "${lt_cv_ld_reload_flag+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696  lt_cv_ld_reload_flag='-r'
5697fi
5698echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5699echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5700reload_flag=$lt_cv_ld_reload_flag
5701case $reload_flag in
5702"" | " "*) ;;
5703*) reload_flag=" $reload_flag" ;;
5704esac
5705reload_cmds='$LD$reload_flag -o $output$reload_objs'
5706case $host_os in
5707  darwin*)
5708    if test "$GCC" = yes; then
5709      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5710    else
5711      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5712    fi
5713    ;;
5714esac
5715
5716echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5717echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5718if test "${lt_cv_path_NM+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  if test -n "$NM"; then
5722  # Let the user override the test.
5723  lt_cv_path_NM="$NM"
5724else
5725  lt_nm_to_check="${ac_tool_prefix}nm"
5726  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5727    lt_nm_to_check="$lt_nm_to_check nm"
5728  fi
5729  for lt_tmp_nm in $lt_nm_to_check; do
5730    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5731    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5732      IFS="$lt_save_ifs"
5733      test -z "$ac_dir" && ac_dir=.
5734      tmp_nm="$ac_dir/$lt_tmp_nm"
5735      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5736        # Check to see if the nm accepts a BSD-compat flag.
5737        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5738        #   nm: unknown option "B" ignored
5739        # Tru64's nm complains that /dev/null is an invalid object file
5740        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5741        */dev/null* | *'Invalid file or object type'*)
5742          lt_cv_path_NM="$tmp_nm -B"
5743          break
5744          ;;
5745        *)
5746          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5747          */dev/null*)
5748            lt_cv_path_NM="$tmp_nm -p"
5749            break
5750            ;;
5751          *)
5752            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5753            continue # so that we can try to find one that supports BSD flags
5754            ;;
5755          esac
5756          ;;
5757        esac
5758      fi
5759    done
5760    IFS="$lt_save_ifs"
5761  done
5762  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5763fi
5764fi
5765echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5766echo "${ECHO_T}$lt_cv_path_NM" >&6
5767NM="$lt_cv_path_NM"
5768
5769echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5770echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5771if test "${lt_cv_deplibs_check_method+set}" = set; then
5772  echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774  lt_cv_file_magic_cmd='$MAGIC_CMD'
5775lt_cv_file_magic_test_file=
5776lt_cv_deplibs_check_method='unknown'
5777# Need to set the preceding variable on all platforms that support
5778# interlibrary dependencies.
5779# 'none' -- dependencies not supported.
5780# `unknown' -- same as none, but documents that we really don't know.
5781# 'pass_all' -- all dependencies passed with no checks.
5782# 'test_compile' -- check by making test program.
5783# 'file_magic [[regex]]' -- check by looking for files in library path
5784# which responds to the $file_magic_cmd with a given extended regex.
5785# If you have `file' or equivalent on your system and you're not sure
5786# whether `pass_all' will *always* work, you probably want this one.
5787
5788case $host_os in
5789aix4* | aix5*)
5790  lt_cv_deplibs_check_method=pass_all
5791  ;;
5792
5793beos*)
5794  lt_cv_deplibs_check_method=pass_all
5795  ;;
5796
5797bsdi[45]*)
5798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5799  lt_cv_file_magic_cmd='/usr/bin/file -L'
5800  lt_cv_file_magic_test_file=/shlib/libc.so
5801  ;;
5802
5803cygwin*)
5804  # func_win32_libid is a shell function defined in ltmain.sh
5805  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5806  lt_cv_file_magic_cmd='func_win32_libid'
5807  ;;
5808
5809mingw* | pw32*)
5810  # Base MSYS/MinGW do not provide the 'file' command needed by
5811  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5812  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5813  lt_cv_file_magic_cmd='$OBJDUMP -f'
5814  ;;
5815
5816darwin* | rhapsody*)
5817  lt_cv_deplibs_check_method=pass_all
5818  ;;
5819
5820freebsd* | kfreebsd*-gnu | dragonfly*)
5821  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5822    case $host_cpu in
5823    i*86 )
5824      # Not sure whether the presence of OpenBSD here was a mistake.
5825      # Let's accept both of them until this is cleared up.
5826      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5827      lt_cv_file_magic_cmd=/usr/bin/file
5828      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5829      ;;
5830    esac
5831  else
5832    lt_cv_deplibs_check_method=pass_all
5833  fi
5834  ;;
5835
5836gnu*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840hpux10.20* | hpux11*)
5841  lt_cv_file_magic_cmd=/usr/bin/file
5842  case $host_cpu in
5843  ia64*)
5844    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5845    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5846    ;;
5847  hppa*64*)
5848    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]'
5849    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5850    ;;
5851  *)
5852    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5853    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5854    ;;
5855  esac
5856  ;;
5857
5858interix3*)
5859  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5860  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5861  ;;
5862
5863irix5* | irix6* | nonstopux*)
5864  case $LD in
5865  *-32|*"-32 ") libmagic=32-bit;;
5866  *-n32|*"-n32 ") libmagic=N32;;
5867  *-64|*"-64 ") libmagic=64-bit;;
5868  *) libmagic=never-match;;
5869  esac
5870  lt_cv_deplibs_check_method=pass_all
5871  ;;
5872
5873# This must be Linux ELF.
5874linux*)
5875  lt_cv_deplibs_check_method=pass_all
5876  ;;
5877
5878netbsd*)
5879  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5881  else
5882    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5883  fi
5884  ;;
5885
5886newos6*)
5887  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5888  lt_cv_file_magic_cmd=/usr/bin/file
5889  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5890  ;;
5891
5892nto-qnx*)
5893  lt_cv_deplibs_check_method=unknown
5894  ;;
5895
5896openbsd*)
5897  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5899  else
5900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5901  fi
5902  ;;
5903
5904osf3* | osf4* | osf5*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908solaris*)
5909  lt_cv_deplibs_check_method=pass_all
5910  ;;
5911
5912sysv4 | sysv4.3*)
5913  case $host_vendor in
5914  motorola)
5915    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]'
5916    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5917    ;;
5918  ncr)
5919    lt_cv_deplibs_check_method=pass_all
5920    ;;
5921  sequent)
5922    lt_cv_file_magic_cmd='/bin/file'
5923    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5924    ;;
5925  sni)
5926    lt_cv_file_magic_cmd='/bin/file'
5927    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5928    lt_cv_file_magic_test_file=/lib/libc.so
5929    ;;
5930  siemens)
5931    lt_cv_deplibs_check_method=pass_all
5932    ;;
5933  pc)
5934    lt_cv_deplibs_check_method=pass_all
5935    ;;
5936  esac
5937  ;;
5938
5939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5940  lt_cv_deplibs_check_method=pass_all
5941  ;;
5942esac
5943
5944fi
5945echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5946echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5947file_magic_cmd=$lt_cv_file_magic_cmd
5948deplibs_check_method=$lt_cv_deplibs_check_method
5949test -z "$deplibs_check_method" && deplibs_check_method=unknown
5950
5951
5952
5953
5954# If no C compiler was specified, use CC.
5955LTCC=${LTCC-"$CC"}
5956
5957# If no C compiler flags were specified, use CFLAGS.
5958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5959
5960# Allow CC to be a program name with arguments.
5961compiler=$CC
5962
5963# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5964if test "${enable_libtool_lock+set}" = set; then
5965  enableval="$enable_libtool_lock"
5966
5967fi;
5968test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5969
5970# Some flags need to be propagated to the compiler or linker for good
5971# libtool support.
5972case $host in
5973ia64-*-hpux*)
5974  # Find out which ABI we are using.
5975  echo 'int i;' > conftest.$ac_ext
5976  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977  (eval $ac_compile) 2>&5
5978  ac_status=$?
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; then
5981    case `/usr/bin/file conftest.$ac_objext` in
5982    *ELF-32*)
5983      HPUX_IA64_MODE="32"
5984      ;;
5985    *ELF-64*)
5986      HPUX_IA64_MODE="64"
5987      ;;
5988    esac
5989  fi
5990  rm -rf conftest*
5991  ;;
5992*-*-irix6*)
5993  # Find out which ABI we are using.
5994  echo '#line 5994 "configure"' > conftest.$ac_ext
5995  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996  (eval $ac_compile) 2>&5
5997  ac_status=$?
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); }; then
6000   if test "$lt_cv_prog_gnu_ld" = yes; then
6001    case `/usr/bin/file conftest.$ac_objext` in
6002    *32-bit*)
6003      LD="${LD-ld} -melf32bsmip"
6004      ;;
6005    *N32*)
6006      LD="${LD-ld} -melf32bmipn32"
6007      ;;
6008    *64-bit*)
6009      LD="${LD-ld} -melf64bmip"
6010      ;;
6011    esac
6012   else
6013    case `/usr/bin/file conftest.$ac_objext` in
6014    *32-bit*)
6015      LD="${LD-ld} -32"
6016      ;;
6017    *N32*)
6018      LD="${LD-ld} -n32"
6019      ;;
6020    *64-bit*)
6021      LD="${LD-ld} -64"
6022      ;;
6023    esac
6024   fi
6025  fi
6026  rm -rf conftest*
6027  ;;
6028
6029x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6030  # Find out which ABI we are using.
6031  echo 'int i;' > conftest.$ac_ext
6032  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033  (eval $ac_compile) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; then
6037    case `/usr/bin/file conftest.o` in
6038    *32-bit*)
6039      case $host in
6040        x86_64-*linux*)
6041          LD="${LD-ld} -m elf_i386"
6042          ;;
6043        ppc64-*linux*|powerpc64-*linux*)
6044          LD="${LD-ld} -m elf32ppclinux"
6045          ;;
6046        s390x-*linux*)
6047          LD="${LD-ld} -m elf_s390"
6048          ;;
6049        sparc64-*linux*)
6050          LD="${LD-ld} -m elf32_sparc"
6051          ;;
6052      esac
6053      ;;
6054    *64-bit*)
6055      case $host in
6056        x86_64-*linux*)
6057          LD="${LD-ld} -m elf_x86_64"
6058          ;;
6059        ppc*-*linux*|powerpc*-*linux*)
6060          LD="${LD-ld} -m elf64ppc"
6061          ;;
6062        s390*-*linux*)
6063          LD="${LD-ld} -m elf64_s390"
6064          ;;
6065        sparc*-*linux*)
6066          LD="${LD-ld} -m elf64_sparc"
6067          ;;
6068      esac
6069      ;;
6070    esac
6071  fi
6072  rm -rf conftest*
6073  ;;
6074
6075*-*-sco3.2v5*)
6076  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6077  SAVE_CFLAGS="$CFLAGS"
6078  CFLAGS="$CFLAGS -belf"
6079  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6080echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6081if test "${lt_cv_cc_needs_belf+set}" = set; then
6082  echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084  ac_ext=c
6085ac_cpp='$CPP $CPPFLAGS'
6086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088ac_compiler_gnu=$ac_cv_c_compiler_gnu
6089
6090     cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h.  */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
6095/* end confdefs.h.  */
6096
6097int
6098main ()
6099{
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext conftest$ac_exeext
6106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107  (eval $ac_link) 2>conftest.er1
6108  ac_status=$?
6109  grep -v '^ *+' conftest.er1 >conftest.err
6110  rm -f conftest.er1
6111  cat conftest.err >&5
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); } &&
6114         { ac_try='test -z "$ac_c_werror_flag"
6115                         || test ! -s conftest.err'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; } &&
6121         { ac_try='test -s conftest$ac_exeext'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  lt_cv_cc_needs_belf=yes
6128else
6129  echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132lt_cv_cc_needs_belf=no
6133fi
6134rm -f conftest.err conftest.$ac_objext \
6135      conftest$ac_exeext conftest.$ac_ext
6136     ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142fi
6143echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6144echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6145  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6146    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6147    CFLAGS="$SAVE_CFLAGS"
6148  fi
6149  ;;
6150sparc*-*solaris*)
6151  # Find out which ABI we are using.
6152  echo 'int i;' > conftest.$ac_ext
6153  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6154  (eval $ac_compile) 2>&5
6155  ac_status=$?
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); }; then
6158    case `/usr/bin/file conftest.o` in
6159    *64-bit*)
6160      case $lt_cv_prog_gnu_ld in
6161      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6162      *)    LD="${LD-ld} -64" ;;
6163      esac
6164      ;;
6165    esac
6166  fi
6167  rm -rf conftest*
6168  ;;
6169
6170
6171esac
6172
6173need_locks="$enable_libtool_lock"
6174
6175
6176ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6182echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6183# On Suns, sometimes $CPP names a directory.
6184if test -n "$CPP" && test -d "$CPP"; then
6185  CPP=
6186fi
6187if test -z "$CPP"; then
6188  if test "${ac_cv_prog_CPP+set}" = set; then
6189  echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191      # Double quotes because CPP needs to be expanded
6192    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6193    do
6194      ac_preproc_ok=false
6195for ac_c_preproc_warn_flag in '' yes
6196do
6197  # Use a header file that comes with gcc, so configuring glibc
6198  # with a fresh cross-compiler works.
6199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6200  # <limits.h> exists even on freestanding compilers.
6201  # On the NeXT, cc -E runs the code through the compiler's parser,
6202  # not just through cpp. "Syntax error" is here to catch this case.
6203  cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h.  */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h.  */
6209#ifdef __STDC__
6210# include <limits.h>
6211#else
6212# include <assert.h>
6213#endif
6214                     Syntax error
6215_ACEOF
6216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218  ac_status=$?
6219  grep -v '^ *+' conftest.er1 >conftest.err
6220  rm -f conftest.er1
6221  cat conftest.err >&5
6222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223  (exit $ac_status); } >/dev/null; then
6224  if test -s conftest.err; then
6225    ac_cpp_err=$ac_c_preproc_warn_flag
6226    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6227  else
6228    ac_cpp_err=
6229  fi
6230else
6231  ac_cpp_err=yes
6232fi
6233if test -z "$ac_cpp_err"; then
6234  :
6235else
6236  echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239  # Broken: fails on valid input.
6240continue
6241fi
6242rm -f conftest.err conftest.$ac_ext
6243
6244  # OK, works on sane cases.  Now check whether non-existent headers
6245  # can be detected and how.
6246  cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h.  */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h.  */
6252#include <ac_nonexistent.h>
6253_ACEOF
6254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6256  ac_status=$?
6257  grep -v '^ *+' conftest.er1 >conftest.err
6258  rm -f conftest.er1
6259  cat conftest.err >&5
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); } >/dev/null; then
6262  if test -s conftest.err; then
6263    ac_cpp_err=$ac_c_preproc_warn_flag
6264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6265  else
6266    ac_cpp_err=
6267  fi
6268else
6269  ac_cpp_err=yes
6270fi
6271if test -z "$ac_cpp_err"; then
6272  # Broken: success on invalid input.
6273continue
6274else
6275  echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278  # Passes both tests.
6279ac_preproc_ok=:
6280break
6281fi
6282rm -f conftest.err conftest.$ac_ext
6283
6284done
6285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6286rm -f conftest.err conftest.$ac_ext
6287if $ac_preproc_ok; then
6288  break
6289fi
6290
6291    done
6292    ac_cv_prog_CPP=$CPP
6293
6294fi
6295  CPP=$ac_cv_prog_CPP
6296else
6297  ac_cv_prog_CPP=$CPP
6298fi
6299echo "$as_me:$LINENO: result: $CPP" >&5
6300echo "${ECHO_T}$CPP" >&6
6301ac_preproc_ok=false
6302for ac_c_preproc_warn_flag in '' yes
6303do
6304  # Use a header file that comes with gcc, so configuring glibc
6305  # with a fresh cross-compiler works.
6306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6307  # <limits.h> exists even on freestanding compilers.
6308  # On the NeXT, cc -E runs the code through the compiler's parser,
6309  # not just through cpp. "Syntax error" is here to catch this case.
6310  cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h.  */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h.  */
6316#ifdef __STDC__
6317# include <limits.h>
6318#else
6319# include <assert.h>
6320#endif
6321                     Syntax error
6322_ACEOF
6323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6324  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6325  ac_status=$?
6326  grep -v '^ *+' conftest.er1 >conftest.err
6327  rm -f conftest.er1
6328  cat conftest.err >&5
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); } >/dev/null; then
6331  if test -s conftest.err; then
6332    ac_cpp_err=$ac_c_preproc_warn_flag
6333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6334  else
6335    ac_cpp_err=
6336  fi
6337else
6338  ac_cpp_err=yes
6339fi
6340if test -z "$ac_cpp_err"; then
6341  :
6342else
6343  echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
6346  # Broken: fails on valid input.
6347continue
6348fi
6349rm -f conftest.err conftest.$ac_ext
6350
6351  # OK, works on sane cases.  Now check whether non-existent headers
6352  # can be detected and how.
6353  cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h.  */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h.  */
6359#include <ac_nonexistent.h>
6360_ACEOF
6361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } >/dev/null; then
6369  if test -s conftest.err; then
6370    ac_cpp_err=$ac_c_preproc_warn_flag
6371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6372  else
6373    ac_cpp_err=
6374  fi
6375else
6376  ac_cpp_err=yes
6377fi
6378if test -z "$ac_cpp_err"; then
6379  # Broken: success on invalid input.
6380continue
6381else
6382  echo "$as_me: failed program was:" >&5
6383sed 's/^/| /' conftest.$ac_ext >&5
6384
6385  # Passes both tests.
6386ac_preproc_ok=:
6387break
6388fi
6389rm -f conftest.err conftest.$ac_ext
6390
6391done
6392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6393rm -f conftest.err conftest.$ac_ext
6394if $ac_preproc_ok; then
6395  :
6396else
6397  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6398See \`config.log' for more details." >&5
6399echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6400See \`config.log' for more details." >&2;}
6401   { (exit 1); exit 1; }; }
6402fi
6403
6404ac_ext=c
6405ac_cpp='$CPP $CPPFLAGS'
6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410
6411echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6412echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6413if test "${ac_cv_header_stdc+set}" = set; then
6414  echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416  cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422#include <stdlib.h>
6423#include <stdarg.h>
6424#include <string.h>
6425#include <float.h>
6426
6427int
6428main ()
6429{
6430
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437  (eval $ac_compile) 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } &&
6444         { ac_try='test -z "$ac_c_werror_flag"
6445                         || test ! -s conftest.err'
6446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447  (eval $ac_try) 2>&5
6448  ac_status=$?
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); }; } &&
6451         { ac_try='test -s conftest.$ac_objext'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; }; then
6457  ac_cv_header_stdc=yes
6458else
6459  echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462ac_cv_header_stdc=no
6463fi
6464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465
6466if test $ac_cv_header_stdc = yes; then
6467  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6468  cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474#include <string.h>
6475
6476_ACEOF
6477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478  $EGREP "memchr" >/dev/null 2>&1; then
6479  :
6480else
6481  ac_cv_header_stdc=no
6482fi
6483rm -f conftest*
6484
6485fi
6486
6487if test $ac_cv_header_stdc = yes; then
6488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6489  cat >conftest.$ac_ext <<_ACEOF
6490/* confdefs.h.  */
6491_ACEOF
6492cat confdefs.h >>conftest.$ac_ext
6493cat >>conftest.$ac_ext <<_ACEOF
6494/* end confdefs.h.  */
6495#include <stdlib.h>
6496
6497_ACEOF
6498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6499  $EGREP "free" >/dev/null 2>&1; then
6500  :
6501else
6502  ac_cv_header_stdc=no
6503fi
6504rm -f conftest*
6505
6506fi
6507
6508if test $ac_cv_header_stdc = yes; then
6509  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6510  if test "$cross_compiling" = yes; then
6511  :
6512else
6513  cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h.  */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h.  */
6519#include <ctype.h>
6520#if ((' ' & 0x0FF) == 0x020)
6521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6523#else
6524# define ISLOWER(c) \
6525                   (('a' <= (c) && (c) <= 'i') \
6526                     || ('j' <= (c) && (c) <= 'r') \
6527                     || ('s' <= (c) && (c) <= 'z'))
6528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6529#endif
6530
6531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6532int
6533main ()
6534{
6535  int i;
6536  for (i = 0; i < 256; i++)
6537    if (XOR (islower (i), ISLOWER (i))
6538        || toupper (i) != TOUPPER (i))
6539      exit(2);
6540  exit (0);
6541}
6542_ACEOF
6543rm -f conftest$ac_exeext
6544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545  (eval $ac_link) 2>&5
6546  ac_status=$?
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550  (eval $ac_try) 2>&5
6551  ac_status=$?
6552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); }; }; then
6554  :
6555else
6556  echo "$as_me: program exited with status $ac_status" >&5
6557echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560( exit $ac_status )
6561ac_cv_header_stdc=no
6562fi
6563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6564fi
6565fi
6566fi
6567echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6568echo "${ECHO_T}$ac_cv_header_stdc" >&6
6569if test $ac_cv_header_stdc = yes; then
6570
6571cat >>confdefs.h <<\_ACEOF
6572#define STDC_HEADERS 1
6573_ACEOF
6574
6575fi
6576
6577# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6588                  inttypes.h stdint.h unistd.h
6589do
6590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6591echo "$as_me:$LINENO: checking for $ac_header" >&5
6592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6593if eval "test \"\${$as_ac_Header+set}\" = set"; then
6594  echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596  cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h.  */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h.  */
6602$ac_includes_default
6603
6604#include <$ac_header>
6605_ACEOF
6606rm -f conftest.$ac_objext
6607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608  (eval $ac_compile) 2>conftest.er1
6609  ac_status=$?
6610  grep -v '^ *+' conftest.er1 >conftest.err
6611  rm -f conftest.er1
6612  cat conftest.err >&5
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); } &&
6615         { ac_try='test -z "$ac_c_werror_flag"
6616                         || test ! -s conftest.err'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; } &&
6622         { ac_try='test -s conftest.$ac_objext'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; }; then
6628  eval "$as_ac_Header=yes"
6629else
6630  echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633eval "$as_ac_Header=no"
6634fi
6635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6639if test `eval echo '${'$as_ac_Header'}'` = yes; then
6640  cat >>confdefs.h <<_ACEOF
6641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6642_ACEOF
6643
6644fi
6645
6646done
6647
6648
6649
6650for ac_header in dlfcn.h
6651do
6652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6653if eval "test \"\${$as_ac_Header+set}\" = set"; then
6654  echo "$as_me:$LINENO: checking for $ac_header" >&5
6655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6656if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658fi
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661else
6662  # Is the header compilable?
6663echo "$as_me:$LINENO: checking $ac_header usability" >&5
6664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6665cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h.  */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h.  */
6671$ac_includes_default
6672#include <$ac_header>
6673_ACEOF
6674rm -f conftest.$ac_objext
6675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676  (eval $ac_compile) 2>conftest.er1
6677  ac_status=$?
6678  grep -v '^ *+' conftest.er1 >conftest.err
6679  rm -f conftest.er1
6680  cat conftest.err >&5
6681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682  (exit $ac_status); } &&
6683         { ac_try='test -z "$ac_c_werror_flag"
6684                         || test ! -s conftest.err'
6685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686  (eval $ac_try) 2>&5
6687  ac_status=$?
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); }; } &&
6690         { ac_try='test -s conftest.$ac_objext'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; }; then
6696  ac_header_compiler=yes
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701ac_header_compiler=no
6702fi
6703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6705echo "${ECHO_T}$ac_header_compiler" >&6
6706
6707# Is the header present?
6708echo "$as_me:$LINENO: checking $ac_header presence" >&5
6709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6710cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h.  */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h.  */
6716#include <$ac_header>
6717_ACEOF
6718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6719  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6720  ac_status=$?
6721  grep -v '^ *+' conftest.er1 >conftest.err
6722  rm -f conftest.er1
6723  cat conftest.err >&5
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); } >/dev/null; then
6726  if test -s conftest.err; then
6727    ac_cpp_err=$ac_c_preproc_warn_flag
6728    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6729  else
6730    ac_cpp_err=
6731  fi
6732else
6733  ac_cpp_err=yes
6734fi
6735if test -z "$ac_cpp_err"; then
6736  ac_header_preproc=yes
6737else
6738  echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741  ac_header_preproc=no
6742fi
6743rm -f conftest.err conftest.$ac_ext
6744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6745echo "${ECHO_T}$ac_header_preproc" >&6
6746
6747# So?  What about this header?
6748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6749  yes:no: )
6750    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6754    ac_header_preproc=yes
6755    ;;
6756  no:yes:* )
6757    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6759    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6760echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6764echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6769    (
6770      cat <<\_ASBOX
6771## ------------------------------------ ##
6772## Report this to cbc@lists.coin-or.org ##
6773## ------------------------------------ ##
6774_ASBOX
6775    ) |
6776      sed "s/^/$as_me: WARNING:     /" >&2
6777    ;;
6778esac
6779echo "$as_me:$LINENO: checking for $ac_header" >&5
6780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6781if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782  echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784  eval "$as_ac_Header=\$ac_header_preproc"
6785fi
6786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6788
6789fi
6790if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791  cat >>confdefs.h <<_ACEOF
6792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793_ACEOF
6794
6795fi
6796
6797done
6798
6799
6800
6801if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6802    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6803    (test "X$CXX" != "Xg++"))) ; then
6804  ac_ext=cc
6805ac_cpp='$CXXCPP $CPPFLAGS'
6806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6809echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6810echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6811if test -z "$CXXCPP"; then
6812  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6813  echo $ECHO_N "(cached) $ECHO_C" >&6
6814else
6815      # Double quotes because CXXCPP needs to be expanded
6816    for CXXCPP in "$CXX -E" "/lib/cpp"
6817    do
6818      ac_preproc_ok=false
6819for ac_cxx_preproc_warn_flag in '' yes
6820do
6821  # Use a header file that comes with gcc, so configuring glibc
6822  # with a fresh cross-compiler works.
6823  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6824  # <limits.h> exists even on freestanding compilers.
6825  # On the NeXT, cc -E runs the code through the compiler's parser,
6826  # not just through cpp. "Syntax error" is here to catch this case.
6827  cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833#ifdef __STDC__
6834# include <limits.h>
6835#else
6836# include <assert.h>
6837#endif
6838                     Syntax error
6839_ACEOF
6840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6841  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6842  ac_status=$?
6843  grep -v '^ *+' conftest.er1 >conftest.err
6844  rm -f conftest.er1
6845  cat conftest.err >&5
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); } >/dev/null; then
6848  if test -s conftest.err; then
6849    ac_cpp_err=$ac_cxx_preproc_warn_flag
6850    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6851  else
6852    ac_cpp_err=
6853  fi
6854else
6855  ac_cpp_err=yes
6856fi
6857if test -z "$ac_cpp_err"; then
6858  :
6859else
6860  echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863  # Broken: fails on valid input.
6864continue
6865fi
6866rm -f conftest.err conftest.$ac_ext
6867
6868  # OK, works on sane cases.  Now check whether non-existent headers
6869  # can be detected and how.
6870  cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876#include <ac_nonexistent.h>
6877_ACEOF
6878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6879  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6880  ac_status=$?
6881  grep -v '^ *+' conftest.er1 >conftest.err
6882  rm -f conftest.er1
6883  cat conftest.err >&5
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); } >/dev/null; then
6886  if test -s conftest.err; then
6887    ac_cpp_err=$ac_cxx_preproc_warn_flag
6888    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6889  else
6890    ac_cpp_err=
6891  fi
6892else
6893  ac_cpp_err=yes
6894fi
6895if test -z "$ac_cpp_err"; then
6896  # Broken: success on invalid input.
6897continue
6898else
6899  echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902  # Passes both tests.
6903ac_preproc_ok=:
6904break
6905fi
6906rm -f conftest.err conftest.$ac_ext
6907
6908done
6909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6910rm -f conftest.err conftest.$ac_ext
6911if $ac_preproc_ok; then
6912  break
6913fi
6914
6915    done
6916    ac_cv_prog_CXXCPP=$CXXCPP
6917
6918fi
6919  CXXCPP=$ac_cv_prog_CXXCPP
6920else
6921  ac_cv_prog_CXXCPP=$CXXCPP
6922fi
6923echo "$as_me:$LINENO: result: $CXXCPP" >&5
6924echo "${ECHO_T}$CXXCPP" >&6
6925ac_preproc_ok=false
6926for ac_cxx_preproc_warn_flag in '' yes
6927do
6928  # Use a header file that comes with gcc, so configuring glibc
6929  # with a fresh cross-compiler works.
6930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6931  # <limits.h> exists even on freestanding compilers.
6932  # On the NeXT, cc -E runs the code through the compiler's parser,
6933  # not just through cpp. "Syntax error" is here to catch this case.
6934  cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h.  */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h.  */
6940#ifdef __STDC__
6941# include <limits.h>
6942#else
6943# include <assert.h>
6944#endif
6945                     Syntax error
6946_ACEOF
6947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6948  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } >/dev/null; then
6955  if test -s conftest.err; then
6956    ac_cpp_err=$ac_cxx_preproc_warn_flag
6957    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6958  else
6959    ac_cpp_err=
6960  fi
6961else
6962  ac_cpp_err=yes
6963fi
6964if test -z "$ac_cpp_err"; then
6965  :
6966else
6967  echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
6970  # Broken: fails on valid input.
6971continue
6972fi
6973rm -f conftest.err conftest.$ac_ext
6974
6975  # OK, works on sane cases.  Now check whether non-existent headers
6976  # can be detected and how.
6977  cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983#include <ac_nonexistent.h>
6984_ACEOF
6985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } >/dev/null; then
6993  if test -s conftest.err; then
6994    ac_cpp_err=$ac_cxx_preproc_warn_flag
6995    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6996  else
6997    ac_cpp_err=
6998  fi
6999else
7000  ac_cpp_err=yes
7001fi
7002if test -z "$ac_cpp_err"; then
7003  # Broken: success on invalid input.
7004continue
7005else
7006  echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009  # Passes both tests.
7010ac_preproc_ok=:
7011break
7012fi
7013rm -f conftest.err conftest.$ac_ext
7014
7015done
7016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7017rm -f conftest.err conftest.$ac_ext
7018if $ac_preproc_ok; then
7019  :
7020else
7021  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7022See \`config.log' for more details." >&5
7023echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7024See \`config.log' for more details." >&2;}
7025   { (exit 1); exit 1; }; }
7026fi
7027
7028ac_ext=cc
7029ac_cpp='$CXXCPP $CPPFLAGS'
7030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7033
7034fi
7035
7036ac_ext=f
7037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7040if test -n "$ac_tool_prefix"; then
7041  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7042  do
7043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7045echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7047if test "${ac_cv_prog_F77+set}" = set; then
7048  echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050  if test -n "$F77"; then
7051  ac_cv_prog_F77="$F77" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058  for ac_exec_ext in '' $ac_executable_extensions; do
7059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065done
7066
7067fi
7068fi
7069F77=$ac_cv_prog_F77
7070if test -n "$F77"; then
7071  echo "$as_me:$LINENO: result: $F77" >&5
7072echo "${ECHO_T}$F77" >&6
7073else
7074  echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6
7076fi
7077
7078    test -n "$F77" && break
7079  done
7080fi
7081if test -z "$F77"; then
7082  ac_ct_F77=$F77
7083  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7084do
7085  # Extract the first word of "$ac_prog", so it can be a program name with args.
7086set dummy $ac_prog; ac_word=$2
7087echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7090  echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092  if test -n "$ac_ct_F77"; then
7093  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100  for ac_exec_ext in '' $ac_executable_extensions; do
7101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102    ac_cv_prog_ac_ct_F77="$ac_prog"
7103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107done
7108
7109fi
7110fi
7111ac_ct_F77=$ac_cv_prog_ac_ct_F77
7112if test -n "$ac_ct_F77"; then
7113  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7114echo "${ECHO_T}$ac_ct_F77" >&6
7115else
7116  echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
7118fi
7119
7120  test -n "$ac_ct_F77" && break
7121done
7122
7123  F77=$ac_ct_F77
7124fi
7125
7126
7127# Provide some information about the compiler.
7128echo "$as_me:7128:" \
7129     "checking for Fortran 77 compiler version" >&5
7130ac_compiler=`set X $ac_compile; echo $2`
7131{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7132  (eval $ac_compiler --version </dev/null >&5) 2>&5
7133  ac_status=$?
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); }
7136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7137  (eval $ac_compiler -v </dev/null >&5) 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }
7141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7142  (eval $ac_compiler -V </dev/null >&5) 2>&5
7143  ac_status=$?
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); }
7146rm -f a.out
7147
7148# If we don't use `.F' as extension, the preprocessor is not run on the
7149# input file.  (Note that this only needs to work for GNU compilers.)
7150ac_save_ext=$ac_ext
7151ac_ext=F
7152echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7153echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7154if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7155  echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157  cat >conftest.$ac_ext <<_ACEOF
7158      program main
7159#ifndef __GNUC__
7160       choke me
7161#endif
7162
7163      end
7164_ACEOF
7165rm -f conftest.$ac_objext
7166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167  (eval $ac_compile) 2>conftest.er1
7168  ac_status=$?
7169  grep -v '^ *+' conftest.er1 >conftest.err
7170  rm -f conftest.er1
7171  cat conftest.err >&5
7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173  (exit $ac_status); } &&
7174         { ac_try='test -z "$ac_f77_werror_flag"
7175                         || test ! -s conftest.err'
7176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177  (eval $ac_try) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); }; } &&
7181         { ac_try='test -s conftest.$ac_objext'
7182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183  (eval $ac_try) 2>&5
7184  ac_status=$?
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); }; }; then
7187  ac_compiler_gnu=yes
7188else
7189  echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192ac_compiler_gnu=no
7193fi
7194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7195ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7196
7197fi
7198echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7199echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7200ac_ext=$ac_save_ext
7201ac_test_FFLAGS=${FFLAGS+set}
7202ac_save_FFLAGS=$FFLAGS
7203FFLAGS=
7204echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7205echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7206if test "${ac_cv_prog_f77_g+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  FFLAGS=-g
7210cat >conftest.$ac_ext <<_ACEOF
7211      program main
7212
7213      end
7214_ACEOF
7215rm -f conftest.$ac_objext
7216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217  (eval $ac_compile) 2>conftest.er1
7218  ac_status=$?
7219  grep -v '^ *+' conftest.er1 >conftest.err
7220  rm -f conftest.er1
7221  cat conftest.err >&5
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); } &&
7224         { ac_try='test -z "$ac_f77_werror_flag"
7225                         || test ! -s conftest.err'
7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227  (eval $ac_try) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; } &&
7231         { ac_try='test -s conftest.$ac_objext'
7232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233  (eval $ac_try) 2>&5
7234  ac_status=$?
7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236  (exit $ac_status); }; }; then
7237  ac_cv_prog_f77_g=yes
7238else
7239  echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242ac_cv_prog_f77_g=no
7243fi
7244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7245
7246fi
7247echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7248echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7249if test "$ac_test_FFLAGS" = set; then
7250  FFLAGS=$ac_save_FFLAGS
7251elif test $ac_cv_prog_f77_g = yes; then
7252  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7253    FFLAGS="-g -O2"
7254  else
7255    FFLAGS="-g"
7256  fi
7257else
7258  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7259    FFLAGS="-O2"
7260  else
7261    FFLAGS=
7262  fi
7263fi
7264
7265G77=`test $ac_compiler_gnu = yes && echo yes`
7266ac_ext=c
7267ac_cpp='$CPP $CPPFLAGS'
7268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271
7272
7273
7274# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7275
7276# find the maximum length of command line arguments
7277echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7278echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7279if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7280  echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282    i=0
7283  teststring="ABCD"
7284
7285  case $build_os in
7286  msdosdjgpp*)
7287    # On DJGPP, this test can blow up pretty badly due to problems in libc
7288    # (any single argument exceeding 2000 bytes causes a buffer overrun
7289    # during glob expansion).  Even if it were fixed, the result of this
7290    # check would be larger than it should be.
7291    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7292    ;;
7293
7294  gnu*)
7295    # Under GNU Hurd, this test is not required because there is
7296    # no limit to the length of command line arguments.
7297    # Libtool will interpret -1 as no limit whatsoever
7298    lt_cv_sys_max_cmd_len=-1;
7299    ;;
7300
7301  cygwin* | mingw*)
7302    # On Win9x/ME, this test blows up -- it succeeds, but takes
7303    # about 5 minutes as the teststring grows exponentially.
7304    # Worse, since 9x/ME are not pre-emptively multitasking,
7305    # you end up with a "frozen" computer, even though with patience
7306    # the test eventually succeeds (with a max line length of 256k).
7307    # Instead, let's just punt: use the minimum linelength reported by
7308    # all of the supported platforms: 8192 (on NT/2K/XP).
7309    lt_cv_sys_max_cmd_len=8192;
7310    ;;
7311
7312  amigaos*)
7313    # On AmigaOS with pdksh, this test takes hours, literally.
7314    # So we just punt and use a minimum line length of 8192.
7315    lt_cv_sys_max_cmd_len=8192;
7316    ;;
7317
7318  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7319    # This has been around since 386BSD, at least.  Likely further.
7320    if test -x /sbin/sysctl; then
7321      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7322    elif test -x /usr/sbin/sysctl; then
7323      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7324    else
7325      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7326    fi
7327    # And add a safety zone
7328    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7329    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7330    ;;
7331
7332  interix*)
7333    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7334    lt_cv_sys_max_cmd_len=196608
7335    ;;
7336
7337  osf*)
7338    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7339    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7340    # nice to cause kernel panics so lets avoid the loop below.
7341    # First set a reasonable default.
7342    lt_cv_sys_max_cmd_len=16384
7343    #
7344    if test -x /sbin/sysconfig; then
7345      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7346        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7347      esac
7348    fi
7349    ;;
7350  sco3.2v5*)
7351    lt_cv_sys_max_cmd_len=102400
7352    ;;
7353  sysv5* | sco5v6* | sysv4.2uw2*)
7354    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7355    if test -n "$kargmax"; then
7356      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7357    else
7358      lt_cv_sys_max_cmd_len=32768
7359    fi
7360    ;;
7361  *)
7362    # If test is not a shell built-in, we'll probably end up computing a
7363    # maximum length that is only half of the actual maximum length, but
7364    # we can't tell.
7365    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7366    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7367               = "XX$teststring") >/dev/null 2>&1 &&
7368            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7369            lt_cv_sys_max_cmd_len=$new_result &&
7370            test $i != 17 # 1/2 MB should be enough
7371    do
7372      i=`expr $i + 1`
7373      teststring=$teststring$teststring
7374    done
7375    teststring=
7376    # Add a significant safety factor because C++ compilers can tack on massive
7377    # amounts of additional arguments before passing them to the linker.
7378    # It appears as though 1/2 is a usable value.
7379    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7380    ;;
7381  esac
7382
7383fi
7384
7385if test -n $lt_cv_sys_max_cmd_len ; then
7386  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7387echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7388else
7389  echo "$as_me:$LINENO: result: none" >&5
7390echo "${ECHO_T}none" >&6
7391fi
7392
7393
7394
7395
7396# Check for command to grab the raw symbol name followed by C symbol from nm.
7397echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7398echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7399if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7400  echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402
7403# These are sane defaults that work on at least a few old systems.
7404# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7405
7406# Character class describing NM global symbol codes.
7407symcode='[BCDEGRST]'
7408
7409# Regexp to match symbols that can be accessed directly from C.
7410sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7411
7412# Transform an extracted symbol line into a proper C declaration
7413lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7414
7415# Transform an extracted symbol line into symbol name and symbol address
7416lt_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'"
7417
7418# Define system-specific variables.
7419case $host_os in
7420aix*)
7421  symcode='[BCDT]'
7422  ;;
7423cygwin* | mingw* | pw32*)
7424  symcode='[ABCDGISTW]'
7425  ;;
7426hpux*) # Its linker distinguishes data from code symbols
7427  if test "$host_cpu" = ia64; then
7428    symcode='[ABCDEGRST]'
7429  fi
7430  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7431  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'"
7432  ;;
7433linux*)
7434  if test "$host_cpu" = ia64; then
7435    symcode='[ABCDGIRSTW]'
7436    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7437    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'"
7438  fi
7439  ;;
7440irix* | nonstopux*)
7441  symcode='[BCDEGRST]'
7442  ;;
7443osf*)
7444  symcode='[BCDEGQRST]'
7445  ;;
7446solaris*)
7447  symcode='[BDRT]'
7448  ;;
7449sco3.2v5*)
7450  symcode='[DT]'
7451  ;;
7452sysv4.2uw2*)
7453  symcode='[DT]'
7454  ;;
7455sysv5* | sco5v6* | unixware* | OpenUNIX*)
7456  symcode='[ABDT]'
7457  ;;
7458sysv4)
7459  symcode='[DFNSTU]'
7460  ;;
7461esac
7462
7463# Handle CRLF in mingw tool chain
7464opt_cr=
7465case $build_os in
7466mingw*)
7467  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7468  ;;
7469esac
7470
7471# If we're using GNU nm, then use its standard symbol codes.
7472case `$NM -V 2>&1` in
7473*GNU* | *'with BFD'*)
7474  symcode='[ABCDGIRSTW]' ;;
7475esac
7476
7477# Try without a prefix undercore, then with it.
7478for ac_symprfx in "" "_"; do
7479
7480  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7481  symxfrm="\\1 $ac_symprfx\\2 \\2"
7482
7483  # Write the raw and C identifiers.
7484  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7485
7486  # Check to see that the pipe works correctly.
7487  pipe_works=no
7488
7489  rm -f conftest*
7490  cat > conftest.$ac_ext <<EOF
7491#ifdef __cplusplus
7492extern "C" {
7493#endif
7494char nm_test_var;
7495void nm_test_func(){}
7496#ifdef __cplusplus
7497}
7498#endif
7499int main(){nm_test_var='a';nm_test_func();return(0);}
7500EOF
7501
7502  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503  (eval $ac_compile) 2>&5
7504  ac_status=$?
7505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506  (exit $ac_status); }; then
7507    # Now try to grab the symbols.
7508    nlist=conftest.nm
7509    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7510  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7511  ac_status=$?
7512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513  (exit $ac_status); } && test -s "$nlist"; then
7514      # Try sorting and uniquifying the output.
7515      if sort "$nlist" | uniq > "$nlist"T; then
7516        mv -f "$nlist"T "$nlist"
7517      else
7518        rm -f "$nlist"T
7519      fi
7520
7521      # Make sure that we snagged all the symbols we need.
7522      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7523        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7524          cat <<EOF > conftest.$ac_ext
7525#ifdef __cplusplus
7526extern "C" {
7527#endif
7528
7529EOF
7530          # Now generate the symbol file.
7531          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7532
7533          cat <<EOF >> conftest.$ac_ext
7534#if defined (__STDC__) && __STDC__
7535# define lt_ptr_t void *
7536#else
7537# define lt_ptr_t char *
7538# define const
7539#endif
7540
7541/* The mapping between symbol names and symbols. */
7542const struct {
7543  const char *name;
7544  lt_ptr_t address;
7545}
7546lt_preloaded_symbols[] =
7547{
7548EOF
7549          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7550          cat <<\EOF >> conftest.$ac_ext
7551  {0, (lt_ptr_t) 0}
7552};
7553
7554#ifdef __cplusplus
7555}
7556#endif
7557EOF
7558          # Now try linking the two files.
7559          mv conftest.$ac_objext conftstm.$ac_objext
7560          lt_save_LIBS="$LIBS"
7561          lt_save_CFLAGS="$CFLAGS"
7562          LIBS="conftstm.$ac_objext"
7563          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7564          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565  (eval $ac_link) 2>&5
7566  ac_status=$?
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7569            pipe_works=yes
7570          fi
7571          LIBS="$lt_save_LIBS"
7572          CFLAGS="$lt_save_CFLAGS"
7573        else
7574          echo "cannot find nm_test_func in $nlist" >&5
7575        fi
7576      else
7577        echo "cannot find nm_test_var in $nlist" >&5
7578      fi
7579    else
7580      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7581    fi
7582  else
7583    echo "$progname: failed program was:" >&5
7584    cat conftest.$ac_ext >&5
7585  fi
7586  rm -f conftest* conftst*
7587
7588  # Do not use the global_symbol_pipe unless it works.
7589  if test "$pipe_works" = yes; then
7590    break
7591  else
7592    lt_cv_sys_global_symbol_pipe=
7593  fi
7594done
7595
7596fi
7597
7598if test -z "$lt_cv_sys_global_symbol_pipe"; then
7599  lt_cv_sys_global_symbol_to_cdecl=
7600fi
7601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7602  echo "$as_me:$LINENO: result: failed" >&5
7603echo "${ECHO_T}failed" >&6
7604else
7605  echo "$as_me:$LINENO: result: ok" >&5
7606echo "${ECHO_T}ok" >&6
7607fi
7608
7609echo "$as_me:$LINENO: checking for objdir" >&5
7610echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7611if test "${lt_cv_objdir+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  rm -f .libs 2>/dev/null
7615mkdir .libs 2>/dev/null
7616if test -d .libs; then
7617  lt_cv_objdir=.libs
7618else
7619  # MS-DOS does not allow filenames that begin with a dot.
7620  lt_cv_objdir=_libs
7621fi
7622rmdir .libs 2>/dev/null
7623fi
7624echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7625echo "${ECHO_T}$lt_cv_objdir" >&6
7626objdir=$lt_cv_objdir
7627
7628
7629
7630
7631
7632case $host_os in
7633aix3*)
7634  # AIX sometimes has problems with the GCC collect2 program.  For some
7635  # reason, if we set the COLLECT_NAMES environment variable, the problems
7636  # vanish in a puff of smoke.
7637  if test "X${COLLECT_NAMES+set}" != Xset; then
7638    COLLECT_NAMES=
7639    export COLLECT_NAMES
7640  fi
7641  ;;
7642esac
7643
7644# Sed substitution that helps us do robust quoting.  It backslashifies
7645# metacharacters that are still active within double-quoted strings.
7646Xsed='sed -e 1s/^X//'
7647sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7648
7649# Same as above, but do not quote variable references.
7650double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7651
7652# Sed substitution to delay expansion of an escaped shell variable in a
7653# double_quote_subst'ed string.
7654delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7655
7656# Sed substitution to avoid accidental globbing in evaled expressions
7657no_glob_subst='s/\*/\\\*/g'
7658
7659# Constants:
7660rm="rm -f"
7661
7662# Global variables:
7663default_ofile=libtool
7664can_build_shared=yes
7665
7666# All known linkers require a `.a' archive for static linking (except MSVC,
7667# which needs '.lib').
7668libext=a
7669ltmain="$ac_aux_dir/ltmain.sh"
7670ofile="$default_ofile"
7671with_gnu_ld="$lt_cv_prog_gnu_ld"
7672
7673if test -n "$ac_tool_prefix"; then
7674  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7675set dummy ${ac_tool_prefix}ar; ac_word=$2
7676echo "$as_me:$LINENO: checking for $ac_word" >&5
7677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7678if test "${ac_cv_prog_AR+set}" = set; then
7679  echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681  if test -n "$AR"; then
7682  ac_cv_prog_AR="$AR" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  test -z "$as_dir" && as_dir=.
7689  for ac_exec_ext in '' $ac_executable_extensions; do
7690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691    ac_cv_prog_AR="${ac_tool_prefix}ar"
7692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693    break 2
7694  fi
7695done
7696done
7697
7698fi
7699fi
7700AR=$ac_cv_prog_AR
7701if test -n "$AR"; then
7702  echo "$as_me:$LINENO: result: $AR" >&5
7703echo "${ECHO_T}$AR" >&6
7704else
7705  echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6
7707fi
7708
7709fi
7710if test -z "$ac_cv_prog_AR"; then
7711  ac_ct_AR=$AR
7712  # Extract the first word of "ar", so it can be a program name with args.
7713set dummy ar; ac_word=$2
7714echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7716if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7717  echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719  if test -n "$ac_ct_AR"; then
7720  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725  IFS=$as_save_IFS
7726  test -z "$as_dir" && as_dir=.
7727  for ac_exec_ext in '' $ac_executable_extensions; do
7728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729    ac_cv_prog_ac_ct_AR="ar"
7730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731    break 2
7732  fi
7733done
7734done
7735
7736  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7737fi
7738fi
7739ac_ct_AR=$ac_cv_prog_ac_ct_AR
7740if test -n "$ac_ct_AR"; then
7741  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7742echo "${ECHO_T}$ac_ct_AR" >&6
7743else
7744  echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748  AR=$ac_ct_AR
7749else
7750  AR="$ac_cv_prog_AR"
7751fi
7752
7753if test -n "$ac_tool_prefix"; then
7754  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7755set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7756echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758if test "${ac_cv_prog_RANLIB+set}" = set; then
7759  echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761  if test -n "$RANLIB"; then
7762  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  test -z "$as_dir" && as_dir=.
7769  for ac_exec_ext in '' $ac_executable_extensions; do
7770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776done
7777
7778fi
7779fi
7780RANLIB=$ac_cv_prog_RANLIB
7781if test -n "$RANLIB"; then
7782  echo "$as_me:$LINENO: result: $RANLIB" >&5
7783echo "${ECHO_T}$RANLIB" >&6
7784else
7785  echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
7787fi
7788
7789fi
7790if test -z "$ac_cv_prog_RANLIB"; then
7791  ac_ct_RANLIB=$RANLIB
7792  # Extract the first word of "ranlib", so it can be a program name with args.
7793set dummy ranlib; ac_word=$2
7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7796if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  if test -n "$ac_ct_RANLIB"; then
7800  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805  IFS=$as_save_IFS
7806  test -z "$as_dir" && as_dir=.
7807  for ac_exec_ext in '' $ac_executable_extensions; do
7808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809    ac_cv_prog_ac_ct_RANLIB="ranlib"
7810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811    break 2
7812  fi
7813done
7814done
7815
7816  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7817fi
7818fi
7819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7820if test -n "$ac_ct_RANLIB"; then
7821  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7822echo "${ECHO_T}$ac_ct_RANLIB" >&6
7823else
7824  echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826fi
7827
7828  RANLIB=$ac_ct_RANLIB
7829else
7830  RANLIB="$ac_cv_prog_RANLIB"
7831fi
7832
7833if test -n "$ac_tool_prefix"; then
7834  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7835set dummy ${ac_tool_prefix}strip; ac_word=$2
7836echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838if test "${ac_cv_prog_STRIP+set}" = set; then
7839  echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841  if test -n "$STRIP"; then
7842  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  test -z "$as_dir" && as_dir=.
7849  for ac_exec_ext in '' $ac_executable_extensions; do
7850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856done
7857
7858fi
7859fi
7860STRIP=$ac_cv_prog_STRIP
7861if test -n "$STRIP"; then
7862  echo "$as_me:$LINENO: result: $STRIP" >&5
7863echo "${ECHO_T}$STRIP" >&6
7864else
7865  echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867fi
7868
7869fi
7870if test -z "$ac_cv_prog_STRIP"; then
7871  ac_ct_STRIP=$STRIP
7872  # Extract the first word of "strip", so it can be a program name with args.
7873set dummy strip; ac_word=$2
7874echo "$as_me:$LINENO: checking for $ac_word" >&5
7875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7877  echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879  if test -n "$ac_ct_STRIP"; then
7880  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7881else
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885  IFS=$as_save_IFS
7886  test -z "$as_dir" && as_dir=.
7887  for ac_exec_ext in '' $ac_executable_extensions; do
7888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889    ac_cv_prog_ac_ct_STRIP="strip"
7890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891    break 2
7892  fi
7893done
7894done
7895
7896  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7897fi
7898fi
7899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7900if test -n "$ac_ct_STRIP"; then
7901  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7902echo "${ECHO_T}$ac_ct_STRIP" >&6
7903else
7904  echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
7906fi
7907
7908  STRIP=$ac_ct_STRIP
7909else
7910  STRIP="$ac_cv_prog_STRIP"
7911fi
7912
7913
7914old_CC="$CC"
7915old_CFLAGS="$CFLAGS"
7916
7917# Set sane defaults for various variables
7918test -z "$AR" && AR=ar
7919test -z "$AR_FLAGS" && AR_FLAGS=cru
7920test -z "$AS" && AS=as
7921test -z "$CC" && CC=cc
7922test -z "$LTCC" && LTCC=$CC
7923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7924test -z "$DLLTOOL" && DLLTOOL=dlltool
7925test -z "$LD" && LD=ld
7926test -z "$LN_S" && LN_S="ln -s"
7927test -z "$MAGIC_CMD" && MAGIC_CMD=file
7928test -z "$NM" && NM=nm
7929test -z "$SED" && SED=sed
7930test -z "$OBJDUMP" && OBJDUMP=objdump
7931test -z "$RANLIB" && RANLIB=:
7932test -z "$STRIP" && STRIP=:
7933test -z "$ac_objext" && ac_objext=o
7934
7935# Determine commands to create old-style static archives.
7936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7937old_postinstall_cmds='chmod 644 $oldlib'
7938old_postuninstall_cmds=
7939
7940if test -n "$RANLIB"; then
7941  case $host_os in
7942  openbsd*)
7943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7944    ;;
7945  *)
7946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7947    ;;
7948  esac
7949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7950fi
7951
7952for cc_temp in $compiler""; do
7953  case $cc_temp in
7954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7956    \-*) ;;
7957    *) break;;
7958  esac
7959done
7960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7961
7962
7963# Only perform the check for file, if the check method requires it
7964case $deplibs_check_method in
7965file_magic*)
7966  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7967    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7968echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7970  echo $ECHO_N "(cached) $ECHO_C" >&6
7971else
7972  case $MAGIC_CMD in
7973[\\/*] |  ?:[\\/]*)
7974  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7975  ;;
7976*)
7977  lt_save_MAGIC_CMD="$MAGIC_CMD"
7978  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7979  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7980  for ac_dir in $ac_dummy; do
7981    IFS="$lt_save_ifs"
7982    test -z "$ac_dir" && ac_dir=.
7983    if test -f $ac_dir/${ac_tool_prefix}file; then
7984      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7985      if test -n "$file_magic_test_file"; then
7986        case $deplibs_check_method in
7987        "file_magic "*)
7988          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7989          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7990          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7991            $EGREP "$file_magic_regex" > /dev/null; then
7992            :
7993          else
7994            cat <<EOF 1>&2
7995
7996*** Warning: the command libtool uses to detect shared libraries,
7997*** $file_magic_cmd, produces output that libtool cannot recognize.
7998*** The result is that libtool may fail to recognize shared libraries
7999*** as such.  This will affect the creation of libtool libraries that
8000*** depend on shared libraries, but programs linked with such libtool
8001*** libraries will work regardless of this problem.  Nevertheless, you
8002*** may want to report the problem to your system manager and/or to
8003*** bug-libtool@gnu.org
8004
8005EOF
8006          fi ;;
8007        esac
8008      fi
8009      break
8010    fi
8011  done
8012  IFS="$lt_save_ifs"
8013  MAGIC_CMD="$lt_save_MAGIC_CMD"
8014  ;;
8015esac
8016fi
8017
8018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019if test -n "$MAGIC_CMD"; then
8020  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8021echo "${ECHO_T}$MAGIC_CMD" >&6
8022else
8023  echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025fi
8026
8027if test -z "$lt_cv_path_MAGIC_CMD"; then
8028  if test -n "$ac_tool_prefix"; then
8029    echo "$as_me:$LINENO: checking for file" >&5
8030echo $ECHO_N "checking for file... $ECHO_C" >&6
8031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8032  echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034  case $MAGIC_CMD in
8035[\\/*] |  ?:[\\/]*)
8036  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8037  ;;
8038*)
8039  lt_save_MAGIC_CMD="$MAGIC_CMD"
8040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8041  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8042  for ac_dir in $ac_dummy; do
8043    IFS="$lt_save_ifs"
8044    test -z "$ac_dir" && ac_dir=.
8045    if test -f $ac_dir/file; then
8046      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8047      if test -n "$file_magic_test_file"; then
8048        case $deplibs_check_method in
8049        "file_magic "*)
8050          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8051          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8053            $EGREP "$file_magic_regex" > /dev/null; then
8054            :
8055          else
8056            cat <<EOF 1>&2
8057
8058*** Warning: the command libtool uses to detect shared libraries,
8059*** $file_magic_cmd, produces output that libtool cannot recognize.
8060*** The result is that libtool may fail to recognize shared libraries
8061*** as such.  This will affect the creation of libtool libraries that
8062*** depend on shared libraries, but programs linked with such libtool
8063*** libraries will work regardless of this problem.  Nevertheless, you
8064*** may want to report the problem to your system manager and/or to
8065*** bug-libtool@gnu.org
8066
8067EOF
8068          fi ;;
8069        esac
8070      fi
8071      break
8072    fi
8073  done
8074  IFS="$lt_save_ifs"
8075  MAGIC_CMD="$lt_save_MAGIC_CMD"
8076  ;;
8077esac
8078fi
8079
8080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081if test -n "$MAGIC_CMD"; then
8082  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8083echo "${ECHO_T}$MAGIC_CMD" >&6
8084else
8085  echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6
8087fi
8088
8089  else
8090    MAGIC_CMD=:
8091  fi
8092fi
8093
8094  fi
8095  ;;
8096esac
8097
8098enable_dlopen=no
8099enable_win32_dll=no
8100
8101# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8102if test "${enable_libtool_lock+set}" = set; then
8103  enableval="$enable_libtool_lock"
8104
8105fi;
8106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8107
8108
8109# Check whether --with-pic or --without-pic was given.
8110if test "${with_pic+set}" = set; then
8111  withval="$with_pic"
8112  pic_mode="$withval"
8113else
8114  pic_mode=default
8115fi;
8116test -z "$pic_mode" && pic_mode=default
8117
8118# Use C for the default configuration in the libtool script
8119tagname=
8120lt_save_CC="$CC"
8121ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127
8128# Source file extension for C test sources.
8129ac_ext=c
8130
8131# Object file extension for compiled C test sources.
8132objext=o
8133objext=$objext
8134
8135# Code to be used in simple compile tests
8136lt_simple_compile_test_code="int some_variable = 0;\n"
8137
8138# Code to be used in simple link tests
8139lt_simple_link_test_code='int main(){return(0);}\n'
8140
8141
8142# If no C compiler was specified, use CC.
8143LTCC=${LTCC-"$CC"}
8144
8145# If no C compiler flags were specified, use CFLAGS.
8146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8147
8148# Allow CC to be a program name with arguments.
8149compiler=$CC
8150
8151
8152# save warnings/boilerplate of simple test code
8153ac_outfile=conftest.$ac_objext
8154printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8156_lt_compiler_boilerplate=`cat conftest.err`
8157$rm conftest*
8158
8159ac_outfile=conftest.$ac_objext
8160printf "$lt_simple_link_test_code" >conftest.$ac_ext
8161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8162_lt_linker_boilerplate=`cat conftest.err`
8163$rm conftest*
8164
8165
8166## CAVEAT EMPTOR:
8167## There is no encapsulation within the following macros, do not change
8168## the running order or otherwise move them around unless you know exactly
8169## what you are doing...
8170
8171lt_prog_compiler_no_builtin_flag=
8172
8173if test "$GCC" = yes; then
8174  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8175
8176
8177echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8178echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8179if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8180  echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182  lt_cv_prog_compiler_rtti_exceptions=no
8183  ac_outfile=conftest.$ac_objext
8184   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8185   lt_compiler_flag="-fno-rtti -fno-exceptions"
8186   # Insert the option either (1) after the last *FLAGS variable, or
8187   # (2) before a word containing "conftest.", or (3) at the end.
8188   # Note that $ac_compile itself does not contain backslashes and begins
8189   # with a dollar sign (not a hyphen), so the echo should work correctly.
8190   # The option is referenced via a variable to avoid confusing sed.
8191   lt_compile=`echo "$ac_compile" | $SED \
8192   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194   -e 's:$: $lt_compiler_flag:'`
8195   (eval echo "\"\$as_me:8195: $lt_compile\"" >&5)
8196   (eval "$lt_compile" 2>conftest.err)
8197   ac_status=$?
8198   cat conftest.err >&5
8199   echo "$as_me:8199: \$? = $ac_status" >&5
8200   if (exit $ac_status) && test -s "$ac_outfile"; then
8201     # The compiler can only warn and ignore the option if not recognized
8202     # So say no if there are warnings other than the usual output.
8203     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8204     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8205     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8206       lt_cv_prog_compiler_rtti_exceptions=yes
8207     fi
8208   fi
8209   $rm conftest*
8210
8211fi
8212echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8213echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8214
8215if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8216    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8217else
8218    :
8219fi
8220
8221fi
8222
8223lt_prog_compiler_wl=
8224lt_prog_compiler_pic=
8225lt_prog_compiler_static=
8226
8227echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8228echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8229
8230  if test "$GCC" = yes; then
8231    lt_prog_compiler_wl='-Wl,'
8232    lt_prog_compiler_static='-static'
8233
8234    case $host_os in
8235      aix*)
8236      # All AIX code is PIC.
8237      if test "$host_cpu" = ia64; then
8238        # AIX 5 now supports IA64 processor
8239        lt_prog_compiler_static='-Bstatic'
8240      fi
8241      ;;
8242
8243    amigaos*)
8244      # FIXME: we need at least 68020 code to build shared libraries, but
8245      # adding the `-m68020' flag to GCC prevents building anything better,
8246      # like `-m68040'.
8247      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8248      ;;
8249
8250    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8251      # PIC is the default for these OSes.
8252      ;;
8253
8254    mingw* | pw32* | os2*)
8255      # This hack is so that the source file can tell whether it is being
8256      # built for inclusion in a dll (and should export symbols for example).
8257      lt_prog_compiler_pic='-DDLL_EXPORT'
8258      ;;
8259
8260    darwin* | rhapsody*)
8261      # PIC is the default on this platform
8262      # Common symbols not allowed in MH_DYLIB files
8263      lt_prog_compiler_pic='-fno-common'
8264      ;;
8265
8266    interix3*)
8267      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8268      # Instead, we relocate shared libraries at runtime.
8269      ;;
8270
8271    msdosdjgpp*)
8272      # Just because we use GCC doesn't mean we suddenly get shared libraries
8273      # on systems that don't support them.
8274      lt_prog_compiler_can_build_shared=no
8275      enable_shared=no
8276      ;;
8277
8278    sysv4*MP*)
8279      if test -d /usr/nec; then
8280        lt_prog_compiler_pic=-Kconform_pic
8281      fi
8282      ;;
8283
8284    hpux*)
8285      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8286      # not for PA HP-UX.
8287      case $host_cpu in
8288      hppa*64*|ia64*)
8289        # +Z the default
8290        ;;
8291      *)
8292        lt_prog_compiler_pic='-fPIC'
8293        ;;
8294      esac
8295      ;;
8296
8297    *)
8298      lt_prog_compiler_pic='-fPIC'
8299      ;;
8300    esac
8301  else
8302    # PORTME Check for flag to pass linker flags through the system compiler.
8303    case $host_os in
8304    aix*)
8305      lt_prog_compiler_wl='-Wl,'
8306      if test "$host_cpu" = ia64; then
8307        # AIX 5 now supports IA64 processor
8308        lt_prog_compiler_static='-Bstatic'
8309      else
8310        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8311      fi
8312      ;;
8313      darwin*)
8314        # PIC is the default on this platform
8315        # Common symbols not allowed in MH_DYLIB files
8316       case $cc_basename in
8317         xlc*)
8318         lt_prog_compiler_pic='-qnocommon'
8319         lt_prog_compiler_wl='-Wl,'
8320         ;;
8321       esac
8322       ;;
8323
8324    mingw* | pw32* | os2*)
8325      # This hack is so that the source file can tell whether it is being
8326      # built for inclusion in a dll (and should export symbols for example).
8327      lt_prog_compiler_pic='-DDLL_EXPORT'
8328      ;;
8329
8330    hpux9* | hpux10* | hpux11*)
8331      lt_prog_compiler_wl='-Wl,'
8332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333      # not for PA HP-UX.
8334      case $host_cpu in
8335      hppa*64*|ia64*)
8336        # +Z the default
8337        ;;
8338      *)
8339        lt_prog_compiler_pic='+Z'
8340        ;;
8341      esac
8342      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8343      lt_prog_compiler_static='${wl}-a ${wl}archive'
8344      ;;
8345
8346    irix5* | irix6* | nonstopux*)
8347      lt_prog_compiler_wl='-Wl,'
8348      # PIC (with -KPIC) is the default.
8349      lt_prog_compiler_static='-non_shared'
8350      ;;
8351
8352    newsos6)
8353      lt_prog_compiler_pic='-KPIC'
8354      lt_prog_compiler_static='-Bstatic'
8355      ;;
8356
8357    linux*)
8358      case $cc_basename in
8359      icc* | ecc*)
8360        lt_prog_compiler_wl='-Wl,'
8361        lt_prog_compiler_pic='-KPIC'
8362        lt_prog_compiler_static='-static'
8363        ;;
8364      pgcc* | pgf77* | pgf90* | pgf95*)
8365        # Portland Group compilers (*not* the Pentium gcc compiler,
8366        # which looks to be a dead project)
8367        lt_prog_compiler_wl='-Wl,'
8368        lt_prog_compiler_pic='-fpic'
8369        lt_prog_compiler_static='-Bstatic'
8370        ;;
8371      ccc*)
8372        lt_prog_compiler_wl='-Wl,'
8373        # All Alpha code is PIC.
8374        lt_prog_compiler_static='-non_shared'
8375        ;;
8376      esac
8377      ;;
8378
8379    osf3* | osf4* | osf5*)
8380      lt_prog_compiler_wl='-Wl,'
8381      # All OSF/1 code is PIC.
8382      lt_prog_compiler_static='-non_shared'
8383      ;;
8384
8385    solaris*)
8386      lt_prog_compiler_pic='-KPIC'
8387      lt_prog_compiler_static='-Bstatic'
8388      case $cc_basename in
8389      f77* | f90* | f95*)
8390        lt_prog_compiler_wl='-Qoption ld ';;
8391      *)
8392        lt_prog_compiler_wl='-Wl,';;
8393      esac
8394      ;;
8395
8396    sunos4*)
8397      lt_prog_compiler_wl='-Qoption ld '
8398      lt_prog_compiler_pic='-PIC'
8399      lt_prog_compiler_static='-Bstatic'
8400      ;;
8401
8402    sysv4 | sysv4.2uw2* | sysv4.3*)
8403      lt_prog_compiler_wl='-Wl,'
8404      lt_prog_compiler_pic='-KPIC'
8405      lt_prog_compiler_static='-Bstatic'
8406      ;;
8407
8408    sysv4*MP*)
8409      if test -d /usr/nec ;then
8410        lt_prog_compiler_pic='-Kconform_pic'
8411        lt_prog_compiler_static='-Bstatic'
8412      fi
8413      ;;
8414
8415    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8416      lt_prog_compiler_wl='-Wl,'
8417      lt_prog_compiler_pic='-KPIC'
8418      lt_prog_compiler_static='-Bstatic'
8419      ;;
8420
8421    unicos*)
8422      lt_prog_compiler_wl='-Wl,'
8423      lt_prog_compiler_can_build_shared=no
8424      ;;
8425
8426    uts4*)
8427      lt_prog_compiler_pic='-pic'
8428      lt_prog_compiler_static='-Bstatic'
8429      ;;
8430
8431    *)
8432      lt_prog_compiler_can_build_shared=no
8433      ;;
8434    esac
8435  fi
8436
8437echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8438echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8439
8440#
8441# Check to make sure the PIC flag actually works.
8442#
8443if test -n "$lt_prog_compiler_pic"; then
8444
8445echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8447if test "${lt_prog_compiler_pic_works+set}" = set; then
8448  echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450  lt_prog_compiler_pic_works=no
8451  ac_outfile=conftest.$ac_objext
8452   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8453   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454   # Insert the option either (1) after the last *FLAGS variable, or
8455   # (2) before a word containing "conftest.", or (3) at the end.
8456   # Note that $ac_compile itself does not contain backslashes and begins
8457   # with a dollar sign (not a hyphen), so the echo should work correctly.
8458   # The option is referenced via a variable to avoid confusing sed.
8459   lt_compile=`echo "$ac_compile" | $SED \
8460   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462   -e 's:$: $lt_compiler_flag:'`
8463   (eval echo "\"\$as_me:8463: $lt_compile\"" >&5)
8464   (eval "$lt_compile" 2>conftest.err)
8465   ac_status=$?
8466   cat conftest.err >&5
8467   echo "$as_me:8467: \$? = $ac_status" >&5
8468   if (exit $ac_status) && test -s "$ac_outfile"; then
8469     # The compiler can only warn and ignore the option if not recognized
8470     # So say no if there are warnings other than the usual output.
8471     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8472     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474       lt_prog_compiler_pic_works=yes
8475     fi
8476   fi
8477   $rm conftest*
8478
8479fi
8480echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8481echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8482
8483if test x"$lt_prog_compiler_pic_works" = xyes; then
8484    case $lt_prog_compiler_pic in
8485     "" | " "*) ;;
8486     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8487     esac
8488else
8489    lt_prog_compiler_pic=
8490     lt_prog_compiler_can_build_shared=no
8491fi
8492
8493fi
8494case $host_os in
8495  # For platforms which do not support PIC, -DPIC is meaningless:
8496  *djgpp*)
8497    lt_prog_compiler_pic=
8498    ;;
8499  *)
8500    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8501    ;;
8502esac
8503
8504#
8505# Check to make sure the static flag actually works.
8506#
8507wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8508echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8509echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8510if test "${lt_prog_compiler_static_works+set}" = set; then
8511  echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513  lt_prog_compiler_static_works=no
8514   save_LDFLAGS="$LDFLAGS"
8515   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8516   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8517   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8518     # The linker can only warn and ignore the option if not recognized
8519     # So say no if there are warnings
8520     if test -s conftest.err; then
8521       # Append any errors to the config.log.
8522       cat conftest.err 1>&5
8523       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8524       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525       if diff conftest.exp conftest.er2 >/dev/null; then
8526         lt_prog_compiler_static_works=yes
8527       fi
8528     else
8529       lt_prog_compiler_static_works=yes
8530     fi
8531   fi
8532   $rm conftest*
8533   LDFLAGS="$save_LDFLAGS"
8534
8535fi
8536echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8537echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8538
8539if test x"$lt_prog_compiler_static_works" = xyes; then
8540    :
8541else
8542    lt_prog_compiler_static=
8543fi
8544
8545
8546echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8547echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8548if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551  lt_cv_prog_compiler_c_o=no
8552   $rm -r conftest 2>/dev/null
8553   mkdir conftest
8554   cd conftest
8555   mkdir out
8556   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8557
8558   lt_compiler_flag="-o out/conftest2.$ac_objext"
8559   # Insert the option either (1) after the last *FLAGS variable, or
8560   # (2) before a word containing "conftest.", or (3) at the end.
8561   # Note that $ac_compile itself does not contain backslashes and begins
8562   # with a dollar sign (not a hyphen), so the echo should work correctly.
8563   lt_compile=`echo "$ac_compile" | $SED \
8564   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566   -e 's:$: $lt_compiler_flag:'`
8567   (eval echo "\"\$as_me:8567: $lt_compile\"" >&5)
8568   (eval "$lt_compile" 2>out/conftest.err)
8569   ac_status=$?
8570   cat out/conftest.err >&5
8571   echo "$as_me:8571: \$? = $ac_status" >&5
8572   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8573   then
8574     # The compiler can only warn and ignore the option if not recognized
8575     # So say no if there are warnings
8576     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8577     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8578     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8579       lt_cv_prog_compiler_c_o=yes
8580     fi
8581   fi
8582   chmod u+w . 2>&5
8583   $rm conftest*
8584   # SGI C++ compiler will create directory out/ii_files/ for
8585   # template instantiation
8586   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8587   $rm out/* && rmdir out
8588   cd ..
8589   rmdir conftest
8590   $rm conftest*
8591
8592fi
8593echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8594echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8595
8596
8597hard_links="nottested"
8598if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8599  # do not overwrite the value of need_locks provided by the user
8600  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8601echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8602  hard_links=yes
8603  $rm conftest*
8604  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8605  touch conftest.a
8606  ln conftest.a conftest.b 2>&5 || hard_links=no
8607  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8608  echo "$as_me:$LINENO: result: $hard_links" >&5
8609echo "${ECHO_T}$hard_links" >&6
8610  if test "$hard_links" = no; then
8611    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8612echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8613    need_locks=warn
8614  fi
8615else
8616  need_locks=no
8617fi
8618
8619echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8621
8622  runpath_var=
8623  allow_undefined_flag=
8624  enable_shared_with_static_runtimes=no
8625  archive_cmds=
8626  archive_expsym_cmds=
8627  old_archive_From_new_cmds=
8628  old_archive_from_expsyms_cmds=
8629  export_dynamic_flag_spec=
8630  whole_archive_flag_spec=
8631  thread_safe_flag_spec=
8632  hardcode_libdir_flag_spec=
8633  hardcode_libdir_flag_spec_ld=
8634  hardcode_libdir_separator=
8635  hardcode_direct=no
8636  hardcode_minus_L=no
8637  hardcode_shlibpath_var=unsupported
8638  link_all_deplibs=unknown
8639  hardcode_automatic=no
8640  module_cmds=
8641  module_expsym_cmds=
8642  always_export_symbols=no
8643  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8644  # include_expsyms should be a list of space-separated symbols to be *always*
8645  # included in the symbol list
8646  include_expsyms=
8647  # exclude_expsyms can be an extended regexp of symbols to exclude
8648  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8649  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8650  # as well as any symbol that contains `d'.
8651  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8652  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8653  # platforms (ab)use it in PIC code, but their linkers get confused if
8654  # the symbol is explicitly referenced.  Since portable code cannot
8655  # rely on this symbol name, it's probably fine to never include it in
8656  # preloaded symbol tables.
8657  extract_expsyms_cmds=
8658  # Just being paranoid about ensuring that cc_basename is set.
8659  for cc_temp in $compiler""; do
8660  case $cc_temp in
8661    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8662    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8663    \-*) ;;
8664    *) break;;
8665  esac
8666done
8667cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8668
8669  case $host_os in
8670  cygwin* | mingw* | pw32*)
8671    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8672    # When not using gcc, we currently assume that we are using
8673    # Microsoft Visual C++.
8674    if test "$GCC" != yes; then
8675      with_gnu_ld=no
8676    fi
8677    ;;
8678  interix*)
8679    # we just hope/assume this is gcc and not c89 (= MSVC++)
8680    with_gnu_ld=yes
8681    ;;
8682  openbsd*)
8683    with_gnu_ld=no
8684    ;;
8685  esac
8686
8687  ld_shlibs=yes
8688  if test "$with_gnu_ld" = yes; then
8689    # If archive_cmds runs LD, not CC, wlarc should be empty
8690    wlarc='${wl}'
8691
8692    # Set some defaults for GNU ld with shared library support. These
8693    # are reset later if shared libraries are not supported. Putting them
8694    # here allows them to be overridden if necessary.
8695    runpath_var=LD_RUN_PATH
8696    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8697    export_dynamic_flag_spec='${wl}--export-dynamic'
8698    # ancient GNU ld didn't support --whole-archive et. al.
8699    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8700        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8701      else
8702        whole_archive_flag_spec=
8703    fi
8704    supports_anon_versioning=no
8705    case `$LD -v 2>/dev/null` in
8706      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8707      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8708      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8709      *\ 2.11.*) ;; # other 2.11 versions
8710      *) supports_anon_versioning=yes ;;
8711    esac
8712
8713    # See if GNU ld supports shared libraries.
8714    case $host_os in
8715    aix3* | aix4* | aix5*)
8716      # On AIX/PPC, the GNU linker is very broken
8717      if test "$host_cpu" != ia64; then
8718        ld_shlibs=no
8719        cat <<EOF 1>&2
8720
8721*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8722*** to be unable to reliably create shared libraries on AIX.
8723*** Therefore, libtool is disabling shared libraries support.  If you
8724*** really care for shared libraries, you may want to modify your PATH
8725*** so that a non-GNU linker is found, and then restart.
8726
8727EOF
8728      fi
8729      ;;
8730
8731    amigaos*)
8732      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)'
8733      hardcode_libdir_flag_spec='-L$libdir'
8734      hardcode_minus_L=yes
8735
8736      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8737      # that the semantics of dynamic libraries on AmigaOS, at least up
8738      # to version 4, is to share data among multiple programs linked
8739      # with the same dynamic library.  Since this doesn't match the
8740      # behavior of shared libraries on other platforms, we can't use
8741      # them.
8742      ld_shlibs=no
8743      ;;
8744
8745    beos*)
8746      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8747        allow_undefined_flag=unsupported
8748        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8749        # support --undefined.  This deserves some investigation.  FIXME
8750        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751      else
8752        ld_shlibs=no
8753      fi
8754      ;;
8755
8756    cygwin* | mingw* | pw32*)
8757      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8758      # as there is no search path for DLLs.
8759      hardcode_libdir_flag_spec='-L$libdir'
8760      allow_undefined_flag=unsupported
8761      always_export_symbols=no
8762      enable_shared_with_static_runtimes=yes
8763      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8764
8765      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8766        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8767        # If the export-symbols file already is a .def file (1st line
8768        # is EXPORTS), use it as is; otherwise, prepend...
8769        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8770          cp $export_symbols $output_objdir/$soname.def;
8771        else
8772          echo EXPORTS > $output_objdir/$soname.def;
8773          cat $export_symbols >> $output_objdir/$soname.def;
8774        fi~
8775        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8776      else
8777        ld_shlibs=no
8778      fi
8779      ;;
8780
8781    interix3*)
8782      hardcode_direct=no
8783      hardcode_shlibpath_var=no
8784      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8785      export_dynamic_flag_spec='${wl}-E'
8786      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8787      # Instead, shared libraries are loaded at an image base (0x10000000 by
8788      # default) and relocated if they conflict, which is a slow very memory
8789      # consuming and fragmenting process.  To avoid this, we pick a random,
8790      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8791      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8792      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8793      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'
8794      ;;
8795
8796    linux*)
8797      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8798        tmp_addflag=
8799        case $cc_basename,$host_cpu in
8800        pgcc*)                          # Portland Group C compiler
8801          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'
8802          tmp_addflag=' $pic_flag'
8803          ;;
8804        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8805          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'
8806          tmp_addflag=' $pic_flag -Mnomain' ;;
8807        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8808          tmp_addflag=' -i_dynamic' ;;
8809        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8810          tmp_addflag=' -i_dynamic -nofor_main' ;;
8811        ifc* | ifort*)                  # Intel Fortran compiler
8812          tmp_addflag=' -nofor_main' ;;
8813        esac
8814        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815
8816        if test $supports_anon_versioning = yes; then
8817          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8818  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8819  $echo "local: *; };" >> $output_objdir/$libname.ver~
8820          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8821        fi
8822      else
8823        ld_shlibs=no
8824      fi
8825      ;;
8826
8827    netbsd*)
8828      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8829        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8830        wlarc=
8831      else
8832        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8834      fi
8835      ;;
8836
8837    solaris*)
8838      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8839        ld_shlibs=no
8840        cat <<EOF 1>&2
8841
8842*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8843*** create shared libraries on Solaris systems.  Therefore, libtool
8844*** is disabling shared libraries support.  We urge you to upgrade GNU
8845*** binutils to release 2.9.1 or newer.  Another option is to modify
8846*** your PATH or compiler configuration so that the native linker is
8847*** used, and then restart.
8848
8849EOF
8850      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8851        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8853      else
8854        ld_shlibs=no
8855      fi
8856      ;;
8857
8858    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8859      case `$LD -v 2>&1` in
8860        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8861        ld_shlibs=no
8862        cat <<_LT_EOF 1>&2
8863
8864*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8865*** reliably create shared libraries on SCO systems.  Therefore, libtool
8866*** is disabling shared libraries support.  We urge you to upgrade GNU
8867*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8868*** your PATH or compiler configuration so that the native linker is
8869*** used, and then restart.
8870
8871_LT_EOF
8872        ;;
8873        *)
8874          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8875            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8876            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8877            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8878          else
8879            ld_shlibs=no
8880          fi
8881        ;;
8882      esac
8883      ;;
8884
8885    sunos4*)
8886      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8887      wlarc=
8888      hardcode_direct=yes
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    *)
8893      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8894        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8896      else
8897        ld_shlibs=no
8898      fi
8899      ;;
8900    esac
8901
8902    if test "$ld_shlibs" = no; then
8903      runpath_var=
8904      hardcode_libdir_flag_spec=
8905      export_dynamic_flag_spec=
8906      whole_archive_flag_spec=
8907    fi
8908  else
8909    # PORTME fill in a description of your system's linker (not GNU ld)
8910    case $host_os in
8911    aix3*)
8912      allow_undefined_flag=unsupported
8913      always_export_symbols=yes
8914      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'
8915      # Note: this linker hardcodes the directories in LIBPATH if there
8916      # are no directories specified by -L.
8917      hardcode_minus_L=yes
8918      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8919        # Neither direct hardcoding nor static linking is supported with a
8920        # broken collect2.
8921        hardcode_direct=unsupported
8922      fi
8923      ;;
8924
8925    aix4* | aix5*)
8926      if test "$host_cpu" = ia64; then
8927        # On IA64, the linker does run time linking by default, so we don't
8928        # have to do anything special.
8929        aix_use_runtimelinking=no
8930        exp_sym_flag='-Bexport'
8931        no_entry_flag=""
8932      else
8933        # If we're using GNU nm, then we don't want the "-C" option.
8934        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8935        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8936          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'
8937        else
8938          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'
8939        fi
8940        aix_use_runtimelinking=no
8941
8942        # Test if we are trying to use run time linking or normal
8943        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8944        # need to do runtime linking.
8945        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8946          for ld_flag in $LDFLAGS; do
8947          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8948            aix_use_runtimelinking=yes
8949            break
8950          fi
8951          done
8952          ;;
8953        esac
8954
8955        exp_sym_flag='-bexport'
8956        no_entry_flag='-bnoentry'
8957      fi
8958
8959      # When large executables or shared objects are built, AIX ld can
8960      # have problems creating the table of contents.  If linking a library
8961      # or program results in "error TOC overflow" add -mminimal-toc to
8962      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8963      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8964
8965      archive_cmds=''
8966      hardcode_direct=yes
8967      hardcode_libdir_separator=':'
8968      link_all_deplibs=yes
8969
8970      if test "$GCC" = yes; then
8971        case $host_os in aix4.[012]|aix4.[012].*)
8972        # We only want to do this on AIX 4.2 and lower, the check
8973        # below for broken collect2 doesn't work under 4.3+
8974          collect2name=`${CC} -print-prog-name=collect2`
8975          if test -f "$collect2name" && \
8976           strings "$collect2name" | grep resolve_lib_name >/dev/null
8977          then
8978          # We have reworked collect2
8979          hardcode_direct=yes
8980          else
8981          # We have old collect2
8982          hardcode_direct=unsupported
8983          # It fails to find uninstalled libraries when the uninstalled
8984          # path is not listed in the libpath.  Setting hardcode_minus_L
8985          # to unsupported forces relinking
8986          hardcode_minus_L=yes
8987          hardcode_libdir_flag_spec='-L$libdir'
8988          hardcode_libdir_separator=
8989          fi
8990          ;;
8991        esac
8992        shared_flag='-shared'
8993        if test "$aix_use_runtimelinking" = yes; then
8994          shared_flag="$shared_flag "'${wl}-G'
8995        fi
8996      else
8997        # not using gcc
8998        if test "$host_cpu" = ia64; then
8999        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9000        # chokes on -Wl,-G. The following line is correct:
9001          shared_flag='-G'
9002        else
9003          if test "$aix_use_runtimelinking" = yes; then
9004            shared_flag='${wl}-G'
9005          else
9006            shared_flag='${wl}-bM:SRE'
9007          fi
9008        fi
9009      fi
9010
9011      # It seems that -bexpall does not export symbols beginning with
9012      # underscore (_), so it is better to generate a list of symbols to export.
9013      always_export_symbols=yes
9014      if test "$aix_use_runtimelinking" = yes; then
9015        # Warning - without using the other runtime loading flags (-brtl),
9016        # -berok will link without error, but may produce a broken library.
9017        allow_undefined_flag='-berok'
9018       # Determine the default libpath from the value encoded in an empty executable.
9019       cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h.  */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h.  */
9025
9026int
9027main ()
9028{
9029
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034rm -f conftest.$ac_objext conftest$ac_exeext
9035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036  (eval $ac_link) 2>conftest.er1
9037  ac_status=$?
9038  grep -v '^ *+' conftest.er1 >conftest.err
9039  rm -f conftest.er1
9040  cat conftest.err >&5
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); } &&
9043         { ac_try='test -z "$ac_c_werror_flag"
9044                         || test ! -s conftest.err'
9045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046  (eval $ac_try) 2>&5
9047  ac_status=$?
9048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049  (exit $ac_status); }; } &&
9050         { ac_try='test -s conftest$ac_exeext'
9051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052  (eval $ac_try) 2>&5
9053  ac_status=$?
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); }; }; then
9056
9057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9058}'`
9059# Check for a 64-bit object if we didn't find anything.
9060if 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; }
9061}'`; fi
9062else
9063  echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
9066fi
9067rm -f conftest.err conftest.$ac_objext \
9068      conftest$ac_exeext conftest.$ac_ext
9069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9070
9071       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9072        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"
9073       else
9074        if test "$host_cpu" = ia64; then
9075          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9076          allow_undefined_flag="-z nodefs"
9077          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"
9078        else
9079         # Determine the default libpath from the value encoded in an empty executable.
9080         cat >conftest.$ac_ext <<_ACEOF
9081/* confdefs.h.  */
9082_ACEOF
9083cat confdefs.h >>conftest.$ac_ext
9084cat >>conftest.$ac_ext <<_ACEOF
9085/* end confdefs.h.  */
9086
9087int
9088main ()
9089{
9090
9091  ;
9092  return 0;
9093}
9094_ACEOF
9095rm -f conftest.$ac_objext conftest$ac_exeext
9096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097  (eval $ac_link) 2>conftest.er1
9098  ac_status=$?
9099  grep -v '^ *+' conftest.er1 >conftest.err
9100  rm -f conftest.er1
9101  cat conftest.err >&5
9102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103  (exit $ac_status); } &&
9104         { ac_try='test -z "$ac_c_werror_flag"
9105                         || test ! -s conftest.err'
9106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107  (eval $ac_try) 2>&5
9108  ac_status=$?
9109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110  (exit $ac_status); }; } &&
9111         { ac_try='test -s conftest$ac_exeext'
9112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113  (eval $ac_try) 2>&5
9114  ac_status=$?
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); }; }; then
9117
9118aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9119}'`
9120# Check for a 64-bit object if we didn't find anything.
9121if 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; }
9122}'`; fi
9123else
9124  echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127fi
9128rm -f conftest.err conftest.$ac_objext \
9129      conftest$ac_exeext conftest.$ac_ext
9130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9131
9132         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9133          # Warning - without using the other run time loading flags,
9134          # -berok will link without error, but may produce a broken library.
9135          no_undefined_flag=' ${wl}-bernotok'
9136          allow_undefined_flag=' ${wl}-berok'
9137          # Exported symbols can be pulled into shared objects from archives
9138          whole_archive_flag_spec='$convenience'
9139          archive_cmds_need_lc=yes
9140          # This is similar to how AIX traditionally builds its shared libraries.
9141          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'
9142        fi
9143      fi
9144      ;;
9145
9146    amigaos*)
9147      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)'
9148      hardcode_libdir_flag_spec='-L$libdir'
9149      hardcode_minus_L=yes
9150      # see comment about different semantics on the GNU ld section
9151      ld_shlibs=no
9152      ;;
9153
9154    bsdi[45]*)
9155      export_dynamic_flag_spec=-rdynamic
9156      ;;
9157
9158    cygwin* | mingw* | pw32*)
9159      # When not using gcc, we currently assume that we are using
9160      # Microsoft Visual C++.
9161      # hardcode_libdir_flag_spec is actually meaningless, as there is
9162      # no search path for DLLs.
9163      hardcode_libdir_flag_spec=' '
9164      allow_undefined_flag=unsupported
9165      # Tell ltmain to make .lib files, not .a files.
9166      libext=lib
9167      # Tell ltmain to make .dll files, not .so files.
9168      shrext_cmds=".dll"
9169      # FIXME: Setting linknames here is a bad hack.
9170      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9171      # The linker will automatically build a .lib file if we build a DLL.
9172      old_archive_From_new_cmds='true'
9173      # FIXME: Should let the user specify the lib program.
9174      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9175      fix_srcfile_path='`cygpath -w "$srcfile"`'
9176      enable_shared_with_static_runtimes=yes
9177      ;;
9178
9179    darwin* | rhapsody*)
9180      case $host_os in
9181        rhapsody* | darwin1.[012])
9182         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9183         ;;
9184       *) # Darwin 1.3 on
9185         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9186           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9187         else
9188           case ${MACOSX_DEPLOYMENT_TARGET} in
9189             10.[012])
9190               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9191               ;;
9192             10.*)
9193               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9194               ;;
9195           esac
9196         fi
9197         ;;
9198      esac
9199      archive_cmds_need_lc=no
9200      hardcode_direct=no
9201      hardcode_automatic=yes
9202      hardcode_shlibpath_var=unsupported
9203      whole_archive_flag_spec=''
9204      link_all_deplibs=yes
9205    if test "$GCC" = yes ; then
9206        output_verbose_link_cmd='echo'
9207        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9208      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9209      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9210      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}'
9211      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}'
9212    else
9213      case $cc_basename in
9214        xlc*)
9215         output_verbose_link_cmd='echo'
9216         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9217         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9218          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9219         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}'
9220          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}'
9221          ;;
9222       *)
9223         ld_shlibs=no
9224          ;;
9225      esac
9226    fi
9227      ;;
9228
9229    dgux*)
9230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231      hardcode_libdir_flag_spec='-L$libdir'
9232      hardcode_shlibpath_var=no
9233      ;;
9234
9235    freebsd1*)
9236      ld_shlibs=no
9237      ;;
9238
9239    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9240    # support.  Future versions do this automatically, but an explicit c++rt0.o
9241    # does not break anything, and helps significantly (at the cost of a little
9242    # extra space).
9243    freebsd2.2*)
9244      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9245      hardcode_libdir_flag_spec='-R$libdir'
9246      hardcode_direct=yes
9247      hardcode_shlibpath_var=no
9248      ;;
9249
9250    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9251    freebsd2*)
9252      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253      hardcode_direct=yes
9254      hardcode_minus_L=yes
9255      hardcode_shlibpath_var=no
9256      ;;
9257
9258    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9259    freebsd* | kfreebsd*-gnu | dragonfly*)
9260      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9261      hardcode_libdir_flag_spec='-R$libdir'
9262      hardcode_direct=yes
9263      hardcode_shlibpath_var=no
9264      ;;
9265
9266    hpux9*)
9267      if test "$GCC" = yes; then
9268        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'
9269      else
9270        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'
9271      fi
9272      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9273      hardcode_libdir_separator=:
9274      hardcode_direct=yes
9275
9276      # hardcode_minus_L: Not really in the search PATH,
9277      # but as the default location of the library.
9278      hardcode_minus_L=yes
9279      export_dynamic_flag_spec='${wl}-E'
9280      ;;
9281
9282    hpux10*)
9283      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9284        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9285      else
9286        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9287      fi
9288      if test "$with_gnu_ld" = no; then
9289        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9290        hardcode_libdir_separator=:
9291
9292        hardcode_direct=yes
9293        export_dynamic_flag_spec='${wl}-E'
9294
9295        # hardcode_minus_L: Not really in the search PATH,
9296        # but as the default location of the library.
9297        hardcode_minus_L=yes
9298      fi
9299      ;;
9300
9301    hpux11*)
9302      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9303        case $host_cpu in
9304        hppa*64*)
9305          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9306          ;;
9307        ia64*)
9308          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9309          ;;
9310        *)
9311          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9312          ;;
9313        esac
9314      else
9315        case $host_cpu in
9316        hppa*64*)
9317          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9318          ;;
9319        ia64*)
9320          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9321          ;;
9322        *)
9323          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324          ;;
9325        esac
9326      fi
9327      if test "$with_gnu_ld" = no; then
9328        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329        hardcode_libdir_separator=:
9330
9331        case $host_cpu in
9332        hppa*64*|ia64*)
9333          hardcode_libdir_flag_spec_ld='+b $libdir'
9334          hardcode_direct=no
9335          hardcode_shlibpath_var=no
9336          ;;
9337        *)
9338          hardcode_direct=yes
9339          export_dynamic_flag_spec='${wl}-E'
9340
9341          # hardcode_minus_L: Not really in the search PATH,
9342          # but as the default location of the library.
9343          hardcode_minus_L=yes
9344          ;;
9345        esac
9346      fi
9347      ;;
9348
9349    irix5* | irix6* | nonstopux*)
9350      if test "$GCC" = yes; then
9351        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'
9352      else
9353        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'
9354        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9355      fi
9356      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357      hardcode_libdir_separator=:
9358      link_all_deplibs=yes
9359      ;;
9360
9361    netbsd*)
9362      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9363        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9364      else
9365        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9366      fi
9367      hardcode_libdir_flag_spec='-R$libdir'
9368      hardcode_direct=yes
9369      hardcode_shlibpath_var=no
9370      ;;
9371
9372    newsos6)
9373      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374      hardcode_direct=yes
9375      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376      hardcode_libdir_separator=:
9377      hardcode_shlibpath_var=no
9378      ;;
9379
9380    openbsd*)
9381      hardcode_direct=yes
9382      hardcode_shlibpath_var=no
9383      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9384        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9385        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9386        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9387        export_dynamic_flag_spec='${wl}-E'
9388      else
9389       case $host_os in
9390         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9391           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392           hardcode_libdir_flag_spec='-R$libdir'
9393           ;;
9394         *)
9395           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9396           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9397           ;;
9398       esac
9399      fi
9400      ;;
9401
9402    os2*)
9403      hardcode_libdir_flag_spec='-L$libdir'
9404      hardcode_minus_L=yes
9405      allow_undefined_flag=unsupported
9406      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'
9407      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9408      ;;
9409
9410    osf3*)
9411      if test "$GCC" = yes; then
9412        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9413        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'
9414      else
9415        allow_undefined_flag=' -expect_unresolved \*'
9416        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'
9417      fi
9418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419      hardcode_libdir_separator=:
9420      ;;
9421
9422    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9423      if test "$GCC" = yes; then
9424        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9425        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'
9426        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427      else
9428        allow_undefined_flag=' -expect_unresolved \*'
9429        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'
9430        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9431        $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'
9432
9433        # Both c and cxx compiler support -rpath directly
9434        hardcode_libdir_flag_spec='-rpath $libdir'
9435      fi
9436      hardcode_libdir_separator=:
9437      ;;
9438
9439    solaris*)
9440      no_undefined_flag=' -z text'
9441      if test "$GCC" = yes; then
9442        wlarc='${wl}'
9443        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9444        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9445          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9446      else
9447        wlarc=''
9448        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9450        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9451      fi
9452      hardcode_libdir_flag_spec='-R$libdir'
9453      hardcode_shlibpath_var=no
9454      case $host_os in
9455      solaris2.[0-5] | solaris2.[0-5].*) ;;
9456      *)
9457        # The compiler driver will combine linker options so we
9458        # cannot just pass the convience library names through
9459        # without $wl, iff we do not link with $LD.
9460        # Luckily, gcc supports the same syntax we need for Sun Studio.
9461        # Supported since Solaris 2.6 (maybe 2.5.1?)
9462        case $wlarc in
9463        '')
9464          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9465        *)
9466          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' ;;
9467        esac ;;
9468      esac
9469      link_all_deplibs=yes
9470      ;;
9471
9472    sunos4*)
9473      if test "x$host_vendor" = xsequent; then
9474        # Use $CC to link under sequent, because it throws in some extra .o
9475        # files that make .init and .fini sections work.
9476        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9477      else
9478        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9479      fi
9480      hardcode_libdir_flag_spec='-L$libdir'
9481      hardcode_direct=yes
9482      hardcode_minus_L=yes
9483      hardcode_shlibpath_var=no
9484      ;;
9485
9486    sysv4)
9487      case $host_vendor in
9488        sni)
9489          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490          hardcode_direct=yes # is this really true???
9491        ;;
9492        siemens)
9493          ## LD is ld it makes a PLAMLIB
9494          ## CC just makes a GrossModule.
9495          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9496          reload_cmds='$CC -r -o $output$reload_objs'
9497          hardcode_direct=no
9498        ;;
9499        motorola)
9500          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9502        ;;
9503      esac
9504      runpath_var='LD_RUN_PATH'
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    sysv4.3*)
9509      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510      hardcode_shlibpath_var=no
9511      export_dynamic_flag_spec='-Bexport'
9512      ;;
9513
9514    sysv4*MP*)
9515      if test -d /usr/nec; then
9516        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517        hardcode_shlibpath_var=no
9518        runpath_var=LD_RUN_PATH
9519        hardcode_runpath_var=yes
9520        ld_shlibs=yes
9521      fi
9522      ;;
9523
9524    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9525      no_undefined_flag='${wl}-z,text'
9526      archive_cmds_need_lc=no
9527      hardcode_shlibpath_var=no
9528      runpath_var='LD_RUN_PATH'
9529
9530      if test "$GCC" = yes; then
9531        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533      else
9534        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536      fi
9537      ;;
9538
9539    sysv5* | sco3.2v5* | sco5v6*)
9540      # Note: We can NOT use -z defs as we might desire, because we do not
9541      # link with -lc, and that would cause any symbols used from libc to
9542      # always be unresolved, which means just about no library would
9543      # ever link correctly.  If we're not using GNU ld we use -z text
9544      # though, which does catch some bad symbols but isn't as heavy-handed
9545      # as -z defs.
9546      no_undefined_flag='${wl}-z,text'
9547      allow_undefined_flag='${wl}-z,nodefs'
9548      archive_cmds_need_lc=no
9549      hardcode_shlibpath_var=no
9550      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9551      hardcode_libdir_separator=':'
9552      link_all_deplibs=yes
9553      export_dynamic_flag_spec='${wl}-Bexport'
9554      runpath_var='LD_RUN_PATH'
9555
9556      if test "$GCC" = yes; then
9557        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9559      else
9560        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9562      fi
9563      ;;
9564
9565    uts4*)
9566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567      hardcode_libdir_flag_spec='-L$libdir'
9568      hardcode_shlibpath_var=no
9569      ;;
9570
9571    *)
9572      ld_shlibs=no
9573      ;;
9574    esac
9575  fi
9576
9577echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9578echo "${ECHO_T}$ld_shlibs" >&6
9579test "$ld_shlibs" = no && can_build_shared=no
9580
9581#
9582# Do we need to explicitly link libc?
9583#
9584case "x$archive_cmds_need_lc" in
9585x|xyes)
9586  # Assume -lc should be added
9587  archive_cmds_need_lc=yes
9588
9589  if test "$enable_shared" = yes && test "$GCC" = yes; then
9590    case $archive_cmds in
9591    *'~'*)
9592      # FIXME: we may have to deal with multi-command sequences.
9593      ;;
9594    '$CC '*)
9595      # Test whether the compiler implicitly links with -lc since on some
9596      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9597      # to ld, don't add -lc before -lgcc.
9598      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9599echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9600      $rm conftest*
9601      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9602
9603      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604  (eval $ac_compile) 2>&5
9605  ac_status=$?
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); } 2>conftest.err; then
9608        soname=conftest
9609        lib=conftest
9610        libobjs=conftest.$ac_objext
9611        deplibs=
9612        wl=$lt_prog_compiler_wl
9613        pic_flag=$lt_prog_compiler_pic
9614        compiler_flags=-v
9615        linker_flags=-v
9616        verstring=
9617        output_objdir=.
9618        libname=conftest
9619        lt_save_allow_undefined_flag=$allow_undefined_flag
9620        allow_undefined_flag=
9621        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9622  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9623  ac_status=$?
9624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625  (exit $ac_status); }
9626        then
9627          archive_cmds_need_lc=no
9628        else
9629          archive_cmds_need_lc=yes
9630        fi
9631        allow_undefined_flag=$lt_save_allow_undefined_flag
9632      else
9633        cat conftest.err 1>&5
9634      fi
9635      $rm conftest*
9636      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9637echo "${ECHO_T}$archive_cmds_need_lc" >&6
9638      ;;
9639    esac
9640  fi
9641  ;;
9642esac
9643
9644echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9645echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9646library_names_spec=
9647libname_spec='lib$name'
9648soname_spec=
9649shrext_cmds=".so"
9650postinstall_cmds=
9651postuninstall_cmds=
9652finish_cmds=
9653finish_eval=
9654shlibpath_var=
9655shlibpath_overrides_runpath=unknown
9656version_type=none
9657dynamic_linker="$host_os ld.so"
9658sys_lib_dlsearch_path_spec="/lib /usr/lib"
9659if test "$GCC" = yes; then
9660  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9661  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9662    # if the path contains ";" then we assume it to be the separator
9663    # otherwise default to the standard path separator (i.e. ":") - it is
9664    # assumed that no part of a normal pathname contains ";" but that should
9665    # okay in the real world where ";" in dirpaths is itself problematic.
9666    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9667  else
9668    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9669  fi
9670else
9671  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9672fi
9673need_lib_prefix=unknown
9674hardcode_into_libs=no
9675
9676# when you set need_version to no, make sure it does not cause -set_version
9677# flags to be left without arguments
9678need_version=unknown
9679
9680case $host_os in
9681aix3*)
9682  version_type=linux
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9684  shlibpath_var=LIBPATH
9685
9686  # AIX 3 has no versioning support, so we append a major version to the name.
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  ;;
9689
9690aix4* | aix5*)
9691  version_type=linux
9692  need_lib_prefix=no
9693  need_version=no
9694  hardcode_into_libs=yes
9695  if test "$host_cpu" = ia64; then
9696    # AIX 5 supports IA64
9697    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9698    shlibpath_var=LD_LIBRARY_PATH
9699  else
9700    # With GCC up to 2.95.x, collect2 would create an import file
9701    # for dependence libraries.  The import file would start with
9702    # the line `#! .'.  This would cause the generated library to
9703    # depend on `.', always an invalid library.  This was fixed in
9704    # development snapshots of GCC prior to 3.0.
9705    case $host_os in
9706      aix4 | aix4.[01] | aix4.[01].*)
9707      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9708           echo ' yes '
9709           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9710        :
9711      else
9712        can_build_shared=no
9713      fi
9714      ;;
9715    esac
9716    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9717    # soname into executable. Probably we can add versioning support to
9718    # collect2, so additional links can be useful in future.
9719    if test "$aix_use_runtimelinking" = yes; then
9720      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9721      # instead of lib<name>.a to let people know that these are not
9722      # typical AIX shared libraries.
9723      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724    else
9725      # We preserve .a as extension for shared libraries through AIX4.2
9726      # and later when we are not doing run time linking.
9727      library_names_spec='${libname}${release}.a $libname.a'
9728      soname_spec='${libname}${release}${shared_ext}$major'
9729    fi
9730    shlibpath_var=LIBPATH
9731  fi
9732  ;;
9733
9734amigaos*)
9735  library_names_spec='$libname.ixlibrary $libname.a'
9736  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9737  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'
9738  ;;
9739
9740beos*)
9741  library_names_spec='${libname}${shared_ext}'
9742  dynamic_linker="$host_os ld.so"
9743  shlibpath_var=LIBRARY_PATH
9744  ;;
9745
9746bsdi[45]*)
9747  version_type=linux
9748  need_version=no
9749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750  soname_spec='${libname}${release}${shared_ext}$major'
9751  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9754  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9755  # the default ld.so.conf also contains /usr/contrib/lib and
9756  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9757  # libtool to hard-code these into programs
9758  ;;
9759
9760cygwin* | mingw* | pw32*)
9761  version_type=windows
9762  shrext_cmds=".dll"
9763  need_version=no
9764  need_lib_prefix=no
9765
9766  case $GCC,$host_os in
9767  yes,cygwin* | yes,mingw* | yes,pw32*)
9768    library_names_spec='$libname.dll.a'
9769    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9770    postinstall_cmds='base_file=`basename \${file}`~
9771      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9772      dldir=$destdir/`dirname \$dlpath`~
9773      test -d \$dldir || mkdir -p \$dldir~
9774      $install_prog $dir/$dlname \$dldir/$dlname~
9775      chmod a+x \$dldir/$dlname'
9776    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9777      dlpath=$dir/\$dldll~
9778       $rm \$dlpath'
9779    shlibpath_overrides_runpath=yes
9780
9781    case $host_os in
9782    cygwin*)
9783      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9784      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9786      ;;
9787    mingw*)
9788      # MinGW DLLs use traditional 'lib' prefix
9789      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9791      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9792        # It is most probably a Windows format PATH printed by
9793        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9794        # path with ; separators, and with drive letters. We can handle the
9795        # drive letters (cygwin fileutils understands them), so leave them,
9796        # especially as we might pass files found there to a mingw objdump,
9797        # which wouldn't understand a cygwinified path. Ahh.
9798        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9799      else
9800        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9801      fi
9802      ;;
9803    pw32*)
9804      # pw32 DLLs use 'pw' prefix rather than 'lib'
9805      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806      ;;
9807    esac
9808    ;;
9809
9810  *)
9811    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9812    ;;
9813  esac
9814  dynamic_linker='Win32 ld.exe'
9815  # FIXME: first we should search . and the directory the executable is in
9816  shlibpath_var=PATH
9817  ;;
9818
9819darwin* | rhapsody*)
9820  dynamic_linker="$host_os dyld"
9821  version_type=darwin
9822  need_lib_prefix=no
9823  need_version=no
9824  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9825  soname_spec='${libname}${release}${major}$shared_ext'
9826  shlibpath_overrides_runpath=yes
9827  shlibpath_var=DYLD_LIBRARY_PATH
9828  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9829  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9830  if test "$GCC" = yes; then
9831    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"`
9832  else
9833    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9834  fi
9835  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9836  ;;
9837
9838dgux*)
9839  version_type=linux
9840  need_lib_prefix=no
9841  need_version=no
9842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9843  soname_spec='${libname}${release}${shared_ext}$major'
9844  shlibpath_var=LD_LIBRARY_PATH
9845  ;;
9846
9847freebsd1*)
9848  dynamic_linker=no
9849  ;;
9850
9851kfreebsd*-gnu)
9852  version_type=linux
9853  need_lib_prefix=no
9854  need_version=no
9855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9856  soname_spec='${libname}${release}${shared_ext}$major'
9857  shlibpath_var=LD_LIBRARY_PATH
9858  shlibpath_overrides_runpath=no
9859  hardcode_into_libs=yes
9860  dynamic_linker='GNU ld.so'
9861  ;;
9862
9863freebsd* | dragonfly*)
9864  # DragonFly does not have aout.  When/if they implement a new
9865  # versioning mechanism, adjust this.
9866  if test -x /usr/bin/objformat; then
9867    objformat=`/usr/bin/objformat`
9868  else
9869    case $host_os in
9870    freebsd[123]*) objformat=aout ;;
9871    *) objformat=elf ;;
9872    esac
9873  fi
9874  version_type=freebsd-$objformat
9875  case $version_type in
9876    freebsd-elf*)
9877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9878      need_version=no
9879      need_lib_prefix=no
9880      ;;
9881    freebsd-*)
9882      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9883      need_version=yes
9884      ;;
9885  esac
9886  shlibpath_var=LD_LIBRARY_PATH
9887  case $host_os in
9888  freebsd2*)
9889    shlibpath_overrides_runpath=yes
9890    ;;
9891  freebsd3.[01]* | freebsdelf3.[01]*)
9892    shlibpath_overrides_runpath=yes
9893    hardcode_into_libs=yes
9894    ;;
9895  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9896  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9897    shlibpath_overrides_runpath=no
9898    hardcode_into_libs=yes
9899    ;;
9900  freebsd*) # from 4.6 on
9901    shlibpath_overrides_runpath=yes
9902    hardcode_into_libs=yes
9903    ;;
9904  esac
9905  ;;
9906
9907gnu*)
9908  version_type=linux
9909  need_lib_prefix=no
9910  need_version=no
9911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9912  soname_spec='${libname}${release}${shared_ext}$major'
9913  shlibpath_var=LD_LIBRARY_PATH
9914  hardcode_into_libs=yes
9915  ;;
9916
9917hpux9* | hpux10* | hpux11*)
9918  # Give a soname corresponding to the major version so that dld.sl refuses to
9919  # link against other versions.
9920  version_type=sunos
9921  need_lib_prefix=no
9922  need_version=no
9923  case $host_cpu in
9924  ia64*)
9925    shrext_cmds='.so'
9926    hardcode_into_libs=yes
9927    dynamic_linker="$host_os dld.so"
9928    shlibpath_var=LD_LIBRARY_PATH
9929    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931    soname_spec='${libname}${release}${shared_ext}$major'
9932    if test "X$HPUX_IA64_MODE" = X32; then
9933      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9934    else
9935      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9936    fi
9937    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9938    ;;
9939   hppa*64*)
9940     shrext_cmds='.sl'
9941     hardcode_into_libs=yes
9942     dynamic_linker="$host_os dld.sl"
9943     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9944     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946     soname_spec='${libname}${release}${shared_ext}$major'
9947     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9949     ;;
9950   *)
9951    shrext_cmds='.sl'
9952    dynamic_linker="$host_os dld.sl"
9953    shlibpath_var=SHLIB_PATH
9954    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9955    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956    soname_spec='${libname}${release}${shared_ext}$major'
9957    ;;
9958  esac
9959  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9960  postinstall_cmds='chmod 555 $lib'
9961  ;;
9962
9963interix3*)
9964  version_type=linux
9965  need_lib_prefix=no
9966  need_version=no
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  shlibpath_overrides_runpath=no
9972  hardcode_into_libs=yes
9973  ;;
9974
9975irix5* | irix6* | nonstopux*)
9976  case $host_os in
9977    nonstopux*) version_type=nonstopux ;;
9978    *)
9979        if test "$lt_cv_prog_gnu_ld" = yes; then
9980                version_type=linux
9981        else
9982                version_type=irix
9983        fi ;;
9984  esac
9985  need_lib_prefix=no
9986  need_version=no
9987  soname_spec='${libname}${release}${shared_ext}$major'
9988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9989  case $host_os in
9990  irix5* | nonstopux*)
9991    libsuff= shlibsuff=
9992    ;;
9993  *)
9994    case $LD in # libtool.m4 will add one of these switches to LD
9995    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9996      libsuff= shlibsuff= libmagic=32-bit;;
9997    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9998      libsuff=32 shlibsuff=N32 libmagic=N32;;
9999    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10000      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10001    *) libsuff= shlibsuff= libmagic=never-match;;
10002    esac
10003    ;;
10004  esac
10005  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10006  shlibpath_overrides_runpath=no
10007  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10008  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10009  hardcode_into_libs=yes
10010  ;;
10011
10012# No shared lib support for Linux oldld, aout, or coff.
10013linux*oldld* | linux*aout* | linux*coff*)
10014  dynamic_linker=no
10015  ;;
10016
10017# This must be Linux ELF.
10018linux*)
10019  version_type=linux
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  shlibpath_overrides_runpath=no
10027  # This implies no fast_install, which is unacceptable.
10028  # Some rework will be needed to allow for fast_install
10029  # before this can be enabled.
10030  hardcode_into_libs=yes
10031
10032  # Append ld.so.conf contents to the search path
10033  if test -f /etc/ld.so.conf; then
10034    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' ' '`
10035    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10036  fi
10037
10038  # We used to test for /lib/ld.so.1 and disable shared libraries on
10039  # powerpc, because MkLinux only supported shared libraries with the
10040  # GNU dynamic linker.  Since this was broken with cross compilers,
10041  # most powerpc-linux boxes support dynamic linking these days and
10042  # people can always --disable-shared, the test was removed, and we
10043  # assume the GNU/Linux dynamic linker is in use.
10044  dynamic_linker='GNU/Linux ld.so'
10045  ;;
10046
10047knetbsd*-gnu)
10048  version_type=linux
10049  need_lib_prefix=no
10050  need_version=no
10051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052  soname_spec='${libname}${release}${shared_ext}$major'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  shlibpath_overrides_runpath=no
10055  hardcode_into_libs=yes
10056  dynamic_linker='GNU ld.so'
10057  ;;
10058
10059netbsd*)
10060  version_type=sunos
10061  need_lib_prefix=no
10062  need_version=no
10063  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10065    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10066    dynamic_linker='NetBSD (a.out) ld.so'
10067  else
10068    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069    soname_spec='${libname}${release}${shared_ext}$major'
10070    dynamic_linker='NetBSD ld.elf_so'
10071  fi
10072  shlibpath_var=LD_LIBRARY_PATH
10073  shlibpath_overrides_runpath=yes
10074  hardcode_into_libs=yes
10075  ;;
10076
10077newsos6)
10078  version_type=linux
10079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  shlibpath_overrides_runpath=yes
10082  ;;
10083
10084nto-qnx*)
10085  version_type=linux
10086  need_lib_prefix=no
10087  need_version=no
10088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089  soname_spec='${libname}${release}${shared_ext}$major'
10090  shlibpath_var=LD_LIBRARY_PATH
10091  shlibpath_overrides_runpath=yes
10092  ;;
10093
10094openbsd*)
10095  version_type=sunos
10096  sys_lib_dlsearch_path_spec="/usr/lib"
10097  need_lib_prefix=no
10098  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10099  case $host_os in
10100    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10101    *)                         need_version=no  ;;
10102  esac
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10104  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10105  shlibpath_var=LD_LIBRARY_PATH
10106  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107    case $host_os in
10108      openbsd2.[89] | openbsd2.[89].*)
10109        shlibpath_overrides_runpath=no
10110        ;;
10111      *)
10112        shlibpath_overrides_runpath=yes
10113        ;;
10114      esac
10115  else
10116    shlibpath_overrides_runpath=yes
10117  fi
10118  ;;
10119
10120os2*)
10121  libname_spec='$name'
10122  shrext_cmds=".dll"
10123  need_lib_prefix=no
10124  library_names_spec='$libname${shared_ext} $libname.a'
10125  dynamic_linker='OS/2 ld.exe'
10126  shlibpath_var=LIBPATH
10127  ;;
10128
10129osf3* | osf4* | osf5*)
10130  version_type=osf
10131  need_lib_prefix=no
10132  need_version=no
10133  soname_spec='${libname}${release}${shared_ext}$major'
10134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10137  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10138  ;;
10139
10140solaris*)
10141  version_type=linux
10142  need_lib_prefix=no
10143  need_version=no
10144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145  soname_spec='${libname}${release}${shared_ext}$major'
10146  shlibpath_var=LD_LIBRARY_PATH
10147  shlibpath_overrides_runpath=yes
10148  hardcode_into_libs=yes
10149  # ldd complains unless libraries are executable
10150  postinstall_cmds='chmod +x $lib'
10151  ;;
10152
10153sunos4*)
10154  version_type=sunos
10155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10157  shlibpath_var=LD_LIBRARY_PATH
10158  shlibpath_overrides_runpath=yes
10159  if test "$with_gnu_ld" = yes; then
10160    need_lib_prefix=no
10161  fi
10162  need_version=yes
10163  ;;
10164
10165sysv4 | sysv4.3*)
10166  version_type=linux
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168  soname_spec='${libname}${release}${shared_ext}$major'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  case $host_vendor in
10171    sni)
10172      shlibpath_overrides_runpath=no
10173      need_lib_prefix=no
10174      export_dynamic_flag_spec='${wl}-Blargedynsym'
10175      runpath_var=LD_RUN_PATH
10176      ;;
10177    siemens)
10178      need_lib_prefix=no
10179      ;;
10180    motorola)
10181      need_lib_prefix=no
10182      need_version=no
10183      shlibpath_overrides_runpath=no
10184      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10185      ;;
10186  esac
10187  ;;
10188
10189sysv4*MP*)
10190  if test -d /usr/nec ;then
10191    version_type=linux
10192    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10193    soname_spec='$libname${shared_ext}.$major'
10194    shlibpath_var=LD_LIBRARY_PATH
10195  fi
10196  ;;
10197
10198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10199  version_type=freebsd-elf
10200  need_lib_prefix=no
10201  need_version=no
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10203  soname_spec='${libname}${release}${shared_ext}$major'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  hardcode_into_libs=yes
10206  if test "$with_gnu_ld" = yes; then
10207    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10208    shlibpath_overrides_runpath=no
10209  else
10210    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10211    shlibpath_overrides_runpath=yes
10212    case $host_os in
10213      sco3.2v5*)
10214        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10215        ;;
10216    esac
10217  fi
10218  sys_lib_dlsearch_path_spec='/usr/lib'
10219  ;;
10220
10221uts4*)
10222  version_type=linux
10223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224  soname_spec='${libname}${release}${shared_ext}$major'
10225  shlibpath_var=LD_LIBRARY_PATH
10226  ;;
10227
10228*)
10229  dynamic_linker=no
10230  ;;
10231esac
10232echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10233echo "${ECHO_T}$dynamic_linker" >&6
10234test "$dynamic_linker" = no && can_build_shared=no
10235
10236variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10237if test "$GCC" = yes; then
10238  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10239fi
10240
10241echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10242echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10243hardcode_action=
10244if test -n "$hardcode_libdir_flag_spec" || \
10245   test -n "$runpath_var" || \
10246   test "X$hardcode_automatic" = "Xyes" ; then
10247
10248  # We can hardcode non-existant directories.
10249  if test "$hardcode_direct" != no &&
10250     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10251     # have to relink, otherwise we might link with an installed library
10252     # when we should be linking with a yet-to-be-installed one
10253     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10254     test "$hardcode_minus_L" != no; then
10255    # Linking always hardcodes the temporary library directory.
10256    hardcode_action=relink
10257  else
10258    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10259    hardcode_action=immediate
10260  fi
10261else
10262  # We cannot hardcode anything, or else we can only hardcode existing
10263  # directories.
10264  hardcode_action=unsupported
10265fi
10266echo "$as_me:$LINENO: result: $hardcode_action" >&5
10267echo "${ECHO_T}$hardcode_action" >&6
10268
10269if test "$hardcode_action" = relink; then
10270  # Fast installation is not supported
10271  enable_fast_install=no
10272elif test "$shlibpath_overrides_runpath" = yes ||
10273     test "$enable_shared" = no; then
10274  # Fast installation is not necessary
10275  enable_fast_install=needless
10276fi
10277
10278striplib=
10279old_striplib=
10280echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10282if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10283  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10284  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10285  echo "$as_me:$LINENO: result: yes" >&5
10286echo "${ECHO_T}yes" >&6
10287else
10288# FIXME - insert some real tests, host_os isn't really good enough
10289  case $host_os in
10290   darwin*)
10291       if test -n "$STRIP" ; then
10292         striplib="$STRIP -x"
10293         echo "$as_me:$LINENO: result: yes" >&5
10294echo "${ECHO_T}yes" >&6
10295       else
10296  echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6
10298fi
10299       ;;
10300   *)
10301  echo "$as_me:$LINENO: result: no" >&5
10302echo "${ECHO_T}no" >&6
10303    ;;
10304  esac
10305fi
10306
10307if test "x$enable_dlopen" != xyes; then
10308  enable_dlopen=unknown
10309  enable_dlopen_self=unknown
10310  enable_dlopen_self_static=unknown
10311else
10312  lt_cv_dlopen=no
10313  lt_cv_dlopen_libs=
10314
10315  case $host_os in
10316  beos*)
10317    lt_cv_dlopen="load_add_on"
10318    lt_cv_dlopen_libs=
10319    lt_cv_dlopen_self=yes
10320    ;;
10321
10322  mingw* | pw32*)
10323    lt_cv_dlopen="LoadLibrary"
10324    lt_cv_dlopen_libs=
10325   ;;
10326
10327  cygwin*)
10328    lt_cv_dlopen="dlopen"
10329    lt_cv_dlopen_libs=
10330   ;;
10331
10332  darwin*)
10333  # if libdl is installed we need to link against it
10334    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10336if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10337  echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339  ac_check_lib_save_LIBS=$LIBS
10340LIBS="-ldl  $LIBS"
10341cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h.  */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h.  */
10347
10348/* Override any gcc2 internal prototype to avoid an error.  */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352/* We use char because int might match the return type of a gcc2
10353   builtin and then its argument prototype would still apply.  */
10354char dlopen ();
10355int
10356main ()
10357{
10358dlopen ();
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365  (eval $ac_link) 2>conftest.er1
10366  ac_status=$?
10367  grep -v '^ *+' conftest.er1 >conftest.err
10368  rm -f conftest.er1
10369  cat conftest.err >&5
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); } &&
10372         { ac_try='test -z "$ac_c_werror_flag"
10373                         || test ! -s conftest.err'
10374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375  (eval $ac_try) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; } &&
10379         { ac_try='test -s conftest$ac_exeext'
10380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381  (eval $ac_try) 2>&5
10382  ac_status=$?
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); }; }; then
10385  ac_cv_lib_dl_dlopen=yes
10386else
10387  echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390ac_cv_lib_dl_dlopen=no
10391fi
10392rm -f conftest.err conftest.$ac_objext \
10393      conftest$ac_exeext conftest.$ac_ext
10394LIBS=$ac_check_lib_save_LIBS
10395fi
10396echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10398if test $ac_cv_lib_dl_dlopen = yes; then
10399  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400else
10401
10402    lt_cv_dlopen="dyld"
10403    lt_cv_dlopen_libs=
10404    lt_cv_dlopen_self=yes
10405
10406fi
10407
10408   ;;
10409
10410  *)
10411    echo "$as_me:$LINENO: checking for shl_load" >&5
10412echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10413if test "${ac_cv_func_shl_load+set}" = set; then
10414  echo $ECHO_N "(cached) $ECHO_C" >&6
10415else
10416  cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10423   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10424#define shl_load innocuous_shl_load
10425
10426/* System header to define __stub macros and hopefully few prototypes,
10427    which can conflict with char shl_load (); below.
10428    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10429    <limits.h> exists even on freestanding compilers.  */
10430
10431#ifdef __STDC__
10432# include <limits.h>
10433#else
10434# include <assert.h>
10435#endif
10436
10437#undef shl_load
10438
10439/* Override any gcc2 internal prototype to avoid an error.  */
10440#ifdef __cplusplus
10441extern "C"
10442{
10443#endif
10444/* We use char because int might match the return type of a gcc2
10445   builtin and then its argument prototype would still apply.  */
10446char shl_load ();
10447/* The GNU C library defines this for functions which it implements
10448    to always fail with ENOSYS.  Some functions are actually named
10449    something starting with __ and the normal name is an alias.  */
10450#if defined (__stub_shl_load) || defined (__stub___shl_load)
10451choke me
10452#else
10453char (*f) () = shl_load;
10454#endif
10455#ifdef __cplusplus
10456}
10457#endif
10458
10459int
10460main ()
10461{
10462return f != shl_load;
10463  ;
10464  return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469  (eval $ac_link) 2>conftest.er1
10470  ac_status=$?
10471  grep -v '^ *+' conftest.er1 >conftest.err
10472  rm -f conftest.er1
10473  cat conftest.err >&5
10474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475  (exit $ac_status); } &&
10476         { ac_try='test -z "$ac_c_werror_flag"
10477                         || test ! -s conftest.err'
10478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479  (eval $ac_try) 2>&5
10480  ac_status=$?
10481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); }; } &&
10483         { ac_try='test -s conftest$ac_exeext'
10484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485  (eval $ac_try) 2>&5
10486  ac_status=$?
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); }; }; then
10489  ac_cv_func_shl_load=yes
10490else
10491  echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494ac_cv_func_shl_load=no
10495fi
10496rm -f conftest.err conftest.$ac_objext \
10497      conftest$ac_exeext conftest.$ac_ext
10498fi
10499echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10500echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10501if test $ac_cv_func_shl_load = yes; then
10502  lt_cv_dlopen="shl_load"
10503else
10504  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10505echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10506if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10507  echo $ECHO_N "(cached) $ECHO_C" >&6
10508else
10509  ac_check_lib_save_LIBS=$LIBS
10510LIBS="-ldld  $LIBS"
10511cat >conftest.$ac_ext <<_ACEOF
10512/* confdefs.h.  */
10513_ACEOF
10514cat confdefs.h >>conftest.$ac_ext
10515cat >>conftest.$ac_ext <<_ACEOF
10516/* end confdefs.h.  */
10517
10518/* Override any gcc2 internal prototype to avoid an error.  */
10519#ifdef __cplusplus
10520extern "C"
10521#endif
10522/* We use char because int might match the return type of a gcc2
10523   builtin and then its argument prototype would still apply.  */
10524char shl_load ();
10525int
10526main ()
10527{
10528shl_load ();
10529  ;
10530  return 0;
10531}
10532_ACEOF
10533rm -f conftest.$ac_objext conftest$ac_exeext
10534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535  (eval $ac_link) 2>conftest.er1
10536  ac_status=$?
10537  grep -v '^ *+' conftest.er1 >conftest.err
10538  rm -f conftest.er1
10539  cat conftest.err >&5
10540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541  (exit $ac_status); } &&
10542         { ac_try='test -z "$ac_c_werror_flag"
10543                         || test ! -s conftest.err'
10544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545  (eval $ac_try) 2>&5
10546  ac_status=$?
10547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548  (exit $ac_status); }; } &&
10549         { ac_try='test -s conftest$ac_exeext'
10550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551  (eval $ac_try) 2>&5
10552  ac_status=$?
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); }; }; then
10555  ac_cv_lib_dld_shl_load=yes
10556else
10557  echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
10560ac_cv_lib_dld_shl_load=no
10561fi
10562rm -f conftest.err conftest.$ac_objext \
10563      conftest$ac_exeext conftest.$ac_ext
10564LIBS=$ac_check_lib_save_LIBS
10565fi
10566echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10567echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10568if test $ac_cv_lib_dld_shl_load = yes; then
10569  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10570else
10571  echo "$as_me:$LINENO: checking for dlopen" >&5
10572echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10573if test "${ac_cv_func_dlopen+set}" = set; then
10574  echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576  cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10583   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10584#define dlopen innocuous_dlopen
10585
10586/* System header to define __stub macros and hopefully few prototypes,
10587    which can conflict with char dlopen (); below.
10588    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10589    <limits.h> exists even on freestanding compilers.  */
10590
10591#ifdef __STDC__
10592# include <limits.h>
10593#else
10594# include <assert.h>
10595#endif
10596
10597#undef dlopen
10598
10599/* Override any gcc2 internal prototype to avoid an error.  */
10600#ifdef __cplusplus
10601extern "C"
10602{
10603#endif
10604/* We use char because int might match the return type of a gcc2
10605   builtin and then its argument prototype would still apply.  */
10606char dlopen ();
10607/* The GNU C library defines this for functions which it implements
10608    to always fail with ENOSYS.  Some functions are actually named
10609    something starting with __ and the normal name is an alias.  */
10610#if defined (__stub_dlopen) || defined (__stub___dlopen)
10611choke me
10612#else
10613char (*f) () = dlopen;
10614#endif
10615#ifdef __cplusplus
10616}
10617#endif
10618
10619int
10620main ()
10621{
10622return f != dlopen;
10623  ;
10624  return 0;
10625}
10626_ACEOF
10627rm -f conftest.$ac_objext conftest$ac_exeext
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629  (eval $ac_link) 2>conftest.er1
10630  ac_status=$?
10631  grep -v '^ *+' conftest.er1 >conftest.err
10632  rm -f conftest.er1
10633  cat conftest.err >&5
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); } &&
10636         { ac_try='test -z "$ac_c_werror_flag"
10637                         || test ! -s conftest.err'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; } &&
10643         { ac_try='test -s conftest$ac_exeext'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; }; then
10649  ac_cv_func_dlopen=yes
10650else
10651  echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
10654ac_cv_func_dlopen=no
10655fi
10656rm -f conftest.err conftest.$ac_objext \
10657      conftest$ac_exeext conftest.$ac_ext
10658fi
10659echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10660echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10661if test $ac_cv_func_dlopen = yes; then
10662  lt_cv_dlopen="dlopen"
10663else
10664  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10665echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10666if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10667  echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669  ac_check_lib_save_LIBS=$LIBS
10670LIBS="-ldl  $LIBS"
10671cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h.  */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h.  */
10677
10678/* Override any gcc2 internal prototype to avoid an error.  */
10679#ifdef __cplusplus
10680extern "C"
10681#endif
10682/* We use char because int might match the return type of a gcc2
10683   builtin and then its argument prototype would still apply.  */
10684char dlopen ();
10685int
10686main ()
10687{
10688dlopen ();
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext conftest$ac_exeext
10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695  (eval $ac_link) 2>conftest.er1
10696  ac_status=$?
10697  grep -v '^ *+' conftest.er1 >conftest.err
10698  rm -f conftest.er1
10699  cat conftest.err >&5
10700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701  (exit $ac_status); } &&
10702         { ac_try='test -z "$ac_c_werror_flag"
10703                         || test ! -s conftest.err'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; } &&
10709         { ac_try='test -s conftest$ac_exeext'
10710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711  (eval $ac_try) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); }; }; then
10715  ac_cv_lib_dl_dlopen=yes
10716else
10717  echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5