source: trunk/Cbc/configure @ 2181

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

Re-running autotools after doxygen update

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE 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_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-dependency-linking
1098                          disable linking library dependencies into shared
1099                          libraries
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --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-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1175                          cl/icl builds only)
1176  --with-pthreadsw32-incdir
1177                          specify the path of the pthreads win32 header file
1178                          (for cl/icl builds only)
1179  --with-osicbc-default-solver
1180                          specify underlying solver for OsiCbc (default clp)
1181  --with-dot              use dot (from graphviz) when creating documentation
1182                          with doxygen if available; --without-dot to disable
1183
1184Some influential environment variables:
1185  CDEFS       Additional -D flags to be used when compiling C code.
1186  ADD_CFLAGS  Additional C compiler options
1187  DBG_CFLAGS  Debug C compiler options
1188  OPT_CFLAGS  Optimize C compiler options
1189  CC          C compiler command
1190  CFLAGS      C compiler flags
1191  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1192              nonstandard directory <lib dir>
1193  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1194              headers in a nonstandard directory <include dir>
1195  MPICC       C MPI Compiler
1196  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1197  ADD_CXXFLAGS
1198              Additional C++ compiler options
1199  DBG_CXXFLAGS
1200              Debug C++ compiler options
1201  OPT_CXXFLAGS
1202              Optimize C++ compiler options
1203  CXX         C++ compiler command
1204  CXXFLAGS    C++ compiler flags
1205  MPICXX      C++ MPI Compiler
1206  CPP         C preprocessor
1207  CXXCPP      C++ preprocessor
1208  F77         Fortran 77 compiler command
1209  FFLAGS      Fortran 77 compiler flags
1210  PKG_CONFIG  path to pkg-config utility
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <cbc@lists.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298           test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311Cbc configure trunk
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Eclipse Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by Cbc $as_me trunk, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409        ac_must_keep_next=false # Got value, back to normal.
1410      else
1411        case $ac_arg in
1412          *=* | --config-cache | -C | -disable-* | --disable-* \
1413          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415          | -with-* | --with-* | -without-* | --without-* | --x)
1416            case "$ac_configure_args0 " in
1417              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418            esac
1419            ;;
1420          -* ) ac_must_keep_next=true ;;
1421        esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488        eval ac_val=$`echo $ac_var`
1489        echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611        ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747
1748# As backup, we make sure we don't loose an FLIBS if it has been set
1749# by the user
1750save_FLIBS="$FLIBS"
1751
1752# A useful makefile conditional that is always false
1753
1754
1755if false; then
1756  ALWAYS_FALSE_TRUE=
1757  ALWAYS_FALSE_FALSE='#'
1758else
1759  ALWAYS_FALSE_TRUE='#'
1760  ALWAYS_FALSE_FALSE=
1761fi
1762
1763
1764# We set the following variable so that we know later in AC_COIN_FINALIZE
1765# that we are in a project main directory
1766coin_projectdir=yes
1767
1768# Set the project's version numbers
1769
1770
1771cat >>confdefs.h <<_ACEOF
1772#define CBC_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
1775
1776  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1777  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1778  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1779  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1780  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1781  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MAJOR $coin_majorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_MINOR $coin_minorver
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CBC_VERSION_RELEASE $coin_releasever
1795_ACEOF
1796
1797
1798  # We use the following variable to have a string with the upper case
1799  # version of the project name
1800  COIN_PRJCT=CBC
1801
1802  # Set the project's SVN revision number. The complicated sed expression
1803  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1804  # as a single number.
1805  # Extract the first word of "svnversion", so it can be a program name with args.
1806set dummy svnversion; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_have_svnversion+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$have_svnversion"; then
1813  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_have_svnversion="yes"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1830fi
1831fi
1832have_svnversion=$ac_cv_prog_have_svnversion
1833if test -n "$have_svnversion"; then
1834  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1835echo "${ECHO_T}$have_svnversion" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  if test "x$have_svnversion" = xyes; then
1842
1843    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1844    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1845      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1846
1847cat >>confdefs.h <<_ACEOF
1848#define CBC_SVN_REV $CBC_SVN_REV
1849_ACEOF
1850
1851    fi
1852  fi
1853
1854
1855
1856# Capture libtool library version, if given.
1857
1858
1859
1860
1861# Check if user wants to produce debugging code
1862
1863echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1864echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1865
1866# Check whether --enable-debug or --disable-debug was given.
1867if test "${enable_debug+set}" = set; then
1868  enableval="$enable_debug"
1869  case "${enableval}" in
1870   yes) coin_debug_compile=true
1871        if test "${enable_shared+set}" = set; then :; else
1872          enable_shared=no
1873        fi
1874        ;;
1875   no)  coin_debug_compile=false
1876        ;;
1877   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1878echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1879   { (exit 1); exit 1; }; }
1880        ;;
1881esac
1882else
1883  coin_debug_compile=false
1884fi;
1885
1886# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1887if test "${enable_debug_cbc+set}" = set; then
1888  enableval="$enable_debug_cbc"
1889  case "${enableval}" in
1890    yes) coin_debug_compile=true
1891         ;;
1892    no)  coin_debug_compile=false
1893         ;;
1894    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1895echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1896   { (exit 1); exit 1; }; }
1897         ;;
1898 esac
1899else
1900  :
1901fi;
1902
1903 # m4_ifvaln([Cbc],
1904
1905if test $coin_debug_compile = true; then
1906  echo "$as_me:$LINENO: result: yes" >&5
1907echo "${ECHO_T}yes" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913
1914# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1915if test "${with_cbc_verbosity+set}" = set; then
1916  withval="$with_cbc_verbosity"
1917  if test "$withval" = yes; then
1918                withval=1
1919              fi
1920              coin_cbc_verbosity=$withval
1921else
1922  coin_cbc_verbosity=0
1923fi;
1924
1925cat >>confdefs.h <<_ACEOF
1926#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1927_ACEOF
1928
1929
1930
1931# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1932if test "${with_cbc_checklevel+set}" = set; then
1933  withval="$with_cbc_checklevel"
1934  if test "$withval" = yes; then
1935                withval=1
1936              fi
1937              coin_cbc_checklevel=$withval
1938else
1939  coin_cbc_checklevel=0
1940fi;
1941
1942cat >>confdefs.h <<_ACEOF
1943#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1944_ACEOF
1945
1946
1947 # m4_ifvaln([Cbc],
1948
1949
1950
1951# Get the name of the C++ compiler and appropriate compiler options
1952
1953
1954  # for backward compatibility
1955  # Check whether --enable-doscompile or --disable-doscompile was given.
1956if test "${enable_doscompile+set}" = set; then
1957  enableval="$enable_doscompile"
1958  enable_doscompile=$enableval
1959else
1960  enable_doscompile=no
1961fi;
1962
1963  # Check whether --enable-msvc or --disable-msvc was given.
1964if test "${enable_msvc+set}" = set; then
1965  enableval="$enable_msvc"
1966  enable_msvc=$enableval
1967else
1968  enable_msvc=no
1969     if test "$enable_doscompile" = msvc ; then
1970       enable_msvc=yes
1971     elif test "$enable_doscompile" != no ; then
1972       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1973echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1974   { (exit 1); exit 1; }; }
1975     fi
1976
1977fi;
1978
1979  if test "$enable_msvc" = MD; then
1980    enable_shared=yes
1981    enable_msvc=yes
1982  fi
1983
1984  if test "$enable_msvc" = yes; then
1985    case $build in
1986      *-cygwin* | *-mingw*) ;;
1987      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1988echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1989   { (exit 1); exit 1; }; } ;;
1990    esac
1991  fi
1992
1993
1994
1995ac_ext=c
1996ac_cpp='$CPP $CPPFLAGS'
1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002# For consistency, we set the C compiler to the same value of the C++
2003# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2004if test x"$CXX" != x; then
2005  case "$CXX" in
2006    clang* ) ;;
2007    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2008      if test x"$CC" = x; then
2009        CC="$CXX"
2010        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2011echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2012      fi
2013      ;;
2014  esac
2015fi
2016
2017
2018
2019
2020
2021
2022coin_has_cc=yes
2023
2024save_cflags="$CFLAGS"
2025
2026# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2027# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2028# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2029# compiler. In this case, put cc after gcc.
2030
2031case $build in
2032  *-cygwin* | *-mingw*)
2033             if test "$enable_msvc" = yes ; then
2034               comps="icl cl gcc"
2035             else
2036               comps="gcc icl cl"
2037             fi ;;
2038  *-*-solaris*)
2039             # Extract the first word of "cc", so it can be a program name with args.
2040set dummy cc; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$sol_cc_compiler"; then
2047  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2048else
2049  ac_prog_rejected=no
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2058       ac_prog_rejected=yes
2059       continue
2060     fi
2061    ac_cv_prog_sol_cc_compiler="cc"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067
2068if test $ac_prog_rejected = yes; then
2069  # We found a bogon in the path, so make sure we never use it.
2070  set dummy $ac_cv_prog_sol_cc_compiler
2071  shift
2072  if test $# != 0; then
2073    # We chose a different compiler from the bogus one.
2074    # However, it has the same basename, so the bogon will be chosen
2075    # first if we set sol_cc_compiler to just the basename; use the full file name.
2076    shift
2077    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2078  fi
2079fi
2080fi
2081fi
2082sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2083if test -n "$sol_cc_compiler"; then
2084  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2085echo "${ECHO_T}$sol_cc_compiler" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091             if test "$sol_cc_compiler" = "cc" ; then
2092               comps="cc xlc gcc pgcc icc"
2093             else
2094               comps="xlc gcc pgcc icc cc"
2095             fi
2096             ;;
2097  *-*-darwin*) comps="clang gcc cc" ;;
2098  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2099  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2100  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2101esac
2102
2103# We delete the cached value, since the test might not have been
2104# performed with our choice of compilers earlier
2105$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2106# AC_MSG_NOTICE([C compiler candidates: $comps])
2107ac_ext=c
2108ac_cpp='$CPP $CPPFLAGS'
2109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112if test -n "$ac_tool_prefix"; then
2113  for ac_prog in $comps
2114  do
2115    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2117echo "$as_me:$LINENO: checking for $ac_word" >&5
2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119if test "${ac_cv_prog_CC+set}" = set; then
2120  echo $ECHO_N "(cached) $ECHO_C" >&6
2121else
2122  if test -n "$CC"; then
2123  ac_cv_prog_CC="$CC" # Let the user override the test.
2124else
2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130  for ac_exec_ext in '' $ac_executable_extensions; do
2131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134    break 2
2135  fi
2136done
2137done
2138
2139fi
2140fi
2141CC=$ac_cv_prog_CC
2142if test -n "$CC"; then
2143  echo "$as_me:$LINENO: result: $CC" >&5
2144echo "${ECHO_T}$CC" >&6
2145else
2146  echo "$as_me:$LINENO: result: no" >&5
2147echo "${ECHO_T}no" >&6
2148fi
2149
2150    test -n "$CC" && break
2151  done
2152fi
2153if test -z "$CC"; then
2154  ac_ct_CC=$CC
2155  for ac_prog in $comps
2156do
2157  # Extract the first word of "$ac_prog", so it can be a program name with args.
2158set dummy $ac_prog; ac_word=$2
2159echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  if test -n "$ac_ct_CC"; then
2165  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166else
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170  IFS=$as_save_IFS
2171  test -z "$as_dir" && as_dir=.
2172  for ac_exec_ext in '' $ac_executable_extensions; do
2173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174    ac_cv_prog_ac_ct_CC="$ac_prog"
2175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176    break 2
2177  fi
2178done
2179done
2180
2181fi
2182fi
2183ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184if test -n "$ac_ct_CC"; then
2185  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186echo "${ECHO_T}$ac_ct_CC" >&6
2187else
2188  echo "$as_me:$LINENO: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192  test -n "$ac_ct_CC" && break
2193done
2194
2195  CC=$ac_ct_CC
2196fi
2197
2198
2199test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: no acceptable C compiler found in \$PATH
2202See \`config.log' for more details." >&2;}
2203   { (exit 1); exit 1; }; }
2204
2205# Provide some information about the compiler.
2206echo "$as_me:$LINENO:" \
2207     "checking for C compiler version" >&5
2208ac_compiler=`set X $ac_compile; echo $2`
2209{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2210  (eval $ac_compiler --version </dev/null >&5) 2>&5
2211  ac_status=$?
2212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213  (exit $ac_status); }
2214{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2215  (eval $ac_compiler -v </dev/null >&5) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2220  (eval $ac_compiler -V </dev/null >&5) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }
2224
2225cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231
2232int
2233main ()
2234{
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240ac_clean_files_save=$ac_clean_files
2241ac_clean_files="$ac_clean_files a.out a.exe b.out"
2242# Try to create an executable without -o first, disregard a.out.
2243# It will help us diagnose broken compilers, and finding out an intuition
2244# of exeext.
2245echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2246echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2247ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2248if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2249  (eval $ac_link_default) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; then
2253  # Find the output, starting from the most likely.  This scheme is
2254# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2255# resort.
2256
2257# Be careful to initialize this variable, since it used to be cached.
2258# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2259ac_cv_exeext=
2260# b.out is created by i960 compilers.
2261for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2262do
2263  test -f "$ac_file" || continue
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2266        ;;
2267    conftest.$ac_ext )
2268        # This is the source file.
2269        ;;
2270    [ab].out )
2271        # We found the default executable, but exeext='' is most
2272        # certainly right.
2273        break;;
2274    *.* )
2275        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276        # FIXME: I believe we export ac_cv_exeext for Libtool,
2277        # but it would be cool to find out if it's true.  Does anybody
2278        # maintain Libtool? --akim.
2279        export ac_cv_exeext
2280        break;;
2281    * )
2282        break;;
2283  esac
2284done
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: C compiler cannot create executables
2292See \`config.log' for more details." >&2;}
2293   { (exit 77); exit 77; }; }
2294fi
2295
2296ac_exeext=$ac_cv_exeext
2297echo "$as_me:$LINENO: result: $ac_file" >&5
2298echo "${ECHO_T}$ac_file" >&6
2299
2300# Check the compiler produces executables we can run.  If not, either
2301# the compiler is broken, or we cross compile.
2302echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2303echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2304# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2305# If not cross compiling, check that we can run a simple program.
2306if test "$cross_compiling" != yes; then
2307  if { ac_try='./$ac_file'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313    cross_compiling=no
2314  else
2315    if test "$cross_compiling" = maybe; then
2316        cross_compiling=yes
2317    else
2318        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2319If you meant to cross compile, use \`--host'.
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&2;}
2324   { (exit 1); exit 1; }; }
2325    fi
2326  fi
2327fi
2328echo "$as_me:$LINENO: result: yes" >&5
2329echo "${ECHO_T}yes" >&6
2330
2331rm -f a.out a.exe conftest$ac_cv_exeext b.out
2332ac_clean_files=$ac_clean_files_save
2333# Check the compiler produces executables we can run.  If not, either
2334# the compiler is broken, or we cross compile.
2335echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2336echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2337echo "$as_me:$LINENO: result: $cross_compiling" >&5
2338echo "${ECHO_T}$cross_compiling" >&6
2339
2340echo "$as_me:$LINENO: checking for suffix of executables" >&5
2341echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2343  (eval $ac_link) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; then
2347  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2348# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2349# work properly (i.e., refer to `conftest.exe'), while it won't with
2350# `rm'.
2351for ac_file in conftest.exe conftest conftest.*; do
2352  test -f "$ac_file" || continue
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2355    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2356          export ac_cv_exeext
2357          break;;
2358    * ) break;;
2359  esac
2360done
2361else
2362  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest$ac_cv_exeext
2370echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2371echo "${ECHO_T}$ac_cv_exeext" >&6
2372
2373rm -f conftest.$ac_ext
2374EXEEXT=$ac_cv_exeext
2375ac_exeext=$EXEEXT
2376echo "$as_me:$LINENO: checking for suffix of object files" >&5
2377echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2378if test "${ac_cv_objext+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396rm -f conftest.o conftest.obj
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398  (eval $ac_compile) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; then
2402  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2403  case $ac_file in
2404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2405    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2406       break;;
2407  esac
2408done
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2414See \`config.log' for more details." >&5
2415echo "$as_me: error: cannot compute suffix of object files: cannot compile
2416See \`config.log' for more details." >&2;}
2417   { (exit 1); exit 1; }; }
2418fi
2419
2420rm -f conftest.$ac_cv_objext conftest.$ac_ext
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2423echo "${ECHO_T}$ac_cv_objext" >&6
2424OBJEXT=$ac_cv_objext
2425ac_objext=$OBJEXT
2426echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2427echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2428if test "${ac_cv_c_compiler_gnu+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h.  */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h.  */
2437
2438int
2439main ()
2440{
2441#ifndef __GNUC__
2442       choke me
2443#endif
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_compiler_gnu=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_compiler_gnu=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479ac_cv_c_compiler_gnu=$ac_compiler_gnu
2480
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2483echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2484GCC=`test $ac_compiler_gnu = yes && echo yes`
2485ac_test_CFLAGS=${CFLAGS+set}
2486ac_save_CFLAGS=$CFLAGS
2487CFLAGS="-g"
2488echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2489echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2490if test "${ac_cv_prog_cc_g+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499
2500int
2501main ()
2502{
2503
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510  (eval $ac_compile) 2>conftest.er1
2511  ac_status=$?
2512  grep -v '^ *+' conftest.er1 >conftest.err
2513  rm -f conftest.er1
2514  cat conftest.err >&5
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); } &&
2517         { ac_try='test -z "$ac_c_werror_flag"
2518                         || test ! -s conftest.err'
2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520  (eval $ac_try) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }; } &&
2524         { ac_try='test -s conftest.$ac_objext'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; }; then
2530  ac_cv_prog_cc_g=yes
2531else
2532  echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535ac_cv_prog_cc_g=no
2536fi
2537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2541if test "$ac_test_CFLAGS" = set; then
2542  CFLAGS=$ac_save_CFLAGS
2543elif test $ac_cv_prog_cc_g = yes; then
2544  if test "$GCC" = yes; then
2545    CFLAGS="-g -O2"
2546  else
2547    CFLAGS="-g"
2548  fi
2549else
2550  if test "$GCC" = yes; then
2551    CFLAGS="-O2"
2552  else
2553    CFLAGS=
2554  fi
2555fi
2556echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2557echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2558if test "${ac_cv_prog_cc_stdc+set}" = set; then
2559  echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561  ac_cv_prog_cc_stdc=no
2562ac_save_CC=$CC
2563cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569#include <stdarg.h>
2570#include <stdio.h>
2571#include <sys/types.h>
2572#include <sys/stat.h>
2573/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2574struct buf { int x; };
2575FILE * (*rcsopen) (struct buf *, struct stat *, int);
2576static char *e (p, i)
2577     char **p;
2578     int i;
2579{
2580  return p[i];
2581}
2582static char *f (char * (*g) (char **, int), char **p, ...)
2583{
2584  char *s;
2585  va_list v;
2586  va_start (v,p);
2587  s = g (p, va_arg (v,int));
2588  va_end (v);
2589  return s;
2590}
2591
2592/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2593   function prototypes and stuff, but not '\xHH' hex character constants.
2594   These don't provoke an error unfortunately, instead are silently treated
2595   as 'x'.  The following induces an error, until -std1 is added to get
2596   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2597   array size at least.  It's necessary to write '\x00'==0 to get something
2598   that's true only with -std1.  */
2599int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2600
2601int test (int i, double x);
2602struct s1 {int (*f) (int a);};
2603struct s2 {int (*f) (double a);};
2604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2605int argc;
2606char **argv;
2607int
2608main ()
2609{
2610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615# Don't try gcc -ansi; that turns off useful extensions and
2616# breaks some systems' header files.
2617# AIX                   -qlanglvl=ansi
2618# Ultrix and OSF/1      -std1
2619# HP-UX 10.20 and later -Ae
2620# HP-UX older versions  -Aa -D_HPUX_SOURCE
2621# SVR4                  -Xc -D__EXTENSIONS__
2622for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2623do
2624  CC="$ac_save_CC $ac_arg"
2625  rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634         { ac_try='test -z "$ac_c_werror_flag"
2635                         || test ! -s conftest.err'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; } &&
2641         { ac_try='test -s conftest.$ac_objext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  ac_cv_prog_cc_stdc=$ac_arg
2648break
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext
2655done
2656rm -f conftest.$ac_ext conftest.$ac_objext
2657CC=$ac_save_CC
2658
2659fi
2660
2661case "x$ac_cv_prog_cc_stdc" in
2662  x|xno)
2663    echo "$as_me:$LINENO: result: none needed" >&5
2664echo "${ECHO_T}none needed" >&6 ;;
2665  *)
2666    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2667echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2668    CC="$CC $ac_cv_prog_cc_stdc" ;;
2669esac
2670
2671# Some people use a C++ compiler to compile C.  Since we use `exit',
2672# in C++ we need to declare it.  In case someone uses the same compiler
2673# for both compiling C and C++ we need to have the C++ compiler decide
2674# the declaration of exit, since it's the most demanding environment.
2675cat >conftest.$ac_ext <<_ACEOF
2676#ifndef __cplusplus
2677  choke me
2678#endif
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689         { ac_try='test -z "$ac_c_werror_flag"
2690                         || test ! -s conftest.err'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696         { ac_try='test -s conftest.$ac_objext'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; }; then
2702  for ac_declaration in \
2703   '' \
2704   'extern "C" void std::exit (int) throw (); using std::exit;' \
2705   'extern "C" void std::exit (int); using std::exit;' \
2706   'extern "C" void exit (int) throw ();' \
2707   'extern "C" void exit (int);' \
2708   'void exit (int);'
2709do
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716$ac_declaration
2717#include <stdlib.h>
2718int
2719main ()
2720{
2721exit (42);
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728  (eval $ac_compile) 2>conftest.er1
2729  ac_status=$?
2730  grep -v '^ *+' conftest.er1 >conftest.err
2731  rm -f conftest.er1
2732  cat conftest.err >&5
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); } &&
2735         { ac_try='test -z "$ac_c_werror_flag"
2736                         || test ! -s conftest.err'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; } &&
2742         { ac_try='test -s conftest.$ac_objext'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; }; then
2748  :
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753continue
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756  cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762$ac_declaration
2763int
2764main ()
2765{
2766exit (42);
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773  (eval $ac_compile) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780         { ac_try='test -z "$ac_c_werror_flag"
2781                         || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787         { ac_try='test -s conftest.$ac_objext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  break
2794else
2795  echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798fi
2799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800done
2801rm -f conftest*
2802if test -n "$ac_declaration"; then
2803  echo '#ifdef __cplusplus' >>confdefs.h
2804  echo $ac_declaration      >>confdefs.h
2805  echo '#endif'             >>confdefs.h
2806fi
2807
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812fi
2813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819
2820if test -z "$CC" ; then
2821  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2822echo "$as_me: error: Failed to find a C compiler!" >&2;}
2823   { (exit 1); exit 1; }; }
2824fi
2825# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2826case "$CC" in
2827  clang* ) ;;
2828  cl* | */cl* | CL* | */CL* )
2829    if test "$ac_cv_prog_cc_g" = yes ; then
2830      ac_cv_prog_cc_g=no
2831      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2832echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2833    fi ;;
2834  * )
2835    if test x"$CYGPATH_W" = x ; then
2836      CYGPATH_W=echo
2837    fi
2838    ;;
2839esac
2840CFLAGS="$save_cflags"
2841
2842# add automake conditional so we can recognize cl compiler in makefile
2843coin_cc_is_cl=false
2844case "$CC" in
2845  clang* ) ;;
2846  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2847    coin_cc_is_cl=true
2848    ;;
2849esac
2850
2851
2852if test $coin_cc_is_cl = true; then
2853  COIN_CC_IS_CL_TRUE=
2854  COIN_CC_IS_CL_FALSE='#'
2855else
2856  COIN_CC_IS_CL_TRUE='#'
2857  COIN_CC_IS_CL_FALSE=
2858fi
2859
2860
2861# Check if a project specific CFLAGS variable has been set
2862if test x$COIN_PRJCT != x; then
2863  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2864  if test x$coin_tmp = xset; then
2865    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2866  fi
2867fi
2868
2869if test x"$CFLAGS" = x; then
2870
2871  coin_add_cflags=
2872  coin_opt_cflags=
2873  coin_dbg_cflags=
2874  coin_warn_cflags=
2875
2876  if test "$GCC" = "yes"; then
2877    case "$CC" in
2878      icc* | */icc*)
2879        ;;
2880      *)
2881        coin_opt_cflags="-O3"
2882        coin_add_cflags="-pipe"
2883        coin_dbg_cflags="-g -O0"
2884        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2885        case $build in
2886          *-darwin*)
2887            ;;
2888          *)
2889            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2890            ;;
2891        esac
2892    esac
2893  fi
2894  if test -z "$coin_opt_cflags"; then
2895    case $build in
2896      *-cygwin* | *-mingw*)
2897        case "$CC" in
2898          clang* ) ;;
2899          cl* | */cl* | CL* | */CL*)
2900            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2901              coin_opt_cflags='-MD -O2'
2902              coin_dbg_cflags='-MDd'
2903            else
2904              coin_opt_cflags='-MT -O2'
2905              coin_dbg_cflags='-MTd'
2906            fi
2907            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2908            ;;
2909          icl* | */icl* | ICL* | */ICL*)
2910            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2911              coin_opt_cflags='-MD -Ox'
2912              coin_dbg_cflags='-MDd -debug'
2913            else
2914              coin_opt_cflags='-MT -Ox'
2915              coin_dbg_cflags='-MTd -debug'
2916            fi
2917            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2918            ;;
2919        esac
2920        ;;
2921      *-linux-*)
2922        case "$CC" in
2923          icc* | */icc*)
2924            coin_opt_cflags="-O3 -ip -mp1"
2925            coin_add_cflags=""
2926            coin_dbg_cflags="-g"
2927            # Check if -i_dynamic is necessary (for new glibc library)
2928            CFLAGS=
2929            cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h.  */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h.  */
2935
2936int
2937main ()
2938{
2939int i=0; i++;
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext conftest$ac_exeext
2945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946  (eval $ac_link) 2>conftest.er1
2947  ac_status=$?
2948  grep -v '^ *+' conftest.er1 >conftest.err
2949  rm -f conftest.er1
2950  cat conftest.err >&5
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); } &&
2953         { ac_try='test -z "$ac_c_werror_flag"
2954                         || test ! -s conftest.err'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; } &&
2960         { ac_try='test -s conftest$ac_exeext'
2961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962  (eval $ac_try) 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; }; then
2966  :
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971coin_add_cflags="-i_dynamic $coin_add_cflags"
2972fi
2973rm -f conftest.err conftest.$ac_objext \
2974      conftest$ac_exeext conftest.$ac_ext
2975            ;;
2976          pgcc* | */pgcc*)
2977            coin_opt_cflags="-fast"
2978            coin_add_cflags="-Kieee -pc 64"
2979            coin_dbg_cflags="-g"
2980            ;;
2981        esac
2982        ;;
2983      *-ibm-*)
2984        case "$CC" in
2985          xlc* | */xlc* | mpxlc* | */mpxlc*)
2986            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2987            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2988            coin_dbg_cflags="-g"
2989          ;;
2990        esac
2991        ;;
2992      *-hp-*)
2993        coin_opt_cflags="-O"
2994        coin_add_cflags="-Ae"
2995        coin_dbg_cflags="-g"
2996        ;;
2997      *-*-solaris*)
2998        coin_opt_cflags="-xO4"
2999        coin_dbg_cflags="-g"
3000        ;;
3001      *-sgi-*)
3002        coin_opt_cflags="-O -OPT:Olimit=0"
3003        coin_dbg_cflags="-g"
3004        ;;
3005    esac
3006  fi
3007
3008  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3009    coin_dbg_cflags="-g"
3010  fi
3011
3012  if test -z "$coin_opt_cflags"; then
3013    # Try if -O option works if nothing else is set
3014    CFLAGS="-O"
3015    cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025int i=0; i++;
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext conftest$ac_exeext
3031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3032  (eval $ac_link) 2>conftest.er1
3033  ac_status=$?
3034  grep -v '^ *+' conftest.er1 >conftest.err
3035  rm -f conftest.er1
3036  cat conftest.err >&5
3037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038  (exit $ac_status); } &&
3039         { ac_try='test -z "$ac_c_werror_flag"
3040                         || test ! -s conftest.err'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; } &&
3046         { ac_try='test -s conftest$ac_exeext'
3047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048  (eval $ac_try) 2>&5
3049  ac_status=$?
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); }; }; then
3052  coin_opt_cflags="-O"
3053else
3054  echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057fi
3058rm -f conftest.err conftest.$ac_objext \
3059      conftest$ac_exeext conftest.$ac_ext
3060  fi
3061
3062  # if PM doesn't want the warning messages, take them out
3063  if test x"$coin_skip_warn_cflags" = xyes; then
3064    coin_warn_cflags=
3065  fi
3066
3067  if test x${DBG_CFLAGS+set} != xset; then
3068    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3069  fi
3070  if test x${OPT_CFLAGS+set} != xset; then
3071    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3072  fi
3073
3074  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3075  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3076
3077  if test "$coin_debug_compile" = "true"; then
3078    CFLAGS="$DBG_CFLAGS"
3079  else
3080    CFLAGS="$OPT_CFLAGS"
3081  fi
3082else
3083  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3084  if test x${DBG_CFLAGS+set} != xset; then
3085    DBG_CFLAGS="$CFLAGS"
3086  fi
3087  if test x${OPT_CFLAGS+set} != xset; then
3088    OPT_CFLAGS="$CFLAGS"
3089  fi
3090fi
3091
3092# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3093if test x$COIN_PRJCT != x; then
3094  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3095fi
3096
3097# Try if CFLAGS works
3098save_CFLAGS="$CFLAGS"
3099cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h.  */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h.  */
3105
3106int
3107main ()
3108{
3109int i=0; i++;
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext conftest$ac_exeext
3115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3116  (eval $ac_link) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123         { ac_try='test -z "$ac_c_werror_flag"
3124                         || test ! -s conftest.err'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; } &&
3130         { ac_try='test -s conftest$ac_exeext'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; }; then
3136  :
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141CFLAGS=
3142fi
3143rm -f conftest.err conftest.$ac_objext \
3144      conftest$ac_exeext conftest.$ac_ext
3145if test -z "$CFLAGS"; then
3146  { 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
3147echo "$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;}
3148  CFLAGS='-O'
3149  cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h.  */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h.  */
3155
3156int
3157main ()
3158{
3159int i=0; i++;
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext conftest$ac_exeext
3165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166  (eval $ac_link) 2>conftest.er1
3167  ac_status=$?
3168  grep -v '^ *+' conftest.er1 >conftest.err
3169  rm -f conftest.er1
3170  cat conftest.err >&5
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); } &&
3173         { ac_try='test -z "$ac_c_werror_flag"
3174                         || test ! -s conftest.err'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; } &&
3180         { ac_try='test -s conftest$ac_exeext'
3181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182  (eval $ac_try) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }; }; then
3186  :
3187else
3188  echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191CFLAGS=
3192fi
3193rm -f conftest.err conftest.$ac_objext \
3194      conftest$ac_exeext conftest.$ac_ext
3195  if test -z "$CFLAGS"; then
3196    { 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
3197echo "$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;}
3198  fi
3199fi
3200
3201{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3202echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3203
3204
3205if test x"$MPICC" = x; then :; else
3206  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3207echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3208  CC="$MPICC"
3209fi
3210
3211# Correct the LD variable if we are using the MS or Intel-windows compiler
3212case "$CC" in
3213  clang* ) ;;
3214  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3215    LD=link
3216    ;;
3217esac
3218
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224
3225
3226
3227 #Let's try if that overcomes configuration problem with VC++ 6.0
3228
3229ac_ext=cc
3230ac_cpp='$CXXCPP $CPPFLAGS'
3231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3234
3235
3236
3237
3238
3239
3240
3241coin_has_cxx=yes
3242
3243save_cxxflags="$CXXFLAGS"
3244# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3245case $build in
3246  *-cygwin* | *-mingw*)
3247      if test "$enable_msvc" = yes ; then
3248         comps="icl cl g++"
3249      else
3250         comps="g++ icl cl"
3251      fi ;;
3252  *-*-solaris*)
3253             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3254  *-darwin*) comps="clang++ g++ c++ CC" ;;
3255  *-linux-gnu*)
3256             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3257          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3258esac
3259
3260# We delete the cached value, since the test might not have been
3261# performed with our choice of compilers earlier
3262$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3263# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3264ac_ext=cc
3265ac_cpp='$CXXCPP $CPPFLAGS'
3266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3269if test -n "$ac_tool_prefix"; then
3270  for ac_prog in $CCC $comps
3271  do
3272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274echo "$as_me:$LINENO: checking for $ac_word" >&5
3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276if test "${ac_cv_prog_CXX+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  if test -n "$CXX"; then
3280  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287  for ac_exec_ext in '' $ac_executable_extensions; do
3288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294done
3295
3296fi
3297fi
3298CXX=$ac_cv_prog_CXX
3299if test -n "$CXX"; then
3300  echo "$as_me:$LINENO: result: $CXX" >&5
3301echo "${ECHO_T}$CXX" >&6
3302else
3303  echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306
3307    test -n "$CXX" && break
3308  done
3309fi
3310if test -z "$CXX"; then
3311  ac_ct_CXX=$CXX
3312  for ac_prog in $CCC $comps
3313do
3314  # Extract the first word of "$ac_prog", so it can be a program name with args.
3315set dummy $ac_prog; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$ac_ct_CXX"; then
3322  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_ac_ct_CXX="$ac_prog"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3341if test -n "$ac_ct_CXX"; then
3342  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3343echo "${ECHO_T}$ac_ct_CXX" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349  test -n "$ac_ct_CXX" && break
3350done
3351test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3352
3353  CXX=$ac_ct_CXX
3354fi
3355
3356
3357# Provide some information about the compiler.
3358echo "$as_me:$LINENO:" \
3359     "checking for C++ compiler version" >&5
3360ac_compiler=`set X $ac_compile; echo $2`
3361{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3362  (eval $ac_compiler --version </dev/null >&5) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }
3366{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3367  (eval $ac_compiler -v </dev/null >&5) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }
3371{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3372  (eval $ac_compiler -V </dev/null >&5) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }
3376
3377echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3378echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3379if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3380  echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382  cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h.  */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392#ifndef __GNUC__
3393       choke me
3394#endif
3395
3396  ;
3397  return 0;
3398}
3399_ACEOF
3400rm -f conftest.$ac_objext
3401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402  (eval $ac_compile) 2>conftest.er1
3403  ac_status=$?
3404  grep -v '^ *+' conftest.er1 >conftest.err
3405  rm -f conftest.er1
3406  cat conftest.err >&5
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); } &&
3409         { ac_try='test -z "$ac_cxx_werror_flag"
3410                         || test ! -s conftest.err'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; } &&
3416         { ac_try='test -s conftest.$ac_objext'
3417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418  (eval $ac_try) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }; }; then
3422  ac_compiler_gnu=yes
3423else
3424  echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427ac_compiler_gnu=no
3428fi
3429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3431
3432fi
3433echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3434echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3435GXX=`test $ac_compiler_gnu = yes && echo yes`
3436ac_test_CXXFLAGS=${CXXFLAGS+set}
3437ac_save_CXXFLAGS=$CXXFLAGS
3438CXXFLAGS="-g"
3439echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3440echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3441if test "${ac_cv_prog_cxx_g+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444  cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h.  */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459rm -f conftest.$ac_objext
3460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3461  (eval $ac_compile) 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468         { ac_try='test -z "$ac_cxx_werror_flag"
3469                         || test ! -s conftest.err'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; } &&
3475         { ac_try='test -s conftest.$ac_objext'
3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477  (eval $ac_try) 2>&5
3478  ac_status=$?
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); }; }; then
3481  ac_cv_prog_cxx_g=yes
3482else
3483  echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486ac_cv_prog_cxx_g=no
3487fi
3488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3489fi
3490echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3491echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3492if test "$ac_test_CXXFLAGS" = set; then
3493  CXXFLAGS=$ac_save_CXXFLAGS
3494elif test $ac_cv_prog_cxx_g = yes; then
3495  if test "$GXX" = yes; then
3496    CXXFLAGS="-g -O2"
3497  else
3498    CXXFLAGS="-g"
3499  fi
3500else
3501  if test "$GXX" = yes; then
3502    CXXFLAGS="-O2"
3503  else
3504    CXXFLAGS=
3505  fi
3506fi
3507for ac_declaration in \
3508   '' \
3509   'extern "C" void std::exit (int) throw (); using std::exit;' \
3510   'extern "C" void std::exit (int); using std::exit;' \
3511   'extern "C" void exit (int) throw ();' \
3512   'extern "C" void exit (int);' \
3513   'void exit (int);'
3514do
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$ac_declaration
3522#include <stdlib.h>
3523int
3524main ()
3525{
3526exit (42);
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533  (eval $ac_compile) 2>conftest.er1
3534  ac_status=$?
3535  grep -v '^ *+' conftest.er1 >conftest.err
3536  rm -f conftest.er1
3537  cat conftest.err >&5
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); } &&
3540         { ac_try='test -z "$ac_cxx_werror_flag"
3541                         || test ! -s conftest.err'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; } &&
3547         { ac_try='test -s conftest.$ac_objext'
3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549  (eval $ac_try) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; }; then
3553  :
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558continue
3559fi
3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561  cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h.  */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h.  */
3567$ac_declaration
3568int
3569main ()
3570{
3571exit (42);
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576rm -f conftest.$ac_objext
3577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578  (eval $ac_compile) 2>conftest.er1
3579  ac_status=$?
3580  grep -v '^ *+' conftest.er1 >conftest.err
3581  rm -f conftest.er1
3582  cat conftest.err >&5
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); } &&
3585         { ac_try='test -z "$ac_cxx_werror_flag"
3586                         || test ! -s conftest.err'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; } &&
3592         { ac_try='test -s conftest.$ac_objext'
3593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594  (eval $ac_try) 2>&5
3595  ac_status=$?
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); }; }; then
3598  break
3599else
3600  echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi
3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605done
3606rm -f conftest*
3607if test -n "$ac_declaration"; then
3608  echo '#ifdef __cplusplus' >>confdefs.h
3609  echo $ac_declaration      >>confdefs.h
3610  echo '#endif'             >>confdefs.h
3611fi
3612
3613ac_ext=cc
3614ac_cpp='$CXXCPP $CPPFLAGS'
3615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3618
3619
3620#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3621#thus, we test here whether $CXX is actually working
3622ac_ext=cc
3623ac_cpp='$CXXCPP $CPPFLAGS'
3624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3627
3628echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3629echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3630cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640int i=0;
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647  (eval $ac_compile) 2>conftest.er1
3648  ac_status=$?
3649  grep -v '^ *+' conftest.er1 >conftest.err
3650  rm -f conftest.er1
3651  cat conftest.err >&5
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } &&
3654         { ac_try='test -z "$ac_cxx_werror_flag"
3655                         || test ! -s conftest.err'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; } &&
3661         { ac_try='test -s conftest.$ac_objext'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; }; then
3667  echo "$as_me:$LINENO: result: yes" >&5
3668echo "${ECHO_T}yes" >&6
3669else
3670  echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673echo "$as_me:$LINENO: result: no" >&5
3674echo "${ECHO_T}no" >&6
3675   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3676echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3677   { (exit 1); exit 1; }; }
3678
3679fi
3680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681ac_ext=cc
3682ac_cpp='$CXXCPP $CPPFLAGS'
3683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3686
3687
3688coin_cxx_is_cl=false
3689# It seems that we need to cleanup something here for the Windows
3690case "$CXX" in
3691  clang* | */clang*) ;;
3692  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3693    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3694    mv confdefs.hh confdefs.h
3695    coin_cxx_is_cl=true
3696    ;;
3697esac
3698
3699# add automake conditional so we can recognize cl compiler in makefile
3700
3701
3702if test $coin_cxx_is_cl = true; then
3703  COIN_CXX_IS_CL_TRUE=
3704  COIN_CXX_IS_CL_FALSE='#'
3705else
3706  COIN_CXX_IS_CL_TRUE='#'
3707  COIN_CXX_IS_CL_FALSE=
3708fi
3709
3710
3711# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3712case "$CXX" in
3713  clang* ) ;;
3714  cl* | */cl* | CL* | */CL* )
3715    if test "$ac_cv_prog_cxx_g" = yes ; then
3716      ac_cv_prog_cxx_g=no
3717      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3718echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3719    fi ;;
3720  * )
3721    if test x"$CYGPATH_W" = x ; then
3722      CYGPATH_W=echo
3723    fi
3724    ;;
3725esac
3726CXXFLAGS="$save_cxxflags"
3727
3728# Check if a project specific CXXFLAGS variable has been set
3729if test x$COIN_PRJCT != x; then
3730  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3731  if test x$coin_tmp = xset; then
3732    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3733  fi
3734fi
3735
3736if test x"$CXXFLAGS" = x; then
3737
3738# ToDo decide whether we want -DNDEBUG for optimization
3739  coin_add_cxxflags=
3740  coin_opt_cxxflags=
3741  coin_dbg_cxxflags=
3742  coin_warn_cxxflags=
3743
3744  if test "$GXX" = "yes"; then
3745    case "$CXX" in
3746      icpc* | */icpc*)
3747        ;;
3748      *)
3749# ToDo decide about unroll-loops
3750        coin_opt_cxxflags="-O3"
3751        coin_add_cxxflags="-pipe"
3752        coin_dbg_cxxflags="-g -O0"
3753        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3754        case $build in
3755          *-darwin*)
3756            ;;
3757          *)
3758            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3759            ;;
3760        esac
3761    esac
3762  fi
3763
3764# Note that we do not need to cover GCC in the following tests.
3765
3766  if test -z "$coin_opt_cxxflags"; then
3767    case $build in
3768      *-cygwin* | *-mingw*)
3769        case "$CXX" in
3770          clang* ) ;;
3771          cl* | */cl* | CL* | */CL*)
3772            # The MT and MTd options are mutually exclusive
3773            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3774               coin_opt_cxxflags='-MD -O2'
3775               coin_dbg_cxxflags='-MDd'
3776            else
3777               coin_opt_cxxflags='-MT -O2'
3778               coin_dbg_cxxflags='-MTd'
3779            fi
3780            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3781            ;;
3782          icl* | */icl* | ICL* | */ICL*)
3783          # The MT and MTd options are mutually exclusive
3784            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3785              coin_opt_cxxflags='-MD -Ox'
3786              coin_dbg_cxxflags='-MDd -debug'
3787            else
3788              coin_opt_cxxflags='-MT -Ox'
3789              coin_dbg_cxxflags='-MTd -debug'
3790            fi
3791            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3792            ;;
3793        esac
3794        ;;
3795      *-linux-*)
3796        case "$CXX" in
3797          icpc* | */icpc*)
3798            coin_opt_cxxflags="-O3 -ip -mp1"
3799            coin_add_cxxflags=""
3800            coin_dbg_cxxflags="-g"
3801            # Check if -i_dynamic is necessary (for new glibc library)
3802            CXXFLAGS=
3803            cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813int i=0; i++;
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext conftest$ac_exeext
3819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820  (eval $ac_link) 2>conftest.er1
3821  ac_status=$?
3822  grep -v '^ *+' conftest.er1 >conftest.err
3823  rm -f conftest.er1
3824  cat conftest.err >&5
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); } &&
3827         { ac_try='test -z "$ac_cxx_werror_flag"
3828                         || test ! -s conftest.err'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; } &&
3834         { ac_try='test -s conftest$ac_exeext'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; }; then
3840  :
3841else
3842  echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3846fi
3847rm -f conftest.err conftest.$ac_objext \
3848      conftest$ac_exeext conftest.$ac_ext
3849            ;;
3850          pgCC* | */pgCC*)
3851            coin_opt_cxxflags="-fast"
3852            coin_add_cxxflags="-Kieee -pc 64"
3853            coin_dbg_cxxflags="-g"
3854            ;;
3855        esac
3856        ;;
3857      *-ibm-*)
3858        case "$CXX" in
3859          xlC* | */xlC* | mpxlC* | */mpxlC*)
3860            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3861            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3862            coin_dbg_cxxflags="-g"
3863            ;;
3864        esac
3865        ;;
3866      *-hp-*)
3867        case "$CXX" in
3868          aCC* | */aCC* )
3869            coin_opt_cxxflags="-O"
3870            coin_add_cxxflags="-AA"
3871            coin_dbg_cxxflags="-g"
3872            ;;
3873        esac
3874        ;;
3875      *-*-solaris*)
3876          coin_opt_cxxflags="-O4"
3877          coin_dbg_cxxflags="-g"
3878        ;;
3879    esac
3880  fi
3881
3882# Generic flag settings. If these don't work, add a case above.
3883
3884  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3885    coin_dbg_cxxflags="-g"
3886  fi
3887
3888  if test -z "$coin_opt_cxxflags"; then
3889    # Try if -O option works if nothing else is set
3890    CXXFLAGS=-O
3891    cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897
3898int
3899main ()
3900{
3901int i=0; i++;
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext conftest$ac_exeext
3907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908  (eval $ac_link) 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } &&
3915         { ac_try='test -z "$ac_cxx_werror_flag"
3916                         || test ! -s conftest.err'
3917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918  (eval $ac_try) 2>&5
3919  ac_status=$?
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); }; } &&
3922         { ac_try='test -s conftest$ac_exeext'
3923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924  (eval $ac_try) 2>&5
3925  ac_status=$?
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); }; }; then
3928  coin_opt_cxxflags="-O"
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933fi
3934rm -f conftest.err conftest.$ac_objext \
3935      conftest$ac_exeext conftest.$ac_ext
3936  fi
3937
3938  # if PM doesn't want the warning messages, take them out
3939  if test x"$coin_skip_warn_cxxflags" = xyes; then
3940    coin_warn_cxxflags=
3941  fi
3942
3943# Do final setup of flags based on values determined above.
3944
3945  if test x${DBG_CXXFLAGS+set} != xset; then
3946    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3947  fi
3948  if test x${OPT_CXXFLAGS+set} != xset; then
3949    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3950  fi
3951
3952  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3953  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3954
3955  if test "$coin_debug_compile" = "true"; then
3956    CXXFLAGS="$DBG_CXXFLAGS"
3957  else
3958    CXXFLAGS="$OPT_CXXFLAGS"
3959  fi
3960
3961# Handle the case where CXXFLAGS was set externally.
3962else
3963  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3964  if test x${DBG_CXXFLAGS+set} != xset; then
3965    DBG_CXXFLAGS="$CXXFLAGS"
3966  fi
3967  if test x${OPT_CXXFLAGS+set} != xset; then
3968    OPT_CXXFLAGS="$CXXFLAGS"
3969  fi
3970fi
3971
3972# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3973if test x$COIN_PRJCT != x; then
3974  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3975fi
3976
3977# Try if CXXFLAGS works
3978save_CXXFLAGS="$CXXFLAGS"
3979cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h.  */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h.  */
3985
3986int
3987main ()
3988{
3989int i=0; i++;
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994rm -f conftest.$ac_objext conftest$ac_exeext
3995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996  (eval $ac_link) 2>conftest.er1
3997  ac_status=$?
3998  grep -v '^ *+' conftest.er1 >conftest.err
3999  rm -f conftest.er1
4000  cat conftest.err >&5
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); } &&
4003         { ac_try='test -z "$ac_cxx_werror_flag"
4004                         || test ! -s conftest.err'
4005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006  (eval $ac_try) 2>&5
4007  ac_status=$?
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); }; } &&
4010         { ac_try='test -s conftest$ac_exeext'
4011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012  (eval $ac_try) 2>&5
4013  ac_status=$?
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); }; }; then
4016  :
4017else
4018  echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021CXXFLAGS=
4022fi
4023rm -f conftest.err conftest.$ac_objext \
4024      conftest$ac_exeext conftest.$ac_ext
4025if test -z "$CXXFLAGS"; then
4026  { 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
4027echo "$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;}
4028  CXXFLAGS='-O'
4029  cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h.  */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h.  */
4035
4036int
4037main ()
4038{
4039int i=0; i++;
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext conftest$ac_exeext
4045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046  (eval $ac_link) 2>conftest.er1
4047  ac_status=$?
4048  grep -v '^ *+' conftest.er1 >conftest.err
4049  rm -f conftest.er1
4050  cat conftest.err >&5
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); } &&
4053         { ac_try='test -z "$ac_cxx_werror_flag"
4054                         || test ! -s conftest.err'
4055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056  (eval $ac_try) 2>&5
4057  ac_status=$?
4058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059  (exit $ac_status); }; } &&
4060         { ac_try='test -s conftest$ac_exeext'
4061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062  (eval $ac_try) 2>&5
4063  ac_status=$?
4064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065  (exit $ac_status); }; }; then
4066  :
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071CXXFLAGS=
4072fi
4073rm -f conftest.err conftest.$ac_objext \
4074      conftest$ac_exeext conftest.$ac_ext
4075  if test -z "$CXXFLAGS"; then
4076    { 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
4077echo "$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;}
4078  fi
4079fi
4080
4081{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4082echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4083
4084
4085if test x"$MPICXX" = x; then :; else
4086  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4087echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4088  CXX="$MPICXX"
4089fi
4090
4091# correct the LD variable in a build with MS or intel compiler
4092case "$CXX" in
4093  clang* ) ;;
4094  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4095    LD=link
4096    ;;
4097esac
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105
4106
4107# Initialize automake and libtool
4108{
4109
4110
4111
4112# START
4113
4114coin_disable_shared=no
4115# Test if force_shared has been set
4116if test "x" = xforce_shared; then
4117  if test x$enable_shared = xno; then
4118    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4119echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4120   { (exit 1); exit 1; }; }
4121  fi
4122  enable_shared=yes;
4123else
4124  case $build in
4125    *-cygwin* | *-mingw*)
4126      coin_disable_shared=yes
4127      if test x"$enable_shared" = xyes; then
4128        case "$CC" in
4129          clang* )
4130            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4131echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4132            ;;
4133          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4134            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4135echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4136            ;;
4137          *gcc*)
4138            if test x"$enable_dependency_linking" = xyes; then
4139              coin_disable_shared=no
4140            else
4141              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4142echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4143            fi
4144            ;;
4145          *)
4146            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4147echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4148            ;;
4149        esac
4150      fi
4151    ;;
4152    *-aix*)
4153      coin_disable_shared=yes
4154      platform=AIX
4155      if test x"$enable_shared" = xyes; then
4156        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4157echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4158      fi
4159    ;;
4160  esac
4161fi
4162if test x"$coin_disable_shared" = xyes; then
4163  if test x"$enable_shared" = xyes; then
4164    :
4165  else
4166    # we don't disable shared, because it was not selected anyway
4167    coin_disable_shared=no
4168  fi
4169  enable_shared=no
4170fi
4171# By default, we only want the shared objects to be compiled
4172# Check whether --enable-static or --disable-static was given.
4173if test "${enable_static+set}" = set; then
4174  enableval="$enable_static"
4175  p=${PACKAGE-default}
4176    case $enableval in
4177    yes) enable_static=yes ;;
4178    no) enable_static=no ;;
4179    *)
4180     enable_static=no
4181      # Look at the argument we got.  We use all the common list separators.
4182      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4183      for pkg in $enableval; do
4184        IFS="$lt_save_ifs"
4185        if test "X$pkg" = "X$p"; then
4186          enable_static=yes
4187        fi
4188      done
4189      IFS="$lt_save_ifs"
4190      ;;
4191    esac
4192else
4193  enable_static=no
4194fi;
4195
4196
4197
4198
4199# Initialize automake
4200echo "$as_me:$LINENO: checking for egrep" >&5
4201echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4202if test "${ac_cv_prog_egrep+set}" = set; then
4203  echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4206    then ac_cv_prog_egrep='grep -E'
4207    else ac_cv_prog_egrep='egrep'
4208    fi
4209fi
4210echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4211echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4212 EGREP=$ac_cv_prog_egrep
4213
4214
4215echo "$as_me:$LINENO: checking whether ln -s works" >&5
4216echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4217LN_S=$as_ln_s
4218if test "$LN_S" = "ln -s"; then
4219  echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
4221else
4222  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4223echo "${ECHO_T}no, using $LN_S" >&6
4224fi
4225
4226am__api_version="1.9"
4227# Find a good install program.  We prefer a C program (faster),
4228# so one script is as good as another.  But avoid the broken or
4229# incompatible versions:
4230# SysV /etc/install, /usr/sbin/install
4231# SunOS /usr/etc/install
4232# IRIX /sbin/install
4233# AIX /bin/install
4234# AmigaOS /C/install, which installs bootblocks on floppy discs
4235# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4236# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4237# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4238# OS/2's system install, which has a completely different semantic
4239# ./install, which can be erroneously created by make from ./install.sh.
4240echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4241echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4242if test -z "$INSTALL"; then
4243if test "${ac_cv_path_install+set}" = set; then
4244  echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249  IFS=$as_save_IFS
4250  test -z "$as_dir" && as_dir=.
4251  # Account for people who put trailing slashes in PATH elements.
4252case $as_dir/ in
4253  ./ | .// | /cC/* | \
4254  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4256  /usr/ucb/* ) ;;
4257  *)
4258    # OSF1 and SCO ODT 3.0 have their own names for install.
4259    # Don't use installbsd from OSF since it installs stuff as root
4260    # by default.
4261    for ac_prog in ginstall scoinst install; do
4262      for ac_exec_ext in '' $ac_executable_extensions; do
4263        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4264          if test $ac_prog = install &&
4265            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266            # AIX install.  It has an incompatible calling convention.
4267            :
4268          elif test $ac_prog = install &&
4269            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270            # program-specific install script used by HP pwplus--don't use.
4271            :
4272          else
4273            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4274            break 3
4275          fi
4276        fi
4277      done
4278    done
4279    ;;
4280esac
4281done
4282
4283
4284fi
4285  if test "${ac_cv_path_install+set}" = set; then
4286    INSTALL=$ac_cv_path_install
4287  else
4288    # As a last resort, use the slow shell script.  We don't cache a
4289    # path for INSTALL within a source directory, because that will
4290    # break other packages using the cache if that directory is
4291    # removed, or if the path is relative.
4292    INSTALL=$ac_install_sh
4293  fi
4294fi
4295echo "$as_me:$LINENO: result: $INSTALL" >&5
4296echo "${ECHO_T}$INSTALL" >&6
4297
4298# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299# It thinks the first close brace ends the variable substitution.
4300test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301
4302test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303
4304test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305
4306echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4307echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4308# Just in case
4309sleep 1
4310echo timestamp > conftest.file
4311# Do `set' in a subshell so we don't clobber the current shell's
4312# arguments.  Must try -L first in case configure is actually a
4313# symlink; some systems play weird games with the mod time of symlinks
4314# (eg FreeBSD returns the mod time of the symlink's containing
4315# directory).
4316if (
4317   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4318   if test "$*" = "X"; then
4319      # -L didn't work.
4320      set X `ls -t $srcdir/configure conftest.file`
4321   fi
4322   rm -f conftest.file
4323   if test "$*" != "X $srcdir/configure conftest.file" \
4324      && test "$*" != "X conftest.file $srcdir/configure"; then
4325
4326      # If neither matched, then we have a broken ls.  This can happen
4327      # if, for instance, CONFIG_SHELL is bash and it inherits a
4328      # broken ls alias from the environment.  This has actually
4329      # happened.  Such a system could not be considered "sane".
4330      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4331alias in your environment" >&5
4332echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4333alias in your environment" >&2;}
4334   { (exit 1); exit 1; }; }
4335   fi
4336
4337   test "$2" = conftest.file
4338   )
4339then
4340   # Ok.
4341   :
4342else
4343   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4344Check your system clock" >&5
4345echo "$as_me: error: newly created file is older than distributed files!
4346Check your system clock" >&2;}
4347   { (exit 1); exit 1; }; }
4348fi
4349echo "$as_me:$LINENO: result: yes" >&5
4350echo "${ECHO_T}yes" >&6
4351test "$program_prefix" != NONE &&
4352  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4353# Use a double $ so make ignores it.
4354test "$program_suffix" != NONE &&
4355  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4356# Double any \ or $.  echo might interpret backslashes.
4357# By default was `s,x,x', remove it if useless.
4358cat <<\_ACEOF >conftest.sed
4359s/[\\$]/&&/g;s/;s,x,x,$//
4360_ACEOF
4361program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4362rm conftest.sed
4363
4364# expand $ac_aux_dir to an absolute path
4365am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4368# Use eval to expand $SHELL
4369if eval "$MISSING --run true"; then
4370  am_missing_run="$MISSING --run "
4371else
4372  am_missing_run=
4373  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4374echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4375fi
4376
4377if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4378  # We used to keeping the `.' as first argument, in order to
4379  # allow $(mkdir_p) to be used without argument.  As in
4380  #   $(mkdir_p) $(somedir)
4381  # where $(somedir) is conditionally defined.  However this is wrong
4382  # for two reasons:
4383  #  1. if the package is installed by a user who cannot write `.'
4384  #     make install will fail,
4385  #  2. the above comment should most certainly read
4386  #     $(mkdir_p) $(DESTDIR)$(somedir)
4387  #     so it does not work when $(somedir) is undefined and
4388  #     $(DESTDIR) is not.
4389  #  To support the latter case, we have to write
4390  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4391  #  so the `.' trick is pointless.
4392  mkdir_p='mkdir -p --'
4393else
4394  # On NextStep and OpenStep, the `mkdir' command does not
4395  # recognize any option.  It will interpret all options as
4396  # directories to create, and then abort because `.' already
4397  # exists.
4398  for d in ./-p ./--version;
4399  do
4400    test -d $d && rmdir $d
4401  done
4402  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4403  if test -f "$ac_aux_dir/mkinstalldirs"; then
4404    mkdir_p='$(mkinstalldirs)'
4405  else
4406    mkdir_p='$(install_sh) -d'
4407  fi
4408fi
4409
4410for ac_prog in gawk mawk nawk awk
4411do
4412  # Extract the first word of "$ac_prog", so it can be a program name with args.
4413set dummy $ac_prog; ac_word=$2
4414echo "$as_me:$LINENO: checking for $ac_word" >&5
4415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416if test "${ac_cv_prog_AWK+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  if test -n "$AWK"; then
4420  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4421else
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427  for ac_exec_ext in '' $ac_executable_extensions; do
4428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429    ac_cv_prog_AWK="$ac_prog"
4430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431    break 2
4432  fi
4433done
4434done
4435
4436fi
4437fi
4438AWK=$ac_cv_prog_AWK
4439if test -n "$AWK"; then
4440  echo "$as_me:$LINENO: result: $AWK" >&5
4441echo "${ECHO_T}$AWK" >&6
4442else
4443  echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445fi
4446
4447  test -n "$AWK" && break
4448done
4449
4450echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4451echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4452set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4453if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456  cat >conftest.make <<\_ACEOF
4457all:
4458        @echo 'ac_maketemp="$(MAKE)"'
4459_ACEOF
4460# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4461eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4462if test -n "$ac_maketemp"; then
4463  eval ac_cv_prog_make_${ac_make}_set=yes
4464else
4465  eval ac_cv_prog_make_${ac_make}_set=no
4466fi
4467rm -f conftest.make
4468fi
4469if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4470  echo "$as_me:$LINENO: result: yes" >&5
4471echo "${ECHO_T}yes" >&6
4472  SET_MAKE=
4473else
4474  echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
4476  SET_MAKE="MAKE=${MAKE-make}"
4477fi
4478
4479rm -rf .tst 2>/dev/null
4480mkdir .tst 2>/dev/null
4481if test -d .tst; then
4482  am__leading_dot=.
4483else
4484  am__leading_dot=_
4485fi
4486rmdir .tst 2>/dev/null
4487
4488DEPDIR="${am__leading_dot}deps"
4489
4490          ac_config_commands="$ac_config_commands depfiles"
4491
4492
4493am_make=${MAKE-make}
4494cat > confinc << 'END'
4495am__doit:
4496        @echo done
4497.PHONY: am__doit
4498END
4499# If we don't find an include directive, just comment out the code.
4500echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4501echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4502am__include="#"
4503am__quote=
4504_am_result=none
4505# First try GNU make style include.
4506echo "include confinc" > confmf
4507# We grep out `Entering directory' and `Leaving directory'
4508# messages which can occur if `w' ends up in MAKEFLAGS.
4509# In particular we don't look at `^make:' because GNU make might
4510# be invoked under some other name (usually "gmake"), in which
4511# case it prints its new name instead of `make'.
4512if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4513   am__include=include
4514   am__quote=
4515   _am_result=GNU
4516fi
4517# Now try BSD make style include.
4518if test "$am__include" = "#"; then
4519   echo '.include "confinc"' > confmf
4520   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4521      am__include=.include
4522      am__quote="\""
4523      _am_result=BSD
4524   fi
4525fi
4526
4527
4528echo "$as_me:$LINENO: result: $_am_result" >&5
4529echo "${ECHO_T}$_am_result" >&6
4530rm -f confinc confmf
4531
4532# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4533if test "${enable_dependency_tracking+set}" = set; then
4534  enableval="$enable_dependency_tracking"
4535
4536fi;
4537if test "x$enable_dependency_tracking" != xno; then
4538  am_depcomp="$ac_aux_dir/depcomp"
4539  AMDEPBACKSLASH='\'
4540fi
4541
4542
4543if test "x$enable_dependency_tracking" != xno; then
4544  AMDEP_TRUE=
4545  AMDEP_FALSE='#'
4546else
4547  AMDEP_TRUE='#'
4548  AMDEP_FALSE=
4549fi
4550
4551
4552
4553
4554
4555
4556# AC_MSG_NOTICE([Beginning automake initialisation.])
4557# Stuff for automake
4558# test to see if srcdir already configured
4559if test "`cd $srcdir && pwd`" != "`pwd`" &&
4560   test -f $srcdir/config.status; then
4561  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4562echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4563   { (exit 1); exit 1; }; }
4564fi
4565
4566# test whether we have cygpath
4567if test -z "$CYGPATH_W"; then
4568  if (cygpath --version) >/dev/null 2>/dev/null; then
4569    CYGPATH_W='cygpath -w'
4570  else
4571    CYGPATH_W=echo
4572  fi
4573fi
4574
4575
4576# Define the identity of the package.
4577 PACKAGE='cbc'
4578 VERSION='trunk'
4579
4580
4581cat >>confdefs.h <<_ACEOF
4582#define PACKAGE "$PACKAGE"
4583_ACEOF
4584
4585
4586cat >>confdefs.h <<_ACEOF
4587#define VERSION "$VERSION"
4588_ACEOF
4589
4590# Some tools Automake needs.
4591
4592ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4593
4594
4595AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4596
4597
4598AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4599
4600
4601AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4602
4603
4604MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4605
4606install_sh=${install_sh-"$am_aux_dir/install-sh"}
4607
4608# Installed binaries are usually stripped using `strip' when the user
4609# run `make install-strip'.  However `strip' might not be the right
4610# tool to use in cross-compilation environments, therefore Automake
4611# will honor the `STRIP' environment variable to overrule this program.
4612if test "$cross_compiling" != no; then
4613  if test -n "$ac_tool_prefix"; then
4614  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4615set dummy ${ac_tool_prefix}strip; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_prog_STRIP+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  if test -n "$STRIP"; then
4622  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627  IFS=$as_save_IFS
4628  test -z "$as_dir" && as_dir=.
4629  for ac_exec_ext in '' $ac_executable_extensions; do
4630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633    break 2
4634  fi
4635done
4636done
4637
4638fi
4639fi
4640STRIP=$ac_cv_prog_STRIP
4641if test -n "$STRIP"; then
4642  echo "$as_me:$LINENO: result: $STRIP" >&5
4643echo "${ECHO_T}$STRIP" >&6
4644else
4645  echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647fi
4648
4649fi
4650if test -z "$ac_cv_prog_STRIP"; then
4651  ac_ct_STRIP=$STRIP
4652  # Extract the first word of "strip", so it can be a program name with args.
4653set dummy strip; ac_word=$2
4654echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  if test -n "$ac_ct_STRIP"; then
4660  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665  IFS=$as_save_IFS
4666  test -z "$as_dir" && as_dir=.
4667  for ac_exec_ext in '' $ac_executable_extensions; do
4668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669    ac_cv_prog_ac_ct_STRIP="strip"
4670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674done
4675
4676  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4677fi
4678fi
4679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4680if test -n "$ac_ct_STRIP"; then
4681  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4682echo "${ECHO_T}$ac_ct_STRIP" >&6
4683else
4684  echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688  STRIP=$ac_ct_STRIP
4689else
4690  STRIP="$ac_cv_prog_STRIP"
4691fi
4692
4693fi
4694INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4695
4696# We need awk for the "check" target.  The system "awk" is bad on
4697# some platforms.
4698# Always define AMTAR for backward compatibility.
4699
4700AMTAR=${AMTAR-"${am_missing_run}tar"}
4701
4702am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4703
4704
4705
4706
4707depcc="$CC"   am_compiler_list=
4708
4709echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4710echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4711if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4715  # We make a subdir and do the tests there.  Otherwise we can end up
4716  # making bogus files that we don't know about and never remove.  For
4717  # instance it was reported that on HP-UX the gcc test will end up
4718  # making a dummy file named `D' -- because `-MD' means `put the output
4719  # in D'.
4720  mkdir conftest.dir
4721  # Copy depcomp to subdir because otherwise we won't find it if we're
4722  # using a relative directory.
4723  cp "$am_depcomp" conftest.dir
4724  cd conftest.dir
4725  # We will build objects and dependencies in a subdirectory because
4726  # it helps to detect inapplicable dependency modes.  For instance
4727  # both Tru64's cc and ICC support -MD to output dependencies as a
4728  # side effect of compilation, but ICC will put the dependencies in
4729  # the current directory while Tru64 will put them in the object
4730  # directory.
4731  mkdir sub
4732
4733  am_cv_CC_dependencies_compiler_type=none
4734  if test "$am_compiler_list" = ""; then
4735     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4736  fi
4737  for depmode in $am_compiler_list; do
4738    # Setup a source with many dependencies, because some compilers
4739    # like to wrap large dependency lists on column 80 (with \), and
4740    # we should not choose a depcomp mode which is confused by this.
4741    #
4742    # We need to recreate these files for each test, as the compiler may
4743    # overwrite some of them when testing with obscure command lines.
4744    # This happens at least with the AIX C compiler.
4745    : > sub/conftest.c
4746    for i in 1 2 3 4 5 6; do
4747      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4748      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4749      # Solaris 8's {/usr,}/bin/sh.
4750      touch sub/conftst$i.h
4751    done
4752    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4753
4754    case $depmode in
4755    nosideeffect)
4756      # after this tag, mechanisms are not by side-effect, so they'll
4757      # only be used when explicitly requested
4758      if test "x$enable_dependency_tracking" = xyes; then
4759        continue
4760      else
4761        break
4762      fi
4763      ;;
4764    none) break ;;
4765    esac
4766    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4767    # mode.  It turns out that the SunPro C++ compiler does not properly
4768    # handle `-M -o', and we need to detect this.
4769    if depmode=$depmode \
4770       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4771       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4772       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4773         >/dev/null 2>conftest.err &&
4774       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4775       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4776       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4777      # icc doesn't choke on unknown options, it will just issue warnings
4778      # or remarks (even with -Werror).  So we grep stderr for any message
4779      # that says an option was ignored or not supported.
4780      # When given -MP, icc 7.0 and 7.1 complain thusly:
4781      #   icc: Command line warning: ignoring option '-M'; no argument required
4782      # The diagnosis changed in icc 8.0:
4783      #   icc: Command line remark: option '-MP' not supported
4784      if (grep 'ignoring option' conftest.err ||
4785          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4786        am_cv_CC_dependencies_compiler_type=$depmode
4787        break
4788      fi
4789    fi
4790  done
4791
4792  cd ..
4793  rm -rf conftest.dir
4794else
4795  am_cv_CC_dependencies_compiler_type=none
4796fi
4797
4798fi
4799echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4800echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4801CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4802
4803
4804
4805if
4806  test "x$enable_dependency_tracking" != xno \
4807  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4808  am__fastdepCC_TRUE=
4809  am__fastdepCC_FALSE='#'
4810else
4811  am__fastdepCC_TRUE='#'
4812  am__fastdepCC_FALSE=
4813fi
4814
4815
4816depcc="$CXX"  am_compiler_list=
4817
4818echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4819echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4820if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4824  # We make a subdir and do the tests there.  Otherwise we can end up
4825  # making bogus files that we don't know about and never remove.  For
4826  # instance it was reported that on HP-UX the gcc test will end up
4827  # making a dummy file named `D' -- because `-MD' means `put the output
4828  # in D'.
4829  mkdir conftest.dir
4830  # Copy depcomp to subdir because otherwise we won't find it if we're
4831  # using a relative directory.
4832  cp "$am_depcomp" conftest.dir
4833  cd conftest.dir
4834  # We will build objects and dependencies in a subdirectory because
4835  # it helps to detect inapplicable dependency modes.  For instance
4836  # both Tru64's cc and ICC support -MD to output dependencies as a
4837  # side effect of compilation, but ICC will put the dependencies in
4838  # the current directory while Tru64 will put them in the object
4839  # directory.
4840  mkdir sub
4841
4842  am_cv_CXX_dependencies_compiler_type=none
4843  if test "$am_compiler_list" = ""; then
4844     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845  fi
4846  for depmode in $am_compiler_list; do
4847    # Setup a source with many dependencies, because some compilers
4848    # like to wrap large dependency lists on column 80 (with \), and
4849    # we should not choose a depcomp mode which is confused by this.
4850    #
4851    # We need to recreate these files for each test, as the compiler may
4852    # overwrite some of them when testing with obscure command lines.
4853    # This happens at least with the AIX C compiler.
4854    : > sub/conftest.c
4855    for i in 1 2 3 4 5 6; do
4856      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4857      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4858      # Solaris 8's {/usr,}/bin/sh.
4859      touch sub/conftst$i.h
4860    done
4861    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4862
4863    case $depmode in
4864    nosideeffect)
4865      # after this tag, mechanisms are not by side-effect, so they'll
4866      # only be used when explicitly requested
4867      if test "x$enable_dependency_tracking" = xyes; then
4868        continue
4869      else
4870        break
4871      fi
4872      ;;
4873    none) break ;;
4874    esac
4875    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4876    # mode.  It turns out that the SunPro C++ compiler does not properly
4877    # handle `-M -o', and we need to detect this.
4878    if depmode=$depmode \
4879       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4880       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4882         >/dev/null 2>conftest.err &&
4883       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4884       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4885       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4886      # icc doesn't choke on unknown options, it will just issue warnings
4887      # or remarks (even with -Werror).  So we grep stderr for any message
4888      # that says an option was ignored or not supported.
4889      # When given -MP, icc 7.0 and 7.1 complain thusly:
4890      #   icc: Command line warning: ignoring option '-M'; no argument required
4891      # The diagnosis changed in icc 8.0:
4892      #   icc: Command line remark: option '-MP' not supported
4893      if (grep 'ignoring option' conftest.err ||
4894          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4895        am_cv_CXX_dependencies_compiler_type=$depmode
4896        break
4897      fi
4898    fi
4899  done
4900
4901  cd ..
4902  rm -rf conftest.dir
4903else
4904  am_cv_CXX_dependencies_compiler_type=none
4905fi
4906
4907fi
4908echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4909echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4910CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4911
4912
4913
4914if
4915  test "x$enable_dependency_tracking" != xno \
4916  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4917  am__fastdepCXX_TRUE=
4918  am__fastdepCXX_FALSE='#'
4919else
4920  am__fastdepCXX_TRUE='#'
4921  am__fastdepCXX_FALSE=
4922fi
4923
4924
4925
4926echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4927echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4928    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4929if test "${enable_maintainer_mode+set}" = set; then
4930  enableval="$enable_maintainer_mode"
4931  USE_MAINTAINER_MODE=$enableval
4932else
4933  USE_MAINTAINER_MODE=no
4934fi;
4935  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4936echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4937
4938
4939if test $USE_MAINTAINER_MODE = yes; then
4940  MAINTAINER_MODE_TRUE=
4941  MAINTAINER_MODE_FALSE='#'
4942else
4943  MAINTAINER_MODE_TRUE='#'
4944  MAINTAINER_MODE_FALSE=
4945fi
4946
4947  MAINT=$MAINTAINER_MODE_TRUE
4948
4949
4950
4951coin_have_externals=no
4952if test "$enable_maintainer_mode" = yes; then
4953
4954  # If maintainer mode is chosen, we make sure that the correct versions
4955  # of the tools are used, and that we know where libtool.m4 is (to
4956  # recreate acinclude.m4)
4957
4958
4959  LIBTOOLM4=
4960  # Normally, $HOME
4961  AUTOTOOLS_DFLT=$HOME
4962
4963  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4964echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4965if test "${ac_cv_use_correct_autotools+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  ac_cv_use_correct_autotools=check
4969fi
4970echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4971echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4972
4973  if test $ac_cv_use_correct_autotools = check; then
4974    ac_cv_use_correct_autotools=yes
4975    # Check if we have autoconf
4976    # Extract the first word of "autoconf", so it can be a program name with args.
4977set dummy autoconf; ac_word=$2
4978echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980if test "${ac_cv_prog_have_autoconf+set}" = set; then
4981  echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983  if test -n "$have_autoconf"; then
4984  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991  for ac_exec_ext in '' $ac_executable_extensions; do
4992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993    ac_cv_prog_have_autoconf="yes"
4994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998done
4999
5000  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5001fi
5002fi
5003have_autoconf=$ac_cv_prog_have_autoconf
5004if test -n "$have_autoconf"; then
5005  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5006echo "${ECHO_T}$have_autoconf" >&6
5007else
5008  echo "$as_me:$LINENO: result: no" >&5
5009echo "${ECHO_T}no" >&6
5010fi
5011
5012    if test $have_autoconf = no; then
5013      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5014echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5015   { (exit 1); exit 1; }; }
5016    fi
5017
5018    # Check whether autoconf is the correct version
5019    correct_version='2.59'
5020    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5021    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5022echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5023    autoconf --version > confauto.out 2>&1
5024    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5025      echo "$as_me:$LINENO: result: yes" >&5
5026echo "${ECHO_T}yes" >&6
5027    else
5028      rm -f confauto.out
5029      echo "$as_me:$LINENO: result: no" >&5
5030echo "${ECHO_T}no" >&6
5031      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5032echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5033   { (exit 1); exit 1; }; }
5034    fi
5035    rm -f confauto.out
5036
5037    # Check if the executable autoconf is picked up from the correct location
5038    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5039echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5040    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5041    autoconf_dir=`cd $autoconf_dir; pwd`
5042    if test x$AUTOTOOLS_DIR = x; then
5043      want_dir=$AUTOTOOLS_DFLT/bin
5044    else
5045      want_dir=$AUTOTOOLS_DIR/bin
5046    fi
5047    if test $autoconf_dir = `cd $want_dir; pwd`; then
5048      echo "$as_me:$LINENO: result: yes" >&5
5049echo "${ECHO_T}yes" >&6
5050    else
5051      rm -f confauto.out
5052      echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5055echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5056   { (exit 1); exit 1; }; }
5057    fi
5058
5059    # Check if we have automake
5060    # Extract the first word of "automake", so it can be a program name with args.
5061set dummy automake; ac_word=$2
5062echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064if test "${ac_cv_prog_have_automake+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  if test -n "$have_automake"; then
5068  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073  IFS=$as_save_IFS
5074  test -z "$as_dir" && as_dir=.
5075  for ac_exec_ext in '' $ac_executable_extensions; do
5076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077    ac_cv_prog_have_automake="yes"
5078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079    break 2
5080  fi
5081done
5082done
5083
5084  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5085fi
5086fi
5087have_automake=$ac_cv_prog_have_automake
5088if test -n "$have_automake"; then
5089  echo "$as_me:$LINENO: result: $have_automake" >&5
5090echo "${ECHO_T}$have_automake" >&6
5091else
5092  echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
5094fi
5095
5096    if test $have_automake = no; then
5097      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5098echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5099   { (exit 1); exit 1; }; }
5100    fi
5101
5102    # Check whether automake is the correct version
5103    correct_version='1.9.6'
5104    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5105    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5106echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5107    automake --version > confauto.out 2>&1
5108    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5109      echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111    else
5112      rm -f confauto.out
5113      echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
5115      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5116echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5117   { (exit 1); exit 1; }; }
5118    fi
5119    rm -f confauto.out
5120
5121    # Check if the executable automake is picked up from the correct location
5122    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5123echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5124    automake_dir=`which automake | sed -e 's=/automake=='`
5125    automake_dir=`cd $automake_dir; pwd`
5126    if test x$AUTOTOOLS_DIR = x; then
5127      want_dir=$AUTOTOOLS_DFLT/bin
5128    else
5129      want_dir=$AUTOTOOLS_DIR/bin
5130    fi
5131    if test $automake_dir = `cd $want_dir; pwd`; then
5132      echo "$as_me:$LINENO: result: yes" >&5
5133echo "${ECHO_T}yes" >&6
5134    else
5135      rm -f confauto.out
5136      echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5139echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5140   { (exit 1); exit 1; }; }
5141    fi
5142
5143    # Check if this is the correct version of libtool (with escaped dots)
5144    if test x$AUTOTOOLS_DIR = x; then
5145      want_dir=$AUTOTOOLS_DFLT/share
5146    else
5147      want_dir=$AUTOTOOLS_DIR/share
5148    fi
5149    correct_version='1.5.22'
5150    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5151    if test -r $want_dir/libtool/ltmain.sh; then
5152  have_ltmain=yes
5153  :
5154else
5155  have_ltmain=no
5156  :
5157fi
5158
5159    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5160echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5161    if test $have_ltmain = yes; then
5162    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5163        echo "$as_me:$LINENO: result: yes" >&5
5164echo "${ECHO_T}yes" >&6
5165      else
5166        echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5169echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5170   { (exit 1); exit 1; }; }
5171      fi
5172    else
5173      echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6
5175      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5176echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5177   { (exit 1); exit 1; }; }
5178    fi
5179  fi
5180
5181  # Check if we can find the libtool file
5182  if test x$AUTOTOOLS_DIR = x; then
5183    want_dir=$AUTOTOOLS_DFLT/share
5184  else
5185    want_dir=$AUTOTOOLS_DIR/share
5186  fi
5187  if test -r $want_dir/aclocal/libtool.m4; then
5188  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5189  :
5190else
5191  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5192echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5193   { (exit 1); exit 1; }; }
5194  :
5195fi
5196
5197
5198  # Check if we have an Dependencies file
5199  if test -r $srcdir/Dependencies; then
5200    coin_have_externals=yes
5201  fi
5202  # Check if subversion is installed and understands https
5203  # Extract the first word of "svn", so it can be a program name with args.
5204set dummy svn; ac_word=$2
5205echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207if test "${ac_cv_prog_have_svn+set}" = set; then
5208  echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210  if test -n "$have_svn"; then
5211  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218  for ac_exec_ext in '' $ac_executable_extensions; do
5219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220    ac_cv_prog_have_svn="yes"
5221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225done
5226
5227  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5228fi
5229fi
5230have_svn=$ac_cv_prog_have_svn
5231if test -n "$have_svn"; then
5232  echo "$as_me:$LINENO: result: $have_svn" >&5
5233echo "${ECHO_T}$have_svn" >&6
5234else
5235  echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237fi
5238
5239  if test x$have_svn = xyes; then
5240    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5241echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5242if test "${ac_cv_svn_understands_https+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245  svn --version > confauto.out 2>&1
5246                    if $EGREP https confauto.out >/dev/null 2>&1; then
5247                      ac_cv_svn_understands_https=yes
5248                    else
5249                      ac_cv_svn_understands_https=no
5250                      have_svn=no
5251                      ac_cv_prog_have_svn=no
5252                    fi
5253                    rm -f confauto.out
5254fi
5255echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5256echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5257  fi
5258
5259  # Find the location of the BuildTools directory
5260  BUILDTOOLSDIR=
5261  if test -r $srcdir/BuildTools/coin.m4; then
5262    BUILDTOOLSDIR=$srcdir/BuildTools
5263  else
5264    if test -r $srcdir/../BuildTools/coin.m4; then
5265      BUILDTOOLSDIR=$srcdir/../BuildTools
5266    else
5267      if test -r $srcdir/../../BuildTools/coin.m4; then
5268        BUILDTOOLSDIR=$srcdir/../../BuildTools
5269      else
5270        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5271echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5272   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5273      fi
5274    fi
5275  fi
5276
5277
5278  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5279  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5280    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5281  fi
5282
5283  # The following variable is set to the name of the directory where
5284  # the autotool scripts are located
5285
5286  AUX_DIR=$ac_aux_dir
5287fi
5288
5289# helpful variable for the base directory of this package
5290abs_source_dir=`cd $srcdir; pwd`
5291
5292
5293# Stuff for example Makefiles
5294if test x$prefix = xNONE; then
5295  full_prefix=$ac_default_prefix
5296else
5297  full_prefix=$prefix
5298fi
5299full_prefix=`cd $full_prefix ; pwd`
5300
5301abs_lib_dir=$full_prefix/lib
5302
5303abs_include_dir=$full_prefix/include
5304
5305abs_bin_dir=$full_prefix/bin
5306
5307
5308
5309if test $coin_have_externals = yes && test x$have_svn = xyes; then
5310  HAVE_EXTERNALS_TRUE=
5311  HAVE_EXTERNALS_FALSE='#'
5312else
5313  HAVE_EXTERNALS_TRUE='#'
5314  HAVE_EXTERNALS_FALSE=
5315fi
5316
5317
5318# AC_MSG_NOTICE([End automake initialisation.])
5319
5320
5321
5322LIBTOOL=
5323if test -f ../libtool; then
5324  coin_config_dir=..
5325  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5326fi
5327if test "x$LIBTOOL" = x; then
5328  if test -f ../../libtool; then
5329    coin_config_dir=../..
5330    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5331  fi
5332fi
5333
5334if test "x$LIBTOOL" = x; then
5335# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5336  # Stuff for libtool
5337  # Check whether --enable-shared or --disable-shared was given.
5338if test "${enable_shared+set}" = set; then
5339  enableval="$enable_shared"
5340  p=${PACKAGE-default}
5341    case $enableval in
5342    yes) enable_shared=yes ;;
5343    no) enable_shared=no ;;
5344    *)
5345      enable_shared=no
5346      # Look at the argument we got.  We use all the common list separators.
5347      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5348      for pkg in $enableval; do
5349        IFS="$lt_save_ifs"
5350        if test "X$pkg" = "X$p"; then
5351          enable_shared=yes
5352        fi
5353      done
5354      IFS="$lt_save_ifs"
5355      ;;
5356    esac
5357else
5358  enable_shared=yes
5359fi;
5360
5361# Check whether --enable-fast-install or --disable-fast-install was given.
5362if test "${enable_fast_install+set}" = set; then
5363  enableval="$enable_fast_install"
5364  p=${PACKAGE-default}
5365    case $enableval in
5366    yes) enable_fast_install=yes ;;
5367    no) enable_fast_install=no ;;
5368    *)
5369      enable_fast_install=no
5370      # Look at the argument we got.  We use all the common list separators.
5371      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5372      for pkg in $enableval; do
5373        IFS="$lt_save_ifs"
5374        if test "X$pkg" = "X$p"; then
5375          enable_fast_install=yes
5376        fi
5377      done
5378      IFS="$lt_save_ifs"
5379      ;;
5380    esac
5381else
5382  enable_fast_install=yes
5383fi;
5384
5385echo "$as_me:$LINENO: checking host system type" >&5
5386echo $ECHO_N "checking host system type... $ECHO_C" >&6
5387if test "${ac_cv_host+set}" = set; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  ac_cv_host_alias=$host_alias
5391test -z "$ac_cv_host_alias" &&
5392  ac_cv_host_alias=$ac_cv_build_alias
5393ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5394  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5395echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5396   { (exit 1); exit 1; }; }
5397
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5400echo "${ECHO_T}$ac_cv_host" >&6
5401host=$ac_cv_host
5402host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5403host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5404host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5405
5406
5407echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5408echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5409if test "${lt_cv_path_SED+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  # Loop through the user's path and test for sed and gsed.
5413# Then use that list of sed's as ones to test for truncation.
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  test -z "$as_dir" && as_dir=.
5419  for lt_ac_prog in sed gsed; do
5420    for ac_exec_ext in '' $ac_executable_extensions; do
5421      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5422        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5423      fi
5424    done
5425  done
5426done
5427lt_ac_max=0
5428lt_ac_count=0
5429# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5430# along with /bin/sed that truncates output.
5431for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5432  test ! -f $lt_ac_sed && continue
5433  cat /dev/null > conftest.in
5434  lt_ac_count=0
5435  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5436  # Check for GNU sed and select it if it is found.
5437  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5438    lt_cv_path_SED=$lt_ac_sed
5439    break
5440  fi
5441  while true; do
5442    cat conftest.in conftest.in >conftest.tmp
5443    mv conftest.tmp conftest.in
5444    cp conftest.in conftest.nl
5445    echo >>conftest.nl
5446    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5447    cmp -s conftest.out conftest.nl || break
5448    # 10000 chars as input seems more than enough
5449    test $lt_ac_count -gt 10 && break
5450    lt_ac_count=`expr $lt_ac_count + 1`
5451    if test $lt_ac_count -gt $lt_ac_max; then
5452      lt_ac_max=$lt_ac_count
5453      lt_cv_path_SED=$lt_ac_sed
5454    fi
5455  done
5456done
5457
5458fi
5459
5460SED=$lt_cv_path_SED
5461echo "$as_me:$LINENO: result: $SED" >&5
5462echo "${ECHO_T}$SED" >&6
5463
5464
5465# Check whether --with-gnu-ld or --without-gnu-ld was given.
5466if test "${with_gnu_ld+set}" = set; then
5467  withval="$with_gnu_ld"
5468  test "$withval" = no || with_gnu_ld=yes
5469else
5470  with_gnu_ld=no
5471fi;
5472ac_prog=ld
5473if test "$GCC" = yes; then
5474  # Check if gcc -print-prog-name=ld gives a path.
5475  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5476echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5477  case $host in
5478  *-*-mingw*)
5479    # gcc leaves a trailing carriage return which upsets mingw
5480    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5481  *)
5482    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5483  esac
5484  case $ac_prog in
5485    # Accept absolute paths.
5486    [\\/]* | ?:[\\/]*)
5487      re_direlt='/[^/][^/]*/\.\./'
5488      # Canonicalize the pathname of ld
5489      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5490      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5491        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5492      done
5493      test -z "$LD" && LD="$ac_prog"
5494      ;;
5495  "")
5496    # If it fails, then pretend we aren't using GCC.
5497    ac_prog=ld
5498    ;;
5499  *)
5500    # If it is relative, then search for the first ld in PATH.
5501    with_gnu_ld=unknown
5502    ;;
5503  esac
5504elif test "$with_gnu_ld" = yes; then
5505  echo "$as_me:$LINENO: checking for GNU ld" >&5
5506echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5507else
5508  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5509echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5510fi
5511if test "${lt_cv_path_LD+set}" = set; then
5512  echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514  if test -z "$LD"; then
5515  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5516  for ac_dir in $PATH; do
5517    IFS="$lt_save_ifs"
5518    test -z "$ac_dir" && ac_dir=.
5519    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5520      lt_cv_path_LD="$ac_dir/$ac_prog"
5521      # Check to see if the program is GNU ld.  I'd rather use --version,
5522      # but apparently some variants of GNU ld only accept -v.
5523      # Break only if it was the GNU/non-GNU ld that we prefer.
5524      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5525      *GNU* | *'with BFD'*)
5526        test "$with_gnu_ld" != no && break
5527        ;;
5528      *)
5529        test "$with_gnu_ld" != yes && break
5530        ;;
5531      esac
5532    fi
5533  done
5534  IFS="$lt_save_ifs"
5535else
5536  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5537fi
5538fi
5539
5540LD="$lt_cv_path_LD"
5541if test -n "$LD"; then
5542  echo "$as_me:$LINENO: result: $LD" >&5
5543echo "${ECHO_T}$LD" >&6
5544else
5545  echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5549echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5550   { (exit 1); exit 1; }; }
5551echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5552echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5553if test "${lt_cv_prog_gnu_ld+set}" = set; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5557case `$LD -v 2>&1 </dev/null` in
5558*GNU* | *'with BFD'*)
5559  lt_cv_prog_gnu_ld=yes
5560  ;;
5561*)
5562  lt_cv_prog_gnu_ld=no
5563  ;;
5564esac
5565fi
5566echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5567echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5568with_gnu_ld=$lt_cv_prog_gnu_ld
5569
5570
5571echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5572echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5573if test "${lt_cv_ld_reload_flag+set}" = set; then
5574  echo $ECHO_N "(cached) $ECHO_C" >&6
5575else
5576  lt_cv_ld_reload_flag='-r'
5577fi
5578echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5579echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5580reload_flag=$lt_cv_ld_reload_flag
5581case $reload_flag in
5582"" | " "*) ;;
5583*) reload_flag=" $reload_flag" ;;
5584esac
5585reload_cmds='$LD$reload_flag -o $output$reload_objs'
5586case $host_os in
5587  darwin*)
5588    if test "$GCC" = yes; then
5589      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5590    else
5591      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592    fi
5593    ;;
5594esac
5595
5596echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5597echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5598if test "${lt_cv_path_NM+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  if test -n "$NM"; then
5602  # Let the user override the test.
5603  lt_cv_path_NM="$NM"
5604else
5605  lt_nm_to_check="${ac_tool_prefix}nm"
5606  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5607    lt_nm_to_check="$lt_nm_to_check nm"
5608  fi
5609  for lt_tmp_nm in $lt_nm_to_check; do
5610    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5611    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5612      IFS="$lt_save_ifs"
5613      test -z "$ac_dir" && ac_dir=.
5614      tmp_nm="$ac_dir/$lt_tmp_nm"
5615      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5616        # Check to see if the nm accepts a BSD-compat flag.
5617        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5618        #   nm: unknown option "B" ignored
5619        # Tru64's nm complains that /dev/null is an invalid object file
5620        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5621        */dev/null* | *'Invalid file or object type'*)
5622          lt_cv_path_NM="$tmp_nm -B"
5623          break
5624          ;;
5625        *)
5626          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5627          */dev/null*)
5628            lt_cv_path_NM="$tmp_nm -p"
5629            break
5630            ;;
5631          *)
5632            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5633            continue # so that we can try to find one that supports BSD flags
5634            ;;
5635          esac
5636          ;;
5637        esac
5638      fi
5639    done
5640    IFS="$lt_save_ifs"
5641  done
5642  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5643fi
5644fi
5645echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5646echo "${ECHO_T}$lt_cv_path_NM" >&6
5647NM="$lt_cv_path_NM"
5648
5649echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5650echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5651if test "${lt_cv_deplibs_check_method+set}" = set; then
5652  echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654  lt_cv_file_magic_cmd='$MAGIC_CMD'
5655lt_cv_file_magic_test_file=
5656lt_cv_deplibs_check_method='unknown'
5657# Need to set the preceding variable on all platforms that support
5658# interlibrary dependencies.
5659# 'none' -- dependencies not supported.
5660# `unknown' -- same as none, but documents that we really don't know.
5661# 'pass_all' -- all dependencies passed with no checks.
5662# 'test_compile' -- check by making test program.
5663# 'file_magic [[regex]]' -- check by looking for files in library path
5664# which responds to the $file_magic_cmd with a given extended regex.
5665# If you have `file' or equivalent on your system and you're not sure
5666# whether `pass_all' will *always* work, you probably want this one.
5667
5668case $host_os in
5669aix4* | aix5*)
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673beos*)
5674  lt_cv_deplibs_check_method=pass_all
5675  ;;
5676
5677bsdi[45]*)
5678  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5679  lt_cv_file_magic_cmd='/usr/bin/file -L'
5680  lt_cv_file_magic_test_file=/shlib/libc.so
5681  ;;
5682
5683cygwin*)
5684  # func_win32_libid is a shell function defined in ltmain.sh
5685  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5686  lt_cv_file_magic_cmd='func_win32_libid'
5687  ;;
5688
5689mingw* | pw32*)
5690  # Base MSYS/MinGW do not provide the 'file' command needed by
5691  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5692  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5693  lt_cv_file_magic_cmd='$OBJDUMP -f'
5694  ;;
5695
5696darwin* | rhapsody*)
5697  lt_cv_deplibs_check_method=pass_all
5698  ;;
5699
5700freebsd* | kfreebsd*-gnu | dragonfly*)
5701  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5702    case $host_cpu in
5703    i*86 )
5704      # Not sure whether the presence of OpenBSD here was a mistake.
5705      # Let's accept both of them until this is cleared up.
5706      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5707      lt_cv_file_magic_cmd=/usr/bin/file
5708      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5709      ;;
5710    esac
5711  else
5712    lt_cv_deplibs_check_method=pass_all
5713  fi
5714  ;;
5715
5716gnu*)
5717  lt_cv_deplibs_check_method=pass_all
5718  ;;
5719
5720hpux10.20* | hpux11*)
5721  lt_cv_file_magic_cmd=/usr/bin/file
5722  case $host_cpu in
5723  ia64*)
5724    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5725    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5726    ;;
5727  hppa*64*)
5728    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]'
5729    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5730    ;;
5731  *)
5732    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5733    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5734    ;;
5735  esac
5736  ;;
5737
5738interix3*)
5739  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5740  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5741  ;;
5742
5743irix5* | irix6* | nonstopux*)
5744  case $LD in
5745  *-32|*"-32 ") libmagic=32-bit;;
5746  *-n32|*"-n32 ") libmagic=N32;;
5747  *-64|*"-64 ") libmagic=64-bit;;
5748  *) libmagic=never-match;;
5749  esac
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753# This must be Linux ELF.
5754linux*)
5755  lt_cv_deplibs_check_method=pass_all
5756  ;;
5757
5758netbsd*)
5759  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5760    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761  else
5762    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763  fi
5764  ;;
5765
5766newos6*)
5767  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768  lt_cv_file_magic_cmd=/usr/bin/file
5769  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770  ;;
5771
5772nto-qnx*)
5773  lt_cv_deplibs_check_method=unknown
5774  ;;
5775
5776openbsd*)
5777  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779  else
5780    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781  fi
5782  ;;
5783
5784osf3* | osf4* | osf5*)
5785  lt_cv_deplibs_check_method=pass_all
5786  ;;
5787
5788solaris*)
5789  lt_cv_deplibs_check_method=pass_all
5790  ;;
5791
5792sysv4 | sysv4.3*)
5793  case $host_vendor in
5794  motorola)
5795    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]'
5796    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5797    ;;
5798  ncr)
5799    lt_cv_deplibs_check_method=pass_all
5800    ;;
5801  sequent)
5802    lt_cv_file_magic_cmd='/bin/file'
5803    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5804    ;;
5805  sni)
5806    lt_cv_file_magic_cmd='/bin/file'
5807    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5808    lt_cv_file_magic_test_file=/lib/libc.so
5809    ;;
5810  siemens)
5811    lt_cv_deplibs_check_method=pass_all
5812    ;;
5813  pc)
5814    lt_cv_deplibs_check_method=pass_all
5815    ;;
5816  esac
5817  ;;
5818
5819sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822esac
5823
5824fi
5825echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5826echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5827file_magic_cmd=$lt_cv_file_magic_cmd
5828deplibs_check_method=$lt_cv_deplibs_check_method
5829test -z "$deplibs_check_method" && deplibs_check_method=unknown
5830
5831
5832
5833
5834# If no C compiler was specified, use CC.
5835LTCC=${LTCC-"$CC"}
5836
5837# If no C compiler flags were specified, use CFLAGS.
5838LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5839
5840# Allow CC to be a program name with arguments.
5841compiler=$CC
5842
5843# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5844if test "${enable_libtool_lock+set}" = set; then
5845  enableval="$enable_libtool_lock"
5846
5847fi;
5848test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5849
5850# Some flags need to be propagated to the compiler or linker for good
5851# libtool support.
5852case $host in
5853ia64-*-hpux*)
5854  # Find out which ABI we are using.
5855  echo 'int i;' > conftest.$ac_ext
5856  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857  (eval $ac_compile) 2>&5
5858  ac_status=$?
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); }; then
5861    case `/usr/bin/file conftest.$ac_objext` in
5862    *ELF-32*)
5863      HPUX_IA64_MODE="32"
5864      ;;
5865    *ELF-64*)
5866      HPUX_IA64_MODE="64"
5867      ;;
5868    esac
5869  fi
5870  rm -rf conftest*
5871  ;;
5872*-*-irix6*)
5873  # Find out which ABI we are using.
5874  echo '#line 5874 "configure"' > conftest.$ac_ext
5875  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876  (eval $ac_compile) 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; then
5880   if test "$lt_cv_prog_gnu_ld" = yes; then
5881    case `/usr/bin/file conftest.$ac_objext` in
5882    *32-bit*)
5883      LD="${LD-ld} -melf32bsmip"
5884      ;;
5885    *N32*)
5886      LD="${LD-ld} -melf32bmipn32"
5887      ;;
5888    *64-bit*)
5889      LD="${LD-ld} -melf64bmip"
5890      ;;
5891    esac
5892   else
5893    case `/usr/bin/file conftest.$ac_objext` in
5894    *32-bit*)
5895      LD="${LD-ld} -32"
5896      ;;
5897    *N32*)
5898      LD="${LD-ld} -n32"
5899      ;;
5900    *64-bit*)
5901      LD="${LD-ld} -64"
5902      ;;
5903    esac
5904   fi
5905  fi
5906  rm -rf conftest*
5907  ;;
5908
5909x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5910  # Find out which ABI we are using.
5911  echo 'int i;' > conftest.$ac_ext
5912  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913  (eval $ac_compile) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; then
5917    case `/usr/bin/file conftest.o` in
5918    *32-bit*)
5919      case $host in
5920        x86_64-*linux*)
5921          LD="${LD-ld} -m elf_i386"
5922          ;;
5923        ppc64-*linux*|powerpc64-*linux*)
5924          LD="${LD-ld} -m elf32ppclinux"
5925          ;;
5926        s390x-*linux*)
5927          LD="${LD-ld} -m elf_s390"
5928          ;;
5929        sparc64-*linux*)
5930          LD="${LD-ld} -m elf32_sparc"
5931          ;;
5932      esac
5933      ;;
5934    *64-bit*)
5935      case $host in
5936        x86_64-*linux*)
5937          LD="${LD-ld} -m elf_x86_64"
5938          ;;
5939        ppc*-*linux*|powerpc*-*linux*)
5940          LD="${LD-ld} -m elf64ppc"
5941          ;;
5942        s390*-*linux*)
5943          LD="${LD-ld} -m elf64_s390"
5944          ;;
5945        sparc*-*linux*)
5946          LD="${LD-ld} -m elf64_sparc"
5947          ;;
5948      esac
5949      ;;
5950    esac
5951  fi
5952  rm -rf conftest*
5953  ;;
5954
5955*-*-sco3.2v5*)
5956  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5957  SAVE_CFLAGS="$CFLAGS"
5958  CFLAGS="$CFLAGS -belf"
5959  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5960echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5961if test "${lt_cv_cc_needs_belf+set}" = set; then
5962  echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964  ac_ext=c
5965ac_cpp='$CPP $CPPFLAGS'
5966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970     cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h.  */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h.  */
5976
5977int
5978main ()
5979{
5980
5981  ;
5982  return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext conftest$ac_exeext
5986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987  (eval $ac_link) 2>conftest.er1
5988  ac_status=$?
5989  grep -v '^ *+' conftest.er1 >conftest.err
5990  rm -f conftest.er1
5991  cat conftest.err >&5
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); } &&
5994         { ac_try='test -z "$ac_c_werror_flag"
5995                         || test ! -s conftest.err'
5996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997  (eval $ac_try) 2>&5
5998  ac_status=$?
5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); }; } &&
6001         { ac_try='test -s conftest$ac_exeext'
6002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003  (eval $ac_try) 2>&5
6004  ac_status=$?
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); }; }; then
6007  lt_cv_cc_needs_belf=yes
6008else
6009  echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012lt_cv_cc_needs_belf=no
6013fi
6014rm -f conftest.err conftest.$ac_objext \
6015      conftest$ac_exeext conftest.$ac_ext
6016     ac_ext=c
6017ac_cpp='$CPP $CPPFLAGS'
6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022fi
6023echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6024echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6025  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6026    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6027    CFLAGS="$SAVE_CFLAGS"
6028  fi
6029  ;;
6030sparc*-*solaris*)
6031  # Find out which ABI we are using.
6032  echo 'int i;' > conftest.$ac_ext
6033  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034  (eval $ac_compile) 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }; then
6038    case `/usr/bin/file conftest.o` in
6039    *64-bit*)
6040      case $lt_cv_prog_gnu_ld in
6041      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6042      *)    LD="${LD-ld} -64" ;;
6043      esac
6044      ;;
6045    esac
6046  fi
6047  rm -rf conftest*
6048  ;;
6049
6050
6051esac
6052
6053need_locks="$enable_libtool_lock"
6054
6055
6056ac_ext=c
6057ac_cpp='$CPP $CPPFLAGS'
6058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063# On Suns, sometimes $CPP names a directory.
6064if test -n "$CPP" && test -d "$CPP"; then
6065  CPP=
6066fi
6067if test -z "$CPP"; then
6068  if test "${ac_cv_prog_CPP+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071      # Double quotes because CPP needs to be expanded
6072    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6073    do
6074      ac_preproc_ok=false
6075for ac_c_preproc_warn_flag in '' yes
6076do
6077  # Use a header file that comes with gcc, so configuring glibc
6078  # with a fresh cross-compiler works.
6079  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080  # <limits.h> exists even on freestanding compilers.
6081  # On the NeXT, cc -E runs the code through the compiler's parser,
6082  # not just through cpp. "Syntax error" is here to catch this case.
6083  cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h.  */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h.  */
6089#ifdef __STDC__
6090# include <limits.h>
6091#else
6092# include <assert.h>
6093#endif
6094                     Syntax error
6095_ACEOF
6096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } >/dev/null; then
6104  if test -s conftest.err; then
6105    ac_cpp_err=$ac_c_preproc_warn_flag
6106    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107  else
6108    ac_cpp_err=
6109  fi
6110else
6111  ac_cpp_err=yes
6112fi
6113if test -z "$ac_cpp_err"; then
6114  :
6115else
6116  echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
6119  # Broken: fails on valid input.
6120continue
6121fi
6122rm -f conftest.err conftest.$ac_ext
6123
6124  # OK, works on sane cases.  Now check whether non-existent headers
6125  # can be detected and how.
6126  cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h.  */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h.  */
6132#include <ac_nonexistent.h>
6133_ACEOF
6134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } >/dev/null; then
6142  if test -s conftest.err; then
6143    ac_cpp_err=$ac_c_preproc_warn_flag
6144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145  else
6146    ac_cpp_err=
6147  fi
6148else
6149  ac_cpp_err=yes
6150fi
6151if test -z "$ac_cpp_err"; then
6152  # Broken: success on invalid input.
6153continue
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158  # Passes both tests.
6159ac_preproc_ok=:
6160break
6161fi
6162rm -f conftest.err conftest.$ac_ext
6163
6164done
6165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166rm -f conftest.err conftest.$ac_ext
6167if $ac_preproc_ok; then
6168  break
6169fi
6170
6171    done
6172    ac_cv_prog_CPP=$CPP
6173
6174fi
6175  CPP=$ac_cv_prog_CPP
6176else
6177  ac_cv_prog_CPP=$CPP
6178fi
6179echo "$as_me:$LINENO: result: $CPP" >&5
6180echo "${ECHO_T}$CPP" >&6
6181ac_preproc_ok=false
6182for ac_c_preproc_warn_flag in '' yes
6183do
6184  # Use a header file that comes with gcc, so configuring glibc
6185  # with a fresh cross-compiler works.
6186  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187  # <limits.h> exists even on freestanding compilers.
6188  # On the NeXT, cc -E runs the code through the compiler's parser,
6189  # not just through cpp. "Syntax error" is here to catch this case.
6190  cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h.  */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h.  */
6196#ifdef __STDC__
6197# include <limits.h>
6198#else
6199# include <assert.h>
6200#endif
6201                     Syntax error
6202_ACEOF
6203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } >/dev/null; then
6211  if test -s conftest.err; then
6212    ac_cpp_err=$ac_c_preproc_warn_flag
6213    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214  else
6215    ac_cpp_err=
6216  fi
6217else
6218  ac_cpp_err=yes
6219fi
6220if test -z "$ac_cpp_err"; then
6221  :
6222else
6223  echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226  # Broken: fails on valid input.
6227continue
6228fi
6229rm -f conftest.err conftest.$ac_ext
6230
6231  # OK, works on sane cases.  Now check whether non-existent headers
6232  # can be detected and how.
6233  cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h.  */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h.  */
6239#include <ac_nonexistent.h>
6240_ACEOF
6241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243  ac_status=$?
6244  grep -v '^ *+' conftest.er1 >conftest.err
6245  rm -f conftest.er1
6246  cat conftest.err >&5
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } >/dev/null; then
6249  if test -s conftest.err; then
6250    ac_cpp_err=$ac_c_preproc_warn_flag
6251    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252  else
6253    ac_cpp_err=
6254  fi
6255else
6256  ac_cpp_err=yes
6257fi
6258if test -z "$ac_cpp_err"; then
6259  # Broken: success on invalid input.
6260continue
6261else
6262  echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265  # Passes both tests.
6266ac_preproc_ok=:
6267break
6268fi
6269rm -f conftest.err conftest.$ac_ext
6270
6271done
6272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273rm -f conftest.err conftest.$ac_ext
6274if $ac_preproc_ok; then
6275  :
6276else
6277  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278See \`config.log' for more details." >&5
6279echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280See \`config.log' for more details." >&2;}
6281   { (exit 1); exit 1; }; }
6282fi
6283
6284ac_ext=c
6285ac_cpp='$CPP $CPPFLAGS'
6286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289
6290
6291echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6292echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6293if test "${ac_cv_header_stdc+set}" = set; then
6294  echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296  cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h.  */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h.  */
6302#include <stdlib.h>
6303#include <stdarg.h>
6304#include <string.h>
6305#include <float.h>
6306
6307int
6308main ()
6309{
6310
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317  (eval $ac_compile) 2>conftest.er1
6318  ac_status=$?
6319  grep -v '^ *+' conftest.er1 >conftest.err
6320  rm -f conftest.er1
6321  cat conftest.err >&5
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } &&
6324         { ac_try='test -z "$ac_c_werror_flag"
6325                         || test ! -s conftest.err'
6326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327  (eval $ac_try) 2>&5
6328  ac_status=$?
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); }; } &&
6331         { ac_try='test -s conftest.$ac_objext'
6332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333  (eval $ac_try) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; }; then
6337  ac_cv_header_stdc=yes
6338else
6339  echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342ac_cv_header_stdc=no
6343fi
6344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346if test $ac_cv_header_stdc = yes; then
6347  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6348  cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354#include <string.h>
6355
6356_ACEOF
6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358  $EGREP "memchr" >/dev/null 2>&1; then
6359  :
6360else
6361  ac_cv_header_stdc=no
6362fi
6363rm -f conftest*
6364
6365fi
6366
6367if test $ac_cv_header_stdc = yes; then
6368  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369  cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h.  */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h.  */
6375#include <stdlib.h>
6376
6377_ACEOF
6378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379  $EGREP "free" >/dev/null 2>&1; then
6380  :
6381else
6382  ac_cv_header_stdc=no
6383fi
6384rm -f conftest*
6385
6386fi
6387
6388if test $ac_cv_header_stdc = yes; then
6389  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6390  if test "$cross_compiling" = yes; then
6391  :
6392else
6393  cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399#include <ctype.h>
6400#if ((' ' & 0x0FF) == 0x020)
6401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6403#else
6404# define ISLOWER(c) \
6405                   (('a' <= (c) && (c) <= 'i') \
6406                     || ('j' <= (c) && (c) <= 'r') \
6407                     || ('s' <= (c) && (c) <= 'z'))
6408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6409#endif
6410
6411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6412int
6413main ()
6414{
6415  int i;
6416  for (i = 0; i < 256; i++)
6417    if (XOR (islower (i), ISLOWER (i))
6418        || toupper (i) != TOUPPER (i))
6419      exit(2);
6420  exit (0);
6421}
6422_ACEOF
6423rm -f conftest$ac_exeext
6424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425  (eval $ac_link) 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430  (eval $ac_try) 2>&5
6431  ac_status=$?
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); }; }; then
6434  :
6435else
6436  echo "$as_me: program exited with status $ac_status" >&5
6437echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440( exit $ac_status )
6441ac_cv_header_stdc=no
6442fi
6443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6444fi
6445fi
6446fi
6447echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6448echo "${ECHO_T}$ac_cv_header_stdc" >&6
6449if test $ac_cv_header_stdc = yes; then
6450
6451cat >>confdefs.h <<\_ACEOF
6452#define STDC_HEADERS 1
6453_ACEOF
6454
6455fi
6456
6457# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6468                  inttypes.h stdint.h unistd.h
6469do
6470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471echo "$as_me:$LINENO: checking for $ac_header" >&5
6472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6473if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h.  */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h.  */
6482$ac_includes_default
6483
6484#include <$ac_header>
6485_ACEOF
6486rm -f conftest.$ac_objext
6487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488  (eval $ac_compile) 2>conftest.er1
6489  ac_status=$?
6490  grep -v '^ *+' conftest.er1 >conftest.err
6491  rm -f conftest.er1
6492  cat conftest.err >&5
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); } &&
6495         { ac_try='test -z "$ac_c_werror_flag"
6496                         || test ! -s conftest.err'
6497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498  (eval $ac_try) 2>&5
6499  ac_status=$?
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; } &&
6502         { ac_try='test -s conftest.$ac_objext'
6503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504  (eval $ac_try) 2>&5
6505  ac_status=$?
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); }; }; then
6508  eval "$as_ac_Header=yes"
6509else
6510  echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513eval "$as_ac_Header=no"
6514fi
6515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516fi
6517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520  cat >>confdefs.h <<_ACEOF
6521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522_ACEOF
6523
6524fi
6525
6526done
6527
6528
6529
6530for ac_header in dlfcn.h
6531do
6532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534  echo "$as_me:$LINENO: checking for $ac_header" >&5
6535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537  echo $ECHO_N "(cached) $ECHO_C" >&6
6538fi
6539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541else
6542  # Is the header compilable?
6543echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h.  */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h.  */
6551$ac_includes_default
6552#include <$ac_header>
6553_ACEOF
6554rm -f conftest.$ac_objext
6555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556  (eval $ac_compile) 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } &&
6563         { ac_try='test -z "$ac_c_werror_flag"
6564                         || test ! -s conftest.err'
6565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566  (eval $ac_try) 2>&5
6567  ac_status=$?
6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); }; } &&
6570         { ac_try='test -s conftest.$ac_objext'
6571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572  (eval $ac_try) 2>&5
6573  ac_status=$?
6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); }; }; then
6576  ac_header_compiler=yes
6577else
6578  echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581ac_header_compiler=no
6582fi
6583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6585echo "${ECHO_T}$ac_header_compiler" >&6
6586
6587# Is the header present?
6588echo "$as_me:$LINENO: checking $ac_header presence" >&5
6589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6590cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h.  */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h.  */
6596#include <$ac_header>
6597_ACEOF
6598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6600  ac_status=$?
6601  grep -v '^ *+' conftest.er1 >conftest.err
6602  rm -f conftest.er1
6603  cat conftest.err >&5
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } >/dev/null; then
6606  if test -s conftest.err; then
6607    ac_cpp_err=$ac_c_preproc_warn_flag
6608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6609  else
6610    ac_cpp_err=
6611  fi
6612else
6613  ac_cpp_err=yes
6614fi
6615if test -z "$ac_cpp_err"; then
6616  ac_header_preproc=yes
6617else
6618  echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621  ac_header_preproc=no
6622fi
6623rm -f conftest.err conftest.$ac_ext
6624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6625echo "${ECHO_T}$ac_header_preproc" >&6
6626
6627# So?  What about this header?
6628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6629  yes:no: )
6630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6634    ac_header_preproc=yes
6635    ;;
6636  no:yes:* )
6637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649    (
6650      cat <<\_ASBOX
6651## ------------------------------------ ##
6652## Report this to cbc@lists.coin-or.org ##
6653## ------------------------------------ ##
6654_ASBOX
6655    ) |
6656      sed "s/^/$as_me: WARNING:     /" >&2
6657    ;;
6658esac
6659echo "$as_me:$LINENO: checking for $ac_header" >&5
6660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6661if eval "test \"\${$as_ac_Header+set}\" = set"; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664  eval "$as_ac_Header=\$ac_header_preproc"
6665fi
6666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6668
6669fi
6670if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671  cat >>confdefs.h <<_ACEOF
6672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673_ACEOF
6674
6675fi
6676
6677done
6678
6679
6680
6681if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6682    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6683    (test "X$CXX" != "Xg++"))) ; then
6684  ac_ext=cc
6685ac_cpp='$CXXCPP $CPPFLAGS'
6686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6689echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6690echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6691if test -z "$CXXCPP"; then
6692  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695      # Double quotes because CXXCPP needs to be expanded
6696    for CXXCPP in "$CXX -E" "/lib/cpp"
6697    do
6698      ac_preproc_ok=false
6699for ac_cxx_preproc_warn_flag in '' yes
6700do
6701  # Use a header file that comes with gcc, so configuring glibc
6702  # with a fresh cross-compiler works.
6703  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6704  # <limits.h> exists even on freestanding compilers.
6705  # On the NeXT, cc -E runs the code through the compiler's parser,
6706  # not just through cpp. "Syntax error" is here to catch this case.
6707  cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h.  */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h.  */
6713#ifdef __STDC__
6714# include <limits.h>
6715#else
6716# include <assert.h>
6717#endif
6718                     Syntax error
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_cxx_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  :
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743  # Broken: fails on valid input.
6744continue
6745fi
6746rm -f conftest.err conftest.$ac_ext
6747
6748  # OK, works on sane cases.  Now check whether non-existent headers
6749  # can be detected and how.
6750  cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756#include <ac_nonexistent.h>
6757_ACEOF
6758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } >/dev/null; then
6766  if test -s conftest.err; then
6767    ac_cpp_err=$ac_cxx_preproc_warn_flag
6768    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6769  else
6770    ac_cpp_err=
6771  fi
6772else
6773  ac_cpp_err=yes
6774fi
6775if test -z "$ac_cpp_err"; then
6776  # Broken: success on invalid input.
6777continue
6778else
6779  echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782  # Passes both tests.
6783ac_preproc_ok=:
6784break
6785fi
6786rm -f conftest.err conftest.$ac_ext
6787
6788done
6789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6790rm -f conftest.err conftest.$ac_ext
6791if $ac_preproc_ok; then
6792  break
6793fi
6794
6795    done
6796    ac_cv_prog_CXXCPP=$CXXCPP
6797
6798fi
6799  CXXCPP=$ac_cv_prog_CXXCPP
6800else
6801  ac_cv_prog_CXXCPP=$CXXCPP
6802fi
6803echo "$as_me:$LINENO: result: $CXXCPP" >&5
6804echo "${ECHO_T}$CXXCPP" >&6
6805ac_preproc_ok=false
6806for ac_cxx_preproc_warn_flag in '' yes
6807do
6808  # Use a header file that comes with gcc, so configuring glibc
6809  # with a fresh cross-compiler works.
6810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6811  # <limits.h> exists even on freestanding compilers.
6812  # On the NeXT, cc -E runs the code through the compiler's parser,
6813  # not just through cpp. "Syntax error" is here to catch this case.
6814  cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h.  */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h.  */
6820#ifdef __STDC__
6821# include <limits.h>
6822#else
6823# include <assert.h>
6824#endif
6825                     Syntax error
6826_ACEOF
6827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6829  ac_status=$?
6830  grep -v '^ *+' conftest.er1 >conftest.err
6831  rm -f conftest.er1
6832  cat conftest.err >&5
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); } >/dev/null; then
6835  if test -s conftest.err; then
6836    ac_cpp_err=$ac_cxx_preproc_warn_flag
6837    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6838  else
6839    ac_cpp_err=
6840  fi
6841else
6842  ac_cpp_err=yes
6843fi
6844if test -z "$ac_cpp_err"; then
6845  :
6846else
6847  echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850  # Broken: fails on valid input.
6851continue
6852fi
6853rm -f conftest.err conftest.$ac_ext
6854
6855  # OK, works on sane cases.  Now check whether non-existent headers
6856  # can be detected and how.
6857  cat >conftest.$ac_ext <<_ACEOF
6858/* confdefs.h.  */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h.  */
6863#include <ac_nonexistent.h>
6864_ACEOF
6865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6866  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } >/dev/null; then
6873  if test -s conftest.err; then
6874    ac_cpp_err=$ac_cxx_preproc_warn_flag
6875    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6876  else
6877    ac_cpp_err=
6878  fi
6879else
6880  ac_cpp_err=yes
6881fi
6882if test -z "$ac_cpp_err"; then
6883  # Broken: success on invalid input.
6884continue
6885else
6886  echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889  # Passes both tests.
6890ac_preproc_ok=:
6891break
6892fi
6893rm -f conftest.err conftest.$ac_ext
6894
6895done
6896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6897rm -f conftest.err conftest.$ac_ext
6898if $ac_preproc_ok; then
6899  :
6900else
6901  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6902See \`config.log' for more details." >&5
6903echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6904See \`config.log' for more details." >&2;}
6905   { (exit 1); exit 1; }; }
6906fi
6907
6908ac_ext=cc
6909ac_cpp='$CXXCPP $CPPFLAGS'
6910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6913
6914fi
6915
6916ac_ext=f
6917ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6918ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6920if test -n "$ac_tool_prefix"; then
6921  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6922  do
6923    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6925echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6927if test "${ac_cv_prog_F77+set}" = set; then
6928  echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930  if test -n "$F77"; then
6931  ac_cv_prog_F77="$F77" # Let the user override the test.
6932else
6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936  IFS=$as_save_IFS
6937  test -z "$as_dir" && as_dir=.
6938  for ac_exec_ext in '' $ac_executable_extensions; do
6939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942    break 2
6943  fi
6944done
6945done
6946
6947fi
6948fi
6949F77=$ac_cv_prog_F77
6950if test -n "$F77"; then
6951  echo "$as_me:$LINENO: result: $F77" >&5
6952echo "${ECHO_T}$F77" >&6
6953else
6954  echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956fi
6957
6958    test -n "$F77" && break
6959  done
6960fi
6961if test -z "$F77"; then
6962  ac_ct_F77=$F77
6963  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6964do
6965  # Extract the first word of "$ac_prog", so it can be a program name with args.
6966set dummy $ac_prog; ac_word=$2
6967echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  if test -n "$ac_ct_F77"; then
6973  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980  for ac_exec_ext in '' $ac_executable_extensions; do
6981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982    ac_cv_prog_ac_ct_F77="$ac_prog"
6983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984    break 2
6985  fi
6986done
6987done
6988
6989fi
6990fi
6991ac_ct_F77=$ac_cv_prog_ac_ct_F77
6992if test -n "$ac_ct_F77"; then
6993  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6994echo "${ECHO_T}$ac_ct_F77" >&6
6995else
6996  echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998fi
6999
7000  test -n "$ac_ct_F77" && break
7001done
7002
7003  F77=$ac_ct_F77
7004fi
7005
7006
7007# Provide some information about the compiler.
7008echo "$as_me:7008:" \
7009     "checking for Fortran 77 compiler version" >&5
7010ac_compiler=`set X $ac_compile; echo $2`
7011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7012  (eval $ac_compiler --version </dev/null >&5) 2>&5
7013  ac_status=$?
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); }
7016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7017  (eval $ac_compiler -v </dev/null >&5) 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }
7021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7022  (eval $ac_compiler -V </dev/null >&5) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }
7026rm -f a.out
7027
7028# If we don't use `.F' as extension, the preprocessor is not run on the
7029# input file.  (Note that this only needs to work for GNU compilers.)
7030ac_save_ext=$ac_ext
7031ac_ext=F
7032echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7033echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7034if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  cat >conftest.$ac_ext <<_ACEOF
7038      program main
7039#ifndef __GNUC__
7040       choke me
7041#endif
7042
7043      end
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047  (eval $ac_compile) 2>conftest.er1
7048  ac_status=$?
7049  grep -v '^ *+' conftest.er1 >conftest.err
7050  rm -f conftest.er1
7051  cat conftest.err >&5
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); } &&
7054         { ac_try='test -z "$ac_f77_werror_flag"
7055                         || test ! -s conftest.err'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; } &&
7061         { ac_try='test -s conftest.$ac_objext'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; }; then
7067  ac_compiler_gnu=yes
7068else
7069  echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072ac_compiler_gnu=no
7073fi
7074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7075ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7076
7077fi
7078echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7079echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7080ac_ext=$ac_save_ext
7081ac_test_FFLAGS=${FFLAGS+set}
7082ac_save_FFLAGS=$FFLAGS
7083FFLAGS=
7084echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7085echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7086if test "${ac_cv_prog_f77_g+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  FFLAGS=-g
7090cat >conftest.$ac_ext <<_ACEOF
7091      program main
7092
7093      end
7094_ACEOF
7095rm -f conftest.$ac_objext
7096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097  (eval $ac_compile) 2>conftest.er1
7098  ac_status=$?
7099  grep -v '^ *+' conftest.er1 >conftest.err
7100  rm -f conftest.er1
7101  cat conftest.err >&5
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); } &&
7104         { ac_try='test -z "$ac_f77_werror_flag"
7105                         || test ! -s conftest.err'
7106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107  (eval $ac_try) 2>&5
7108  ac_status=$?
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); }; } &&
7111         { ac_try='test -s conftest.$ac_objext'
7112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113  (eval $ac_try) 2>&5
7114  ac_status=$?
7115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116  (exit $ac_status); }; }; then
7117  ac_cv_prog_f77_g=yes
7118else
7119  echo "$as_me: failed program was:" >&5
7120sed 's/^/| /' conftest.$ac_ext >&5
7121
7122ac_cv_prog_f77_g=no
7123fi
7124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7125
7126fi
7127echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7128echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7129if test "$ac_test_FFLAGS" = set; then
7130  FFLAGS=$ac_save_FFLAGS
7131elif test $ac_cv_prog_f77_g = yes; then
7132  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7133    FFLAGS="-g -O2"
7134  else
7135    FFLAGS="-g"
7136  fi
7137else
7138  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7139    FFLAGS="-O2"
7140  else
7141    FFLAGS=
7142  fi
7143fi
7144
7145G77=`test $ac_compiler_gnu = yes && echo yes`
7146ac_ext=c
7147ac_cpp='$CPP $CPPFLAGS'
7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152
7153
7154# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7155
7156# find the maximum length of command line arguments
7157echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7158echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7159if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162    i=0
7163  teststring="ABCD"
7164
7165  case $build_os in
7166  msdosdjgpp*)
7167    # On DJGPP, this test can blow up pretty badly due to problems in libc
7168    # (any single argument exceeding 2000 bytes causes a buffer overrun
7169    # during glob expansion).  Even if it were fixed, the result of this
7170    # check would be larger than it should be.
7171    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7172    ;;
7173
7174  gnu*)
7175    # Under GNU Hurd, this test is not required because there is
7176    # no limit to the length of command line arguments.
7177    # Libtool will interpret -1 as no limit whatsoever
7178    lt_cv_sys_max_cmd_len=-1;
7179    ;;
7180
7181  cygwin* | mingw*)
7182    # On Win9x/ME, this test blows up -- it succeeds, but takes
7183    # about 5 minutes as the teststring grows exponentially.
7184    # Worse, since 9x/ME are not pre-emptively multitasking,
7185    # you end up with a "frozen" computer, even though with patience
7186    # the test eventually succeeds (with a max line length of 256k).
7187    # Instead, let's just punt: use the minimum linelength reported by
7188    # all of the supported platforms: 8192 (on NT/2K/XP).
7189    lt_cv_sys_max_cmd_len=8192;
7190    ;;
7191
7192  amigaos*)
7193    # On AmigaOS with pdksh, this test takes hours, literally.
7194    # So we just punt and use a minimum line length of 8192.
7195    lt_cv_sys_max_cmd_len=8192;
7196    ;;
7197
7198  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7199    # This has been around since 386BSD, at least.  Likely further.
7200    if test -x /sbin/sysctl; then
7201      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7202    elif test -x /usr/sbin/sysctl; then
7203      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7204    else
7205      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7206    fi
7207    # And add a safety zone
7208    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7209    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7210    ;;
7211
7212  interix*)
7213    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7214    lt_cv_sys_max_cmd_len=196608
7215    ;;
7216
7217  osf*)
7218    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7219    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7220    # nice to cause kernel panics so lets avoid the loop below.
7221    # First set a reasonable default.
7222    lt_cv_sys_max_cmd_len=16384
7223    #
7224    if test -x /sbin/sysconfig; then
7225      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7226        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7227      esac
7228    fi
7229    ;;
7230  sco3.2v5*)
7231    lt_cv_sys_max_cmd_len=102400
7232    ;;
7233  sysv5* | sco5v6* | sysv4.2uw2*)
7234    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7235    if test -n "$kargmax"; then
7236      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7237    else
7238      lt_cv_sys_max_cmd_len=32768
7239    fi
7240    ;;
7241  *)
7242    # If test is not a shell built-in, we'll probably end up computing a
7243    # maximum length that is only half of the actual maximum length, but
7244    # we can't tell.
7245    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7246    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7247               = "XX$teststring") >/dev/null 2>&1 &&
7248            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7249            lt_cv_sys_max_cmd_len=$new_result &&
7250            test $i != 17 # 1/2 MB should be enough
7251    do
7252      i=`expr $i + 1`
7253      teststring=$teststring$teststring
7254    done
7255    teststring=
7256    # Add a significant safety factor because C++ compilers can tack on massive
7257    # amounts of additional arguments before passing them to the linker.
7258    # It appears as though 1/2 is a usable value.
7259    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7260    ;;
7261  esac
7262
7263fi
7264
7265if test -n $lt_cv_sys_max_cmd_len ; then
7266  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7267echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7268else
7269  echo "$as_me:$LINENO: result: none" >&5
7270echo "${ECHO_T}none" >&6
7271fi
7272
7273
7274
7275
7276# Check for command to grab the raw symbol name followed by C symbol from nm.
7277echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7278echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7279if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7280  echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282
7283# These are sane defaults that work on at least a few old systems.
7284# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7285
7286# Character class describing NM global symbol codes.
7287symcode='[BCDEGRST]'
7288
7289# Regexp to match symbols that can be accessed directly from C.
7290sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7291
7292# Transform an extracted symbol line into a proper C declaration
7293lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7294
7295# Transform an extracted symbol line into symbol name and symbol address
7296lt_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'"
7297
7298# Define system-specific variables.
7299case $host_os in
7300aix*)
7301  symcode='[BCDT]'
7302  ;;
7303cygwin* | mingw* | pw32*)
7304  symcode='[ABCDGISTW]'
7305  ;;
7306hpux*) # Its linker distinguishes data from code symbols
7307  if test "$host_cpu" = ia64; then
7308    symcode='[ABCDEGRST]'
7309  fi
7310  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7311  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'"
7312  ;;
7313linux*)
7314  if test "$host_cpu" = ia64; then
7315    symcode='[ABCDGIRSTW]'
7316    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7317    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'"
7318  fi
7319  ;;
7320irix* | nonstopux*)
7321  symcode='[BCDEGRST]'
7322  ;;
7323osf*)
7324  symcode='[BCDEGQRST]'
7325  ;;
7326solaris*)
7327  symcode='[BDRT]'
7328  ;;
7329sco3.2v5*)
7330  symcode='[DT]'
7331  ;;
7332sysv4.2uw2*)
7333  symcode='[DT]'
7334  ;;
7335sysv5* | sco5v6* | unixware* | OpenUNIX*)
7336  symcode='[ABDT]'
7337  ;;
7338sysv4)
7339  symcode='[DFNSTU]'
7340  ;;
7341esac
7342
7343# Handle CRLF in mingw tool chain
7344opt_cr=
7345case $build_os in
7346mingw*)
7347  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7348  ;;
7349esac
7350
7351# If we're using GNU nm, then use its standard symbol codes.
7352case `$NM -V 2>&1` in
7353*GNU* | *'with BFD'*)
7354  symcode='[ABCDGIRSTW]' ;;
7355esac
7356
7357# Try without a prefix undercore, then with it.
7358for ac_symprfx in "" "_"; do
7359
7360  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7361  symxfrm="\\1 $ac_symprfx\\2 \\2"
7362
7363  # Write the raw and C identifiers.
7364  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7365
7366  # Check to see that the pipe works correctly.
7367  pipe_works=no
7368
7369  rm -f conftest*
7370  cat > conftest.$ac_ext <<EOF
7371#ifdef __cplusplus
7372extern "C" {
7373#endif
7374char nm_test_var;
7375void nm_test_func(){}
7376#ifdef __cplusplus
7377}
7378#endif
7379int main(){nm_test_var='a';nm_test_func();return(0);}
7380EOF
7381
7382  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383  (eval $ac_compile) 2>&5
7384  ac_status=$?
7385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386  (exit $ac_status); }; then
7387    # Now try to grab the symbols.
7388    nlist=conftest.nm
7389    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7390  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7391  ac_status=$?
7392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); } && test -s "$nlist"; then
7394      # Try sorting and uniquifying the output.
7395      if sort "$nlist" | uniq > "$nlist"T; then
7396        mv -f "$nlist"T "$nlist"
7397      else
7398        rm -f "$nlist"T
7399      fi
7400
7401      # Make sure that we snagged all the symbols we need.
7402      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7403        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7404          cat <<EOF > conftest.$ac_ext
7405#ifdef __cplusplus
7406extern "C" {
7407#endif
7408
7409EOF
7410          # Now generate the symbol file.
7411          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7412
7413          cat <<EOF >> conftest.$ac_ext
7414#if defined (__STDC__) && __STDC__
7415# define lt_ptr_t void *
7416#else
7417# define lt_ptr_t char *
7418# define const
7419#endif
7420
7421/* The mapping between symbol names and symbols. */
7422const struct {
7423  const char *name;
7424  lt_ptr_t address;
7425}
7426lt_preloaded_symbols[] =
7427{
7428EOF
7429          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7430          cat <<\EOF >> conftest.$ac_ext
7431  {0, (lt_ptr_t) 0}
7432};
7433
7434#ifdef __cplusplus
7435}
7436#endif
7437EOF
7438          # Now try linking the two files.
7439          mv conftest.$ac_objext conftstm.$ac_objext
7440          lt_save_LIBS="$LIBS"
7441          lt_save_CFLAGS="$CFLAGS"
7442          LIBS="conftstm.$ac_objext"
7443          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7444          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445  (eval $ac_link) 2>&5
7446  ac_status=$?
7447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7449            pipe_works=yes
7450          fi
7451          LIBS="$lt_save_LIBS"
7452          CFLAGS="$lt_save_CFLAGS"
7453        else
7454          echo "cannot find nm_test_func in $nlist" >&5
7455        fi
7456      else
7457        echo "cannot find nm_test_var in $nlist" >&5
7458      fi
7459    else
7460      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7461    fi
7462  else
7463    echo "$progname: failed program was:" >&5
7464    cat conftest.$ac_ext >&5
7465  fi
7466  rm -f conftest* conftst*
7467
7468  # Do not use the global_symbol_pipe unless it works.
7469  if test "$pipe_works" = yes; then
7470    break
7471  else
7472    lt_cv_sys_global_symbol_pipe=
7473  fi
7474done
7475
7476fi
7477
7478if test -z "$lt_cv_sys_global_symbol_pipe"; then
7479  lt_cv_sys_global_symbol_to_cdecl=
7480fi
7481if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7482  echo "$as_me:$LINENO: result: failed" >&5
7483echo "${ECHO_T}failed" >&6
7484else
7485  echo "$as_me:$LINENO: result: ok" >&5
7486echo "${ECHO_T}ok" >&6
7487fi
7488
7489echo "$as_me:$LINENO: checking for objdir" >&5
7490echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7491if test "${lt_cv_objdir+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  rm -f .libs 2>/dev/null
7495mkdir .libs 2>/dev/null
7496if test -d .libs; then
7497  lt_cv_objdir=.libs
7498else
7499  # MS-DOS does not allow filenames that begin with a dot.
7500  lt_cv_objdir=_libs
7501fi
7502rmdir .libs 2>/dev/null
7503fi
7504echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7505echo "${ECHO_T}$lt_cv_objdir" >&6
7506objdir=$lt_cv_objdir
7507
7508
7509
7510
7511
7512case $host_os in
7513aix3*)
7514  # AIX sometimes has problems with the GCC collect2 program.  For some
7515  # reason, if we set the COLLECT_NAMES environment variable, the problems
7516  # vanish in a puff of smoke.
7517  if test "X${COLLECT_NAMES+set}" != Xset; then
7518    COLLECT_NAMES=
7519    export COLLECT_NAMES
7520  fi
7521  ;;
7522esac
7523
7524# Sed substitution that helps us do robust quoting.  It backslashifies
7525# metacharacters that are still active within double-quoted strings.
7526Xsed='sed -e 1s/^X//'
7527sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7528
7529# Same as above, but do not quote variable references.
7530double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7531
7532# Sed substitution to delay expansion of an escaped shell variable in a
7533# double_quote_subst'ed string.
7534delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7535
7536# Sed substitution to avoid accidental globbing in evaled expressions
7537no_glob_subst='s/\*/\\\*/g'
7538
7539# Constants:
7540rm="rm -f"
7541
7542# Global variables:
7543default_ofile=libtool
7544can_build_shared=yes
7545
7546# All known linkers require a `.a' archive for static linking (except MSVC,
7547# which needs '.lib').
7548libext=a
7549ltmain="$ac_aux_dir/ltmain.sh"
7550ofile="$default_ofile"
7551with_gnu_ld="$lt_cv_prog_gnu_ld"
7552
7553if test -n "$ac_tool_prefix"; then
7554  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7555set dummy ${ac_tool_prefix}ar; ac_word=$2
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_prog_AR+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  if test -n "$AR"; then
7562  ac_cv_prog_AR="$AR" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  test -z "$as_dir" && as_dir=.
7569  for ac_exec_ext in '' $ac_executable_extensions; do
7570  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571    ac_cv_prog_AR="${ac_tool_prefix}ar"
7572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573    break 2
7574  fi
7575done
7576done
7577
7578fi
7579fi
7580AR=$ac_cv_prog_AR
7581if test -n "$AR"; then
7582  echo "$as_me:$LINENO: result: $AR" >&5
7583echo "${ECHO_T}$AR" >&6
7584else
7585  echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588
7589fi
7590if test -z "$ac_cv_prog_AR"; then
7591  ac_ct_AR=$AR
7592  # Extract the first word of "ar", so it can be a program name with args.
7593set dummy ar; ac_word=$2
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7597  echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599  if test -n "$ac_ct_AR"; then
7600  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605  IFS=$as_save_IFS
7606  test -z "$as_dir" && as_dir=.
7607  for ac_exec_ext in '' $ac_executable_extensions; do
7608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609    ac_cv_prog_ac_ct_AR="ar"
7610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611    break 2
7612  fi
7613done
7614done
7615
7616  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7617fi
7618fi
7619ac_ct_AR=$ac_cv_prog_ac_ct_AR
7620if test -n "$ac_ct_AR"; then
7621  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7622echo "${ECHO_T}$ac_ct_AR" >&6
7623else
7624  echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626fi
7627
7628  AR=$ac_ct_AR
7629else
7630  AR="$ac_cv_prog_AR"
7631fi
7632
7633if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7636echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638if test "${ac_cv_prog_RANLIB+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  if test -n "$RANLIB"; then
7642  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649  for ac_exec_ext in '' $ac_executable_extensions; do
7650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656done
7657
7658fi
7659fi
7660RANLIB=$ac_cv_prog_RANLIB
7661if test -n "$RANLIB"; then
7662  echo "$as_me:$LINENO: result: $RANLIB" >&5
7663echo "${ECHO_T}$RANLIB" >&6
7664else
7665  echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669fi
7670if test -z "$ac_cv_prog_RANLIB"; then
7671  ac_ct_RANLIB=$RANLIB
7672  # Extract the first word of "ranlib", so it can be a program name with args.
7673set dummy ranlib; ac_word=$2
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  if test -n "$ac_ct_RANLIB"; then
7680  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_ac_ct_RANLIB="ranlib"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695
7696  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7697fi
7698fi
7699ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7700if test -n "$ac_ct_RANLIB"; then
7701  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7702echo "${ECHO_T}$ac_ct_RANLIB" >&6
7703else
7704  echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708  RANLIB=$ac_ct_RANLIB
7709else
7710  RANLIB="$ac_cv_prog_RANLIB"
7711fi
7712
7713if test -n "$ac_tool_prefix"; then
7714  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}strip; ac_word=$2
7716echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718if test "${ac_cv_prog_STRIP+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  if test -n "$STRIP"; then
7722  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737
7738fi
7739fi
7740STRIP=$ac_cv_prog_STRIP
7741if test -n "$STRIP"; then
7742  echo "$as_me:$LINENO: result: $STRIP" >&5
7743echo "${ECHO_T}$STRIP" >&6
7744else
7745  echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747fi
7748
7749fi
7750if test -z "$ac_cv_prog_STRIP"; then
7751  ac_ct_STRIP=$STRIP
7752  # Extract the first word of "strip", so it can be a program name with args.
7753set dummy strip; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$ac_ct_STRIP"; then
7760  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_ac_ct_STRIP="strip"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7777fi
7778fi
7779ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7780if test -n "$ac_ct_STRIP"; then
7781  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7782echo "${ECHO_T}$ac_ct_STRIP" >&6
7783else
7784  echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786fi
7787
7788  STRIP=$ac_ct_STRIP
7789else
7790  STRIP="$ac_cv_prog_STRIP"
7791fi
7792
7793
7794old_CC="$CC"
7795old_CFLAGS="$CFLAGS"
7796
7797# Set sane defaults for various variables
7798test -z "$AR" && AR=ar
7799test -z "$AR_FLAGS" && AR_FLAGS=cru
7800test -z "$AS" && AS=as
7801test -z "$CC" && CC=cc
7802test -z "$LTCC" && LTCC=$CC
7803test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7804test -z "$DLLTOOL" && DLLTOOL=dlltool
7805test -z "$LD" && LD=ld
7806test -z "$LN_S" && LN_S="ln -s"
7807test -z "$MAGIC_CMD" && MAGIC_CMD=file
7808test -z "$NM" && NM=nm
7809test -z "$SED" && SED=sed
7810test -z "$OBJDUMP" && OBJDUMP=objdump
7811test -z "$RANLIB" && RANLIB=:
7812test -z "$STRIP" && STRIP=:
7813test -z "$ac_objext" && ac_objext=o
7814
7815# Determine commands to create old-style static archives.
7816old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7817old_postinstall_cmds='chmod 644 $oldlib'
7818old_postuninstall_cmds=
7819
7820if test -n "$RANLIB"; then
7821  case $host_os in
7822  openbsd*)
7823    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7824    ;;
7825  *)
7826    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7827    ;;
7828  esac
7829  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7830fi
7831
7832for cc_temp in $compiler""; do
7833  case $cc_temp in
7834    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7835    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7836    \-*) ;;
7837    *) break;;
7838  esac
7839done
7840cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7841
7842
7843# Only perform the check for file, if the check method requires it
7844case $deplibs_check_method in
7845file_magic*)
7846  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7847    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7848echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7849if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7850  echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852  case $MAGIC_CMD in
7853[\\/*] |  ?:[\\/]*)
7854  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7855  ;;
7856*)
7857  lt_save_MAGIC_CMD="$MAGIC_CMD"
7858  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7859  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7860  for ac_dir in $ac_dummy; do
7861    IFS="$lt_save_ifs"
7862    test -z "$ac_dir" && ac_dir=.
7863    if test -f $ac_dir/${ac_tool_prefix}file; then
7864      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7865      if test -n "$file_magic_test_file"; then
7866        case $deplibs_check_method in
7867        "file_magic "*)
7868          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7869          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7870          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7871            $EGREP "$file_magic_regex" > /dev/null; then
7872            :
7873          else
7874            cat <<EOF 1>&2
7875
7876*** Warning: the command libtool uses to detect shared libraries,
7877*** $file_magic_cmd, produces output that libtool cannot recognize.
7878*** The result is that libtool may fail to recognize shared libraries
7879*** as such.  This will affect the creation of libtool libraries that
7880*** depend on shared libraries, but programs linked with such libtool
7881*** libraries will work regardless of this problem.  Nevertheless, you
7882*** may want to report the problem to your system manager and/or to
7883*** bug-libtool@gnu.org
7884
7885EOF
7886          fi ;;
7887        esac
7888      fi
7889      break
7890    fi
7891  done
7892  IFS="$lt_save_ifs"
7893  MAGIC_CMD="$lt_save_MAGIC_CMD"
7894  ;;
7895esac
7896fi
7897
7898MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7899if test -n "$MAGIC_CMD"; then
7900  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7901echo "${ECHO_T}$MAGIC_CMD" >&6
7902else
7903  echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905fi
7906
7907if test -z "$lt_cv_path_MAGIC_CMD"; then
7908  if test -n "$ac_tool_prefix"; then
7909    echo "$as_me:$LINENO: checking for file" >&5
7910echo $ECHO_N "checking for file... $ECHO_C" >&6
7911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7912  echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914  case $MAGIC_CMD in
7915[\\/*] |  ?:[\\/]*)
7916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917  ;;
7918*)
7919  lt_save_MAGIC_CMD="$MAGIC_CMD"
7920  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922  for ac_dir in $ac_dummy; do
7923    IFS="$lt_save_ifs"
7924    test -z "$ac_dir" && ac_dir=.
7925    if test -f $ac_dir/file; then
7926      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7927      if test -n "$file_magic_test_file"; then
7928        case $deplibs_check_method in
7929        "file_magic "*)
7930          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933            $EGREP "$file_magic_regex" > /dev/null; then
7934            :
7935          else
7936            cat <<EOF 1>&2
7937
7938*** Warning: the command libtool uses to detect shared libraries,
7939*** $file_magic_cmd, produces output that libtool cannot recognize.
7940*** The result is that libtool may fail to recognize shared libraries
7941*** as such.  This will affect the creation of libtool libraries that
7942*** depend on shared libraries, but programs linked with such libtool
7943*** libraries will work regardless of this problem.  Nevertheless, you
7944*** may want to report the problem to your system manager and/or to
7945*** bug-libtool@gnu.org
7946
7947EOF
7948          fi ;;
7949        esac
7950      fi
7951      break
7952    fi
7953  done
7954  IFS="$lt_save_ifs"
7955  MAGIC_CMD="$lt_save_MAGIC_CMD"
7956  ;;
7957esac
7958fi
7959
7960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961if test -n "$MAGIC_CMD"; then
7962  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7963echo "${ECHO_T}$MAGIC_CMD" >&6
7964else
7965  echo "$as_me:$LINENO: result: no" >&5
7966echo "${ECHO_T}no" >&6
7967fi
7968
7969  else
7970    MAGIC_CMD=:
7971  fi
7972fi
7973
7974  fi
7975  ;;
7976esac
7977
7978enable_dlopen=no
7979enable_win32_dll=no
7980
7981# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7982if test "${enable_libtool_lock+set}" = set; then
7983  enableval="$enable_libtool_lock"
7984
7985fi;
7986test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7987
7988
7989# Check whether --with-pic or --without-pic was given.
7990if test "${with_pic+set}" = set; then
7991  withval="$with_pic"
7992  pic_mode="$withval"
7993else
7994  pic_mode=default
7995fi;
7996test -z "$pic_mode" && pic_mode=default
7997
7998# Use C for the default configuration in the libtool script
7999tagname=
8000lt_save_CC="$CC"
8001ac_ext=c
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007
8008# Source file extension for C test sources.
8009ac_ext=c
8010
8011# Object file extension for compiled C test sources.
8012objext=o
8013objext=$objext
8014
8015# Code to be used in simple compile tests
8016lt_simple_compile_test_code="int some_variable = 0;\n"
8017
8018# Code to be used in simple link tests
8019lt_simple_link_test_code='int main(){return(0);}\n'
8020
8021
8022# If no C compiler was specified, use CC.
8023LTCC=${LTCC-"$CC"}
8024
8025# If no C compiler flags were specified, use CFLAGS.
8026LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8027
8028# Allow CC to be a program name with arguments.
8029compiler=$CC
8030
8031
8032# save warnings/boilerplate of simple test code
8033ac_outfile=conftest.$ac_objext
8034printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8035eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036_lt_compiler_boilerplate=`cat conftest.err`
8037$rm conftest*
8038
8039ac_outfile=conftest.$ac_objext
8040printf "$lt_simple_link_test_code" >conftest.$ac_ext
8041eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8042_lt_linker_boilerplate=`cat conftest.err`
8043$rm conftest*
8044
8045
8046## CAVEAT EMPTOR:
8047## There is no encapsulation within the following macros, do not change
8048## the running order or otherwise move them around unless you know exactly
8049## what you are doing...
8050
8051lt_prog_compiler_no_builtin_flag=
8052
8053if test "$GCC" = yes; then
8054  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8055
8056
8057echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8058echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8059if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8060  echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062  lt_cv_prog_compiler_rtti_exceptions=no
8063  ac_outfile=conftest.$ac_objext
8064   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8065   lt_compiler_flag="-fno-rtti -fno-exceptions"
8066   # Insert the option either (1) after the last *FLAGS variable, or
8067   # (2) before a word containing "conftest.", or (3) at the end.
8068   # Note that $ac_compile itself does not contain backslashes and begins
8069   # with a dollar sign (not a hyphen), so the echo should work correctly.
8070   # The option is referenced via a variable to avoid confusing sed.
8071   lt_compile=`echo "$ac_compile" | $SED \
8072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074   -e 's:$: $lt_compiler_flag:'`
8075   (eval echo "\"\$as_me:8075: $lt_compile\"" >&5)
8076   (eval "$lt_compile" 2>conftest.err)
8077   ac_status=$?
8078   cat conftest.err >&5
8079   echo "$as_me:8079: \$? = $ac_status" >&5
8080   if (exit $ac_status) && test -s "$ac_outfile"; then
8081     # The compiler can only warn and ignore the option if not recognized
8082     # So say no if there are warnings other than the usual output.
8083     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8084     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8085     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8086       lt_cv_prog_compiler_rtti_exceptions=yes
8087     fi
8088   fi
8089   $rm conftest*
8090
8091fi
8092echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8093echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8094
8095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8096    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8097else
8098    :
8099fi
8100
8101fi
8102
8103lt_prog_compiler_wl=
8104lt_prog_compiler_pic=
8105lt_prog_compiler_static=
8106
8107echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8108echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8109
8110  if test "$GCC" = yes; then
8111    lt_prog_compiler_wl='-Wl,'
8112    lt_prog_compiler_static='-static'
8113
8114    case $host_os in
8115      aix*)
8116      # All AIX code is PIC.
8117      if test "$host_cpu" = ia64; then
8118        # AIX 5 now supports IA64 processor
8119        lt_prog_compiler_static='-Bstatic'
8120      fi
8121      ;;
8122
8123    amigaos*)
8124      # FIXME: we need at least 68020 code to build shared libraries, but
8125      # adding the `-m68020' flag to GCC prevents building anything better,
8126      # like `-m68040'.
8127      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8128      ;;
8129
8130    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8131      # PIC is the default for these OSes.
8132      ;;
8133
8134    mingw* | pw32* | os2*)
8135      # This hack is so that the source file can tell whether it is being
8136      # built for inclusion in a dll (and should export symbols for example).
8137      lt_prog_compiler_pic='-DDLL_EXPORT'
8138      ;;
8139
8140    darwin* | rhapsody*)
8141      # PIC is the default on this platform
8142      # Common symbols not allowed in MH_DYLIB files
8143      lt_prog_compiler_pic='-fno-common'
8144      ;;
8145
8146    interix3*)
8147      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8148      # Instead, we relocate shared libraries at runtime.
8149      ;;
8150
8151    msdosdjgpp*)
8152      # Just because we use GCC doesn't mean we suddenly get shared libraries
8153      # on systems that don't support them.
8154      lt_prog_compiler_can_build_shared=no
8155      enable_shared=no
8156      ;;
8157
8158    sysv4*MP*)
8159      if test -d /usr/nec; then
8160        lt_prog_compiler_pic=-Kconform_pic
8161      fi
8162      ;;
8163
8164    hpux*)
8165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8166      # not for PA HP-UX.
8167      case $host_cpu in
8168      hppa*64*|ia64*)
8169        # +Z the default
8170        ;;
8171      *)
8172        lt_prog_compiler_pic='-fPIC'
8173        ;;
8174      esac
8175      ;;
8176
8177    *)
8178      lt_prog_compiler_pic='-fPIC'
8179      ;;
8180    esac
8181  else
8182    # PORTME Check for flag to pass linker flags through the system compiler.
8183    case $host_os in
8184    aix*)
8185      lt_prog_compiler_wl='-Wl,'
8186      if test "$host_cpu" = ia64; then
8187        # AIX 5 now supports IA64 processor
8188        lt_prog_compiler_static='-Bstatic'
8189      else
8190        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8191      fi
8192      ;;
8193      darwin*)
8194        # PIC is the default on this platform
8195        # Common symbols not allowed in MH_DYLIB files
8196       case $cc_basename in
8197         xlc*)
8198         lt_prog_compiler_pic='-qnocommon'
8199         lt_prog_compiler_wl='-Wl,'
8200         ;;
8201       esac
8202       ;;
8203
8204    mingw* | pw32* | os2*)
8205      # This hack is so that the source file can tell whether it is being
8206      # built for inclusion in a dll (and should export symbols for example).
8207      lt_prog_compiler_pic='-DDLL_EXPORT'
8208      ;;
8209
8210    hpux9* | hpux10* | hpux11*)
8211      lt_prog_compiler_wl='-Wl,'
8212      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8213      # not for PA HP-UX.
8214      case $host_cpu in
8215      hppa*64*|ia64*)
8216        # +Z the default
8217        ;;
8218      *)
8219        lt_prog_compiler_pic='+Z'
8220        ;;
8221      esac
8222      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8223      lt_prog_compiler_static='${wl}-a ${wl}archive'
8224      ;;
8225
8226    irix5* | irix6* | nonstopux*)
8227      lt_prog_compiler_wl='-Wl,'
8228      # PIC (with -KPIC) is the default.
8229      lt_prog_compiler_static='-non_shared'
8230      ;;
8231
8232    newsos6)
8233      lt_prog_compiler_pic='-KPIC'
8234      lt_prog_compiler_static='-Bstatic'
8235      ;;
8236
8237    linux*)
8238      case $cc_basename in
8239      icc* | ecc*)
8240        lt_prog_compiler_wl='-Wl,'
8241        lt_prog_compiler_pic='-KPIC'
8242        lt_prog_compiler_static='-static'
8243        ;;
8244      pgcc* | pgf77* | pgf90* | pgf95*)
8245        # Portland Group compilers (*not* the Pentium gcc compiler,
8246        # which looks to be a dead project)
8247        lt_prog_compiler_wl='-Wl,'
8248        lt_prog_compiler_pic='-fpic'
8249        lt_prog_compiler_static='-Bstatic'
8250        ;;
8251      ccc*)
8252        lt_prog_compiler_wl='-Wl,'
8253        # All Alpha code is PIC.
8254        lt_prog_compiler_static='-non_shared'
8255        ;;
8256      esac
8257      ;;
8258
8259    osf3* | osf4* | osf5*)
8260      lt_prog_compiler_wl='-Wl,'
8261      # All OSF/1 code is PIC.
8262      lt_prog_compiler_static='-non_shared'
8263      ;;
8264
8265    solaris*)
8266      lt_prog_compiler_pic='-KPIC'
8267      lt_prog_compiler_static='-Bstatic'
8268      case $cc_basename in
8269      f77* | f90* | f95*)
8270        lt_prog_compiler_wl='-Qoption ld ';;
8271      *)
8272        lt_prog_compiler_wl='-Wl,';;
8273      esac
8274      ;;
8275
8276    sunos4*)
8277      lt_prog_compiler_wl='-Qoption ld '
8278      lt_prog_compiler_pic='-PIC'
8279      lt_prog_compiler_static='-Bstatic'
8280      ;;
8281
8282    sysv4 | sysv4.2uw2* | sysv4.3*)
8283      lt_prog_compiler_wl='-Wl,'
8284      lt_prog_compiler_pic='-KPIC'
8285      lt_prog_compiler_static='-Bstatic'
8286      ;;
8287
8288    sysv4*MP*)
8289      if test -d /usr/nec ;then
8290        lt_prog_compiler_pic='-Kconform_pic'
8291        lt_prog_compiler_static='-Bstatic'
8292      fi
8293      ;;
8294
8295    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8296      lt_prog_compiler_wl='-Wl,'
8297      lt_prog_compiler_pic='-KPIC'
8298      lt_prog_compiler_static='-Bstatic'
8299      ;;
8300
8301    unicos*)
8302      lt_prog_compiler_wl='-Wl,'
8303      lt_prog_compiler_can_build_shared=no
8304      ;;
8305
8306    uts4*)
8307      lt_prog_compiler_pic='-pic'
8308      lt_prog_compiler_static='-Bstatic'
8309      ;;
8310
8311    *)
8312      lt_prog_compiler_can_build_shared=no
8313      ;;
8314    esac
8315  fi
8316
8317echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8318echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8319
8320#
8321# Check to make sure the PIC flag actually works.
8322#
8323if test -n "$lt_prog_compiler_pic"; then
8324
8325echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8326echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8327if test "${lt_prog_compiler_pic_works+set}" = set; then
8328  echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330  lt_prog_compiler_pic_works=no
8331  ac_outfile=conftest.$ac_objext
8332   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8333   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8334   # Insert the option either (1) after the last *FLAGS variable, or
8335   # (2) before a word containing "conftest.", or (3) at the end.
8336   # Note that $ac_compile itself does not contain backslashes and begins
8337   # with a dollar sign (not a hyphen), so the echo should work correctly.
8338   # The option is referenced via a variable to avoid confusing sed.
8339   lt_compile=`echo "$ac_compile" | $SED \
8340   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342   -e 's:$: $lt_compiler_flag:'`
8343   (eval echo "\"\$as_me:8343: $lt_compile\"" >&5)
8344   (eval "$lt_compile" 2>conftest.err)
8345   ac_status=$?
8346   cat conftest.err >&5
8347   echo "$as_me:8347: \$? = $ac_status" >&5
8348   if (exit $ac_status) && test -s "$ac_outfile"; then
8349     # The compiler can only warn and ignore the option if not recognized
8350     # So say no if there are warnings other than the usual output.
8351     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8352     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8353     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8354       lt_prog_compiler_pic_works=yes
8355     fi
8356   fi
8357   $rm conftest*
8358
8359fi
8360echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8361echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8362
8363if test x"$lt_prog_compiler_pic_works" = xyes; then
8364    case $lt_prog_compiler_pic in
8365     "" | " "*) ;;
8366     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8367     esac
8368else
8369    lt_prog_compiler_pic=
8370     lt_prog_compiler_can_build_shared=no
8371fi
8372
8373fi
8374case $host_os in
8375  # For platforms which do not support PIC, -DPIC is meaningless:
8376  *djgpp*)
8377    lt_prog_compiler_pic=
8378    ;;
8379  *)
8380    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8381    ;;
8382esac
8383
8384#
8385# Check to make sure the static flag actually works.
8386#
8387wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8388echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8389echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8390if test "${lt_prog_compiler_static_works+set}" = set; then
8391  echo $ECHO_N "(cached) $ECHO_C" >&6
8392else
8393  lt_prog_compiler_static_works=no
8394   save_LDFLAGS="$LDFLAGS"
8395   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8396   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8397   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8398     # The linker can only warn and ignore the option if not recognized
8399     # So say no if there are warnings
8400     if test -s conftest.err; then
8401       # Append any errors to the config.log.
8402       cat conftest.err 1>&5
8403       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8404       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405       if diff conftest.exp conftest.er2 >/dev/null; then
8406         lt_prog_compiler_static_works=yes
8407       fi
8408     else
8409       lt_prog_compiler_static_works=yes
8410     fi
8411   fi
8412   $rm conftest*
8413   LDFLAGS="$save_LDFLAGS"
8414
8415fi
8416echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8417echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8418
8419if test x"$lt_prog_compiler_static_works" = xyes; then
8420    :
8421else
8422    lt_prog_compiler_static=
8423fi
8424
8425
8426echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8427echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8428if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431  lt_cv_prog_compiler_c_o=no
8432   $rm -r conftest 2>/dev/null
8433   mkdir conftest
8434   cd conftest
8435   mkdir out
8436   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8437
8438   lt_compiler_flag="-o out/conftest2.$ac_objext"
8439   # Insert the option either (1) after the last *FLAGS variable, or
8440   # (2) before a word containing "conftest.", or (3) at the end.
8441   # Note that $ac_compile itself does not contain backslashes and begins
8442   # with a dollar sign (not a hyphen), so the echo should work correctly.
8443   lt_compile=`echo "$ac_compile" | $SED \
8444   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8445   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8446   -e 's:$: $lt_compiler_flag:'`
8447   (eval echo "\"\$as_me:8447: $lt_compile\"" >&5)
8448   (eval "$lt_compile" 2>out/conftest.err)
8449   ac_status=$?
8450   cat out/conftest.err >&5
8451   echo "$as_me:8451: \$? = $ac_status" >&5
8452   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8453   then
8454     # The compiler can only warn and ignore the option if not recognized
8455     # So say no if there are warnings
8456     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8457     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8458     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8459       lt_cv_prog_compiler_c_o=yes
8460     fi
8461   fi
8462   chmod u+w . 2>&5
8463   $rm conftest*
8464   # SGI C++ compiler will create directory out/ii_files/ for
8465   # template instantiation
8466   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8467   $rm out/* && rmdir out
8468   cd ..
8469   rmdir conftest
8470   $rm conftest*
8471
8472fi
8473echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8474echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8475
8476
8477hard_links="nottested"
8478if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8479  # do not overwrite the value of need_locks provided by the user
8480  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8481echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8482  hard_links=yes
8483  $rm conftest*
8484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8485  touch conftest.a
8486  ln conftest.a conftest.b 2>&5 || hard_links=no
8487  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8488  echo "$as_me:$LINENO: result: $hard_links" >&5
8489echo "${ECHO_T}$hard_links" >&6
8490  if test "$hard_links" = no; then
8491    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8492echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8493    need_locks=warn
8494  fi
8495else
8496  need_locks=no
8497fi
8498
8499echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8500echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8501
8502  runpath_var=
8503  allow_undefined_flag=
8504  enable_shared_with_static_runtimes=no
8505  archive_cmds=
8506  archive_expsym_cmds=
8507  old_archive_From_new_cmds=
8508  old_archive_from_expsyms_cmds=
8509  export_dynamic_flag_spec=
8510  whole_archive_flag_spec=
8511  thread_safe_flag_spec=
8512  hardcode_libdir_flag_spec=
8513  hardcode_libdir_flag_spec_ld=
8514  hardcode_libdir_separator=
8515  hardcode_direct=no
8516  hardcode_minus_L=no
8517  hardcode_shlibpath_var=unsupported
8518  link_all_deplibs=unknown
8519  hardcode_automatic=no
8520  module_cmds=
8521  module_expsym_cmds=
8522  always_export_symbols=no
8523  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8524  # include_expsyms should be a list of space-separated symbols to be *always*
8525  # included in the symbol list
8526  include_expsyms=
8527  # exclude_expsyms can be an extended regexp of symbols to exclude
8528  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8529  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8530  # as well as any symbol that contains `d'.
8531  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8532  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8533  # platforms (ab)use it in PIC code, but their linkers get confused if
8534  # the symbol is explicitly referenced.  Since portable code cannot
8535  # rely on this symbol name, it's probably fine to never include it in
8536  # preloaded symbol tables.
8537  extract_expsyms_cmds=
8538  # Just being paranoid about ensuring that cc_basename is set.
8539  for cc_temp in $compiler""; do
8540  case $cc_temp in
8541    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8542    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8543    \-*) ;;
8544    *) break;;
8545  esac
8546done
8547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8548
8549  case $host_os in
8550  cygwin* | mingw* | pw32*)
8551    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8552    # When not using gcc, we currently assume that we are using
8553    # Microsoft Visual C++.
8554    if test "$GCC" != yes; then
8555      with_gnu_ld=no
8556    fi
8557    ;;
8558  interix*)
8559    # we just hope/assume this is gcc and not c89 (= MSVC++)
8560    with_gnu_ld=yes
8561    ;;
8562  openbsd*)
8563    with_gnu_ld=no
8564    ;;
8565  esac
8566
8567  ld_shlibs=yes
8568  if test "$with_gnu_ld" = yes; then
8569    # If archive_cmds runs LD, not CC, wlarc should be empty
8570    wlarc='${wl}'
8571
8572    # Set some defaults for GNU ld with shared library support. These
8573    # are reset later if shared libraries are not supported. Putting them
8574    # here allows them to be overridden if necessary.
8575    runpath_var=LD_RUN_PATH
8576    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8577    export_dynamic_flag_spec='${wl}--export-dynamic'
8578    # ancient GNU ld didn't support --whole-archive et. al.
8579    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8580        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8581      else
8582        whole_archive_flag_spec=
8583    fi
8584    supports_anon_versioning=no
8585    case `$LD -v 2>/dev/null` in
8586      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8587      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8588      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8589      *\ 2.11.*) ;; # other 2.11 versions
8590      *) supports_anon_versioning=yes ;;
8591    esac
8592
8593    # See if GNU ld supports shared libraries.
8594    case $host_os in
8595    aix3* | aix4* | aix5*)
8596      # On AIX/PPC, the GNU linker is very broken
8597      if test "$host_cpu" != ia64; then
8598        ld_shlibs=no
8599        cat <<EOF 1>&2
8600
8601*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8602*** to be unable to reliably create shared libraries on AIX.
8603*** Therefore, libtool is disabling shared libraries support.  If you
8604*** really care for shared libraries, you may want to modify your PATH
8605*** so that a non-GNU linker is found, and then restart.
8606
8607EOF
8608      fi
8609      ;;
8610
8611    amigaos*)
8612      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)'
8613      hardcode_libdir_flag_spec='-L$libdir'
8614      hardcode_minus_L=yes
8615
8616      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8617      # that the semantics of dynamic libraries on AmigaOS, at least up
8618      # to version 4, is to share data among multiple programs linked
8619      # with the same dynamic library.  Since this doesn't match the
8620      # behavior of shared libraries on other platforms, we can't use
8621      # them.
8622      ld_shlibs=no
8623      ;;
8624
8625    beos*)
8626      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8627        allow_undefined_flag=unsupported
8628        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8629        # support --undefined.  This deserves some investigation.  FIXME
8630        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631      else
8632        ld_shlibs=no
8633      fi
8634      ;;
8635
8636    cygwin* | mingw* | pw32*)
8637      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8638      # as there is no search path for DLLs.
8639      hardcode_libdir_flag_spec='-L$libdir'
8640      allow_undefined_flag=unsupported
8641      always_export_symbols=no
8642      enable_shared_with_static_runtimes=yes
8643      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8644
8645      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8646        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647        # If the export-symbols file already is a .def file (1st line
8648        # is EXPORTS), use it as is; otherwise, prepend...
8649        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8650          cp $export_symbols $output_objdir/$soname.def;
8651        else
8652          echo EXPORTS > $output_objdir/$soname.def;
8653          cat $export_symbols >> $output_objdir/$soname.def;
8654        fi~
8655        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656      else
8657        ld_shlibs=no
8658      fi
8659      ;;
8660
8661    interix3*)
8662      hardcode_direct=no
8663      hardcode_shlibpath_var=no
8664      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665      export_dynamic_flag_spec='${wl}-E'
8666      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8667      # Instead, shared libraries are loaded at an image base (0x10000000 by
8668      # default) and relocated if they conflict, which is a slow very memory
8669      # consuming and fragmenting process.  To avoid this, we pick a random,
8670      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8671      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8672      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8673      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'
8674      ;;
8675
8676    linux*)
8677      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8678        tmp_addflag=
8679        case $cc_basename,$host_cpu in
8680        pgcc*)                          # Portland Group C compiler
8681          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8682          tmp_addflag=' $pic_flag'
8683          ;;
8684        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8685          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'
8686          tmp_addflag=' $pic_flag -Mnomain' ;;
8687        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8688          tmp_addflag=' -i_dynamic' ;;
8689        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8690          tmp_addflag=' -i_dynamic -nofor_main' ;;
8691        ifc* | ifort*)                  # Intel Fortran compiler
8692          tmp_addflag=' -nofor_main' ;;
8693        esac
8694        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695
8696        if test $supports_anon_versioning = yes; then
8697          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8698  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699  $echo "local: *; };" >> $output_objdir/$libname.ver~
8700          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701        fi
8702      else
8703        ld_shlibs=no
8704      fi
8705      ;;
8706
8707    netbsd*)
8708      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8709        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8710        wlarc=
8711      else
8712        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714      fi
8715      ;;
8716
8717    solaris*)
8718      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8719        ld_shlibs=no
8720        cat <<EOF 1>&2
8721
8722*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8723*** create shared libraries on Solaris systems.  Therefore, libtool
8724*** is disabling shared libraries support.  We urge you to upgrade GNU
8725*** binutils to release 2.9.1 or newer.  Another option is to modify
8726*** your PATH or compiler configuration so that the native linker is
8727*** used, and then restart.
8728
8729EOF
8730      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8731        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733      else
8734        ld_shlibs=no
8735      fi
8736      ;;
8737
8738    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8739      case `$LD -v 2>&1` in
8740        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8741        ld_shlibs=no
8742        cat <<_LT_EOF 1>&2
8743
8744*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8745*** reliably create shared libraries on SCO systems.  Therefore, libtool
8746*** is disabling shared libraries support.  We urge you to upgrade GNU
8747*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8748*** your PATH or compiler configuration so that the native linker is
8749*** used, and then restart.
8750
8751_LT_EOF
8752        ;;
8753        *)
8754          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8755            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8756            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8757            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8758          else
8759            ld_shlibs=no
8760          fi
8761        ;;
8762      esac
8763      ;;
8764
8765    sunos4*)
8766      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8767      wlarc=
8768      hardcode_direct=yes
8769      hardcode_shlibpath_var=no
8770      ;;
8771
8772    *)
8773      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8774        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776      else
8777        ld_shlibs=no
8778      fi
8779      ;;
8780    esac
8781
8782    if test "$ld_shlibs" = no; then
8783      runpath_var=
8784      hardcode_libdir_flag_spec=
8785      export_dynamic_flag_spec=
8786      whole_archive_flag_spec=
8787    fi
8788  else
8789    # PORTME fill in a description of your system's linker (not GNU ld)
8790    case $host_os in
8791    aix3*)
8792      allow_undefined_flag=unsupported
8793      always_export_symbols=yes
8794      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'
8795      # Note: this linker hardcodes the directories in LIBPATH if there
8796      # are no directories specified by -L.
8797      hardcode_minus_L=yes
8798      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8799        # Neither direct hardcoding nor static linking is supported with a
8800        # broken collect2.
8801        hardcode_direct=unsupported
8802      fi
8803      ;;
8804
8805    aix4* | aix5*)
8806      if test "$host_cpu" = ia64; then
8807        # On IA64, the linker does run time linking by default, so we don't
8808        # have to do anything special.
8809        aix_use_runtimelinking=no
8810        exp_sym_flag='-Bexport'
8811        no_entry_flag=""
8812      else
8813        # If we're using GNU nm, then we don't want the "-C" option.
8814        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8815        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8816          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'
8817        else
8818          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'
8819        fi
8820        aix_use_runtimelinking=no
8821
8822        # Test if we are trying to use run time linking or normal
8823        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8824        # need to do runtime linking.
8825        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8826          for ld_flag in $LDFLAGS; do
8827          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8828            aix_use_runtimelinking=yes
8829            break
8830          fi
8831          done
8832          ;;
8833        esac
8834
8835        exp_sym_flag='-bexport'
8836        no_entry_flag='-bnoentry'
8837      fi
8838
8839      # When large executables or shared objects are built, AIX ld can
8840      # have problems creating the table of contents.  If linking a library
8841      # or program results in "error TOC overflow" add -mminimal-toc to
8842      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8843      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8844
8845      archive_cmds=''
8846      hardcode_direct=yes
8847      hardcode_libdir_separator=':'
8848      link_all_deplibs=yes
8849
8850      if test "$GCC" = yes; then
8851        case $host_os in aix4.[012]|aix4.[012].*)
8852        # We only want to do this on AIX 4.2 and lower, the check
8853        # below for broken collect2 doesn't work under 4.3+
8854          collect2name=`${CC} -print-prog-name=collect2`
8855          if test -f "$collect2name" && \
8856           strings "$collect2name" | grep resolve_lib_name >/dev/null
8857          then
8858          # We have reworked collect2
8859          hardcode_direct=yes
8860          else
8861          # We have old collect2
8862          hardcode_direct=unsupported
8863          # It fails to find uninstalled libraries when the uninstalled
8864          # path is not listed in the libpath.  Setting hardcode_minus_L
8865          # to unsupported forces relinking
8866          hardcode_minus_L=yes
8867          hardcode_libdir_flag_spec='-L$libdir'
8868          hardcode_libdir_separator=
8869          fi
8870          ;;
8871        esac
8872        shared_flag='-shared'
8873        if test "$aix_use_runtimelinking" = yes; then
8874          shared_flag="$shared_flag "'${wl}-G'
8875        fi
8876      else
8877        # not using gcc
8878        if test "$host_cpu" = ia64; then
8879        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8880        # chokes on -Wl,-G. The following line is correct:
8881          shared_flag='-G'
8882        else
8883          if test "$aix_use_runtimelinking" = yes; then
8884            shared_flag='${wl}-G'
8885          else
8886            shared_flag='${wl}-bM:SRE'
8887          fi
8888        fi
8889      fi
8890
8891      # It seems that -bexpall does not export symbols beginning with
8892      # underscore (_), so it is better to generate a list of symbols to export.
8893      always_export_symbols=yes
8894      if test "$aix_use_runtimelinking" = yes; then
8895        # Warning - without using the other runtime loading flags (-brtl),
8896        # -berok will link without error, but may produce a broken library.
8897        allow_undefined_flag='-berok'
8898       # Determine the default libpath from the value encoded in an empty executable.
8899       cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h.  */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h.  */
8905
8906int
8907main ()
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916  (eval $ac_link) 2>conftest.er1
8917  ac_status=$?
8918  grep -v '^ *+' conftest.er1 >conftest.err
8919  rm -f conftest.er1
8920  cat conftest.err >&5
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); } &&
8923         { ac_try='test -z "$ac_c_werror_flag"
8924                         || test ! -s conftest.err'
8925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926  (eval $ac_try) 2>&5
8927  ac_status=$?
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); }; } &&
8930         { ac_try='test -s conftest$ac_exeext'
8931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932  (eval $ac_try) 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; }; then
8936
8937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8938}'`
8939# Check for a 64-bit object if we didn't find anything.
8940if 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; }
8941}'`; fi
8942else
8943  echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946fi
8947rm -f conftest.err conftest.$ac_objext \
8948      conftest$ac_exeext conftest.$ac_ext
8949if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950
8951       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952        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"
8953       else
8954        if test "$host_cpu" = ia64; then
8955          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956          allow_undefined_flag="-z nodefs"
8957          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"
8958        else
8959         # Determine the default libpath from the value encoded in an empty executable.
8960         cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966
8967int
8968main ()
8969{
8970
8971  ;
8972  return 0;
8973}
8974_ACEOF
8975rm -f conftest.$ac_objext conftest$ac_exeext
8976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977  (eval $ac_link) 2>conftest.er1
8978  ac_status=$?
8979  grep -v '^ *+' conftest.er1 >conftest.err
8980  rm -f conftest.er1
8981  cat conftest.err >&5
8982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983  (exit $ac_status); } &&
8984         { ac_try='test -z "$ac_c_werror_flag"
8985                         || test ! -s conftest.err'
8986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987  (eval $ac_try) 2>&5
8988  ac_status=$?
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); }; } &&
8991         { ac_try='test -s conftest$ac_exeext'
8992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993  (eval $ac_try) 2>&5
8994  ac_status=$?
8995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996  (exit $ac_status); }; }; then
8997
8998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8999}'`
9000# Check for a 64-bit object if we didn't find anything.
9001if 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; }
9002}'`; fi
9003else
9004  echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007fi
9008rm -f conftest.err conftest.$ac_objext \
9009      conftest$ac_exeext conftest.$ac_ext
9010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9011
9012         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9013          # Warning - without using the other run time loading flags,
9014          # -berok will link without error, but may produce a broken library.
9015          no_undefined_flag=' ${wl}-bernotok'
9016          allow_undefined_flag=' ${wl}-berok'
9017          # Exported symbols can be pulled into shared objects from archives
9018          whole_archive_flag_spec='$convenience'
9019          archive_cmds_need_lc=yes
9020          # This is similar to how AIX traditionally builds its shared libraries.
9021          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'
9022        fi
9023      fi
9024      ;;
9025
9026    amigaos*)
9027      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)'
9028      hardcode_libdir_flag_spec='-L$libdir'
9029      hardcode_minus_L=yes
9030      # see comment about different semantics on the GNU ld section
9031      ld_shlibs=no
9032      ;;
9033
9034    bsdi[45]*)
9035      export_dynamic_flag_spec=-rdynamic
9036      ;;
9037
9038    cygwin* | mingw* | pw32*)
9039      # When not using gcc, we currently assume that we are using
9040      # Microsoft Visual C++.
9041      # hardcode_libdir_flag_spec is actually meaningless, as there is
9042      # no search path for DLLs.
9043      hardcode_libdir_flag_spec=' '
9044      allow_undefined_flag=unsupported
9045      # Tell ltmain to make .lib files, not .a files.
9046      libext=lib
9047      # Tell ltmain to make .dll files, not .so files.
9048      shrext_cmds=".dll"
9049      # FIXME: Setting linknames here is a bad hack.
9050      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9051      # The linker will automatically build a .lib file if we build a DLL.
9052      old_archive_From_new_cmds='true'
9053      # FIXME: Should let the user specify the lib program.
9054      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9055      fix_srcfile_path='`cygpath -w "$srcfile"`'
9056      enable_shared_with_static_runtimes=yes
9057      ;;
9058
9059    darwin* | rhapsody*)
9060      case $host_os in
9061        rhapsody* | darwin1.[012])
9062         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9063         ;;
9064       *) # Darwin 1.3 on
9065         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9066           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9067         else
9068           case ${MACOSX_DEPLOYMENT_TARGET} in
9069             10.[012])
9070               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9071               ;;
9072             10.*)
9073               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9074               ;;
9075           esac
9076         fi
9077         ;;
9078      esac
9079      archive_cmds_need_lc=no
9080      hardcode_direct=no
9081      hardcode_automatic=yes
9082      hardcode_shlibpath_var=unsupported
9083      whole_archive_flag_spec=''
9084      link_all_deplibs=yes
9085    if test "$GCC" = yes ; then
9086        output_verbose_link_cmd='echo'
9087        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9088      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9089      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9090      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}'
9091      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}'
9092    else
9093      case $cc_basename in
9094        xlc*)
9095         output_verbose_link_cmd='echo'
9096         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9097         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9098          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9099         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}'
9100          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}'
9101          ;;
9102       *)
9103         ld_shlibs=no
9104          ;;
9105      esac
9106    fi
9107      ;;
9108
9109    dgux*)
9110      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111      hardcode_libdir_flag_spec='-L$libdir'
9112      hardcode_shlibpath_var=no
9113      ;;
9114
9115    freebsd1*)
9116      ld_shlibs=no
9117      ;;
9118
9119    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9120    # support.  Future versions do this automatically, but an explicit c++rt0.o
9121    # does not break anything, and helps significantly (at the cost of a little
9122    # extra space).
9123    freebsd2.2*)
9124      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9125      hardcode_libdir_flag_spec='-R$libdir'
9126      hardcode_direct=yes
9127      hardcode_shlibpath_var=no
9128      ;;
9129
9130    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9131    freebsd2*)
9132      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9133      hardcode_direct=yes
9134      hardcode_minus_L=yes
9135      hardcode_shlibpath_var=no
9136      ;;
9137
9138    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9139    freebsd* | kfreebsd*-gnu | dragonfly*)
9140      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9141      hardcode_libdir_flag_spec='-R$libdir'
9142      hardcode_direct=yes
9143      hardcode_shlibpath_var=no
9144      ;;
9145
9146    hpux9*)
9147      if test "$GCC" = yes; then
9148        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'
9149      else
9150        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'
9151      fi
9152      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9153      hardcode_libdir_separator=:
9154      hardcode_direct=yes
9155
9156      # hardcode_minus_L: Not really in the search PATH,
9157      # but as the default location of the library.
9158      hardcode_minus_L=yes
9159      export_dynamic_flag_spec='${wl}-E'
9160      ;;
9161
9162    hpux10*)
9163      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9164        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9165      else
9166        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9167      fi
9168      if test "$with_gnu_ld" = no; then
9169        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170        hardcode_libdir_separator=:
9171
9172        hardcode_direct=yes
9173        export_dynamic_flag_spec='${wl}-E'
9174
9175        # hardcode_minus_L: Not really in the search PATH,
9176        # but as the default location of the library.
9177        hardcode_minus_L=yes
9178      fi
9179      ;;
9180
9181    hpux11*)
9182      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9183        case $host_cpu in
9184        hppa*64*)
9185          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9186          ;;
9187        ia64*)
9188          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9189          ;;
9190        *)
9191          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9192          ;;
9193        esac
9194      else
9195        case $host_cpu in
9196        hppa*64*)
9197          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9198          ;;
9199        ia64*)
9200          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9201          ;;
9202        *)
9203          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9204          ;;
9205        esac
9206      fi
9207      if test "$with_gnu_ld" = no; then
9208        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9209        hardcode_libdir_separator=:
9210
9211        case $host_cpu in
9212        hppa*64*|ia64*)
9213          hardcode_libdir_flag_spec_ld='+b $libdir'
9214          hardcode_direct=no
9215          hardcode_shlibpath_var=no
9216          ;;
9217        *)
9218          hardcode_direct=yes
9219          export_dynamic_flag_spec='${wl}-E'
9220
9221          # hardcode_minus_L: Not really in the search PATH,
9222          # but as the default location of the library.
9223          hardcode_minus_L=yes
9224          ;;
9225        esac
9226      fi
9227      ;;
9228
9229    irix5* | irix6* | nonstopux*)
9230      if test "$GCC" = yes; then
9231        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'
9232      else
9233        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'
9234        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9235      fi
9236      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237      hardcode_libdir_separator=:
9238      link_all_deplibs=yes
9239      ;;
9240
9241    netbsd*)
9242      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9243        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9244      else
9245        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9246      fi
9247      hardcode_libdir_flag_spec='-R$libdir'
9248      hardcode_direct=yes
9249      hardcode_shlibpath_var=no
9250      ;;
9251
9252    newsos6)
9253      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254      hardcode_direct=yes
9255      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256      hardcode_libdir_separator=:
9257      hardcode_shlibpath_var=no
9258      ;;
9259
9260    openbsd*)
9261      hardcode_direct=yes
9262      hardcode_shlibpath_var=no
9263      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9264        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9265        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9266        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267        export_dynamic_flag_spec='${wl}-E'
9268      else
9269       case $host_os in
9270         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9271           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272           hardcode_libdir_flag_spec='-R$libdir'
9273           ;;
9274         *)
9275           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9276           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9277           ;;
9278       esac
9279      fi
9280      ;;
9281
9282    os2*)
9283      hardcode_libdir_flag_spec='-L$libdir'
9284      hardcode_minus_L=yes
9285      allow_undefined_flag=unsupported
9286      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'
9287      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9288      ;;
9289
9290    osf3*)
9291      if test "$GCC" = yes; then
9292        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9293        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'
9294      else
9295        allow_undefined_flag=' -expect_unresolved \*'
9296        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'
9297      fi
9298      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299      hardcode_libdir_separator=:
9300      ;;
9301
9302    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9303      if test "$GCC" = yes; then
9304        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9305        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'
9306        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307      else
9308        allow_undefined_flag=' -expect_unresolved \*'
9309        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'
9310        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9311        $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'
9312
9313        # Both c and cxx compiler support -rpath directly
9314        hardcode_libdir_flag_spec='-rpath $libdir'
9315      fi
9316      hardcode_libdir_separator=:
9317      ;;
9318
9319    solaris*)
9320      no_undefined_flag=' -z text'
9321      if test "$GCC" = yes; then
9322        wlarc='${wl}'
9323        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9325          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9326      else
9327        wlarc=''
9328        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9330        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9331      fi
9332      hardcode_libdir_flag_spec='-R$libdir'
9333      hardcode_shlibpath_var=no
9334      case $host_os in
9335      solaris2.[0-5] | solaris2.[0-5].*) ;;
9336      *)
9337        # The compiler driver will combine linker options so we
9338        # cannot just pass the convience library names through
9339        # without $wl, iff we do not link with $LD.
9340        # Luckily, gcc supports the same syntax we need for Sun Studio.
9341        # Supported since Solaris 2.6 (maybe 2.5.1?)
9342        case $wlarc in
9343        '')
9344          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9345        *)
9346          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' ;;
9347        esac ;;
9348      esac
9349      link_all_deplibs=yes
9350      ;;
9351
9352    sunos4*)
9353      if test "x$host_vendor" = xsequent; then
9354        # Use $CC to link under sequent, because it throws in some extra .o
9355        # files that make .init and .fini sections work.
9356        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9357      else
9358        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9359      fi
9360      hardcode_libdir_flag_spec='-L$libdir'
9361      hardcode_direct=yes
9362      hardcode_minus_L=yes
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    sysv4)
9367      case $host_vendor in
9368        sni)
9369          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370          hardcode_direct=yes # is this really true???
9371        ;;
9372        siemens)
9373          ## LD is ld it makes a PLAMLIB
9374          ## CC just makes a GrossModule.
9375          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9376          reload_cmds='$CC -r -o $output$reload_objs'
9377          hardcode_direct=no
9378        ;;
9379        motorola)
9380          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9382        ;;
9383      esac
9384      runpath_var='LD_RUN_PATH'
9385      hardcode_shlibpath_var=no
9386      ;;
9387
9388    sysv4.3*)
9389      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390      hardcode_shlibpath_var=no
9391      export_dynamic_flag_spec='-Bexport'
9392      ;;
9393
9394    sysv4*MP*)
9395      if test -d /usr/nec; then
9396        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397        hardcode_shlibpath_var=no
9398        runpath_var=LD_RUN_PATH
9399        hardcode_runpath_var=yes
9400        ld_shlibs=yes
9401      fi
9402      ;;
9403
9404    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9405      no_undefined_flag='${wl}-z,text'
9406      archive_cmds_need_lc=no
9407      hardcode_shlibpath_var=no
9408      runpath_var='LD_RUN_PATH'
9409
9410      if test "$GCC" = yes; then
9411        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413      else
9414        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416      fi
9417      ;;
9418
9419    sysv5* | sco3.2v5* | sco5v6*)
9420      # Note: We can NOT use -z defs as we might desire, because we do not
9421      # link with -lc, and that would cause any symbols used from libc to
9422      # always be unresolved, which means just about no library would
9423      # ever link correctly.  If we're not using GNU ld we use -z text
9424      # though, which does catch some bad symbols but isn't as heavy-handed
9425      # as -z defs.
9426      no_undefined_flag='${wl}-z,text'
9427      allow_undefined_flag='${wl}-z,nodefs'
9428      archive_cmds_need_lc=no
9429      hardcode_shlibpath_var=no
9430      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9431      hardcode_libdir_separator=':'
9432      link_all_deplibs=yes
9433      export_dynamic_flag_spec='${wl}-Bexport'
9434      runpath_var='LD_RUN_PATH'
9435
9436      if test "$GCC" = yes; then
9437        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439      else
9440        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442      fi
9443      ;;
9444
9445    uts4*)
9446      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447      hardcode_libdir_flag_spec='-L$libdir'
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    *)
9452      ld_shlibs=no
9453      ;;
9454    esac
9455  fi
9456
9457echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9458echo "${ECHO_T}$ld_shlibs" >&6
9459test "$ld_shlibs" = no && can_build_shared=no
9460
9461#
9462# Do we need to explicitly link libc?
9463#
9464case "x$archive_cmds_need_lc" in
9465x|xyes)
9466  # Assume -lc should be added
9467  archive_cmds_need_lc=yes
9468
9469  if test "$enable_shared" = yes && test "$GCC" = yes; then
9470    case $archive_cmds in
9471    *'~'*)
9472      # FIXME: we may have to deal with multi-command sequences.
9473      ;;
9474    '$CC '*)
9475      # Test whether the compiler implicitly links with -lc since on some
9476      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9477      # to ld, don't add -lc before -lgcc.
9478      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9479echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9480      $rm conftest*
9481      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9482
9483      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484  (eval $ac_compile) 2>&5
9485  ac_status=$?
9486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487  (exit $ac_status); } 2>conftest.err; then
9488        soname=conftest
9489        lib=conftest
9490        libobjs=conftest.$ac_objext
9491        deplibs=
9492        wl=$lt_prog_compiler_wl
9493        pic_flag=$lt_prog_compiler_pic
9494        compiler_flags=-v
9495        linker_flags=-v
9496        verstring=
9497        output_objdir=.
9498        libname=conftest
9499        lt_save_allow_undefined_flag=$allow_undefined_flag
9500        allow_undefined_flag=
9501        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9502  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9503  ac_status=$?
9504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505  (exit $ac_status); }
9506        then
9507          archive_cmds_need_lc=no
9508        else
9509          archive_cmds_need_lc=yes
9510        fi
9511        allow_undefined_flag=$lt_save_allow_undefined_flag
9512      else
9513        cat conftest.err 1>&5
9514      fi
9515      $rm conftest*
9516      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9517echo "${ECHO_T}$archive_cmds_need_lc" >&6
9518      ;;
9519    esac
9520  fi
9521  ;;
9522esac
9523
9524echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9525echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9526library_names_spec=
9527libname_spec='lib$name'
9528soname_spec=
9529shrext_cmds=".so"
9530postinstall_cmds=
9531postuninstall_cmds=
9532finish_cmds=
9533finish_eval=
9534shlibpath_var=
9535shlibpath_overrides_runpath=unknown
9536version_type=none
9537dynamic_linker="$host_os ld.so"
9538sys_lib_dlsearch_path_spec="/lib /usr/lib"
9539if test "$GCC" = yes; then
9540  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9541  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9542    # if the path contains ";" then we assume it to be the separator
9543    # otherwise default to the standard path separator (i.e. ":") - it is
9544    # assumed that no part of a normal pathname contains ";" but that should
9545    # okay in the real world where ";" in dirpaths is itself problematic.
9546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9547  else
9548    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9549  fi
9550else
9551  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9552fi
9553need_lib_prefix=unknown
9554hardcode_into_libs=no
9555
9556# when you set need_version to no, make sure it does not cause -set_version
9557# flags to be left without arguments
9558need_version=unknown
9559
9560case $host_os in
9561aix3*)
9562  version_type=linux
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9564  shlibpath_var=LIBPATH
9565
9566  # AIX 3 has no versioning support, so we append a major version to the name.
9567  soname_spec='${libname}${release}${shared_ext}$major'
9568  ;;
9569
9570aix4* | aix5*)
9571  version_type=linux
9572  need_lib_prefix=no
9573  need_version=no
9574  hardcode_into_libs=yes
9575  if test "$host_cpu" = ia64; then
9576    # AIX 5 supports IA64
9577    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9578    shlibpath_var=LD_LIBRARY_PATH
9579  else
9580    # With GCC up to 2.95.x, collect2 would create an import file
9581    # for dependence libraries.  The import file would start with
9582    # the line `#! .'.  This would cause the generated library to
9583    # depend on `.', always an invalid library.  This was fixed in
9584    # development snapshots of GCC prior to 3.0.
9585    case $host_os in
9586      aix4 | aix4.[01] | aix4.[01].*)
9587      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9588           echo ' yes '
9589           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9590        :
9591      else
9592        can_build_shared=no
9593      fi
9594      ;;
9595    esac
9596    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9597    # soname into executable. Probably we can add versioning support to
9598    # collect2, so additional links can be useful in future.
9599    if test "$aix_use_runtimelinking" = yes; then
9600      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9601      # instead of lib<name>.a to let people know that these are not
9602      # typical AIX shared libraries.
9603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604    else
9605      # We preserve .a as extension for shared libraries through AIX4.2
9606      # and later when we are not doing run time linking.
9607      library_names_spec='${libname}${release}.a $libname.a'
9608      soname_spec='${libname}${release}${shared_ext}$major'
9609    fi
9610    shlibpath_var=LIBPATH
9611  fi
9612  ;;
9613
9614amigaos*)
9615  library_names_spec='$libname.ixlibrary $libname.a'
9616  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9617  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'
9618  ;;
9619
9620beos*)
9621  library_names_spec='${libname}${shared_ext}'
9622  dynamic_linker="$host_os ld.so"
9623  shlibpath_var=LIBRARY_PATH
9624  ;;
9625
9626bsdi[45]*)
9627  version_type=linux
9628  need_version=no
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9634  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9635  # the default ld.so.conf also contains /usr/contrib/lib and
9636  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9637  # libtool to hard-code these into programs
9638  ;;
9639
9640cygwin* | mingw* | pw32*)
9641  version_type=windows
9642  shrext_cmds=".dll"
9643  need_version=no
9644  need_lib_prefix=no
9645
9646  case $GCC,$host_os in
9647  yes,cygwin* | yes,mingw* | yes,pw32*)
9648    library_names_spec='$libname.dll.a'
9649    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9650    postinstall_cmds='base_file=`basename \${file}`~
9651      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9652      dldir=$destdir/`dirname \$dlpath`~
9653      test -d \$dldir || mkdir -p \$dldir~
9654      $install_prog $dir/$dlname \$dldir/$dlname~
9655      chmod a+x \$dldir/$dlname'
9656    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9657      dlpath=$dir/\$dldll~
9658       $rm \$dlpath'
9659    shlibpath_overrides_runpath=yes
9660
9661    case $host_os in
9662    cygwin*)
9663      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9664      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9666      ;;
9667    mingw*)
9668      # MinGW DLLs use traditional 'lib' prefix
9669      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9670      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9671      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9672        # It is most probably a Windows format PATH printed by
9673        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9674        # path with ; separators, and with drive letters. We can handle the
9675        # drive letters (cygwin fileutils understands them), so leave them,
9676        # especially as we might pass files found there to a mingw objdump,
9677        # which wouldn't understand a cygwinified path. Ahh.
9678        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9679      else
9680        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9681      fi
9682      ;;
9683    pw32*)
9684      # pw32 DLLs use 'pw' prefix rather than 'lib'
9685      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9686      ;;
9687    esac
9688    ;;
9689
9690  *)
9691    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9692    ;;
9693  esac
9694  dynamic_linker='Win32 ld.exe'
9695  # FIXME: first we should search . and the directory the executable is in
9696  shlibpath_var=PATH
9697  ;;
9698
9699darwin* | rhapsody*)
9700  dynamic_linker="$host_os dyld"
9701  version_type=darwin
9702  need_lib_prefix=no
9703  need_version=no
9704  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9705  soname_spec='${libname}${release}${major}$shared_ext'
9706  shlibpath_overrides_runpath=yes
9707  shlibpath_var=DYLD_LIBRARY_PATH
9708  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9709  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9710  if test "$GCC" = yes; then
9711    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"`
9712  else
9713    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9714  fi
9715  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9716  ;;
9717
9718dgux*)
9719  version_type=linux
9720  need_lib_prefix=no
9721  need_version=no
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  ;;
9726
9727freebsd1*)
9728  dynamic_linker=no
9729  ;;
9730
9731kfreebsd*-gnu)
9732  version_type=linux
9733  need_lib_prefix=no
9734  need_version=no
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9736  soname_spec='${libname}${release}${shared_ext}$major'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  shlibpath_overrides_runpath=no
9739  hardcode_into_libs=yes
9740  dynamic_linker='GNU ld.so'
9741  ;;
9742
9743freebsd* | dragonfly*)
9744  # DragonFly does not have aout.  When/if they implement a new
9745  # versioning mechanism, adjust this.
9746  if test -x /usr/bin/objformat; then
9747    objformat=`/usr/bin/objformat`
9748  else
9749    case $host_os in
9750    freebsd[123]*) objformat=aout ;;
9751    *) objformat=elf ;;
9752    esac
9753  fi
9754  version_type=freebsd-$objformat
9755  case $version_type in
9756    freebsd-elf*)
9757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9758      need_version=no
9759      need_lib_prefix=no
9760      ;;
9761    freebsd-*)
9762      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9763      need_version=yes
9764      ;;
9765  esac
9766  shlibpath_var=LD_LIBRARY_PATH
9767  case $host_os in
9768  freebsd2*)
9769    shlibpath_overrides_runpath=yes
9770    ;;
9771  freebsd3.[01]* | freebsdelf3.[01]*)
9772    shlibpath_overrides_runpath=yes
9773    hardcode_into_libs=yes
9774    ;;
9775  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9776  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9777    shlibpath_overrides_runpath=no
9778    hardcode_into_libs=yes
9779    ;;
9780  freebsd*) # from 4.6 on
9781    shlibpath_overrides_runpath=yes
9782    hardcode_into_libs=yes
9783    ;;
9784  esac
9785  ;;
9786
9787gnu*)
9788  version_type=linux
9789  need_lib_prefix=no
9790  need_version=no
9791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9792  soname_spec='${libname}${release}${shared_ext}$major'
9793  shlibpath_var=LD_LIBRARY_PATH
9794  hardcode_into_libs=yes
9795  ;;
9796
9797hpux9* | hpux10* | hpux11*)
9798  # Give a soname corresponding to the major version so that dld.sl refuses to
9799  # link against other versions.
9800  version_type=sunos
9801  need_lib_prefix=no
9802  need_version=no
9803  case $host_cpu in
9804  ia64*)
9805    shrext_cmds='.so'
9806    hardcode_into_libs=yes
9807    dynamic_linker="$host_os dld.so"
9808    shlibpath_var=LD_LIBRARY_PATH
9809    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811    soname_spec='${libname}${release}${shared_ext}$major'
9812    if test "X$HPUX_IA64_MODE" = X32; then
9813      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9814    else
9815      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9816    fi
9817    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9818    ;;
9819   hppa*64*)
9820     shrext_cmds='.sl'
9821     hardcode_into_libs=yes
9822     dynamic_linker="$host_os dld.sl"
9823     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826     soname_spec='${libname}${release}${shared_ext}$major'
9827     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9828     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9829     ;;
9830   *)
9831    shrext_cmds='.sl'
9832    dynamic_linker="$host_os dld.sl"
9833    shlibpath_var=SHLIB_PATH
9834    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836    soname_spec='${libname}${release}${shared_ext}$major'
9837    ;;
9838  esac
9839  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9840  postinstall_cmds='chmod 555 $lib'
9841  ;;
9842
9843interix3*)
9844  version_type=linux
9845  need_lib_prefix=no
9846  need_version=no
9847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9848  soname_spec='${libname}${release}${shared_ext}$major'
9849  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9850  shlibpath_var=LD_LIBRARY_PATH
9851  shlibpath_overrides_runpath=no
9852  hardcode_into_libs=yes
9853  ;;
9854
9855irix5* | irix6* | nonstopux*)
9856  case $host_os in
9857    nonstopux*) version_type=nonstopux ;;
9858    *)
9859        if test "$lt_cv_prog_gnu_ld" = yes; then
9860                version_type=linux
9861        else
9862                version_type=irix
9863        fi ;;
9864  esac
9865  need_lib_prefix=no
9866  need_version=no
9867  soname_spec='${libname}${release}${shared_ext}$major'
9868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9869  case $host_os in
9870  irix5* | nonstopux*)
9871    libsuff= shlibsuff=
9872    ;;
9873  *)
9874    case $LD in # libtool.m4 will add one of these switches to LD
9875    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9876      libsuff= shlibsuff= libmagic=32-bit;;
9877    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9878      libsuff=32 shlibsuff=N32 libmagic=N32;;
9879    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9880      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9881    *) libsuff= shlibsuff= libmagic=never-match;;
9882    esac
9883    ;;
9884  esac
9885  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9886  shlibpath_overrides_runpath=no
9887  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9888  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9889  hardcode_into_libs=yes
9890  ;;
9891
9892# No shared lib support for Linux oldld, aout, or coff.
9893linux*oldld* | linux*aout* | linux*coff*)
9894  dynamic_linker=no
9895  ;;
9896
9897# This must be Linux ELF.
9898linux*)
9899  version_type=linux
9900  need_lib_prefix=no
9901  need_version=no
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9905  shlibpath_var=LD_LIBRARY_PATH
9906  shlibpath_overrides_runpath=no
9907  # This implies no fast_install, which is unacceptable.
9908  # Some rework will be needed to allow for fast_install
9909  # before this can be enabled.
9910  hardcode_into_libs=yes
9911
9912  # Append ld.so.conf contents to the search path
9913  if test -f /etc/ld.so.conf; then
9914    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' ' '`
9915    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9916  fi
9917
9918  # We used to test for /lib/ld.so.1 and disable shared libraries on
9919  # powerpc, because MkLinux only supported shared libraries with the
9920  # GNU dynamic linker.  Since this was broken with cross compilers,
9921  # most powerpc-linux boxes support dynamic linking these days and
9922  # people can always --disable-shared, the test was removed, and we
9923  # assume the GNU/Linux dynamic linker is in use.
9924  dynamic_linker='GNU/Linux ld.so'
9925  ;;
9926
9927knetbsd*-gnu)
9928  version_type=linux
9929  need_lib_prefix=no
9930  need_version=no
9931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932  soname_spec='${libname}${release}${shared_ext}$major'
9933  shlibpath_var=LD_LIBRARY_PATH
9934  shlibpath_overrides_runpath=no
9935  hardcode_into_libs=yes
9936  dynamic_linker='GNU ld.so'
9937  ;;
9938
9939netbsd*)
9940  version_type=sunos
9941  need_lib_prefix=no
9942  need_version=no
9943  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9945    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9946    dynamic_linker='NetBSD (a.out) ld.so'
9947  else
9948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9949    soname_spec='${libname}${release}${shared_ext}$major'
9950    dynamic_linker='NetBSD ld.elf_so'
9951  fi
9952  shlibpath_var=LD_LIBRARY_PATH
9953  shlibpath_overrides_runpath=yes
9954  hardcode_into_libs=yes
9955  ;;
9956
9957newsos6)
9958  version_type=linux
9959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  shlibpath_overrides_runpath=yes
9962  ;;
9963
9964nto-qnx*)
9965  version_type=linux
9966  need_lib_prefix=no
9967  need_version=no
9968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969  soname_spec='${libname}${release}${shared_ext}$major'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  shlibpath_overrides_runpath=yes
9972  ;;
9973
9974openbsd*)
9975  version_type=sunos
9976  sys_lib_dlsearch_path_spec="/usr/lib"
9977  need_lib_prefix=no
9978  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9979  case $host_os in
9980    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9981    *)                         need_version=no  ;;
9982  esac
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987    case $host_os in
9988      openbsd2.[89] | openbsd2.[89].*)
9989        shlibpath_overrides_runpath=no
9990        ;;
9991      *)
9992        shlibpath_overrides_runpath=yes
9993        ;;
9994      esac
9995  else
9996    shlibpath_overrides_runpath=yes
9997  fi
9998  ;;
9999
10000os2*)
10001  libname_spec='$name'
10002  shrext_cmds=".dll"
10003  need_lib_prefix=no
10004  library_names_spec='$libname${shared_ext} $libname.a'
10005  dynamic_linker='OS/2 ld.exe'
10006  shlibpath_var=LIBPATH
10007  ;;
10008
10009osf3* | osf4* | osf5*)
10010  version_type=osf
10011  need_lib_prefix=no
10012  need_version=no
10013  soname_spec='${libname}${release}${shared_ext}$major'
10014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10017  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10018  ;;
10019
10020solaris*)
10021  version_type=linux
10022  need_lib_prefix=no
10023  need_version=no
10024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025  soname_spec='${libname}${release}${shared_ext}$major'
10026  shlibpath_var=LD_LIBRARY_PATH
10027  shlibpath_overrides_runpath=yes
10028  hardcode_into_libs=yes
10029  # ldd complains unless libraries are executable
10030  postinstall_cmds='chmod +x $lib'
10031  ;;
10032
10033sunos4*)
10034  version_type=sunos
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10036  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  shlibpath_overrides_runpath=yes
10039  if test "$with_gnu_ld" = yes; then
10040    need_lib_prefix=no
10041  fi
10042  need_version=yes
10043  ;;
10044
10045sysv4 | sysv4.3*)
10046  version_type=linux
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  shlibpath_var=LD_LIBRARY_PATH
10050  case $host_vendor in
10051    sni)
10052      shlibpath_overrides_runpath=no
10053      need_lib_prefix=no
10054      export_dynamic_flag_spec='${wl}-Blargedynsym'
10055      runpath_var=LD_RUN_PATH
10056      ;;
10057    siemens)
10058      need_lib_prefix=no
10059      ;;
10060    motorola)
10061      need_lib_prefix=no
10062      need_version=no
10063      shlibpath_overrides_runpath=no
10064      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10065      ;;
10066  esac
10067  ;;
10068
10069sysv4*MP*)
10070  if test -d /usr/nec ;then
10071    version_type=linux
10072    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10073    soname_spec='$libname${shared_ext}.$major'
10074    shlibpath_var=LD_LIBRARY_PATH
10075  fi
10076  ;;
10077
10078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10079  version_type=freebsd-elf
10080  need_lib_prefix=no
10081  need_version=no
10082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10083  soname_spec='${libname}${release}${shared_ext}$major'
10084  shlibpath_var=LD_LIBRARY_PATH
10085  hardcode_into_libs=yes
10086  if test "$with_gnu_ld" = yes; then
10087    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10088    shlibpath_overrides_runpath=no
10089  else
10090    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10091    shlibpath_overrides_runpath=yes
10092    case $host_os in
10093      sco3.2v5*)
10094        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10095        ;;
10096    esac
10097  fi
10098  sys_lib_dlsearch_path_spec='/usr/lib'
10099  ;;
10100
10101uts4*)
10102  version_type=linux
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104  soname_spec='${libname}${release}${shared_ext}$major'
10105  shlibpath_var=LD_LIBRARY_PATH
10106  ;;
10107
10108*)
10109  dynamic_linker=no
10110  ;;
10111esac
10112echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10113echo "${ECHO_T}$dynamic_linker" >&6
10114test "$dynamic_linker" = no && can_build_shared=no
10115
10116variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10117if test "$GCC" = yes; then
10118  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10119fi
10120
10121echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10122echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10123hardcode_action=
10124if test -n "$hardcode_libdir_flag_spec" || \
10125   test -n "$runpath_var" || \
10126   test "X$hardcode_automatic" = "Xyes" ; then
10127
10128  # We can hardcode non-existant directories.
10129  if test "$hardcode_direct" != no &&
10130     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10131     # have to relink, otherwise we might link with an installed library
10132     # when we should be linking with a yet-to-be-installed one
10133     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10134     test "$hardcode_minus_L" != no; then
10135    # Linking always hardcodes the temporary library directory.
10136    hardcode_action=relink
10137  else
10138    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10139    hardcode_action=immediate
10140  fi
10141else
10142  # We cannot hardcode anything, or else we can only hardcode existing
10143  # directories.
10144  hardcode_action=unsupported
10145fi
10146echo "$as_me:$LINENO: result: $hardcode_action" >&5
10147echo "${ECHO_T}$hardcode_action" >&6
10148
10149if test "$hardcode_action" = relink; then
10150  # Fast installation is not supported
10151  enable_fast_install=no
10152elif test "$shlibpath_overrides_runpath" = yes ||
10153     test "$enable_shared" = no; then
10154  # Fast installation is not necessary
10155  enable_fast_install=needless
10156fi
10157
10158striplib=
10159old_striplib=
10160echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10161echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10162if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10163  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10164  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10165  echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
10167else
10168# FIXME - insert some real tests, host_os isn't really good enough
10169  case $host_os in
10170   darwin*)
10171       if test -n "$STRIP" ; then
10172         striplib="$STRIP -x"
10173         echo "$as_me:$LINENO: result: yes" >&5
10174echo "${ECHO_T}yes" >&6
10175       else
10176  echo "$as_me:$LINENO: result: no" >&5
10177echo "${ECHO_T}no" >&6
10178fi
10179       ;;
10180   *)
10181  echo "$as_me:$LINENO: result: no" >&5
10182echo "${ECHO_T}no" >&6
10183    ;;
10184  esac
10185fi
10186
10187if test "x$enable_dlopen" != xyes; then
10188  enable_dlopen=unknown
10189  enable_dlopen_self=unknown
10190  enable_dlopen_self_static=unknown
10191else
10192  lt_cv_dlopen=no
10193  lt_cv_dlopen_libs=
10194
10195  case $host_os in
10196  beos*)
10197    lt_cv_dlopen="load_add_on"
10198    lt_cv_dlopen_libs=
10199    lt_cv_dlopen_self=yes
10200    ;;
10201
10202  mingw* | pw32*)
10203    lt_cv_dlopen="LoadLibrary"
10204    lt_cv_dlopen_libs=
10205   ;;
10206
10207  cygwin*)
10208    lt_cv_dlopen="dlopen"
10209    lt_cv_dlopen_libs=
10210   ;;
10211
10212  darwin*)
10213  # if libdl is installed we need to link against it
10214    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10215echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10216if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10217  echo $ECHO_N "(cached) $ECHO_C" >&6
10218else
10219  ac_check_lib_save_LIBS=$LIBS
10220LIBS="-ldl  $LIBS"
10221cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h.  */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h.  */
10227
10228/* Override any gcc2 internal prototype to avoid an error.  */
10229#ifdef __cplusplus
10230extern "C"
10231#endif
10232/* We use char because int might match the return type of a gcc2
10233   builtin and then its argument prototype would still apply.  */
10234char dlopen ();
10235int
10236main ()
10237{
10238dlopen ();
10239  ;
10240  return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245  (eval $ac_link) 2>conftest.er1
10246  ac_status=$?
10247  grep -v '^ *+' conftest.er1 >conftest.err
10248  rm -f conftest.er1
10249  cat conftest.err >&5
10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); } &&
10252         { ac_try='test -z "$ac_c_werror_flag"
10253                         || test ! -s conftest.err'
10254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255  (eval $ac_try) 2>&5
10256  ac_status=$?
10257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); }; } &&
10259         { ac_try='test -s conftest$ac_exeext'
10260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261  (eval $ac_try) 2>&5
10262  ac_status=$?
10263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264  (exit $ac_status); }; }; then
10265  ac_cv_lib_dl_dlopen=yes
10266else
10267  echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270ac_cv_lib_dl_dlopen=no
10271fi
10272rm -f conftest.err conftest.$ac_objext \
10273      conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
10276echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10278if test $ac_cv_lib_dl_dlopen = yes; then
10279  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280else
10281
10282    lt_cv_dlopen="dyld"
10283    lt_cv_dlopen_libs=
10284    lt_cv_dlopen_self=yes
10285
10286fi
10287
10288   ;;
10289
10290  *)
10291    echo "$as_me:$LINENO: checking for shl_load" >&5
10292echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10293if test "${ac_cv_func_shl_load+set}" = set; then
10294  echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296  cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10304#define shl_load innocuous_shl_load
10305
10306/* System header to define __stub macros and hopefully few prototypes,
10307    which can conflict with char shl_load (); below.
10308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10309    <limits.h> exists even on freestanding compilers.  */
10310
10311#ifdef __STDC__
10312# include <limits.h>
10313#else
10314# include <assert.h>
10315#endif
10316
10317#undef shl_load
10318
10319/* Override any gcc2 internal prototype to avoid an error.  */
10320#ifdef __cplusplus
10321extern "C"
10322{
10323#endif
10324/* We use char because int might match the return type of a gcc2
10325   builtin and then its argument prototype would still apply.  */
10326char shl_load ();
10327/* The GNU C library defines this for functions which it implements
10328    to always fail with ENOSYS.  Some functions are actually named
10329    something starting with __ and the normal name is an alias.  */
10330#if defined (__stub_shl_load) || defined (__stub___shl_load)
10331choke me
10332#else
10333char (*f) () = shl_load;
10334#endif
10335#ifdef __cplusplus
10336}
10337#endif
10338
10339int
10340main ()
10341{
10342return f != shl_load;
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347rm -f conftest.$ac_objext conftest$ac_exeext
10348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349  (eval $ac_link) 2>conftest.er1
10350  ac_status=$?
10351  grep -v '^ *+' conftest.er1 >conftest.err
10352  rm -f conftest.er1
10353  cat conftest.err >&5
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); } &&
10356         { ac_try='test -z "$ac_c_werror_flag"
10357                         || test ! -s conftest.err'
10358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359  (eval $ac_try) 2>&5
10360  ac_status=$?
10361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); }; } &&
10363         { ac_try='test -s conftest$ac_exeext'
10364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365  (eval $ac_try) 2>&5
10366  ac_status=$?
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); }; }; then
10369  ac_cv_func_shl_load=yes
10370else
10371  echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374ac_cv_func_shl_load=no
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377      conftest$ac_exeext conftest.$ac_ext
10378fi
10379echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10380echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10381if test $ac_cv_func_shl_load = yes; then
10382  lt_cv_dlopen="shl_load"
10383else
10384  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10385echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10386if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10387  echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389  ac_check_lib_save_LIBS=$LIBS
10390LIBS="-ldld  $LIBS"
10391cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h.  */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h.  */
10397
10398/* Override any gcc2 internal prototype to avoid an error.  */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402/* We use char because int might match the return type of a gcc2
10403   builtin and then its argument prototype would still apply.  */
10404char shl_load ();
10405int
10406main ()
10407{
10408shl_load ();
10409  ;
10410  return 0;
10411}
10412_ACEOF
10413rm -f conftest.$ac_objext conftest$ac_exeext
10414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415  (eval $ac_link) 2>conftest.er1
10416  ac_status=$?
10417  grep -v '^ *+' conftest.er1 >conftest.err
10418  rm -f conftest.er1
10419  cat conftest.err >&5
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); } &&
10422         { ac_try='test -z "$ac_c_werror_flag"
10423                         || test ! -s conftest.err'
10424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425  (eval $ac_try) 2>&5
10426  ac_status=$?
10427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428  (exit $ac_status); }; } &&
10429         { ac_try='test -s conftest$ac_exeext'
10430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431  (eval $ac_try) 2>&5
10432  ac_status=$?
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); }; }; then
10435  ac_cv_lib_dld_shl_load=yes
10436else
10437  echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440ac_cv_lib_dld_shl_load=no
10441fi
10442rm -f conftest.err conftest.$ac_objext \
10443      conftest$ac_exeext conftest.$ac_ext
10444LIBS=$ac_check_lib_save_LIBS
10445fi
10446echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10447echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10448if test $ac_cv_lib_dld_shl_load = yes; then
10449  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10450else
10451  echo "$as_me:$LINENO: checking for dlopen" >&5
10452echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10453if test "${ac_cv_func_dlopen+set}" = set; then
10454  echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456  cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h.  */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h.  */
10462/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10464#define dlopen innocuous_dlopen
10465
10466/* System header to define __stub macros and hopefully few prototypes,
10467    which can conflict with char dlopen (); below.
10468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10469    <limits.h> exists even on freestanding compilers.  */
10470
10471#ifdef __STDC__
10472# include <limits.h>
10473#else
10474# include <assert.h>
10475#endif
10476
10477#undef dlopen
10478
10479/* Override any gcc2 internal prototype to avoid an error.  */
10480#ifdef __cplusplus
10481extern "C"
10482{
10483#endif
10484/* We use char because int might match the return type of a gcc2
10485   builtin and then its argument prototype would still apply.  */
10486char dlopen ();
10487/* The GNU C library defines this for functions which it implements
10488    to always fail with ENOSYS.  Some functions are actually named
10489    something starting with __ and the normal name is an alias.  */
10490#if defined (__stub_dlopen) || defined (__stub___dlopen)
10491choke me
10492#else
10493char (*f) () = dlopen;
10494#endif
10495#ifdef __cplusplus
10496}
10497#endif
10498
10499int
10500main ()
10501{
10502return f != dlopen;
10503  ;
10504  return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509  (eval $ac_link) 2>conftest.er1
10510  ac_status=$?
10511  grep -v '^ *+' conftest.er1 >conftest.err
10512  rm -f conftest.er1
10513  cat conftest.err >&5
10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); } &&
10516         { ac_try='test -z "$ac_c_werror_flag"
10517                         || test ! -s conftest.err'
10518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519  (eval $ac_try) 2>&5
10520  ac_status=$?
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); }; } &&
10523         { ac_try='test -s conftest$ac_exeext'
10524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525  (eval $ac_try) 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); }; }; then
10529  ac_cv_func_dlopen=yes
10530else
10531  echo "$as_me: failed program was:" >&5
10532sed 's/^/| /' conftest.$ac_ext >&5
10533
10534ac_cv_func_dlopen=no
10535fi
10536rm -f conftest.err conftest.$ac_objext \
10537      conftest$ac_exeext conftest.$ac_ext
10538fi
10539echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10540echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10541if test $ac_cv_func_dlopen = yes; then
10542  lt_cv_dlopen="dlopen"
10543else
10544  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10545echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10546if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10547  echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549  ac_check_lib_save_LIBS=$LIBS
10550LIBS="-ldl  $LIBS"
10551cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h.  */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h.  */
10557
10558/* Override any gcc2 internal prototype to avoid an error.  */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562/* We use char because int might match the return type of a gcc2
10563   builtin and then its argument prototype would still apply.  */
10564char dlopen ();
10565int
10566main ()
10567{
10568dlopen ();
10569  ;
10570  return 0;
10571}
10572_ACEOF
10573rm -f conftest.$ac_objext conftest$ac_exeext
10574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575  (eval $ac_link) 2>conftest.er1
10576  ac_status=$?
10577  grep -v '^ *+' conftest.er1 >conftest.err
10578  rm -f conftest.er1
10579  cat conftest.err >&5
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); } &&
10582         { ac_try='test -z "$ac_c_werror_flag"
10583                         || test ! -s conftest.err'
10584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585  (eval $ac_try) 2>&5
10586  ac_status=$?
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); }; } &&
10589         { ac_try='test -s conftest$ac_exeext'
10590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591  (eval $ac_try) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); }; }; then
10595  ac_cv_lib_dl_dlopen=yes
10596else
10597  echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600ac_cv_lib_dl_dlopen=no
10601fi
10602rm -f conftest.err conftest.$ac_objext \
10603      conftest$ac_exeext conftest.$ac_ext
10604LIBS=$ac_check_lib_save_LIBS
10605fi
10606echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10607echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10608if test $ac_cv_lib_dl_dlopen = yes; then
10609  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10610else
10611  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10612echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10613if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10614  echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616  ac_check_lib_save_LIBS=$LIBS
10617LIBS="-lsvld  $LIBS"
10618cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h.  */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h.  */
10624
10625/* Override any gcc2 internal prototype to avoid an error.  */
10626#ifdef __cplusplus
10627extern "C"
10628#endif
10629/* We use char because int might match the return type of a gcc2
10630   builtin and then its argument prototype would still apply.  */
10631char dlopen ();
10632int
10633main ()
10634{
10635dlopen ();
10636  ;
10637  return 0;
10638}
10639_ACEOF
10640rm -f conftest.$ac_objext conftest$ac_exeext
10641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642  (eval $ac_link) 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } &&
10649         { ac_try='test -z "$ac_c_werror_flag"
10650                         || test ! -s conftest.err'
10651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652  (eval $ac_try) 2>&5
10653  ac_status=$?
10654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655  (exit $ac_status); }; } &&
10656         { ac_try='test -s conftest$ac_exeext'
10657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658  (eval $ac_try) 2>&5
10659  ac_status=$?
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); }; }; then
10662  ac_cv_lib_svld_dlopen=yes
10663else
10664  echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667ac_cv_lib_svld_dlopen=no
10668fi
10669rm -f conftest.err conftest.$ac_objext \
10670      conftest$ac_exeext conftest.$ac_ext
10671LIBS=$ac_check_lib_save_LIBS
10672fi
10673echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10674echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10675if test $ac_cv_lib_svld_dlopen = yes; then
10676  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10677else
10678  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10679echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10680if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10681  echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683  ac_check_lib_save_LIBS=$LIBS
10684LIBS="-ldld  $LIBS"
10685cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h.  */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h.  */
10691
10692/* Override any gcc2 internal prototype to avoid an error.  */
10693#ifdef __cplusplus
10694extern "C"
10695#endif
10696/* We use char because int might match the return type of a gcc2
10697   builtin and then its argument prototype would still apply.  */