source: stable/2.8/Cbc/configure @ 2114

Last change on this file since 2114 was 2114, checked in by stefan, 4 years ago

temporarily committing release candidate

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.13.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8.13'
433PACKAGE_STRING='Cbc 2.8.13'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8.13 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.8.13:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-pkg-config    disable use of pkg-config (if available)
1098  --disable-interpackage-dependencies
1099                          disables deduction of Makefile dependencies from
1100                          package linker flags
1101  --enable-gnu-packages   compile with GNU packages (disabled by default)
1102  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1108  --with-cbc-checklevel specify the sanity check level for project Cbc
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116
1117  --with-coindepend-lib linker flags for using package CoinDepend
1118  --with-coindepend-incdir
1119                          directory with header files for using package
1120                          CoinDepend
1121  --with-coindepend-datadir
1122                          directory with data files for using package
1123                          CoinDepend
1124  --with-clp-lib linker flags for using package Clp
1125  --with-clp-incdir directory with header files for using package Clp
1126  --with-clp-datadir directory with data files for using package Clp
1127  --with-ositests-lib linker flags for using package OsiTests
1128  --with-ositests-incdir directory with header files for using package
1129                          OsiTests
1130  --with-ositests-datadir directory with data files for using package OsiTests
1131  --with-sample-lib linker flags for using package Sample
1132  --with-sample-incdir directory with header files for using package Sample
1133  --with-sample-datadir directory with data files for using package Sample
1134  --with-netlib-lib linker flags for using package Netlib
1135  --with-netlib-incdir directory with header files for using package Netlib
1136  --with-netlib-datadir directory with data files for using package Netlib
1137  --with-miplib3-lib linker flags for using package Miplib3
1138  --with-miplib3-incdir directory with header files for using package Miplib3
1139  --with-miplib3-datadir directory with data files for using package Miplib3
1140  --with-dylp-lib linker flags for using package DyLP
1141  --with-dylp-incdir directory with header files for using package DyLP
1142  --with-dylp-datadir directory with data files for using package DyLP
1143  --with-vol-lib linker flags for using package Vol
1144  --with-vol-incdir directory with header files for using package Vol
1145  --with-vol-datadir directory with data files for using package Vol
1146  --with-cpx-lib linker flags for using package Cpx
1147  --with-cpx-incdir directory with header files for using package Cpx
1148  --with-cpx-datadir directory with data files for using package Cpx
1149  --with-glpk-lib linker flags for using package Glpk
1150  --with-glpk-incdir directory with header files for using package Glpk
1151  --with-glpk-datadir directory with data files for using package Glpk
1152  --with-grb-lib linker flags for using package Grb
1153  --with-grb-incdir directory with header files for using package Grb
1154  --with-grb-datadir directory with data files for using package Grb
1155  --with-msk-lib linker flags for using package Msk
1156  --with-msk-incdir directory with header files for using package Msk
1157  --with-msk-datadir directory with data files for using package Msk
1158  --with-spx-lib linker flags for using package Spx
1159  --with-spx-incdir directory with header files for using package Spx
1160  --with-spx-datadir directory with data files for using package Spx
1161  --with-xpr-lib linker flags for using package Xpr
1162  --with-xpr-incdir directory with header files for using package Xpr
1163  --with-xpr-datadir directory with data files for using package Xpr
1164  --with-asl-lib linker flags for using package ASL
1165  --with-asl-incdir directory with header files for using package ASL
1166  --with-asl-datadir directory with data files for using package ASL
1167  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1168  --with-cbc-generic-solver
1169                          specify default solver for cbc-generic in lower case
1170                          letters (if not given, clp is assumed)
1171  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1172                          cl/icl builds only)
1173  --with-pthreadsw32-incdir
1174                          specify the path of the pthreads win32 header file
1175                          (for cl/icl builds only)
1176  --with-osicbc-default-solver
1177                          specify underlying solver for OsiCbc (default clp)
1178  --with-dot              use dot (from graphviz) when creating documentation
1179                          with doxygen if available; --without-dot to disable
1180
1181Some influential environment variables:
1182  CDEFS       Additional -D flags to be used when compiling C code.
1183  ADD_CFLAGS  Additional C compiler options
1184  DBG_CFLAGS  Debug C compiler options
1185  OPT_CFLAGS  Optimize C compiler options
1186  CC          C compiler command
1187  CFLAGS      C compiler flags
1188  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1189              nonstandard directory <lib dir>
1190  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1191              headers in a nonstandard directory <include dir>
1192  MPICC       C MPI Compiler
1193  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1194  ADD_CXXFLAGS
1195              Additional C++ compiler options
1196  DBG_CXXFLAGS
1197              Debug C++ compiler options
1198  OPT_CXXFLAGS
1199              Optimize C++ compiler options
1200  CXX         C++ compiler command
1201  CXXFLAGS    C++ compiler flags
1202  MPICXX      C++ MPI Compiler
1203  CPP         C preprocessor
1204  CXXCPP      C++ preprocessor
1205  F77         Fortran 77 compiler command
1206  FFLAGS      Fortran 77 compiler flags
1207  PKG_CONFIG  path to pkg-config utility
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <cbc@lists.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Cbc configure 2.8.13
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Cbc $as_me 2.8.13, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CBC_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CBC_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CBC_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CBC_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CBC
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CBC_SVN_REV $CBC_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854 coin_libversion=11:13:8
1855
1856
1857
1858
1859# Check if user wants to produce debugging code
1860
1861echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1862echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1863
1864# Check whether --enable-debug or --disable-debug was given.
1865if test "${enable_debug+set}" = set; then
1866  enableval="$enable_debug"
1867  case "${enableval}" in
1868   yes) coin_debug_compile=true
1869        if test "${enable_shared+set}" = set; then :; else
1870          enable_shared=no
1871        fi
1872        ;;
1873   no)  coin_debug_compile=false
1874        ;;
1875   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1876echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1877   { (exit 1); exit 1; }; }
1878        ;;
1879esac
1880else
1881  coin_debug_compile=false
1882fi;
1883
1884# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1885if test "${enable_debug_cbc+set}" = set; then
1886  enableval="$enable_debug_cbc"
1887  case "${enableval}" in
1888    yes) coin_debug_compile=true
1889         ;;
1890    no)  coin_debug_compile=false
1891         ;;
1892    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1893echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1894   { (exit 1); exit 1; }; }
1895         ;;
1896 esac
1897else
1898  :
1899fi;
1900
1901 # m4_ifvaln([Cbc],
1902
1903if test $coin_debug_compile = true; then
1904  echo "$as_me:$LINENO: result: yes" >&5
1905echo "${ECHO_T}yes" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911
1912# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1913if test "${with_cbc_verbosity+set}" = set; then
1914  withval="$with_cbc_verbosity"
1915  if test "$withval" = yes; then
1916                withval=1
1917              fi
1918              coin_cbc_verbosity=$withval
1919else
1920  coin_cbc_verbosity=0
1921fi;
1922
1923cat >>confdefs.h <<_ACEOF
1924#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1925_ACEOF
1926
1927
1928
1929# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1930if test "${with_cbc_checklevel+set}" = set; then
1931  withval="$with_cbc_checklevel"
1932  if test "$withval" = yes; then
1933                withval=1
1934              fi
1935              coin_cbc_checklevel=$withval
1936else
1937  coin_cbc_checklevel=0
1938fi;
1939
1940cat >>confdefs.h <<_ACEOF
1941#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1942_ACEOF
1943
1944
1945 # m4_ifvaln([Cbc],
1946
1947
1948
1949# Get the name of the C++ compiler and appropriate compiler options
1950
1951
1952  # for backward compatibility
1953  # Check whether --enable-doscompile or --disable-doscompile was given.
1954if test "${enable_doscompile+set}" = set; then
1955  enableval="$enable_doscompile"
1956  enable_doscompile=$enableval
1957else
1958  enable_doscompile=no
1959fi;
1960
1961  # Check whether --enable-msvc or --disable-msvc was given.
1962if test "${enable_msvc+set}" = set; then
1963  enableval="$enable_msvc"
1964  enable_msvc=$enableval
1965else
1966  enable_msvc=no
1967     if test "$enable_doscompile" = msvc ; then
1968       enable_msvc=yes
1969     elif test "$enable_doscompile" != no ; then
1970       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1971echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1972   { (exit 1); exit 1; }; }
1973     fi
1974
1975fi;
1976
1977  if test "$enable_msvc" = MD; then
1978    enable_shared=yes
1979    enable_msvc=yes
1980  fi
1981
1982  if test "$enable_msvc" = yes; then
1983    case $build in
1984      *-cygwin* | *-mingw*) ;;
1985      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1986echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1987   { (exit 1); exit 1; }; } ;;
1988    esac
1989  fi
1990
1991
1992
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999
2000# For consistency, we set the C compiler to the same value of the C++
2001# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2002if test x"$CXX" != x; then
2003  case "$CXX" in
2004    clang* ) ;;
2005    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2006      if test x"$CC" = x; then
2007        CC="$CXX"
2008        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2009echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2010      fi
2011      ;;
2012  esac
2013fi
2014
2015
2016
2017
2018
2019
2020coin_has_cc=yes
2021
2022save_cflags="$CFLAGS"
2023
2024# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2025# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2026# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2027# compiler. In this case, put cc after gcc.
2028
2029case $build in
2030  *-cygwin* | *-mingw*)
2031             if test "$enable_msvc" = yes ; then
2032               comps="icl cl gcc"
2033             else
2034               comps="gcc icl cl"
2035             fi ;;
2036  *-*-solaris*)
2037             # Extract the first word of "cc", so it can be a program name with args.
2038set dummy cc; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  if test -n "$sol_cc_compiler"; then
2045  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2046else
2047  ac_prog_rejected=no
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051  IFS=$as_save_IFS
2052  test -z "$as_dir" && as_dir=.
2053  for ac_exec_ext in '' $ac_executable_extensions; do
2054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2056       ac_prog_rejected=yes
2057       continue
2058     fi
2059    ac_cv_prog_sol_cc_compiler="cc"
2060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061    break 2
2062  fi
2063done
2064done
2065
2066if test $ac_prog_rejected = yes; then
2067  # We found a bogon in the path, so make sure we never use it.
2068  set dummy $ac_cv_prog_sol_cc_compiler
2069  shift
2070  if test $# != 0; then
2071    # We chose a different compiler from the bogus one.
2072    # However, it has the same basename, so the bogon will be chosen
2073    # first if we set sol_cc_compiler to just the basename; use the full file name.
2074    shift
2075    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2076  fi
2077fi
2078fi
2079fi
2080sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2081if test -n "$sol_cc_compiler"; then
2082  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2083echo "${ECHO_T}$sol_cc_compiler" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089             if test "$sol_cc_compiler" = "cc" ; then
2090               comps="cc xlc gcc pgcc icc"
2091             else
2092               comps="xlc gcc pgcc icc cc"
2093             fi
2094             ;;
2095  *-*-darwin*) comps="clang gcc cc" ;;
2096  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2097  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2098  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2099esac
2100
2101# We delete the cached value, since the test might not have been
2102# performed with our choice of compilers earlier
2103$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2104# AC_MSG_NOTICE([C compiler candidates: $comps])
2105ac_ext=c
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110if test -n "$ac_tool_prefix"; then
2111  for ac_prog in $comps
2112  do
2113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_CC+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -n "$CC"; then
2121  ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128  for ac_exec_ext in '' $ac_executable_extensions; do
2129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132    break 2
2133  fi
2134done
2135done
2136
2137fi
2138fi
2139CC=$ac_cv_prog_CC
2140if test -n "$CC"; then
2141  echo "$as_me:$LINENO: result: $CC" >&5
2142echo "${ECHO_T}$CC" >&6
2143else
2144  echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6
2146fi
2147
2148    test -n "$CC" && break
2149  done
2150fi
2151if test -z "$CC"; then
2152  ac_ct_CC=$CC
2153  for ac_prog in $comps
2154do
2155  # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
2157echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  if test -n "$ac_ct_CC"; then
2163  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168  IFS=$as_save_IFS
2169  test -z "$as_dir" && as_dir=.
2170  for ac_exec_ext in '' $ac_executable_extensions; do
2171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172    ac_cv_prog_ac_ct_CC="$ac_prog"
2173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174    break 2
2175  fi
2176done
2177done
2178
2179fi
2180fi
2181ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182if test -n "$ac_ct_CC"; then
2183  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184echo "${ECHO_T}$ac_ct_CC" >&6
2185else
2186  echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6
2188fi
2189
2190  test -n "$ac_ct_CC" && break
2191done
2192
2193  CC=$ac_ct_CC
2194fi
2195
2196
2197test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: no acceptable C compiler found in \$PATH
2200See \`config.log' for more details." >&2;}
2201   { (exit 1); exit 1; }; }
2202
2203# Provide some information about the compiler.
2204echo "$as_me:$LINENO:" \
2205     "checking for C compiler version" >&5
2206ac_compiler=`set X $ac_compile; echo $2`
2207{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2208  (eval $ac_compiler --version </dev/null >&5) 2>&5
2209  ac_status=$?
2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211  (exit $ac_status); }
2212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2213  (eval $ac_compiler -v </dev/null >&5) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2218  (eval $ac_compiler -V </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222
2223cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h.  */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h.  */
2229
2230int
2231main ()
2232{
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238ac_clean_files_save=$ac_clean_files
2239ac_clean_files="$ac_clean_files a.out a.exe b.out"
2240# Try to create an executable without -o first, disregard a.out.
2241# It will help us diagnose broken compilers, and finding out an intuition
2242# of exeext.
2243echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2244echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2245ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2246if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2247  (eval $ac_link_default) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  # Find the output, starting from the most likely.  This scheme is
2252# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2253# resort.
2254
2255# Be careful to initialize this variable, since it used to be cached.
2256# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2257ac_cv_exeext=
2258# b.out is created by i960 compilers.
2259for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2260do
2261  test -f "$ac_file" || continue
2262  case $ac_file in
2263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2264        ;;
2265    conftest.$ac_ext )
2266        # This is the source file.
2267        ;;
2268    [ab].out )
2269        # We found the default executable, but exeext='' is most
2270        # certainly right.
2271        break;;
2272    *.* )
2273        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274        # FIXME: I believe we export ac_cv_exeext for Libtool,
2275        # but it would be cool to find out if it's true.  Does anybody
2276        # maintain Libtool? --akim.
2277        export ac_cv_exeext
2278        break;;
2279    * )
2280        break;;
2281  esac
2282done
2283else
2284  echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: C compiler cannot create executables
2290See \`config.log' for more details." >&2;}
2291   { (exit 77); exit 77; }; }
2292fi
2293
2294ac_exeext=$ac_cv_exeext
2295echo "$as_me:$LINENO: result: $ac_file" >&5
2296echo "${ECHO_T}$ac_file" >&6
2297
2298# Check the compiler produces executables we can run.  If not, either
2299# the compiler is broken, or we cross compile.
2300echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2301echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2302# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2303# If not cross compiling, check that we can run a simple program.
2304if test "$cross_compiling" != yes; then
2305  if { ac_try='./$ac_file'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; }; then
2311    cross_compiling=no
2312  else
2313    if test "$cross_compiling" = maybe; then
2314        cross_compiling=yes
2315    else
2316        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2317If you meant to cross compile, use \`--host'.
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: cannot run C compiled programs.
2320If you meant to cross compile, use \`--host'.
2321See \`config.log' for more details." >&2;}
2322   { (exit 1); exit 1; }; }
2323    fi
2324  fi
2325fi
2326echo "$as_me:$LINENO: result: yes" >&5
2327echo "${ECHO_T}yes" >&6
2328
2329rm -f a.out a.exe conftest$ac_cv_exeext b.out
2330ac_clean_files=$ac_clean_files_save
2331# Check the compiler produces executables we can run.  If not, either
2332# the compiler is broken, or we cross compile.
2333echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2335echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336echo "${ECHO_T}$cross_compiling" >&6
2337
2338echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2341  (eval $ac_link) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; then
2345  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2346# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2347# work properly (i.e., refer to `conftest.exe'), while it won't with
2348# `rm'.
2349for ac_file in conftest.exe conftest conftest.*; do
2350  test -f "$ac_file" || continue
2351  case $ac_file in
2352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2353    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2354          export ac_cv_exeext
2355          break;;
2356    * ) break;;
2357  esac
2358done
2359else
2360  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2361See \`config.log' for more details." >&5
2362echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2363See \`config.log' for more details." >&2;}
2364   { (exit 1); exit 1; }; }
2365fi
2366
2367rm -f conftest$ac_cv_exeext
2368echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2369echo "${ECHO_T}$ac_cv_exeext" >&6
2370
2371rm -f conftest.$ac_ext
2372EXEEXT=$ac_cv_exeext
2373ac_exeext=$EXEEXT
2374echo "$as_me:$LINENO: checking for suffix of object files" >&5
2375echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2376if test "${ac_cv_objext+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385
2386int
2387main ()
2388{
2389
2390  ;
2391  return 0;
2392}
2393_ACEOF
2394rm -f conftest.o conftest.obj
2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396  (eval $ac_compile) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; then
2400  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2401  case $ac_file in
2402    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2403    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2404       break;;
2405  esac
2406done
2407else
2408  echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: cannot compute suffix of object files: cannot compile
2414See \`config.log' for more details." >&2;}
2415   { (exit 1); exit 1; }; }
2416fi
2417
2418rm -f conftest.$ac_cv_objext conftest.$ac_ext
2419fi
2420echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2421echo "${ECHO_T}$ac_cv_objext" >&6
2422OBJEXT=$ac_cv_objext
2423ac_objext=$OBJEXT
2424echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2425echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2426if test "${ac_cv_c_compiler_gnu+set}" = set; then
2427  echo $ECHO_N "(cached) $ECHO_C" >&6
2428else
2429  cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h.  */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h.  */
2435
2436int
2437main ()
2438{
2439#ifndef __GNUC__
2440       choke me
2441#endif
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_compiler_gnu=yes
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474ac_compiler_gnu=no
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477ac_cv_c_compiler_gnu=$ac_compiler_gnu
2478
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2481echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2482GCC=`test $ac_compiler_gnu = yes && echo yes`
2483ac_test_CFLAGS=${CFLAGS+set}
2484ac_save_CFLAGS=$CFLAGS
2485CFLAGS="-g"
2486echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2487echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2488if test "${ac_cv_prog_cc_g+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497
2498int
2499main ()
2500{
2501
2502  ;
2503  return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508  (eval $ac_compile) 2>conftest.er1
2509  ac_status=$?
2510  grep -v '^ *+' conftest.er1 >conftest.err
2511  rm -f conftest.er1
2512  cat conftest.err >&5
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); } &&
2515         { ac_try='test -z "$ac_c_werror_flag"
2516                         || test ! -s conftest.err'
2517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518  (eval $ac_try) 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }; } &&
2522         { ac_try='test -s conftest.$ac_objext'
2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524  (eval $ac_try) 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }; }; then
2528  ac_cv_prog_cc_g=yes
2529else
2530  echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533ac_cv_prog_cc_g=no
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536fi
2537echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2538echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2539if test "$ac_test_CFLAGS" = set; then
2540  CFLAGS=$ac_save_CFLAGS
2541elif test $ac_cv_prog_cc_g = yes; then
2542  if test "$GCC" = yes; then
2543    CFLAGS="-g -O2"
2544  else
2545    CFLAGS="-g"
2546  fi
2547else
2548  if test "$GCC" = yes; then
2549    CFLAGS="-O2"
2550  else
2551    CFLAGS=
2552  fi
2553fi
2554echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2555echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2556if test "${ac_cv_prog_cc_stdc+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  ac_cv_prog_cc_stdc=no
2560ac_save_CC=$CC
2561cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h.  */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h.  */
2567#include <stdarg.h>
2568#include <stdio.h>
2569#include <sys/types.h>
2570#include <sys/stat.h>
2571/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2572struct buf { int x; };
2573FILE * (*rcsopen) (struct buf *, struct stat *, int);
2574static char *e (p, i)
2575     char **p;
2576     int i;
2577{
2578  return p[i];
2579}
2580static char *f (char * (*g) (char **, int), char **p, ...)
2581{
2582  char *s;
2583  va_list v;
2584  va_start (v,p);
2585  s = g (p, va_arg (v,int));
2586  va_end (v);
2587  return s;
2588}
2589
2590/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2591   function prototypes and stuff, but not '\xHH' hex character constants.
2592   These don't provoke an error unfortunately, instead are silently treated
2593   as 'x'.  The following induces an error, until -std1 is added to get
2594   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2595   array size at least.  It's necessary to write '\x00'==0 to get something
2596   that's true only with -std1.  */
2597int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2598
2599int test (int i, double x);
2600struct s1 {int (*f) (int a);};
2601struct s2 {int (*f) (double a);};
2602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2603int argc;
2604char **argv;
2605int
2606main ()
2607{
2608return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613# Don't try gcc -ansi; that turns off useful extensions and
2614# breaks some systems' header files.
2615# AIX                   -qlanglvl=ansi
2616# Ultrix and OSF/1      -std1
2617# HP-UX 10.20 and later -Ae
2618# HP-UX older versions  -Aa -D_HPUX_SOURCE
2619# SVR4                  -Xc -D__EXTENSIONS__
2620for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2621do
2622  CC="$ac_save_CC $ac_arg"
2623  rm -f conftest.$ac_objext
2624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625  (eval $ac_compile) 2>conftest.er1
2626  ac_status=$?
2627  grep -v '^ *+' conftest.er1 >conftest.err
2628  rm -f conftest.er1
2629  cat conftest.err >&5
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); } &&
2632         { ac_try='test -z "$ac_c_werror_flag"
2633                         || test ! -s conftest.err'
2634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635  (eval $ac_try) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; } &&
2639         { ac_try='test -s conftest.$ac_objext'
2640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641  (eval $ac_try) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); }; }; then
2645  ac_cv_prog_cc_stdc=$ac_arg
2646break
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext
2653done
2654rm -f conftest.$ac_ext conftest.$ac_objext
2655CC=$ac_save_CC
2656
2657fi
2658
2659case "x$ac_cv_prog_cc_stdc" in
2660  x|xno)
2661    echo "$as_me:$LINENO: result: none needed" >&5
2662echo "${ECHO_T}none needed" >&6 ;;
2663  *)
2664    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2665echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2666    CC="$CC $ac_cv_prog_cc_stdc" ;;
2667esac
2668
2669# Some people use a C++ compiler to compile C.  Since we use `exit',
2670# in C++ we need to declare it.  In case someone uses the same compiler
2671# for both compiling C and C++ we need to have the C++ compiler decide
2672# the declaration of exit, since it's the most demanding environment.
2673cat >conftest.$ac_ext <<_ACEOF
2674#ifndef __cplusplus
2675  choke me
2676#endif
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680  (eval $ac_compile) 2>conftest.er1
2681  ac_status=$?
2682  grep -v '^ *+' conftest.er1 >conftest.err
2683  rm -f conftest.er1
2684  cat conftest.err >&5
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); } &&
2687         { ac_try='test -z "$ac_c_werror_flag"
2688                         || test ! -s conftest.err'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; } &&
2694         { ac_try='test -s conftest.$ac_objext'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; }; then
2700  for ac_declaration in \
2701   '' \
2702   'extern "C" void std::exit (int) throw (); using std::exit;' \
2703   'extern "C" void std::exit (int); using std::exit;' \
2704   'extern "C" void exit (int) throw ();' \
2705   'extern "C" void exit (int);' \
2706   'void exit (int);'
2707do
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714$ac_declaration
2715#include <stdlib.h>
2716int
2717main ()
2718{
2719exit (42);
2720  ;
2721  return 0;
2722}
2723_ACEOF
2724rm -f conftest.$ac_objext
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726  (eval $ac_compile) 2>conftest.er1
2727  ac_status=$?
2728  grep -v '^ *+' conftest.er1 >conftest.err
2729  rm -f conftest.er1
2730  cat conftest.err >&5
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); } &&
2733         { ac_try='test -z "$ac_c_werror_flag"
2734                         || test ! -s conftest.err'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; } &&
2740         { ac_try='test -s conftest.$ac_objext'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; }; then
2746  :
2747else
2748  echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751continue
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754  cat >conftest.$ac_ext <<_ACEOF
2755/* confdefs.h.  */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h.  */
2760$ac_declaration
2761int
2762main ()
2763{
2764exit (42);
2765  ;
2766  return 0;
2767}
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771  (eval $ac_compile) 2>conftest.er1
2772  ac_status=$?
2773  grep -v '^ *+' conftest.er1 >conftest.err
2774  rm -f conftest.er1
2775  cat conftest.err >&5
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); } &&
2778         { ac_try='test -z "$ac_c_werror_flag"
2779                         || test ! -s conftest.err'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; } &&
2785         { ac_try='test -s conftest.$ac_objext'
2786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787  (eval $ac_try) 2>&5
2788  ac_status=$?
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); }; }; then
2791  break
2792else
2793  echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796fi
2797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798done
2799rm -f conftest*
2800if test -n "$ac_declaration"; then
2801  echo '#ifdef __cplusplus' >>confdefs.h
2802  echo $ac_declaration      >>confdefs.h
2803  echo '#endif'             >>confdefs.h
2804fi
2805
2806else
2807  echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810fi
2811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812ac_ext=c
2813ac_cpp='$CPP $CPPFLAGS'
2814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817
2818if test -z "$CC" ; then
2819  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2820echo "$as_me: error: Failed to find a C compiler!" >&2;}
2821   { (exit 1); exit 1; }; }
2822fi
2823# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2824case "$CC" in
2825  clang* ) ;;
2826  cl* | */cl* | CL* | */CL* )
2827    if test "$ac_cv_prog_cc_g" = yes ; then
2828      ac_cv_prog_cc_g=no
2829      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2830echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2831    fi ;;
2832  * )
2833    if test x"$CYGPATH_W" = x ; then
2834      CYGPATH_W=echo
2835    fi
2836    ;;
2837esac
2838CFLAGS="$save_cflags"
2839
2840# add automake conditional so we can recognize cl compiler in makefile
2841coin_cc_is_cl=false
2842case "$CC" in
2843  clang* ) ;;
2844  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2845    coin_cc_is_cl=true
2846    ;;
2847esac
2848
2849
2850if test $coin_cc_is_cl = true; then
2851  COIN_CC_IS_CL_TRUE=
2852  COIN_CC_IS_CL_FALSE='#'
2853else
2854  COIN_CC_IS_CL_TRUE='#'
2855  COIN_CC_IS_CL_FALSE=
2856fi
2857
2858
2859# Check if a project specific CFLAGS variable has been set
2860if test x$COIN_PRJCT != x; then
2861  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2862  if test x$coin_tmp = xset; then
2863    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2864  fi
2865fi
2866
2867if test x"$CFLAGS" = x; then
2868
2869  coin_add_cflags=
2870  coin_opt_cflags=
2871  coin_dbg_cflags=
2872  coin_warn_cflags=
2873
2874  if test "$GCC" = "yes"; then
2875    case "$CC" in
2876      icc* | */icc*)
2877        ;;
2878      *)
2879        coin_opt_cflags="-O3"
2880        coin_add_cflags="-pipe"
2881        coin_dbg_cflags="-g -O0"
2882        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2883        case $build in
2884          *-darwin*)
2885            ;;
2886          *)
2887            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2888            ;;
2889        esac
2890    esac
2891  fi
2892  if test -z "$coin_opt_cflags"; then
2893    case $build in
2894      *-cygwin* | *-mingw*)
2895        case "$CC" in
2896          clang* ) ;;
2897          cl* | */cl* | CL* | */CL*)
2898            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2899              coin_opt_cflags='-MD -O2'
2900              coin_dbg_cflags='-MDd'
2901            else
2902              coin_opt_cflags='-MT -O2'
2903              coin_dbg_cflags='-MTd'
2904            fi
2905            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2906            ;;
2907          icl* | */icl* | ICL* | */ICL*)
2908            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2909              coin_opt_cflags='-MD -Ox'
2910              coin_dbg_cflags='-MDd -debug'
2911            else
2912              coin_opt_cflags='-MT -Ox'
2913              coin_dbg_cflags='-MTd -debug'
2914            fi
2915            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2916            ;;
2917        esac
2918        ;;
2919      *-linux-*)
2920        case "$CC" in
2921          icc* | */icc*)
2922            coin_opt_cflags="-O3 -ip -mp1"
2923            coin_add_cflags=""
2924            coin_dbg_cflags="-g"
2925            # Check if -i_dynamic is necessary (for new glibc library)
2926            CFLAGS=
2927            cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933
2934int
2935main ()
2936{
2937int i=0; i++;
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext conftest$ac_exeext
2943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944  (eval $ac_link) 2>conftest.er1
2945  ac_status=$?
2946  grep -v '^ *+' conftest.er1 >conftest.err
2947  rm -f conftest.er1
2948  cat conftest.err >&5
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); } &&
2951         { ac_try='test -z "$ac_c_werror_flag"
2952                         || test ! -s conftest.err'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; } &&
2958         { ac_try='test -s conftest$ac_exeext'
2959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960  (eval $ac_try) 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; }; then
2964  :
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969coin_add_cflags="-i_dynamic $coin_add_cflags"
2970fi
2971rm -f conftest.err conftest.$ac_objext \
2972      conftest$ac_exeext conftest.$ac_ext
2973            ;;
2974          pgcc* | */pgcc*)
2975            coin_opt_cflags="-fast"
2976            coin_add_cflags="-Kieee -pc 64"
2977            coin_dbg_cflags="-g"
2978            ;;
2979        esac
2980        ;;
2981      *-ibm-*)
2982        case "$CC" in
2983          xlc* | */xlc* | mpxlc* | */mpxlc*)
2984            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2985            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2986            coin_dbg_cflags="-g"
2987          ;;
2988        esac
2989        ;;
2990      *-hp-*)
2991        coin_opt_cflags="-O"
2992        coin_add_cflags="-Ae"
2993        coin_dbg_cflags="-g"
2994        ;;
2995      *-*-solaris*)
2996        coin_opt_cflags="-xO4"
2997        coin_dbg_cflags="-g"
2998        ;;
2999      *-sgi-*)
3000        coin_opt_cflags="-O -OPT:Olimit=0"
3001        coin_dbg_cflags="-g"
3002        ;;
3003    esac
3004  fi
3005
3006  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3007    coin_dbg_cflags="-g"
3008  fi
3009
3010  if test -z "$coin_opt_cflags"; then
3011    # Try if -O option works if nothing else is set
3012    CFLAGS="-O"
3013    cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023int i=0; i++;
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext conftest$ac_exeext
3029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030  (eval $ac_link) 2>conftest.er1
3031  ac_status=$?
3032  grep -v '^ *+' conftest.er1 >conftest.err
3033  rm -f conftest.er1
3034  cat conftest.err >&5
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); } &&
3037         { ac_try='test -z "$ac_c_werror_flag"
3038                         || test ! -s conftest.err'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; } &&
3044         { ac_try='test -s conftest$ac_exeext'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; }; then
3050  coin_opt_cflags="-O"
3051else
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055fi
3056rm -f conftest.err conftest.$ac_objext \
3057      conftest$ac_exeext conftest.$ac_ext
3058  fi
3059
3060  # if PM doesn't want the warning messages, take them out
3061  if test x"$coin_skip_warn_cflags" = xyes; then
3062    coin_warn_cflags=
3063  fi
3064
3065  if test x${DBG_CFLAGS+set} != xset; then
3066    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3067  fi
3068  if test x${OPT_CFLAGS+set} != xset; then
3069    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3070  fi
3071
3072  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3073  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3074
3075  if test "$coin_debug_compile" = "true"; then
3076    CFLAGS="$DBG_CFLAGS"
3077  else
3078    CFLAGS="$OPT_CFLAGS"
3079  fi
3080else
3081  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3082  if test x${DBG_CFLAGS+set} != xset; then
3083    DBG_CFLAGS="$CFLAGS"
3084  fi
3085  if test x${OPT_CFLAGS+set} != xset; then
3086    OPT_CFLAGS="$CFLAGS"
3087  fi
3088fi
3089
3090# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3091if test x$COIN_PRJCT != x; then
3092  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3093fi
3094
3095# Try if CFLAGS works
3096save_CFLAGS="$CFLAGS"
3097cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107int i=0; i++;
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext conftest$ac_exeext
3113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114  (eval $ac_link) 2>conftest.er1
3115  ac_status=$?
3116  grep -v '^ *+' conftest.er1 >conftest.err
3117  rm -f conftest.er1
3118  cat conftest.err >&5
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); } &&
3121         { ac_try='test -z "$ac_c_werror_flag"
3122                         || test ! -s conftest.err'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; } &&
3128         { ac_try='test -s conftest$ac_exeext'
3129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130  (eval $ac_try) 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; }; then
3134  :
3135else
3136  echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139CFLAGS=
3140fi
3141rm -f conftest.err conftest.$ac_objext \
3142      conftest$ac_exeext conftest.$ac_ext
3143if test -z "$CFLAGS"; then
3144  { 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
3145echo "$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;}
3146  CFLAGS='-O'
3147  cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h.  */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157int i=0; i++;
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext conftest$ac_exeext
3163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3164  (eval $ac_link) 2>conftest.er1
3165  ac_status=$?
3166  grep -v '^ *+' conftest.er1 >conftest.err
3167  rm -f conftest.er1
3168  cat conftest.err >&5
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); } &&
3171         { ac_try='test -z "$ac_c_werror_flag"
3172                         || test ! -s conftest.err'
3173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174  (eval $ac_try) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; } &&
3178         { ac_try='test -s conftest$ac_exeext'
3179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180  (eval $ac_try) 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; }; then
3184  :
3185else
3186  echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189CFLAGS=
3190fi
3191rm -f conftest.err conftest.$ac_objext \
3192      conftest$ac_exeext conftest.$ac_ext
3193  if test -z "$CFLAGS"; then
3194    { 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
3195echo "$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;}
3196  fi
3197fi
3198
3199{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3200echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3201
3202
3203if test x"$MPICC" = x; then :; else
3204  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3205echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3206  CC="$MPICC"
3207fi
3208
3209# Correct the LD variable if we are using the MS or Intel-windows compiler
3210case "$CC" in
3211  clang* ) ;;
3212  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3213    LD=link
3214    ;;
3215esac
3216
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223
3224
3225 #Let's try if that overcomes configuration problem with VC++ 6.0
3226
3227ac_ext=cc
3228ac_cpp='$CXXCPP $CPPFLAGS'
3229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3232
3233
3234
3235
3236
3237
3238
3239coin_has_cxx=yes
3240
3241save_cxxflags="$CXXFLAGS"
3242# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3243case $build in
3244  *-cygwin* | *-mingw*)
3245      if test "$enable_msvc" = yes ; then
3246         comps="icl cl g++"
3247      else
3248         comps="g++ icl cl"
3249      fi ;;
3250  *-*-solaris*)
3251             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3252  *-darwin*) comps="clang++ g++ c++ CC" ;;
3253  *-linux-gnu*)
3254             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3255          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3256esac
3257
3258# We delete the cached value, since the test might not have been
3259# performed with our choice of compilers earlier
3260$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3261# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3262ac_ext=cc
3263ac_cpp='$CXXCPP $CPPFLAGS'
3264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3267if test -n "$ac_tool_prefix"; then
3268  for ac_prog in $CCC $comps
3269  do
3270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_CXX+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  if test -n "$CXX"; then
3278  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285  for ac_exec_ext in '' $ac_executable_extensions; do
3286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292done
3293
3294fi
3295fi
3296CXX=$ac_cv_prog_CXX
3297if test -n "$CXX"; then
3298  echo "$as_me:$LINENO: result: $CXX" >&5
3299echo "${ECHO_T}$CXX" >&6
3300else
3301  echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305    test -n "$CXX" && break
3306  done
3307fi
3308if test -z "$CXX"; then
3309  ac_ct_CXX=$CXX
3310  for ac_prog in $CCC $comps
3311do
3312  # Extract the first word of "$ac_prog", so it can be a program name with args.
3313set dummy $ac_prog; ac_word=$2
3314echo "$as_me:$LINENO: checking for $ac_word" >&5
3315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3317  echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319  if test -n "$ac_ct_CXX"; then
3320  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327  for ac_exec_ext in '' $ac_executable_extensions; do
3328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329    ac_cv_prog_ac_ct_CXX="$ac_prog"
3330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334done
3335
3336fi
3337fi
3338ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3339if test -n "$ac_ct_CXX"; then
3340  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3341echo "${ECHO_T}$ac_ct_CXX" >&6
3342else
3343  echo "$as_me:$LINENO: result: no" >&5
3344echo "${ECHO_T}no" >&6
3345fi
3346
3347  test -n "$ac_ct_CXX" && break
3348done
3349test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3350
3351  CXX=$ac_ct_CXX
3352fi
3353
3354
3355# Provide some information about the compiler.
3356echo "$as_me:$LINENO:" \
3357     "checking for C++ compiler version" >&5
3358ac_compiler=`set X $ac_compile; echo $2`
3359{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3360  (eval $ac_compiler --version </dev/null >&5) 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); }
3364{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3365  (eval $ac_compiler -v </dev/null >&5) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }
3369{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3370  (eval $ac_compiler -V </dev/null >&5) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }
3374
3375echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3376echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3377if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3378  echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380  cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h.  */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h.  */
3386
3387int
3388main ()
3389{
3390#ifndef __GNUC__
3391       choke me
3392#endif
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400  (eval $ac_compile) 2>conftest.er1
3401  ac_status=$?
3402  grep -v '^ *+' conftest.er1 >conftest.err
3403  rm -f conftest.er1
3404  cat conftest.err >&5
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); } &&
3407         { ac_try='test -z "$ac_cxx_werror_flag"
3408                         || test ! -s conftest.err'
3409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410  (eval $ac_try) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }; } &&
3414         { ac_try='test -s conftest.$ac_objext'
3415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416  (eval $ac_try) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }; }; then
3420  ac_compiler_gnu=yes
3421else
3422  echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425ac_compiler_gnu=no
3426fi
3427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3429
3430fi
3431echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3432echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3433GXX=`test $ac_compiler_gnu = yes && echo yes`
3434ac_test_CXXFLAGS=${CXXFLAGS+set}
3435ac_save_CXXFLAGS=$CXXFLAGS
3436CXXFLAGS="-g"
3437echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3438echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3439if test "${ac_cv_prog_cxx_g+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h.  */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466         { ac_try='test -z "$ac_cxx_werror_flag"
3467                         || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473         { ac_try='test -s conftest.$ac_objext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  ac_cv_prog_cxx_g=yes
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484ac_cv_prog_cxx_g=no
3485fi
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3489echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3490if test "$ac_test_CXXFLAGS" = set; then
3491  CXXFLAGS=$ac_save_CXXFLAGS
3492elif test $ac_cv_prog_cxx_g = yes; then
3493  if test "$GXX" = yes; then
3494    CXXFLAGS="-g -O2"
3495  else
3496    CXXFLAGS="-g"
3497  fi
3498else
3499  if test "$GXX" = yes; then
3500    CXXFLAGS="-O2"
3501  else
3502    CXXFLAGS=
3503  fi
3504fi
3505for ac_declaration in \
3506   '' \
3507   'extern "C" void std::exit (int) throw (); using std::exit;' \
3508   'extern "C" void std::exit (int); using std::exit;' \
3509   'extern "C" void exit (int) throw ();' \
3510   'extern "C" void exit (int);' \
3511   'void exit (int);'
3512do
3513  cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h.  */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h.  */
3519$ac_declaration
3520#include <stdlib.h>
3521int
3522main ()
3523{
3524exit (42);
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531  (eval $ac_compile) 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538         { ac_try='test -z "$ac_cxx_werror_flag"
3539                         || test ! -s conftest.err'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; } &&
3545         { ac_try='test -s conftest.$ac_objext'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; }; then
3551  :
3552else
3553  echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556continue
3557fi
3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559  cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h.  */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h.  */
3565$ac_declaration
3566int
3567main ()
3568{
3569exit (42);
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext
3575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576  (eval $ac_compile) 2>conftest.er1
3577  ac_status=$?
3578  grep -v '^ *+' conftest.er1 >conftest.err
3579  rm -f conftest.er1
3580  cat conftest.err >&5
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); } &&
3583         { ac_try='test -z "$ac_cxx_werror_flag"
3584                         || test ! -s conftest.err'
3585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586  (eval $ac_try) 2>&5
3587  ac_status=$?
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); }; } &&
3590         { ac_try='test -s conftest.$ac_objext'
3591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592  (eval $ac_try) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }; }; then
3596  break
3597else
3598  echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601fi
3602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603done
3604rm -f conftest*
3605if test -n "$ac_declaration"; then
3606  echo '#ifdef __cplusplus' >>confdefs.h
3607  echo $ac_declaration      >>confdefs.h
3608  echo '#endif'             >>confdefs.h
3609fi
3610
3611ac_ext=cc
3612ac_cpp='$CXXCPP $CPPFLAGS'
3613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3616
3617
3618#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3619#thus, we test here whether $CXX is actually working
3620ac_ext=cc
3621ac_cpp='$CXXCPP $CPPFLAGS'
3622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3625
3626echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3627echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3628cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h.  */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638int i=0;
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645  (eval $ac_compile) 2>conftest.er1
3646  ac_status=$?
3647  grep -v '^ *+' conftest.er1 >conftest.err
3648  rm -f conftest.er1
3649  cat conftest.err >&5
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); } &&
3652         { ac_try='test -z "$ac_cxx_werror_flag"
3653                         || test ! -s conftest.err'
3654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655  (eval $ac_try) 2>&5
3656  ac_status=$?
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); }; } &&
3659         { ac_try='test -s conftest.$ac_objext'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; }; then
3665  echo "$as_me:$LINENO: result: yes" >&5
3666echo "${ECHO_T}yes" >&6
3667else
3668  echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3674echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3675   { (exit 1); exit 1; }; }
3676
3677fi
3678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3679ac_ext=cc
3680ac_cpp='$CXXCPP $CPPFLAGS'
3681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3684
3685
3686coin_cxx_is_cl=false
3687# It seems that we need to cleanup something here for the Windows
3688case "$CXX" in
3689  clang* | */clang*) ;;
3690  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3691    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3692    mv confdefs.hh confdefs.h
3693    coin_cxx_is_cl=true
3694    ;;
3695esac
3696
3697# add automake conditional so we can recognize cl compiler in makefile
3698
3699
3700if test $coin_cxx_is_cl = true; then
3701  COIN_CXX_IS_CL_TRUE=
3702  COIN_CXX_IS_CL_FALSE='#'
3703else
3704  COIN_CXX_IS_CL_TRUE='#'
3705  COIN_CXX_IS_CL_FALSE=
3706fi
3707
3708
3709# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3710case "$CXX" in
3711  clang* ) ;;
3712  cl* | */cl* | CL* | */CL* )
3713    if test "$ac_cv_prog_cxx_g" = yes ; then
3714      ac_cv_prog_cxx_g=no
3715      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3716echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3717    fi ;;
3718  * )
3719    if test x"$CYGPATH_W" = x ; then
3720      CYGPATH_W=echo
3721    fi
3722    ;;
3723esac
3724CXXFLAGS="$save_cxxflags"
3725
3726# Check if a project specific CXXFLAGS variable has been set
3727if test x$COIN_PRJCT != x; then
3728  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3729  if test x$coin_tmp = xset; then
3730    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3731  fi
3732fi
3733
3734if test x"$CXXFLAGS" = x; then
3735
3736# ToDo decide whether we want -DNDEBUG for optimization
3737  coin_add_cxxflags=
3738  coin_opt_cxxflags=
3739  coin_dbg_cxxflags=
3740  coin_warn_cxxflags=
3741
3742  if test "$GXX" = "yes"; then
3743    case "$CXX" in
3744      icpc* | */icpc*)
3745        ;;
3746      *)
3747# ToDo decide about unroll-loops
3748        coin_opt_cxxflags="-O3"
3749        coin_add_cxxflags="-pipe"
3750        coin_dbg_cxxflags="-g -O0"
3751        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3752        case $build in
3753          *-darwin*)
3754            ;;
3755          *)
3756            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3757            ;;
3758        esac
3759    esac
3760  fi
3761
3762# Note that we do not need to cover GCC in the following tests.
3763
3764  if test -z "$coin_opt_cxxflags"; then
3765    case $build in
3766      *-cygwin* | *-mingw*)
3767        case "$CXX" in
3768          clang* ) ;;
3769          cl* | */cl* | CL* | */CL*)
3770            # The MT and MTd options are mutually exclusive
3771            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3772               coin_opt_cxxflags='-MD -O2'
3773               coin_dbg_cxxflags='-MDd'
3774            else
3775               coin_opt_cxxflags='-MT -O2'
3776               coin_dbg_cxxflags='-MTd'
3777            fi
3778            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3779            ;;
3780          icl* | */icl* | ICL* | */ICL*)
3781          # The MT and MTd options are mutually exclusive
3782            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3783              coin_opt_cxxflags='-MD -Ox'
3784              coin_dbg_cxxflags='-MDd -debug'
3785            else
3786              coin_opt_cxxflags='-MT -Ox'
3787              coin_dbg_cxxflags='-MTd -debug'
3788            fi
3789            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3790            ;;
3791        esac
3792        ;;
3793      *-linux-*)
3794        case "$CXX" in
3795          icpc* | */icpc*)
3796            coin_opt_cxxflags="-O3 -ip -mp1"
3797            coin_add_cxxflags=""
3798            coin_dbg_cxxflags="-g"
3799            # Check if -i_dynamic is necessary (for new glibc library)
3800            CXXFLAGS=
3801            cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811int i=0; i++;
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825         { ac_try='test -z "$ac_cxx_werror_flag"
3826                         || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832         { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  :
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847            ;;
3848          pgCC* | */pgCC*)
3849            coin_opt_cxxflags="-fast"
3850            coin_add_cxxflags="-Kieee -pc 64"
3851            coin_dbg_cxxflags="-g"
3852            ;;
3853        esac
3854        ;;
3855      *-ibm-*)
3856        case "$CXX" in
3857          xlC* | */xlC* | mpxlC* | */mpxlC*)
3858            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3859            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3860            coin_dbg_cxxflags="-g"
3861            ;;
3862        esac
3863        ;;
3864      *-hp-*)
3865        case "$CXX" in
3866          aCC* | */aCC* )
3867            coin_opt_cxxflags="-O"
3868            coin_add_cxxflags="-AA"
3869            coin_dbg_cxxflags="-g"
3870            ;;
3871        esac
3872        ;;
3873      *-*-solaris*)
3874          coin_opt_cxxflags="-O4"
3875          coin_dbg_cxxflags="-g"
3876        ;;
3877    esac
3878  fi
3879
3880# Generic flag settings. If these don't work, add a case above.
3881
3882  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3883    coin_dbg_cxxflags="-g"
3884  fi
3885
3886  if test -z "$coin_opt_cxxflags"; then
3887    # Try if -O option works if nothing else is set
3888    CXXFLAGS=-O
3889    cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
3895
3896int
3897main ()
3898{
3899int i=0; i++;
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext conftest$ac_exeext
3905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3906  (eval $ac_link) 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } &&
3913         { ac_try='test -z "$ac_cxx_werror_flag"
3914                         || test ! -s conftest.err'
3915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916  (eval $ac_try) 2>&5
3917  ac_status=$?
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); }; } &&
3920         { ac_try='test -s conftest$ac_exeext'
3921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922  (eval $ac_try) 2>&5
3923  ac_status=$?
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); }; }; then
3926  coin_opt_cxxflags="-O"
3927else
3928  echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931fi
3932rm -f conftest.err conftest.$ac_objext \
3933      conftest$ac_exeext conftest.$ac_ext
3934  fi
3935
3936  # if PM doesn't want the warning messages, take them out
3937  if test x"$coin_skip_warn_cxxflags" = xyes; then
3938    coin_warn_cxxflags=
3939  fi
3940
3941# Do final setup of flags based on values determined above.
3942
3943  if test x${DBG_CXXFLAGS+set} != xset; then
3944    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3945  fi
3946  if test x${OPT_CXXFLAGS+set} != xset; then
3947    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3948  fi
3949
3950  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3951  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3952
3953  if test "$coin_debug_compile" = "true"; then
3954    CXXFLAGS="$DBG_CXXFLAGS"
3955  else
3956    CXXFLAGS="$OPT_CXXFLAGS"
3957  fi
3958
3959# Handle the case where CXXFLAGS was set externally.
3960else
3961  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3962  if test x${DBG_CXXFLAGS+set} != xset; then
3963    DBG_CXXFLAGS="$CXXFLAGS"
3964  fi
3965  if test x${OPT_CXXFLAGS+set} != xset; then
3966    OPT_CXXFLAGS="$CXXFLAGS"
3967  fi
3968fi
3969
3970# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3971if test x$COIN_PRJCT != x; then
3972  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3973fi
3974
3975# Try if CXXFLAGS works
3976save_CXXFLAGS="$CXXFLAGS"
3977cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983
3984int
3985main ()
3986{
3987int i=0; i++;
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992rm -f conftest.$ac_objext conftest$ac_exeext
3993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3994  (eval $ac_link) 2>conftest.er1
3995  ac_status=$?
3996  grep -v '^ *+' conftest.er1 >conftest.err
3997  rm -f conftest.er1
3998  cat conftest.err >&5
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); } &&
4001         { ac_try='test -z "$ac_cxx_werror_flag"
4002                         || test ! -s conftest.err'
4003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004  (eval $ac_try) 2>&5
4005  ac_status=$?
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); }; } &&
4008         { ac_try='test -s conftest$ac_exeext'
4009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010  (eval $ac_try) 2>&5
4011  ac_status=$?
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); }; }; then
4014  :
4015else
4016  echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019CXXFLAGS=
4020fi
4021rm -f conftest.err conftest.$ac_objext \
4022      conftest$ac_exeext conftest.$ac_ext
4023if test -z "$CXXFLAGS"; then
4024  { 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
4025echo "$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;}
4026  CXXFLAGS='-O'
4027  cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h.  */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h.  */
4033
4034int
4035main ()
4036{
4037int i=0; i++;
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042rm -f conftest.$ac_objext conftest$ac_exeext
4043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4044  (eval $ac_link) 2>conftest.er1
4045  ac_status=$?
4046  grep -v '^ *+' conftest.er1 >conftest.err
4047  rm -f conftest.er1
4048  cat conftest.err >&5
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); } &&
4051         { ac_try='test -z "$ac_cxx_werror_flag"
4052                         || test ! -s conftest.err'
4053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054  (eval $ac_try) 2>&5
4055  ac_status=$?
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); }; } &&
4058         { ac_try='test -s conftest$ac_exeext'
4059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060  (eval $ac_try) 2>&5
4061  ac_status=$?
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); }; }; then
4064  :
4065else
4066  echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069CXXFLAGS=
4070fi
4071rm -f conftest.err conftest.$ac_objext \
4072      conftest$ac_exeext conftest.$ac_ext
4073  if test -z "$CXXFLAGS"; then
4074    { 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
4075echo "$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;}
4076  fi
4077fi
4078
4079{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4080echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4081
4082
4083if test x"$MPICXX" = x; then :; else
4084  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4085echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4086  CXX="$MPICXX"
4087fi
4088
4089# correct the LD variable in a build with MS or intel compiler
4090case "$CXX" in
4091  clang* ) ;;
4092  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4093    LD=link
4094    ;;
4095esac
4096
4097ac_ext=c
4098ac_cpp='$CPP $CPPFLAGS'
4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103
4104
4105# Initialize automake and libtool
4106{
4107
4108
4109
4110# START
4111
4112coin_disable_shared=no
4113# Test if force_shared has been set
4114if test "x" = xforce_shared; then
4115  if test x$enable_shared = xno; then
4116    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4117echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4118   { (exit 1); exit 1; }; }
4119  fi
4120  enable_shared=yes;
4121else
4122  # On Cygwin and AIX, building DLLs doesn't work
4123  case $build in
4124    *-cygwin* | *-mingw*)
4125      coin_disable_shared=yes
4126      if test x"$enable_shared" = xyes; then
4127        case "$CC" in
4128          clang* )
4129            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4130echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4131            ;;
4132          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4133            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4134echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4135            ;;
4136          *gcc*)
4137            if test x"$enable_dependency_linking" = xyes; then
4138              coin_disable_shared=no
4139            else
4140              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4141echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4142            fi
4143            ;;
4144          *)
4145            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4146echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4147            ;;
4148        esac
4149      fi
4150    ;;
4151    *-aix*)
4152      coin_disable_shared=yes
4153      platform=AIX
4154      if test x"$enable_shared" = xyes; then
4155        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4156echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4157      fi
4158    ;;
4159  esac
4160fi
4161if test x"$coin_disable_shared" = xyes; then
4162  if test x"$enable_shared" = xyes; then
4163    :
4164  else
4165    # we don't disable shared, because it was not selected anyway
4166    coin_disable_shared=no
4167  fi
4168  enable_shared=no
4169fi
4170# By default, we only want the shared objects to be compiled
4171# Check whether --enable-static or --disable-static was given.
4172if test "${enable_static+set}" = set; then
4173  enableval="$enable_static"
4174  p=${PACKAGE-default}
4175    case $enableval in
4176    yes) enable_static=yes ;;
4177    no) enable_static=no ;;
4178    *)
4179     enable_static=no
4180      # Look at the argument we got.  We use all the common list separators.
4181      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182      for pkg in $enableval; do
4183        IFS="$lt_save_ifs"
4184        if test "X$pkg" = "X$p"; then
4185          enable_static=yes
4186        fi
4187      done
4188      IFS="$lt_save_ifs"
4189      ;;
4190    esac
4191else
4192  enable_static=no
4193fi;
4194
4195
4196
4197
4198# Initialize automake
4199echo "$as_me:$LINENO: checking for egrep" >&5
4200echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4201if test "${ac_cv_prog_egrep+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4205    then ac_cv_prog_egrep='grep -E'
4206    else ac_cv_prog_egrep='egrep'
4207    fi
4208fi
4209echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4210echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4211 EGREP=$ac_cv_prog_egrep
4212
4213
4214echo "$as_me:$LINENO: checking whether ln -s works" >&5
4215echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4216LN_S=$as_ln_s
4217if test "$LN_S" = "ln -s"; then
4218  echo "$as_me:$LINENO: result: yes" >&5
4219echo "${ECHO_T}yes" >&6
4220else
4221  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4222echo "${ECHO_T}no, using $LN_S" >&6
4223fi
4224
4225am__api_version="1.9"
4226# Find a good install program.  We prefer a C program (faster),
4227# so one script is as good as another.  But avoid the broken or
4228# incompatible versions:
4229# SysV /etc/install, /usr/sbin/install
4230# SunOS /usr/etc/install
4231# IRIX /sbin/install
4232# AIX /bin/install
4233# AmigaOS /C/install, which installs bootblocks on floppy discs
4234# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237# OS/2's system install, which has a completely different semantic
4238# ./install, which can be erroneously created by make from ./install.sh.
4239echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4240echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4241if test -z "$INSTALL"; then
4242if test "${ac_cv_path_install+set}" = set; then
4243  echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250  # Account for people who put trailing slashes in PATH elements.
4251case $as_dir/ in
4252  ./ | .// | /cC/* | \
4253  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4254  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4255  /usr/ucb/* ) ;;
4256  *)
4257    # OSF1 and SCO ODT 3.0 have their own names for install.
4258    # Don't use installbsd from OSF since it installs stuff as root
4259    # by default.
4260    for ac_prog in ginstall scoinst install; do
4261      for ac_exec_ext in '' $ac_executable_extensions; do
4262        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4263          if test $ac_prog = install &&
4264            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265            # AIX install.  It has an incompatible calling convention.
4266            :
4267          elif test $ac_prog = install &&
4268            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269            # program-specific install script used by HP pwplus--don't use.
4270            :
4271          else
4272            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4273            break 3
4274          fi
4275        fi
4276      done
4277    done
4278    ;;
4279esac
4280done
4281
4282
4283fi
4284  if test "${ac_cv_path_install+set}" = set; then
4285    INSTALL=$ac_cv_path_install
4286  else
4287    # As a last resort, use the slow shell script.  We don't cache a
4288    # path for INSTALL within a source directory, because that will
4289    # break other packages using the cache if that directory is
4290    # removed, or if the path is relative.
4291    INSTALL=$ac_install_sh
4292  fi
4293fi
4294echo "$as_me:$LINENO: result: $INSTALL" >&5
4295echo "${ECHO_T}$INSTALL" >&6
4296
4297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298# It thinks the first close brace ends the variable substitution.
4299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4300
4301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4302
4303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4304
4305echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4306echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4307# Just in case
4308sleep 1
4309echo timestamp > conftest.file
4310# Do `set' in a subshell so we don't clobber the current shell's
4311# arguments.  Must try -L first in case configure is actually a
4312# symlink; some systems play weird games with the mod time of symlinks
4313# (eg FreeBSD returns the mod time of the symlink's containing
4314# directory).
4315if (
4316   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4317   if test "$*" = "X"; then
4318      # -L didn't work.
4319      set X `ls -t $srcdir/configure conftest.file`
4320   fi
4321   rm -f conftest.file
4322   if test "$*" != "X $srcdir/configure conftest.file" \
4323      && test "$*" != "X conftest.file $srcdir/configure"; then
4324
4325      # If neither matched, then we have a broken ls.  This can happen
4326      # if, for instance, CONFIG_SHELL is bash and it inherits a
4327      # broken ls alias from the environment.  This has actually
4328      # happened.  Such a system could not be considered "sane".
4329      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4330alias in your environment" >&5
4331echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4332alias in your environment" >&2;}
4333   { (exit 1); exit 1; }; }
4334   fi
4335
4336   test "$2" = conftest.file
4337   )
4338then
4339   # Ok.
4340   :
4341else
4342   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4343Check your system clock" >&5
4344echo "$as_me: error: newly created file is older than distributed files!
4345Check your system clock" >&2;}
4346   { (exit 1); exit 1; }; }
4347fi
4348echo "$as_me:$LINENO: result: yes" >&5
4349echo "${ECHO_T}yes" >&6
4350test "$program_prefix" != NONE &&
4351  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4352# Use a double $ so make ignores it.
4353test "$program_suffix" != NONE &&
4354  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4355# Double any \ or $.  echo might interpret backslashes.
4356# By default was `s,x,x', remove it if useless.
4357cat <<\_ACEOF >conftest.sed
4358s/[\\$]/&&/g;s/;s,x,x,$//
4359_ACEOF
4360program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4361rm conftest.sed
4362
4363# expand $ac_aux_dir to an absolute path
4364am_aux_dir=`cd $ac_aux_dir && pwd`
4365
4366test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4367# Use eval to expand $SHELL
4368if eval "$MISSING --run true"; then
4369  am_missing_run="$MISSING --run "
4370else
4371  am_missing_run=
4372  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4373echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4374fi
4375
4376if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4377  # We used to keeping the `.' as first argument, in order to
4378  # allow $(mkdir_p) to be used without argument.  As in
4379  #   $(mkdir_p) $(somedir)
4380  # where $(somedir) is conditionally defined.  However this is wrong
4381  # for two reasons:
4382  #  1. if the package is installed by a user who cannot write `.'
4383  #     make install will fail,
4384  #  2. the above comment should most certainly read
4385  #     $(mkdir_p) $(DESTDIR)$(somedir)
4386  #     so it does not work when $(somedir) is undefined and
4387  #     $(DESTDIR) is not.
4388  #  To support the latter case, we have to write
4389  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4390  #  so the `.' trick is pointless.
4391  mkdir_p='mkdir -p --'
4392else
4393  # On NextStep and OpenStep, the `mkdir' command does not
4394  # recognize any option.  It will interpret all options as
4395  # directories to create, and then abort because `.' already
4396  # exists.
4397  for d in ./-p ./--version;
4398  do
4399    test -d $d && rmdir $d
4400  done
4401  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4402  if test -f "$ac_aux_dir/mkinstalldirs"; then
4403    mkdir_p='$(mkinstalldirs)'
4404  else
4405    mkdir_p='$(install_sh) -d'
4406  fi
4407fi
4408
4409for ac_prog in gawk mawk nawk awk
4410do
4411  # Extract the first word of "$ac_prog", so it can be a program name with args.
4412set dummy $ac_prog; ac_word=$2
4413echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415if test "${ac_cv_prog_AWK+set}" = set; then
4416  echo $ECHO_N "(cached) $ECHO_C" >&6
4417else
4418  if test -n "$AWK"; then
4419  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426  for ac_exec_ext in '' $ac_executable_extensions; do
4427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428    ac_cv_prog_AWK="$ac_prog"
4429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430    break 2
4431  fi
4432done
4433done
4434
4435fi
4436fi
4437AWK=$ac_cv_prog_AWK
4438if test -n "$AWK"; then
4439  echo "$as_me:$LINENO: result: $AWK" >&5
4440echo "${ECHO_T}$AWK" >&6
4441else
4442  echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444fi
4445
4446  test -n "$AWK" && break
4447done
4448
4449echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4450echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4451set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4452if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  cat >conftest.make <<\_ACEOF
4456all:
4457        @echo 'ac_maketemp="$(MAKE)"'
4458_ACEOF
4459# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4460eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4461if test -n "$ac_maketemp"; then
4462  eval ac_cv_prog_make_${ac_make}_set=yes
4463else
4464  eval ac_cv_prog_make_${ac_make}_set=no
4465fi
4466rm -f conftest.make
4467fi
4468if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4469  echo "$as_me:$LINENO: result: yes" >&5
4470echo "${ECHO_T}yes" >&6
4471  SET_MAKE=
4472else
4473  echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475  SET_MAKE="MAKE=${MAKE-make}"
4476fi
4477
4478rm -rf .tst 2>/dev/null
4479mkdir .tst 2>/dev/null
4480if test -d .tst; then
4481  am__leading_dot=.
4482else
4483  am__leading_dot=_
4484fi
4485rmdir .tst 2>/dev/null
4486
4487DEPDIR="${am__leading_dot}deps"
4488
4489          ac_config_commands="$ac_config_commands depfiles"
4490
4491
4492am_make=${MAKE-make}
4493cat > confinc << 'END'
4494am__doit:
4495        @echo done
4496.PHONY: am__doit
4497END
4498# If we don't find an include directive, just comment out the code.
4499echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4500echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4501am__include="#"
4502am__quote=
4503_am_result=none
4504# First try GNU make style include.
4505echo "include confinc" > confmf
4506# We grep out `Entering directory' and `Leaving directory'
4507# messages which can occur if `w' ends up in MAKEFLAGS.
4508# In particular we don't look at `^make:' because GNU make might
4509# be invoked under some other name (usually "gmake"), in which
4510# case it prints its new name instead of `make'.
4511if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4512   am__include=include
4513   am__quote=
4514   _am_result=GNU
4515fi
4516# Now try BSD make style include.
4517if test "$am__include" = "#"; then
4518   echo '.include "confinc"' > confmf
4519   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4520      am__include=.include
4521      am__quote="\""
4522      _am_result=BSD
4523   fi
4524fi
4525
4526
4527echo "$as_me:$LINENO: result: $_am_result" >&5
4528echo "${ECHO_T}$_am_result" >&6
4529rm -f confinc confmf
4530
4531# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4532if test "${enable_dependency_tracking+set}" = set; then
4533  enableval="$enable_dependency_tracking"
4534
4535fi;
4536if test "x$enable_dependency_tracking" != xno; then
4537  am_depcomp="$ac_aux_dir/depcomp"
4538  AMDEPBACKSLASH='\'
4539fi
4540
4541
4542if test "x$enable_dependency_tracking" != xno; then
4543  AMDEP_TRUE=
4544  AMDEP_FALSE='#'
4545else
4546  AMDEP_TRUE='#'
4547  AMDEP_FALSE=
4548fi
4549
4550
4551
4552
4553
4554
4555# AC_MSG_NOTICE([Beginning automake initialisation.])
4556# Stuff for automake
4557# test to see if srcdir already configured
4558if test "`cd $srcdir && pwd`" != "`pwd`" &&
4559   test -f $srcdir/config.status; then
4560  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4561echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4562   { (exit 1); exit 1; }; }
4563fi
4564
4565# test whether we have cygpath
4566if test -z "$CYGPATH_W"; then
4567  if (cygpath --version) >/dev/null 2>/dev/null; then
4568    CYGPATH_W='cygpath -w'
4569  else
4570    CYGPATH_W=echo
4571  fi
4572fi
4573
4574
4575# Define the identity of the package.
4576 PACKAGE='cbc'
4577 VERSION='2.8.13'
4578
4579
4580cat >>confdefs.h <<_ACEOF
4581#define PACKAGE "$PACKAGE"
4582_ACEOF
4583
4584
4585cat >>confdefs.h <<_ACEOF
4586#define VERSION "$VERSION"
4587_ACEOF
4588
4589# Some tools Automake needs.
4590
4591ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4592
4593
4594AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4595
4596
4597AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4598
4599
4600AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4601
4602
4603MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4604
4605install_sh=${install_sh-"$am_aux_dir/install-sh"}
4606
4607# Installed binaries are usually stripped using `strip' when the user
4608# run `make install-strip'.  However `strip' might not be the right
4609# tool to use in cross-compilation environments, therefore Automake
4610# will honor the `STRIP' environment variable to overrule this program.
4611if test "$cross_compiling" != no; then
4612  if test -n "$ac_tool_prefix"; then
4613  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4614set dummy ${ac_tool_prefix}strip; ac_word=$2
4615echo "$as_me:$LINENO: checking for $ac_word" >&5
4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617if test "${ac_cv_prog_STRIP+set}" = set; then
4618  echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620  if test -n "$STRIP"; then
4621  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628  for ac_exec_ext in '' $ac_executable_extensions; do
4629  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635done
4636
4637fi
4638fi
4639STRIP=$ac_cv_prog_STRIP
4640if test -n "$STRIP"; then
4641  echo "$as_me:$LINENO: result: $STRIP" >&5
4642echo "${ECHO_T}$STRIP" >&6
4643else
4644  echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
4646fi
4647
4648fi
4649if test -z "$ac_cv_prog_STRIP"; then
4650  ac_ct_STRIP=$STRIP
4651  # Extract the first word of "strip", so it can be a program name with args.
4652set dummy strip; ac_word=$2
4653echo "$as_me:$LINENO: checking for $ac_word" >&5
4654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4656  echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658  if test -n "$ac_ct_STRIP"; then
4659  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666  for ac_exec_ext in '' $ac_executable_extensions; do
4667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_prog_ac_ct_STRIP="strip"
4669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673done
4674
4675  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4676fi
4677fi
4678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4679if test -n "$ac_ct_STRIP"; then
4680  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4681echo "${ECHO_T}$ac_ct_STRIP" >&6
4682else
4683  echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685fi
4686
4687  STRIP=$ac_ct_STRIP
4688else
4689  STRIP="$ac_cv_prog_STRIP"
4690fi
4691
4692fi
4693INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4694
4695# We need awk for the "check" target.  The system "awk" is bad on
4696# some platforms.
4697# Always define AMTAR for backward compatibility.
4698
4699AMTAR=${AMTAR-"${am_missing_run}tar"}
4700
4701am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4702
4703
4704
4705
4706depcc="$CC"   am_compiler_list=
4707
4708echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4709echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4710if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4714  # We make a subdir and do the tests there.  Otherwise we can end up
4715  # making bogus files that we don't know about and never remove.  For
4716  # instance it was reported that on HP-UX the gcc test will end up
4717  # making a dummy file named `D' -- because `-MD' means `put the output
4718  # in D'.
4719  mkdir conftest.dir
4720  # Copy depcomp to subdir because otherwise we won't find it if we're
4721  # using a relative directory.
4722  cp "$am_depcomp" conftest.dir
4723  cd conftest.dir
4724  # We will build objects and dependencies in a subdirectory because
4725  # it helps to detect inapplicable dependency modes.  For instance
4726  # both Tru64's cc and ICC support -MD to output dependencies as a
4727  # side effect of compilation, but ICC will put the dependencies in
4728  # the current directory while Tru64 will put them in the object
4729  # directory.
4730  mkdir sub
4731
4732  am_cv_CC_dependencies_compiler_type=none
4733  if test "$am_compiler_list" = ""; then
4734     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4735  fi
4736  for depmode in $am_compiler_list; do
4737    # Setup a source with many dependencies, because some compilers
4738    # like to wrap large dependency lists on column 80 (with \), and
4739    # we should not choose a depcomp mode which is confused by this.
4740    #
4741    # We need to recreate these files for each test, as the compiler may
4742    # overwrite some of them when testing with obscure command lines.
4743    # This happens at least with the AIX C compiler.
4744    : > sub/conftest.c
4745    for i in 1 2 3 4 5 6; do
4746      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4747      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4748      # Solaris 8's {/usr,}/bin/sh.
4749      touch sub/conftst$i.h
4750    done
4751    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4752
4753    case $depmode in
4754    nosideeffect)
4755      # after this tag, mechanisms are not by side-effect, so they'll
4756      # only be used when explicitly requested
4757      if test "x$enable_dependency_tracking" = xyes; then
4758        continue
4759      else
4760        break
4761      fi
4762      ;;
4763    none) break ;;
4764    esac
4765    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4766    # mode.  It turns out that the SunPro C++ compiler does not properly
4767    # handle `-M -o', and we need to detect this.
4768    if depmode=$depmode \
4769       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4770       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4771       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4772         >/dev/null 2>conftest.err &&
4773       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4774       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4775       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4776      # icc doesn't choke on unknown options, it will just issue warnings
4777      # or remarks (even with -Werror).  So we grep stderr for any message
4778      # that says an option was ignored or not supported.
4779      # When given -MP, icc 7.0 and 7.1 complain thusly:
4780      #   icc: Command line warning: ignoring option '-M'; no argument required
4781      # The diagnosis changed in icc 8.0:
4782      #   icc: Command line remark: option '-MP' not supported
4783      if (grep 'ignoring option' conftest.err ||
4784          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4785        am_cv_CC_dependencies_compiler_type=$depmode
4786        break
4787      fi
4788    fi
4789  done
4790
4791  cd ..
4792  rm -rf conftest.dir
4793else
4794  am_cv_CC_dependencies_compiler_type=none
4795fi
4796
4797fi
4798echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4799echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4800CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4801
4802
4803
4804if
4805  test "x$enable_dependency_tracking" != xno \
4806  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4807  am__fastdepCC_TRUE=
4808  am__fastdepCC_FALSE='#'
4809else
4810  am__fastdepCC_TRUE='#'
4811  am__fastdepCC_FALSE=
4812fi
4813
4814
4815depcc="$CXX"  am_compiler_list=
4816
4817echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4818echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4819if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4823  # We make a subdir and do the tests there.  Otherwise we can end up
4824  # making bogus files that we don't know about and never remove.  For
4825  # instance it was reported that on HP-UX the gcc test will end up
4826  # making a dummy file named `D' -- because `-MD' means `put the output
4827  # in D'.
4828  mkdir conftest.dir
4829  # Copy depcomp to subdir because otherwise we won't find it if we're
4830  # using a relative directory.
4831  cp "$am_depcomp" conftest.dir
4832  cd conftest.dir
4833  # We will build objects and dependencies in a subdirectory because
4834  # it helps to detect inapplicable dependency modes.  For instance
4835  # both Tru64's cc and ICC support -MD to output dependencies as a
4836  # side effect of compilation, but ICC will put the dependencies in
4837  # the current directory while Tru64 will put them in the object
4838  # directory.
4839  mkdir sub
4840
4841  am_cv_CXX_dependencies_compiler_type=none
4842  if test "$am_compiler_list" = ""; then
4843     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4844  fi
4845  for depmode in $am_compiler_list; do
4846    # Setup a source with many dependencies, because some compilers
4847    # like to wrap large dependency lists on column 80 (with \), and
4848    # we should not choose a depcomp mode which is confused by this.
4849    #
4850    # We need to recreate these files for each test, as the compiler may
4851    # overwrite some of them when testing with obscure command lines.
4852    # This happens at least with the AIX C compiler.
4853    : > sub/conftest.c
4854    for i in 1 2 3 4 5 6; do
4855      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4856      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4857      # Solaris 8's {/usr,}/bin/sh.
4858      touch sub/conftst$i.h
4859    done
4860    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4861
4862    case $depmode in
4863    nosideeffect)
4864      # after this tag, mechanisms are not by side-effect, so they'll
4865      # only be used when explicitly requested
4866      if test "x$enable_dependency_tracking" = xyes; then
4867        continue
4868      else
4869        break
4870      fi
4871      ;;
4872    none) break ;;
4873    esac
4874    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4875    # mode.  It turns out that the SunPro C++ compiler does not properly
4876    # handle `-M -o', and we need to detect this.
4877    if depmode=$depmode \
4878       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4879       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4880       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4881         >/dev/null 2>conftest.err &&
4882       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4883       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4884       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4885      # icc doesn't choke on unknown options, it will just issue warnings
4886      # or remarks (even with -Werror).  So we grep stderr for any message
4887      # that says an option was ignored or not supported.
4888      # When given -MP, icc 7.0 and 7.1 complain thusly:
4889      #   icc: Command line warning: ignoring option '-M'; no argument required
4890      # The diagnosis changed in icc 8.0:
4891      #   icc: Command line remark: option '-MP' not supported
4892      if (grep 'ignoring option' conftest.err ||
4893          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4894        am_cv_CXX_dependencies_compiler_type=$depmode
4895        break
4896      fi
4897    fi
4898  done
4899
4900  cd ..
4901  rm -rf conftest.dir
4902else
4903  am_cv_CXX_dependencies_compiler_type=none
4904fi
4905
4906fi
4907echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4908echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4909CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4910
4911
4912
4913if
4914  test "x$enable_dependency_tracking" != xno \
4915  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4916  am__fastdepCXX_TRUE=
4917  am__fastdepCXX_FALSE='#'
4918else
4919  am__fastdepCXX_TRUE='#'
4920  am__fastdepCXX_FALSE=
4921fi
4922
4923
4924
4925echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4926echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4927    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4928if test "${enable_maintainer_mode+set}" = set; then
4929  enableval="$enable_maintainer_mode"
4930  USE_MAINTAINER_MODE=$enableval
4931else
4932  USE_MAINTAINER_MODE=no
4933fi;
4934  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4935echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4936
4937
4938if test $USE_MAINTAINER_MODE = yes; then
4939  MAINTAINER_MODE_TRUE=
4940  MAINTAINER_MODE_FALSE='#'
4941else
4942  MAINTAINER_MODE_TRUE='#'
4943  MAINTAINER_MODE_FALSE=
4944fi
4945
4946  MAINT=$MAINTAINER_MODE_TRUE
4947
4948
4949
4950coin_have_externals=no
4951if test "$enable_maintainer_mode" = yes; then
4952
4953  # If maintainer mode is chosen, we make sure that the correct versions
4954  # of the tools are used, and that we know where libtool.m4 is (to
4955  # recreate acinclude.m4)
4956
4957
4958  LIBTOOLM4=
4959  # Normally, $HOME
4960  AUTOTOOLS_DFLT=$HOME
4961
4962  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4963echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4964if test "${ac_cv_use_correct_autotools+set}" = set; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  ac_cv_use_correct_autotools=check
4968fi
4969echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4970echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4971
4972  if test $ac_cv_use_correct_autotools = check; then
4973    ac_cv_use_correct_autotools=yes
4974    # Check if we have autoconf
4975    # Extract the first word of "autoconf", so it can be a program name with args.
4976set dummy autoconf; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_have_autoconf+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982  if test -n "$have_autoconf"; then
4983  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988  IFS=$as_save_IFS
4989  test -z "$as_dir" && as_dir=.
4990  for ac_exec_ext in '' $ac_executable_extensions; do
4991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992    ac_cv_prog_have_autoconf="yes"
4993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994    break 2
4995  fi
4996done
4997done
4998
4999  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5000fi
5001fi
5002have_autoconf=$ac_cv_prog_have_autoconf
5003if test -n "$have_autoconf"; then
5004  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5005echo "${ECHO_T}$have_autoconf" >&6
5006else
5007  echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
5009fi
5010
5011    if test $have_autoconf = no; then
5012      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5013echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5014   { (exit 1); exit 1; }; }
5015    fi
5016
5017    # Check whether autoconf is the correct version
5018    correct_version='2.59'
5019    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5020    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5021echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5022    autoconf --version > confauto.out 2>&1
5023    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5024      echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026    else
5027      rm -f confauto.out
5028      echo "$as_me:$LINENO: result: no" >&5
5029echo "${ECHO_T}no" >&6
5030      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5031echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5032   { (exit 1); exit 1; }; }
5033    fi
5034    rm -f confauto.out
5035
5036    # Check if the executable autoconf is picked up from the correct location
5037    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5038echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5039    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5040    autoconf_dir=`cd $autoconf_dir; pwd`
5041    if test x$AUTOTOOLS_DIR = x; then
5042      want_dir=$AUTOTOOLS_DFLT/bin
5043    else
5044      want_dir=$AUTOTOOLS_DIR/bin
5045    fi
5046    if test $autoconf_dir = `cd $want_dir; pwd`; then
5047      echo "$as_me:$LINENO: result: yes" >&5
5048echo "${ECHO_T}yes" >&6
5049    else
5050      rm -f confauto.out
5051      echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
5053      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5054echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5055   { (exit 1); exit 1; }; }
5056    fi
5057
5058    # Check if we have automake
5059    # Extract the first word of "automake", so it can be a program name with args.
5060set dummy automake; ac_word=$2
5061echo "$as_me:$LINENO: checking for $ac_word" >&5
5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063if test "${ac_cv_prog_have_automake+set}" = set; then
5064  echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066  if test -n "$have_automake"; then
5067  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5068else
5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072  IFS=$as_save_IFS
5073  test -z "$as_dir" && as_dir=.
5074  for ac_exec_ext in '' $ac_executable_extensions; do
5075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076    ac_cv_prog_have_automake="yes"
5077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078    break 2
5079  fi
5080done
5081done
5082
5083  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5084fi
5085fi
5086have_automake=$ac_cv_prog_have_automake
5087if test -n "$have_automake"; then
5088  echo "$as_me:$LINENO: result: $have_automake" >&5
5089echo "${ECHO_T}$have_automake" >&6
5090else
5091  echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6
5093fi
5094
5095    if test $have_automake = no; then
5096      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5097echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5098   { (exit 1); exit 1; }; }
5099    fi
5100
5101    # Check whether automake is the correct version
5102    correct_version='1.9.6'
5103    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5104    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5105echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5106    automake --version > confauto.out 2>&1
5107    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5108      echo "$as_me:$LINENO: result: yes" >&5
5109echo "${ECHO_T}yes" >&6
5110    else
5111      rm -f confauto.out
5112      echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5115echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5116   { (exit 1); exit 1; }; }
5117    fi
5118    rm -f confauto.out
5119
5120    # Check if the executable automake is picked up from the correct location
5121    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5122echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5123    automake_dir=`which automake | sed -e 's=/automake=='`
5124    automake_dir=`cd $automake_dir; pwd`
5125    if test x$AUTOTOOLS_DIR = x; then
5126      want_dir=$AUTOTOOLS_DFLT/bin
5127    else
5128      want_dir=$AUTOTOOLS_DIR/bin
5129    fi
5130    if test $automake_dir = `cd $want_dir; pwd`; then
5131      echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133    else
5134      rm -f confauto.out
5135      echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5138echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5139   { (exit 1); exit 1; }; }
5140    fi
5141
5142    # Check if this is the correct version of libtool (with escaped dots)
5143    if test x$AUTOTOOLS_DIR = x; then
5144      want_dir=$AUTOTOOLS_DFLT/share
5145    else
5146      want_dir=$AUTOTOOLS_DIR/share
5147    fi
5148    correct_version='1.5.22'
5149    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5150    if test -r $want_dir/libtool/ltmain.sh; then
5151  have_ltmain=yes
5152  :
5153else
5154  have_ltmain=no
5155  :
5156fi
5157
5158    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5159echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5160    if test $have_ltmain = yes; then
5161    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5162        echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164      else
5165        echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5168echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5169   { (exit 1); exit 1; }; }
5170      fi
5171    else
5172      echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5175echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5176   { (exit 1); exit 1; }; }
5177    fi
5178  fi
5179
5180  # Check if we can find the libtool file
5181  if test x$AUTOTOOLS_DIR = x; then
5182    want_dir=$AUTOTOOLS_DFLT/share
5183  else
5184    want_dir=$AUTOTOOLS_DIR/share
5185  fi
5186  if test -r $want_dir/aclocal/libtool.m4; then
5187  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5188  :
5189else
5190  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5191echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5192   { (exit 1); exit 1; }; }
5193  :
5194fi
5195
5196
5197  # Check if we have an Dependencies file
5198  if test -r $srcdir/Dependencies; then
5199    coin_have_externals=yes
5200  fi
5201  # Check if subversion is installed and understands https
5202  # Extract the first word of "svn", so it can be a program name with args.
5203set dummy svn; ac_word=$2
5204echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206if test "${ac_cv_prog_have_svn+set}" = set; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209  if test -n "$have_svn"; then
5210  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217  for ac_exec_ext in '' $ac_executable_extensions; do
5218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219    ac_cv_prog_have_svn="yes"
5220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224done
5225
5226  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5227fi
5228fi
5229have_svn=$ac_cv_prog_have_svn
5230if test -n "$have_svn"; then
5231  echo "$as_me:$LINENO: result: $have_svn" >&5
5232echo "${ECHO_T}$have_svn" >&6
5233else
5234  echo "$as_me:$LINENO: result: no" >&5
5235echo "${ECHO_T}no" >&6
5236fi
5237
5238  if test x$have_svn = xyes; then
5239    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5240echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5241if test "${ac_cv_svn_understands_https+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244  svn --version > confauto.out 2>&1
5245                    if $EGREP https confauto.out >/dev/null 2>&1; then
5246                      ac_cv_svn_understands_https=yes
5247                    else
5248                      ac_cv_svn_understands_https=no
5249                      have_svn=no
5250                      ac_cv_prog_have_svn=no
5251                    fi
5252                    rm -f confauto.out
5253fi
5254echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5255echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5256  fi
5257
5258  # Find the location of the BuildTools directory
5259  BUILDTOOLSDIR=
5260  if test -r $srcdir/BuildTools/coin.m4; then
5261    BUILDTOOLSDIR=$srcdir/BuildTools
5262  else
5263    if test -r $srcdir/../BuildTools/coin.m4; then
5264      BUILDTOOLSDIR=$srcdir/../BuildTools
5265    else
5266      if test -r $srcdir/../../BuildTools/coin.m4; then
5267        BUILDTOOLSDIR=$srcdir/../../BuildTools
5268      else
5269        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5270echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5271   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5272      fi
5273    fi
5274  fi
5275
5276
5277  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5278  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5279    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5280  fi
5281
5282  # The following variable is set to the name of the directory where
5283  # the autotool scripts are located
5284
5285  AUX_DIR=$ac_aux_dir
5286fi
5287
5288# helpful variable for the base directory of this package
5289abs_source_dir=`cd $srcdir; pwd`
5290
5291
5292# Stuff for example Makefiles
5293if test x$prefix = xNONE; then
5294  full_prefix=$ac_default_prefix
5295else
5296  full_prefix=$prefix
5297fi
5298full_prefix=`cd $full_prefix ; pwd`
5299
5300abs_lib_dir=$full_prefix/lib
5301
5302abs_include_dir=$full_prefix/include
5303
5304abs_bin_dir=$full_prefix/bin
5305
5306
5307
5308if test $coin_have_externals = yes && test x$have_svn = xyes; then
5309  HAVE_EXTERNALS_TRUE=
5310  HAVE_EXTERNALS_FALSE='#'
5311else
5312  HAVE_EXTERNALS_TRUE='#'
5313  HAVE_EXTERNALS_FALSE=
5314fi
5315
5316
5317# AC_MSG_NOTICE([End automake initialisation.])
5318
5319
5320
5321LIBTOOL=
5322if test -f ../libtool; then
5323  coin_config_dir=..
5324  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5325fi
5326if test "x$LIBTOOL" = x; then
5327  if test -f ../../libtool; then
5328    coin_config_dir=../..
5329    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5330  fi
5331fi
5332
5333if test "x$LIBTOOL" = x; then
5334# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5335  # Stuff for libtool
5336  # Check whether --enable-shared or --disable-shared was given.
5337if test "${enable_shared+set}" = set; then
5338  enableval="$enable_shared"
5339  p=${PACKAGE-default}
5340    case $enableval in
5341    yes) enable_shared=yes ;;
5342    no) enable_shared=no ;;
5343    *)
5344      enable_shared=no
5345      # Look at the argument we got.  We use all the common list separators.
5346      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5347      for pkg in $enableval; do
5348        IFS="$lt_save_ifs"
5349        if test "X$pkg" = "X$p"; then
5350          enable_shared=yes
5351        fi
5352      done
5353      IFS="$lt_save_ifs"
5354      ;;
5355    esac
5356else
5357  enable_shared=yes
5358fi;
5359
5360# Check whether --enable-fast-install or --disable-fast-install was given.
5361if test "${enable_fast_install+set}" = set; then
5362  enableval="$enable_fast_install"
5363  p=${PACKAGE-default}
5364    case $enableval in
5365    yes) enable_fast_install=yes ;;
5366    no) enable_fast_install=no ;;
5367    *)
5368      enable_fast_install=no
5369      # Look at the argument we got.  We use all the common list separators.
5370      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5371      for pkg in $enableval; do
5372        IFS="$lt_save_ifs"
5373        if test "X$pkg" = "X$p"; then
5374          enable_fast_install=yes
5375        fi
5376      done
5377      IFS="$lt_save_ifs"
5378      ;;
5379    esac
5380else
5381  enable_fast_install=yes
5382fi;
5383
5384echo "$as_me:$LINENO: checking host system type" >&5
5385echo $ECHO_N "checking host system type... $ECHO_C" >&6
5386if test "${ac_cv_host+set}" = set; then
5387  echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389  ac_cv_host_alias=$host_alias
5390test -z "$ac_cv_host_alias" &&
5391  ac_cv_host_alias=$ac_cv_build_alias
5392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5393  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5395   { (exit 1); exit 1; }; }
5396
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5399echo "${ECHO_T}$ac_cv_host" >&6
5400host=$ac_cv_host
5401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5404
5405
5406echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5407echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5408if test "${lt_cv_path_SED+set}" = set; then
5409  echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411  # Loop through the user's path and test for sed and gsed.
5412# Then use that list of sed's as ones to test for truncation.
5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416  IFS=$as_save_IFS
5417  test -z "$as_dir" && as_dir=.
5418  for lt_ac_prog in sed gsed; do
5419    for ac_exec_ext in '' $ac_executable_extensions; do
5420      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5421        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5422      fi
5423    done
5424  done
5425done
5426lt_ac_max=0
5427lt_ac_count=0
5428# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5429# along with /bin/sed that truncates output.
5430for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5431  test ! -f $lt_ac_sed && continue
5432  cat /dev/null > conftest.in
5433  lt_ac_count=0
5434  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5435  # Check for GNU sed and select it if it is found.
5436  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5437    lt_cv_path_SED=$lt_ac_sed
5438    break
5439  fi
5440  while true; do
5441    cat conftest.in conftest.in >conftest.tmp
5442    mv conftest.tmp conftest.in
5443    cp conftest.in conftest.nl
5444    echo >>conftest.nl
5445    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5446    cmp -s conftest.out conftest.nl || break
5447    # 10000 chars as input seems more than enough
5448    test $lt_ac_count -gt 10 && break
5449    lt_ac_count=`expr $lt_ac_count + 1`
5450    if test $lt_ac_count -gt $lt_ac_max; then
5451      lt_ac_max=$lt_ac_count
5452      lt_cv_path_SED=$lt_ac_sed
5453    fi
5454  done
5455done
5456
5457fi
5458
5459SED=$lt_cv_path_SED
5460echo "$as_me:$LINENO: result: $SED" >&5
5461echo "${ECHO_T}$SED" >&6
5462
5463
5464# Check whether --with-gnu-ld or --without-gnu-ld was given.
5465if test "${with_gnu_ld+set}" = set; then
5466  withval="$with_gnu_ld"
5467  test "$withval" = no || with_gnu_ld=yes
5468else
5469  with_gnu_ld=no
5470fi;
5471ac_prog=ld
5472if test "$GCC" = yes; then
5473  # Check if gcc -print-prog-name=ld gives a path.
5474  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5475echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5476  case $host in
5477  *-*-mingw*)
5478    # gcc leaves a trailing carriage return which upsets mingw
5479    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5480  *)
5481    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5482  esac
5483  case $ac_prog in
5484    # Accept absolute paths.
5485    [\\/]* | ?:[\\/]*)
5486      re_direlt='/[^/][^/]*/\.\./'
5487      # Canonicalize the pathname of ld
5488      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5489      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5490        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5491      done
5492      test -z "$LD" && LD="$ac_prog"
5493      ;;
5494  "")
5495    # If it fails, then pretend we aren't using GCC.
5496    ac_prog=ld
5497    ;;
5498  *)
5499    # If it is relative, then search for the first ld in PATH.
5500    with_gnu_ld=unknown
5501    ;;
5502  esac
5503elif test "$with_gnu_ld" = yes; then
5504  echo "$as_me:$LINENO: checking for GNU ld" >&5
5505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5506else
5507  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5509fi
5510if test "${lt_cv_path_LD+set}" = set; then
5511  echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513  if test -z "$LD"; then
5514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5515  for ac_dir in $PATH; do
5516    IFS="$lt_save_ifs"
5517    test -z "$ac_dir" && ac_dir=.
5518    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5519      lt_cv_path_LD="$ac_dir/$ac_prog"
5520      # Check to see if the program is GNU ld.  I'd rather use --version,
5521      # but apparently some variants of GNU ld only accept -v.
5522      # Break only if it was the GNU/non-GNU ld that we prefer.
5523      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5524      *GNU* | *'with BFD'*)
5525        test "$with_gnu_ld" != no && break
5526        ;;
5527      *)
5528        test "$with_gnu_ld" != yes && break
5529        ;;
5530      esac
5531    fi
5532  done
5533  IFS="$lt_save_ifs"
5534else
5535  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5536fi
5537fi
5538
5539LD="$lt_cv_path_LD"
5540if test -n "$LD"; then
5541  echo "$as_me:$LINENO: result: $LD" >&5
5542echo "${ECHO_T}$LD" >&6
5543else
5544  echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6
5546fi
5547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5549   { (exit 1); exit 1; }; }
5550echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5552if test "${lt_cv_prog_gnu_ld+set}" = set; then
5553  echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5556case `$LD -v 2>&1 </dev/null` in
5557*GNU* | *'with BFD'*)
5558  lt_cv_prog_gnu_ld=yes
5559  ;;
5560*)
5561  lt_cv_prog_gnu_ld=no
5562  ;;
5563esac
5564fi
5565echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5566echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5567with_gnu_ld=$lt_cv_prog_gnu_ld
5568
5569
5570echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5571echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5572if test "${lt_cv_ld_reload_flag+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  lt_cv_ld_reload_flag='-r'
5576fi
5577echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5578echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5579reload_flag=$lt_cv_ld_reload_flag
5580case $reload_flag in
5581"" | " "*) ;;
5582*) reload_flag=" $reload_flag" ;;
5583esac
5584reload_cmds='$LD$reload_flag -o $output$reload_objs'
5585case $host_os in
5586  darwin*)
5587    if test "$GCC" = yes; then
5588      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5589    else
5590      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5591    fi
5592    ;;
5593esac
5594
5595echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5596echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5597if test "${lt_cv_path_NM+set}" = set; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600  if test -n "$NM"; then
5601  # Let the user override the test.
5602  lt_cv_path_NM="$NM"
5603else
5604  lt_nm_to_check="${ac_tool_prefix}nm"
5605  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5606    lt_nm_to_check="$lt_nm_to_check nm"
5607  fi
5608  for lt_tmp_nm in $lt_nm_to_check; do
5609    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5610    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5611      IFS="$lt_save_ifs"
5612      test -z "$ac_dir" && ac_dir=.
5613      tmp_nm="$ac_dir/$lt_tmp_nm"
5614      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5615        # Check to see if the nm accepts a BSD-compat flag.
5616        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5617        #   nm: unknown option "B" ignored
5618        # Tru64's nm complains that /dev/null is an invalid object file
5619        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5620        */dev/null* | *'Invalid file or object type'*)
5621          lt_cv_path_NM="$tmp_nm -B"
5622          break
5623          ;;
5624        *)
5625          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5626          */dev/null*)
5627            lt_cv_path_NM="$tmp_nm -p"
5628            break
5629            ;;
5630          *)
5631            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5632            continue # so that we can try to find one that supports BSD flags
5633            ;;
5634          esac
5635          ;;
5636        esac
5637      fi
5638    done
5639    IFS="$lt_save_ifs"
5640  done
5641  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5642fi
5643fi
5644echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5645echo "${ECHO_T}$lt_cv_path_NM" >&6
5646NM="$lt_cv_path_NM"
5647
5648echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5649echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5650if test "${lt_cv_deplibs_check_method+set}" = set; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653  lt_cv_file_magic_cmd='$MAGIC_CMD'
5654lt_cv_file_magic_test_file=
5655lt_cv_deplibs_check_method='unknown'
5656# Need to set the preceding variable on all platforms that support
5657# interlibrary dependencies.
5658# 'none' -- dependencies not supported.
5659# `unknown' -- same as none, but documents that we really don't know.
5660# 'pass_all' -- all dependencies passed with no checks.
5661# 'test_compile' -- check by making test program.
5662# 'file_magic [[regex]]' -- check by looking for files in library path
5663# which responds to the $file_magic_cmd with a given extended regex.
5664# If you have `file' or equivalent on your system and you're not sure
5665# whether `pass_all' will *always* work, you probably want this one.
5666
5667case $host_os in
5668aix4* | aix5*)
5669  lt_cv_deplibs_check_method=pass_all
5670  ;;
5671
5672beos*)
5673  lt_cv_deplibs_check_method=pass_all
5674  ;;
5675
5676bsdi[45]*)
5677  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5678  lt_cv_file_magic_cmd='/usr/bin/file -L'
5679  lt_cv_file_magic_test_file=/shlib/libc.so
5680  ;;
5681
5682cygwin*)
5683  # func_win32_libid is a shell function defined in ltmain.sh
5684  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5685  lt_cv_file_magic_cmd='func_win32_libid'
5686  ;;
5687
5688mingw* | pw32*)
5689  # Base MSYS/MinGW do not provide the 'file' command needed by
5690  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5691  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5692  lt_cv_file_magic_cmd='$OBJDUMP -f'
5693  ;;
5694
5695darwin* | rhapsody*)
5696  lt_cv_deplibs_check_method=pass_all
5697  ;;
5698
5699freebsd* | kfreebsd*-gnu | dragonfly*)
5700  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5701    case $host_cpu in
5702    i*86 )
5703      # Not sure whether the presence of OpenBSD here was a mistake.
5704      # Let's accept both of them until this is cleared up.
5705      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5706      lt_cv_file_magic_cmd=/usr/bin/file
5707      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5708      ;;
5709    esac
5710  else
5711    lt_cv_deplibs_check_method=pass_all
5712  fi
5713  ;;
5714
5715gnu*)
5716  lt_cv_deplibs_check_method=pass_all
5717  ;;
5718
5719hpux10.20* | hpux11*)
5720  lt_cv_file_magic_cmd=/usr/bin/file
5721  case $host_cpu in
5722  ia64*)
5723    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5724    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5725    ;;
5726  hppa*64*)
5727    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]'
5728    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5729    ;;
5730  *)
5731    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5732    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5733    ;;
5734  esac
5735  ;;
5736
5737interix3*)
5738  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5739  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5740  ;;
5741
5742irix5* | irix6* | nonstopux*)
5743  case $LD in
5744  *-32|*"-32 ") libmagic=32-bit;;
5745  *-n32|*"-n32 ") libmagic=N32;;
5746  *-64|*"-64 ") libmagic=64-bit;;
5747  *) libmagic=never-match;;
5748  esac
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752# This must be Linux ELF.
5753linux*)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757netbsd*)
5758  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5759    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5760  else
5761    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5762  fi
5763  ;;
5764
5765newos6*)
5766  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5767  lt_cv_file_magic_cmd=/usr/bin/file
5768  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5769  ;;
5770
5771nto-qnx*)
5772  lt_cv_deplibs_check_method=unknown
5773  ;;
5774
5775openbsd*)
5776  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5778  else
5779    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5780  fi
5781  ;;
5782
5783osf3* | osf4* | osf5*)
5784  lt_cv_deplibs_check_method=pass_all
5785  ;;
5786
5787solaris*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791sysv4 | sysv4.3*)
5792  case $host_vendor in
5793  motorola)
5794    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]'
5795    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5796    ;;
5797  ncr)
5798    lt_cv_deplibs_check_method=pass_all
5799    ;;
5800  sequent)
5801    lt_cv_file_magic_cmd='/bin/file'
5802    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5803    ;;
5804  sni)
5805    lt_cv_file_magic_cmd='/bin/file'
5806    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5807    lt_cv_file_magic_test_file=/lib/libc.so
5808    ;;
5809  siemens)
5810    lt_cv_deplibs_check_method=pass_all
5811    ;;
5812  pc)
5813    lt_cv_deplibs_check_method=pass_all
5814    ;;
5815  esac
5816  ;;
5817
5818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5819  lt_cv_deplibs_check_method=pass_all
5820  ;;
5821esac
5822
5823fi
5824echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5825echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5826file_magic_cmd=$lt_cv_file_magic_cmd
5827deplibs_check_method=$lt_cv_deplibs_check_method
5828test -z "$deplibs_check_method" && deplibs_check_method=unknown
5829
5830
5831
5832
5833# If no C compiler was specified, use CC.
5834LTCC=${LTCC-"$CC"}
5835
5836# If no C compiler flags were specified, use CFLAGS.
5837LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5838
5839# Allow CC to be a program name with arguments.
5840compiler=$CC
5841
5842# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5843if test "${enable_libtool_lock+set}" = set; then
5844  enableval="$enable_libtool_lock"
5845
5846fi;
5847test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5848
5849# Some flags need to be propagated to the compiler or linker for good
5850# libtool support.
5851case $host in
5852ia64-*-hpux*)
5853  # Find out which ABI we are using.
5854  echo 'int i;' > conftest.$ac_ext
5855  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856  (eval $ac_compile) 2>&5
5857  ac_status=$?
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); }; then
5860    case `/usr/bin/file conftest.$ac_objext` in
5861    *ELF-32*)
5862      HPUX_IA64_MODE="32"
5863      ;;
5864    *ELF-64*)
5865      HPUX_IA64_MODE="64"
5866      ;;
5867    esac
5868  fi
5869  rm -rf conftest*
5870  ;;
5871*-*-irix6*)
5872  # Find out which ABI we are using.
5873  echo '#line 5873 "configure"' > conftest.$ac_ext
5874  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875  (eval $ac_compile) 2>&5
5876  ac_status=$?
5877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); }; then
5879   if test "$lt_cv_prog_gnu_ld" = yes; then
5880    case `/usr/bin/file conftest.$ac_objext` in
5881    *32-bit*)
5882      LD="${LD-ld} -melf32bsmip"
5883      ;;
5884    *N32*)
5885      LD="${LD-ld} -melf32bmipn32"
5886      ;;
5887    *64-bit*)
5888      LD="${LD-ld} -melf64bmip"
5889      ;;
5890    esac
5891   else
5892    case `/usr/bin/file conftest.$ac_objext` in
5893    *32-bit*)
5894      LD="${LD-ld} -32"
5895      ;;
5896    *N32*)
5897      LD="${LD-ld} -n32"
5898      ;;
5899    *64-bit*)
5900      LD="${LD-ld} -64"
5901      ;;
5902    esac
5903   fi
5904  fi
5905  rm -rf conftest*
5906  ;;
5907
5908x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5909  # Find out which ABI we are using.
5910  echo 'int i;' > conftest.$ac_ext
5911  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912  (eval $ac_compile) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }; then
5916    case `/usr/bin/file conftest.o` in
5917    *32-bit*)
5918      case $host in
5919        x86_64-*linux*)
5920          LD="${LD-ld} -m elf_i386"
5921          ;;
5922        ppc64-*linux*|powerpc64-*linux*)
5923          LD="${LD-ld} -m elf32ppclinux"
5924          ;;
5925        s390x-*linux*)
5926          LD="${LD-ld} -m elf_s390"
5927          ;;
5928        sparc64-*linux*)
5929          LD="${LD-ld} -m elf32_sparc"
5930          ;;
5931      esac
5932      ;;
5933    *64-bit*)
5934      case $host in
5935        x86_64-*linux*)
5936          LD="${LD-ld} -m elf_x86_64"
5937          ;;
5938        ppc*-*linux*|powerpc*-*linux*)
5939          LD="${LD-ld} -m elf64ppc"
5940          ;;
5941        s390*-*linux*)
5942          LD="${LD-ld} -m elf64_s390"
5943          ;;
5944        sparc*-*linux*)
5945          LD="${LD-ld} -m elf64_sparc"
5946          ;;
5947      esac
5948      ;;
5949    esac
5950  fi
5951  rm -rf conftest*
5952  ;;
5953
5954*-*-sco3.2v5*)
5955  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5956  SAVE_CFLAGS="$CFLAGS"
5957  CFLAGS="$CFLAGS -belf"
5958  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5959echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5960if test "${lt_cv_cc_needs_belf+set}" = set; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  ac_ext=c
5964ac_cpp='$CPP $CPPFLAGS'
5965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968
5969     cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975
5976int
5977main ()
5978{
5979
5980  ;
5981  return 0;
5982}
5983_ACEOF
5984rm -f conftest.$ac_objext conftest$ac_exeext
5985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986  (eval $ac_link) 2>conftest.er1
5987  ac_status=$?
5988  grep -v '^ *+' conftest.er1 >conftest.err
5989  rm -f conftest.er1
5990  cat conftest.err >&5
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); } &&
5993         { ac_try='test -z "$ac_c_werror_flag"
5994                         || test ! -s conftest.err'
5995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996  (eval $ac_try) 2>&5
5997  ac_status=$?
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); }; } &&
6000         { ac_try='test -s conftest$ac_exeext'
6001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002  (eval $ac_try) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; }; then
6006  lt_cv_cc_needs_belf=yes
6007else
6008  echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011lt_cv_cc_needs_belf=no
6012fi
6013rm -f conftest.err conftest.$ac_objext \
6014      conftest$ac_exeext conftest.$ac_ext
6015     ac_ext=c
6016ac_cpp='$CPP $CPPFLAGS'
6017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020
6021fi
6022echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6023echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6024  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6025    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6026    CFLAGS="$SAVE_CFLAGS"
6027  fi
6028  ;;
6029sparc*-*solaris*)
6030  # Find out which ABI we are using.
6031  echo 'int i;' > conftest.$ac_ext
6032  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033  (eval $ac_compile) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; then
6037    case `/usr/bin/file conftest.o` in
6038    *64-bit*)
6039      case $lt_cv_prog_gnu_ld in
6040      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6041      *)    LD="${LD-ld} -64" ;;
6042      esac
6043      ;;
6044    esac
6045  fi
6046  rm -rf conftest*
6047  ;;
6048
6049
6050esac
6051
6052need_locks="$enable_libtool_lock"
6053
6054
6055ac_ext=c
6056ac_cpp='$CPP $CPPFLAGS'
6057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6061echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6062# On Suns, sometimes $CPP names a directory.
6063if test -n "$CPP" && test -d "$CPP"; then
6064  CPP=
6065fi
6066if test -z "$CPP"; then
6067  if test "${ac_cv_prog_CPP+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070      # Double quotes because CPP needs to be expanded
6071    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6072    do
6073      ac_preproc_ok=false
6074for ac_c_preproc_warn_flag in '' yes
6075do
6076  # Use a header file that comes with gcc, so configuring glibc
6077  # with a fresh cross-compiler works.
6078  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6079  # <limits.h> exists even on freestanding compilers.
6080  # On the NeXT, cc -E runs the code through the compiler's parser,
6081  # not just through cpp. "Syntax error" is here to catch this case.
6082  cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h.  */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h.  */
6088#ifdef __STDC__
6089# include <limits.h>
6090#else
6091# include <assert.h>
6092#endif
6093                     Syntax error
6094_ACEOF
6095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6097  ac_status=$?
6098  grep -v '^ *+' conftest.er1 >conftest.err
6099  rm -f conftest.er1
6100  cat conftest.err >&5
6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); } >/dev/null; then
6103  if test -s conftest.err; then
6104    ac_cpp_err=$ac_c_preproc_warn_flag
6105    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6106  else
6107    ac_cpp_err=
6108  fi
6109else
6110  ac_cpp_err=yes
6111fi
6112if test -z "$ac_cpp_err"; then
6113  :
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118  # Broken: fails on valid input.
6119continue
6120fi
6121rm -f conftest.err conftest.$ac_ext
6122
6123  # OK, works on sane cases.  Now check whether non-existent headers
6124  # can be detected and how.
6125  cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131#include <ac_nonexistent.h>
6132_ACEOF
6133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135  ac_status=$?
6136  grep -v '^ *+' conftest.er1 >conftest.err
6137  rm -f conftest.er1
6138  cat conftest.err >&5
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); } >/dev/null; then
6141  if test -s conftest.err; then
6142    ac_cpp_err=$ac_c_preproc_warn_flag
6143    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144  else
6145    ac_cpp_err=
6146  fi
6147else
6148  ac_cpp_err=yes
6149fi
6150if test -z "$ac_cpp_err"; then
6151  # Broken: success on invalid input.
6152continue
6153else
6154  echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157  # Passes both tests.
6158ac_preproc_ok=:
6159break
6160fi
6161rm -f conftest.err conftest.$ac_ext
6162
6163done
6164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6165rm -f conftest.err conftest.$ac_ext
6166if $ac_preproc_ok; then
6167  break
6168fi
6169
6170    done
6171    ac_cv_prog_CPP=$CPP
6172
6173fi
6174  CPP=$ac_cv_prog_CPP
6175else
6176  ac_cv_prog_CPP=$CPP
6177fi
6178echo "$as_me:$LINENO: result: $CPP" >&5
6179echo "${ECHO_T}$CPP" >&6
6180ac_preproc_ok=false
6181for ac_c_preproc_warn_flag in '' yes
6182do
6183  # Use a header file that comes with gcc, so configuring glibc
6184  # with a fresh cross-compiler works.
6185  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6186  # <limits.h> exists even on freestanding compilers.
6187  # On the NeXT, cc -E runs the code through the compiler's parser,
6188  # not just through cpp. "Syntax error" is here to catch this case.
6189  cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h.  */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h.  */
6195#ifdef __STDC__
6196# include <limits.h>
6197#else
6198# include <assert.h>
6199#endif
6200                     Syntax error
6201_ACEOF
6202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6203  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6204  ac_status=$?
6205  grep -v '^ *+' conftest.er1 >conftest.err
6206  rm -f conftest.er1
6207  cat conftest.err >&5
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); } >/dev/null; then
6210  if test -s conftest.err; then
6211    ac_cpp_err=$ac_c_preproc_warn_flag
6212    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6213  else
6214    ac_cpp_err=
6215  fi
6216else
6217  ac_cpp_err=yes
6218fi
6219if test -z "$ac_cpp_err"; then
6220  :
6221else
6222  echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225  # Broken: fails on valid input.
6226continue
6227fi
6228rm -f conftest.err conftest.$ac_ext
6229
6230  # OK, works on sane cases.  Now check whether non-existent headers
6231  # can be detected and how.
6232  cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238#include <ac_nonexistent.h>
6239_ACEOF
6240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242  ac_status=$?
6243  grep -v '^ *+' conftest.er1 >conftest.err
6244  rm -f conftest.er1
6245  cat conftest.err >&5
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); } >/dev/null; then
6248  if test -s conftest.err; then
6249    ac_cpp_err=$ac_c_preproc_warn_flag
6250    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251  else
6252    ac_cpp_err=
6253  fi
6254else
6255  ac_cpp_err=yes
6256fi
6257if test -z "$ac_cpp_err"; then
6258  # Broken: success on invalid input.
6259continue
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264  # Passes both tests.
6265ac_preproc_ok=:
6266break
6267fi
6268rm -f conftest.err conftest.$ac_ext
6269
6270done
6271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6272rm -f conftest.err conftest.$ac_ext
6273if $ac_preproc_ok; then
6274  :
6275else
6276  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6277See \`config.log' for more details." >&5
6278echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6279See \`config.log' for more details." >&2;}
6280   { (exit 1); exit 1; }; }
6281fi
6282
6283ac_ext=c
6284ac_cpp='$CPP $CPPFLAGS'
6285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6287ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288
6289
6290echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6291echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6292if test "${ac_cv_header_stdc+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295  cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h.  */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h.  */
6301#include <stdlib.h>
6302#include <stdarg.h>
6303#include <string.h>
6304#include <float.h>
6305
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314rm -f conftest.$ac_objext
6315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316  (eval $ac_compile) 2>conftest.er1
6317  ac_status=$?
6318  grep -v '^ *+' conftest.er1 >conftest.err
6319  rm -f conftest.er1
6320  cat conftest.err >&5
6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322  (exit $ac_status); } &&
6323         { ac_try='test -z "$ac_c_werror_flag"
6324                         || test ! -s conftest.err'
6325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326  (eval $ac_try) 2>&5
6327  ac_status=$?
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); }; } &&
6330         { ac_try='test -s conftest.$ac_objext'
6331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332  (eval $ac_try) 2>&5
6333  ac_status=$?
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); }; }; then
6336  ac_cv_header_stdc=yes
6337else
6338  echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341ac_cv_header_stdc=no
6342fi
6343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344
6345if test $ac_cv_header_stdc = yes; then
6346  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6347  cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h.  */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h.  */
6353#include <string.h>
6354
6355_ACEOF
6356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357  $EGREP "memchr" >/dev/null 2>&1; then
6358  :
6359else
6360  ac_cv_header_stdc=no
6361fi
6362rm -f conftest*
6363
6364fi
6365
6366if test $ac_cv_header_stdc = yes; then
6367  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6368  cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h.  */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h.  */
6374#include <stdlib.h>
6375
6376_ACEOF
6377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378  $EGREP "free" >/dev/null 2>&1; then
6379  :
6380else
6381  ac_cv_header_stdc=no
6382fi
6383rm -f conftest*
6384
6385fi
6386
6387if test $ac_cv_header_stdc = yes; then
6388  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6389  if test "$cross_compiling" = yes; then
6390  :
6391else
6392  cat >conftest.$ac_ext <<_ACEOF
6393/* confdefs.h.  */
6394_ACEOF
6395cat confdefs.h >>conftest.$ac_ext
6396cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h.  */
6398#include <ctype.h>
6399#if ((' ' & 0x0FF) == 0x020)
6400# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6401# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6402#else
6403# define ISLOWER(c) \
6404                   (('a' <= (c) && (c) <= 'i') \
6405                     || ('j' <= (c) && (c) <= 'r') \
6406                     || ('s' <= (c) && (c) <= 'z'))
6407# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6408#endif
6409
6410#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6411int
6412main ()
6413{
6414  int i;
6415  for (i = 0; i < 256; i++)
6416    if (XOR (islower (i), ISLOWER (i))
6417        || toupper (i) != TOUPPER (i))
6418      exit(2);
6419  exit (0);
6420}
6421_ACEOF
6422rm -f conftest$ac_exeext
6423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424  (eval $ac_link) 2>&5
6425  ac_status=$?
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429  (eval $ac_try) 2>&5
6430  ac_status=$?
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); }; }; then
6433  :
6434else
6435  echo "$as_me: program exited with status $ac_status" >&5
6436echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
6439( exit $ac_status )
6440ac_cv_header_stdc=no
6441fi
6442rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6443fi
6444fi
6445fi
6446echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6447echo "${ECHO_T}$ac_cv_header_stdc" >&6
6448if test $ac_cv_header_stdc = yes; then
6449
6450cat >>confdefs.h <<\_ACEOF
6451#define STDC_HEADERS 1
6452_ACEOF
6453
6454fi
6455
6456# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6467                  inttypes.h stdint.h unistd.h
6468do
6469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6470echo "$as_me:$LINENO: checking for $ac_header" >&5
6471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475  cat >conftest.$ac_ext <<_ACEOF
6476/* confdefs.h.  */
6477_ACEOF
6478cat confdefs.h >>conftest.$ac_ext
6479cat >>conftest.$ac_ext <<_ACEOF
6480/* end confdefs.h.  */
6481$ac_includes_default
6482
6483#include <$ac_header>
6484_ACEOF
6485rm -f conftest.$ac_objext
6486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487  (eval $ac_compile) 2>conftest.er1
6488  ac_status=$?
6489  grep -v '^ *+' conftest.er1 >conftest.err
6490  rm -f conftest.er1
6491  cat conftest.err >&5
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); } &&
6494         { ac_try='test -z "$ac_c_werror_flag"
6495                         || test ! -s conftest.err'
6496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497  (eval $ac_try) 2>&5
6498  ac_status=$?
6499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500  (exit $ac_status); }; } &&
6501         { ac_try='test -s conftest.$ac_objext'
6502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503  (eval $ac_try) 2>&5
6504  ac_status=$?
6505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506  (exit $ac_status); }; }; then
6507  eval "$as_ac_Header=yes"
6508else
6509  echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512eval "$as_ac_Header=no"
6513fi
6514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515fi
6516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6518if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519  cat >>confdefs.h <<_ACEOF
6520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521_ACEOF
6522
6523fi
6524
6525done
6526
6527
6528
6529for ac_header in dlfcn.h
6530do
6531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533  echo "$as_me:$LINENO: checking for $ac_header" >&5
6534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537fi
6538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540else
6541  # Is the header compilable?
6542echo "$as_me:$LINENO: checking $ac_header usability" >&5
6543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6544cat >conftest.$ac_ext <<_ACEOF
6545/* confdefs.h.  */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
6549/* end confdefs.h.  */
6550$ac_includes_default
6551#include <$ac_header>
6552_ACEOF
6553rm -f conftest.$ac_objext
6554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555  (eval $ac_compile) 2>conftest.er1
6556  ac_status=$?
6557  grep -v '^ *+' conftest.er1 >conftest.err
6558  rm -f conftest.er1
6559  cat conftest.err >&5
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); } &&
6562         { ac_try='test -z "$ac_c_werror_flag"
6563                         || test ! -s conftest.err'
6564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565  (eval $ac_try) 2>&5
6566  ac_status=$?
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); }; } &&
6569         { ac_try='test -s conftest.$ac_objext'
6570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571  (eval $ac_try) 2>&5
6572  ac_status=$?
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); }; }; then
6575  ac_header_compiler=yes
6576else
6577  echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580ac_header_compiler=no
6581fi
6582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6584echo "${ECHO_T}$ac_header_compiler" >&6
6585
6586# Is the header present?
6587echo "$as_me:$LINENO: checking $ac_header presence" >&5
6588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6589cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h.  */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h.  */
6595#include <$ac_header>
6596_ACEOF
6597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6598  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6599  ac_status=$?
6600  grep -v '^ *+' conftest.er1 >conftest.err
6601  rm -f conftest.er1
6602  cat conftest.err >&5
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); } >/dev/null; then
6605  if test -s conftest.err; then
6606    ac_cpp_err=$ac_c_preproc_warn_flag
6607    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6608  else
6609    ac_cpp_err=
6610  fi
6611else
6612  ac_cpp_err=yes
6613fi
6614if test -z "$ac_cpp_err"; then
6615  ac_header_preproc=yes
6616else
6617  echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620  ac_header_preproc=no
6621fi
6622rm -f conftest.err conftest.$ac_ext
6623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6624echo "${ECHO_T}$ac_header_preproc" >&6
6625
6626# So?  What about this header?
6627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6628  yes:no: )
6629    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6631    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6633    ac_header_preproc=yes
6634    ;;
6635  no:yes:* )
6636    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6638    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6639echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6640    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6642    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6643echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6646    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6648    (
6649      cat <<\_ASBOX
6650## ------------------------------------ ##
6651## Report this to cbc@lists.coin-or.org ##
6652## ------------------------------------ ##
6653_ASBOX
6654    ) |
6655      sed "s/^/$as_me: WARNING:     /" >&2
6656    ;;
6657esac
6658echo "$as_me:$LINENO: checking for $ac_header" >&5
6659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6660if eval "test \"\${$as_ac_Header+set}\" = set"; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663  eval "$as_ac_Header=\$ac_header_preproc"
6664fi
6665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6667
6668fi
6669if test `eval echo '${'$as_ac_Header'}'` = yes; then
6670  cat >>confdefs.h <<_ACEOF
6671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672_ACEOF
6673
6674fi
6675
6676done
6677
6678
6679
6680if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6681    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6682    (test "X$CXX" != "Xg++"))) ; then
6683  ac_ext=cc
6684ac_cpp='$CXXCPP $CPPFLAGS'
6685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6688echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6689echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6690if test -z "$CXXCPP"; then
6691  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6692  echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694      # Double quotes because CXXCPP needs to be expanded
6695    for CXXCPP in "$CXX -E" "/lib/cpp"
6696    do
6697      ac_preproc_ok=false
6698for ac_cxx_preproc_warn_flag in '' yes
6699do
6700  # Use a header file that comes with gcc, so configuring glibc
6701  # with a fresh cross-compiler works.
6702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703  # <limits.h> exists even on freestanding compilers.
6704  # On the NeXT, cc -E runs the code through the compiler's parser,
6705  # not just through cpp. "Syntax error" is here to catch this case.
6706  cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h.  */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h.  */
6712#ifdef __STDC__
6713# include <limits.h>
6714#else
6715# include <assert.h>
6716#endif
6717                     Syntax error
6718_ACEOF
6719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6720  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6721  ac_status=$?
6722  grep -v '^ *+' conftest.er1 >conftest.err
6723  rm -f conftest.er1
6724  cat conftest.err >&5
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); } >/dev/null; then
6727  if test -s conftest.err; then
6728    ac_cpp_err=$ac_cxx_preproc_warn_flag
6729    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6730  else
6731    ac_cpp_err=
6732  fi
6733else
6734  ac_cpp_err=yes
6735fi
6736if test -z "$ac_cpp_err"; then
6737  :
6738else
6739  echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742  # Broken: fails on valid input.
6743continue
6744fi
6745rm -f conftest.err conftest.$ac_ext
6746
6747  # OK, works on sane cases.  Now check whether non-existent headers
6748  # can be detected and how.
6749  cat >conftest.$ac_ext <<_ACEOF
6750/* confdefs.h.  */
6751_ACEOF
6752cat confdefs.h >>conftest.$ac_ext
6753cat >>conftest.$ac_ext <<_ACEOF
6754/* end confdefs.h.  */
6755#include <ac_nonexistent.h>
6756_ACEOF
6757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6759  ac_status=$?
6760  grep -v '^ *+' conftest.er1 >conftest.err
6761  rm -f conftest.er1
6762  cat conftest.err >&5
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); } >/dev/null; then
6765  if test -s conftest.err; then
6766    ac_cpp_err=$ac_cxx_preproc_warn_flag
6767    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6768  else
6769    ac_cpp_err=
6770  fi
6771else
6772  ac_cpp_err=yes
6773fi
6774if test -z "$ac_cpp_err"; then
6775  # Broken: success on invalid input.
6776continue
6777else
6778  echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781  # Passes both tests.
6782ac_preproc_ok=:
6783break
6784fi
6785rm -f conftest.err conftest.$ac_ext
6786
6787done
6788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6789rm -f conftest.err conftest.$ac_ext
6790if $ac_preproc_ok; then
6791  break
6792fi
6793
6794    done
6795    ac_cv_prog_CXXCPP=$CXXCPP
6796
6797fi
6798  CXXCPP=$ac_cv_prog_CXXCPP
6799else
6800  ac_cv_prog_CXXCPP=$CXXCPP
6801fi
6802echo "$as_me:$LINENO: result: $CXXCPP" >&5
6803echo "${ECHO_T}$CXXCPP" >&6
6804ac_preproc_ok=false
6805for ac_cxx_preproc_warn_flag in '' yes
6806do
6807  # Use a header file that comes with gcc, so configuring glibc
6808  # with a fresh cross-compiler works.
6809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6810  # <limits.h> exists even on freestanding compilers.
6811  # On the NeXT, cc -E runs the code through the compiler's parser,
6812  # not just through cpp. "Syntax error" is here to catch this case.
6813  cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819#ifdef __STDC__
6820# include <limits.h>
6821#else
6822# include <assert.h>
6823#endif
6824                     Syntax error
6825_ACEOF
6826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828  ac_status=$?
6829  grep -v '^ *+' conftest.er1 >conftest.err
6830  rm -f conftest.er1
6831  cat conftest.err >&5
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); } >/dev/null; then
6834  if test -s conftest.err; then
6835    ac_cpp_err=$ac_cxx_preproc_warn_flag
6836    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6837  else
6838    ac_cpp_err=
6839  fi
6840else
6841  ac_cpp_err=yes
6842fi
6843if test -z "$ac_cpp_err"; then
6844  :
6845else
6846  echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849  # Broken: fails on valid input.
6850continue
6851fi
6852rm -f conftest.err conftest.$ac_ext
6853
6854  # OK, works on sane cases.  Now check whether non-existent headers
6855  # can be detected and how.
6856  cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862#include <ac_nonexistent.h>
6863_ACEOF
6864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866  ac_status=$?
6867  grep -v '^ *+' conftest.er1 >conftest.err
6868  rm -f conftest.er1
6869  cat conftest.err >&5
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } >/dev/null; then
6872  if test -s conftest.err; then
6873    ac_cpp_err=$ac_cxx_preproc_warn_flag
6874    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6875  else
6876    ac_cpp_err=
6877  fi
6878else
6879  ac_cpp_err=yes
6880fi
6881if test -z "$ac_cpp_err"; then
6882  # Broken: success on invalid input.
6883continue
6884else
6885  echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888  # Passes both tests.
6889ac_preproc_ok=:
6890break
6891fi
6892rm -f conftest.err conftest.$ac_ext
6893
6894done
6895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896rm -f conftest.err conftest.$ac_ext
6897if $ac_preproc_ok; then
6898  :
6899else
6900  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6901See \`config.log' for more details." >&5
6902echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6903See \`config.log' for more details." >&2;}
6904   { (exit 1); exit 1; }; }
6905fi
6906
6907ac_ext=cc
6908ac_cpp='$CXXCPP $CPPFLAGS'
6909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6912
6913fi
6914
6915ac_ext=f
6916ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6917ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6919if test -n "$ac_tool_prefix"; then
6920  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6921  do
6922    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6923set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6924echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6926if test "${ac_cv_prog_F77+set}" = set; then
6927  echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929  if test -n "$F77"; then
6930  ac_cv_prog_F77="$F77" # Let the user override the test.
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935  IFS=$as_save_IFS
6936  test -z "$as_dir" && as_dir=.
6937  for ac_exec_ext in '' $ac_executable_extensions; do
6938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941    break 2
6942  fi
6943done
6944done
6945
6946fi
6947fi
6948F77=$ac_cv_prog_F77
6949if test -n "$F77"; then
6950  echo "$as_me:$LINENO: result: $F77" >&5
6951echo "${ECHO_T}$F77" >&6
6952else
6953  echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955fi
6956
6957    test -n "$F77" && break
6958  done
6959fi
6960if test -z "$F77"; then
6961  ac_ct_F77=$F77
6962  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6963do
6964  # Extract the first word of "$ac_prog", so it can be a program name with args.
6965set dummy $ac_prog; ac_word=$2
6966echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6968if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  if test -n "$ac_ct_F77"; then
6972  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979  for ac_exec_ext in '' $ac_executable_extensions; do
6980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981    ac_cv_prog_ac_ct_F77="$ac_prog"
6982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986done
6987
6988fi
6989fi
6990ac_ct_F77=$ac_cv_prog_ac_ct_F77
6991if test -n "$ac_ct_F77"; then
6992  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6993echo "${ECHO_T}$ac_ct_F77" >&6
6994else
6995  echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997fi
6998
6999  test -n "$ac_ct_F77" && break
7000done
7001
7002  F77=$ac_ct_F77
7003fi
7004
7005
7006# Provide some information about the compiler.
7007echo "$as_me:7007:" \
7008     "checking for Fortran 77 compiler version" >&5
7009ac_compiler=`set X $ac_compile; echo $2`
7010{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7011  (eval $ac_compiler --version </dev/null >&5) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); }
7015{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7016  (eval $ac_compiler -v </dev/null >&5) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }
7020{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7021  (eval $ac_compiler -V </dev/null >&5) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }
7025rm -f a.out
7026
7027# If we don't use `.F' as extension, the preprocessor is not run on the
7028# input file.  (Note that this only needs to work for GNU compilers.)
7029ac_save_ext=$ac_ext
7030ac_ext=F
7031echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7032echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7033if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7034  echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036  cat >conftest.$ac_ext <<_ACEOF
7037      program main
7038#ifndef __GNUC__
7039       choke me
7040#endif
7041
7042      end
7043_ACEOF
7044rm -f conftest.$ac_objext
7045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046  (eval $ac_compile) 2>conftest.er1
7047  ac_status=$?
7048  grep -v '^ *+' conftest.er1 >conftest.err
7049  rm -f conftest.er1
7050  cat conftest.err >&5
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); } &&
7053         { ac_try='test -z "$ac_f77_werror_flag"
7054                         || test ! -s conftest.err'
7055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056  (eval $ac_try) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); }; } &&
7060         { ac_try='test -s conftest.$ac_objext'
7061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062  (eval $ac_try) 2>&5
7063  ac_status=$?
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); }; }; then
7066  ac_compiler_gnu=yes
7067else
7068  echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_compiler_gnu=no
7072fi
7073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7075
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7078echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7079ac_ext=$ac_save_ext
7080ac_test_FFLAGS=${FFLAGS+set}
7081ac_save_FFLAGS=$FFLAGS
7082FFLAGS=
7083echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7084echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7085if test "${ac_cv_prog_f77_g+set}" = set; then
7086  echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088  FFLAGS=-g
7089cat >conftest.$ac_ext <<_ACEOF
7090      program main
7091
7092      end
7093_ACEOF
7094rm -f conftest.$ac_objext
7095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096  (eval $ac_compile) 2>conftest.er1
7097  ac_status=$?
7098  grep -v '^ *+' conftest.er1 >conftest.err
7099  rm -f conftest.er1
7100  cat conftest.err >&5
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); } &&
7103         { ac_try='test -z "$ac_f77_werror_flag"
7104                         || test ! -s conftest.err'
7105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106  (eval $ac_try) 2>&5
7107  ac_status=$?
7108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109  (exit $ac_status); }; } &&
7110         { ac_try='test -s conftest.$ac_objext'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; }; then
7116  ac_cv_prog_f77_g=yes
7117else
7118  echo "$as_me: failed program was:" >&5
7119sed 's/^/| /' conftest.$ac_ext >&5
7120
7121ac_cv_prog_f77_g=no
7122fi
7123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7124
7125fi
7126echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7127echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7128if test "$ac_test_FFLAGS" = set; then
7129  FFLAGS=$ac_save_FFLAGS
7130elif test $ac_cv_prog_f77_g = yes; then
7131  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7132    FFLAGS="-g -O2"
7133  else
7134    FFLAGS="-g"
7135  fi
7136else
7137  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7138    FFLAGS="-O2"
7139  else
7140    FFLAGS=
7141  fi
7142fi
7143
7144G77=`test $ac_compiler_gnu = yes && echo yes`
7145ac_ext=c
7146ac_cpp='$CPP $CPPFLAGS'
7147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151
7152
7153# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7154
7155# find the maximum length of command line arguments
7156echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7157echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7158if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7159  echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161    i=0
7162  teststring="ABCD"
7163
7164  case $build_os in
7165  msdosdjgpp*)
7166    # On DJGPP, this test can blow up pretty badly due to problems in libc
7167    # (any single argument exceeding 2000 bytes causes a buffer overrun
7168    # during glob expansion).  Even if it were fixed, the result of this
7169    # check would be larger than it should be.
7170    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7171    ;;
7172
7173  gnu*)
7174    # Under GNU Hurd, this test is not required because there is
7175    # no limit to the length of command line arguments.
7176    # Libtool will interpret -1 as no limit whatsoever
7177    lt_cv_sys_max_cmd_len=-1;
7178    ;;
7179
7180  cygwin* | mingw*)
7181    # On Win9x/ME, this test blows up -- it succeeds, but takes
7182    # about 5 minutes as the teststring grows exponentially.
7183    # Worse, since 9x/ME are not pre-emptively multitasking,
7184    # you end up with a "frozen" computer, even though with patience
7185    # the test eventually succeeds (with a max line length of 256k).
7186    # Instead, let's just punt: use the minimum linelength reported by
7187    # all of the supported platforms: 8192 (on NT/2K/XP).
7188    lt_cv_sys_max_cmd_len=8192;
7189    ;;
7190
7191  amigaos*)
7192    # On AmigaOS with pdksh, this test takes hours, literally.
7193    # So we just punt and use a minimum line length of 8192.
7194    lt_cv_sys_max_cmd_len=8192;
7195    ;;
7196
7197  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7198    # This has been around since 386BSD, at least.  Likely further.
7199    if test -x /sbin/sysctl; then
7200      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7201    elif test -x /usr/sbin/sysctl; then
7202      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7203    else
7204      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7205    fi
7206    # And add a safety zone
7207    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7208    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7209    ;;
7210
7211  interix*)
7212    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7213    lt_cv_sys_max_cmd_len=196608
7214    ;;
7215
7216  osf*)
7217    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7218    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7219    # nice to cause kernel panics so lets avoid the loop below.
7220    # First set a reasonable default.
7221    lt_cv_sys_max_cmd_len=16384
7222    #
7223    if test -x /sbin/sysconfig; then
7224      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7225        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7226      esac
7227    fi
7228    ;;
7229  sco3.2v5*)
7230    lt_cv_sys_max_cmd_len=102400
7231    ;;
7232  sysv5* | sco5v6* | sysv4.2uw2*)
7233    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7234    if test -n "$kargmax"; then
7235      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7236    else
7237      lt_cv_sys_max_cmd_len=32768
7238    fi
7239    ;;
7240  *)
7241    # If test is not a shell built-in, we'll probably end up computing a
7242    # maximum length that is only half of the actual maximum length, but
7243    # we can't tell.
7244    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7245    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7246               = "XX$teststring") >/dev/null 2>&1 &&
7247            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7248            lt_cv_sys_max_cmd_len=$new_result &&
7249            test $i != 17 # 1/2 MB should be enough
7250    do
7251      i=`expr $i + 1`
7252      teststring=$teststring$teststring
7253    done
7254    teststring=
7255    # Add a significant safety factor because C++ compilers can tack on massive
7256    # amounts of additional arguments before passing them to the linker.
7257    # It appears as though 1/2 is a usable value.
7258    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7259    ;;
7260  esac
7261
7262fi
7263
7264if test -n $lt_cv_sys_max_cmd_len ; then
7265  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7266echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7267else
7268  echo "$as_me:$LINENO: result: none" >&5
7269echo "${ECHO_T}none" >&6
7270fi
7271
7272
7273
7274
7275# Check for command to grab the raw symbol name followed by C symbol from nm.
7276echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7277echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7278if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7279  echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281
7282# These are sane defaults that work on at least a few old systems.
7283# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7284
7285# Character class describing NM global symbol codes.
7286symcode='[BCDEGRST]'
7287
7288# Regexp to match symbols that can be accessed directly from C.
7289sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7290
7291# Transform an extracted symbol line into a proper C declaration
7292lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7293
7294# Transform an extracted symbol line into symbol name and symbol address
7295lt_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'"
7296
7297# Define system-specific variables.
7298case $host_os in
7299aix*)
7300  symcode='[BCDT]'
7301  ;;
7302cygwin* | mingw* | pw32*)
7303  symcode='[ABCDGISTW]'
7304  ;;
7305hpux*) # Its linker distinguishes data from code symbols
7306  if test "$host_cpu" = ia64; then
7307    symcode='[ABCDEGRST]'
7308  fi
7309  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7310  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'"
7311  ;;
7312linux*)
7313  if test "$host_cpu" = ia64; then
7314    symcode='[ABCDGIRSTW]'
7315    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7316    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'"
7317  fi
7318  ;;
7319irix* | nonstopux*)
7320  symcode='[BCDEGRST]'
7321  ;;
7322osf*)
7323  symcode='[BCDEGQRST]'
7324  ;;
7325solaris*)
7326  symcode='[BDRT]'
7327  ;;
7328sco3.2v5*)
7329  symcode='[DT]'
7330  ;;
7331sysv4.2uw2*)
7332  symcode='[DT]'
7333  ;;
7334sysv5* | sco5v6* | unixware* | OpenUNIX*)
7335  symcode='[ABDT]'
7336  ;;
7337sysv4)
7338  symcode='[DFNSTU]'
7339  ;;
7340esac
7341
7342# Handle CRLF in mingw tool chain
7343opt_cr=
7344case $build_os in
7345mingw*)
7346  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7347  ;;
7348esac
7349
7350# If we're using GNU nm, then use its standard symbol codes.
7351case `$NM -V 2>&1` in
7352*GNU* | *'with BFD'*)
7353  symcode='[ABCDGIRSTW]' ;;
7354esac
7355
7356# Try without a prefix undercore, then with it.
7357for ac_symprfx in "" "_"; do
7358
7359  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7360  symxfrm="\\1 $ac_symprfx\\2 \\2"
7361
7362  # Write the raw and C identifiers.
7363  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7364
7365  # Check to see that the pipe works correctly.
7366  pipe_works=no
7367
7368  rm -f conftest*
7369  cat > conftest.$ac_ext <<EOF
7370#ifdef __cplusplus
7371extern "C" {
7372#endif
7373char nm_test_var;
7374void nm_test_func(){}
7375#ifdef __cplusplus
7376}
7377#endif
7378int main(){nm_test_var='a';nm_test_func();return(0);}
7379EOF
7380
7381  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382  (eval $ac_compile) 2>&5
7383  ac_status=$?
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); }; then
7386    # Now try to grab the symbols.
7387    nlist=conftest.nm
7388    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7389  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7390  ac_status=$?
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); } && test -s "$nlist"; then
7393      # Try sorting and uniquifying the output.
7394      if sort "$nlist" | uniq > "$nlist"T; then
7395        mv -f "$nlist"T "$nlist"
7396      else
7397        rm -f "$nlist"T
7398      fi
7399
7400      # Make sure that we snagged all the symbols we need.
7401      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7402        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7403          cat <<EOF > conftest.$ac_ext
7404#ifdef __cplusplus
7405extern "C" {
7406#endif
7407
7408EOF
7409          # Now generate the symbol file.
7410          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7411
7412          cat <<EOF >> conftest.$ac_ext
7413#if defined (__STDC__) && __STDC__
7414# define lt_ptr_t void *
7415#else
7416# define lt_ptr_t char *
7417# define const
7418#endif
7419
7420/* The mapping between symbol names and symbols. */
7421const struct {
7422  const char *name;
7423  lt_ptr_t address;
7424}
7425lt_preloaded_symbols[] =
7426{
7427EOF
7428          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7429          cat <<\EOF >> conftest.$ac_ext
7430  {0, (lt_ptr_t) 0}
7431};
7432
7433#ifdef __cplusplus
7434}
7435#endif
7436EOF
7437          # Now try linking the two files.
7438          mv conftest.$ac_objext conftstm.$ac_objext
7439          lt_save_LIBS="$LIBS"
7440          lt_save_CFLAGS="$CFLAGS"
7441          LIBS="conftstm.$ac_objext"
7442          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7443          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444  (eval $ac_link) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7448            pipe_works=yes
7449          fi
7450          LIBS="$lt_save_LIBS"
7451          CFLAGS="$lt_save_CFLAGS"
7452        else
7453          echo "cannot find nm_test_func in $nlist" >&5
7454        fi
7455      else
7456        echo "cannot find nm_test_var in $nlist" >&5
7457      fi
7458    else
7459      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7460    fi
7461  else
7462    echo "$progname: failed program was:" >&5
7463    cat conftest.$ac_ext >&5
7464  fi
7465  rm -f conftest* conftst*
7466
7467  # Do not use the global_symbol_pipe unless it works.
7468  if test "$pipe_works" = yes; then
7469    break
7470  else
7471    lt_cv_sys_global_symbol_pipe=
7472  fi
7473done
7474
7475fi
7476
7477if test -z "$lt_cv_sys_global_symbol_pipe"; then
7478  lt_cv_sys_global_symbol_to_cdecl=
7479fi
7480if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7481  echo "$as_me:$LINENO: result: failed" >&5
7482echo "${ECHO_T}failed" >&6
7483else
7484  echo "$as_me:$LINENO: result: ok" >&5
7485echo "${ECHO_T}ok" >&6
7486fi
7487
7488echo "$as_me:$LINENO: checking for objdir" >&5
7489echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7490if test "${lt_cv_objdir+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  rm -f .libs 2>/dev/null
7494mkdir .libs 2>/dev/null
7495if test -d .libs; then
7496  lt_cv_objdir=.libs
7497else
7498  # MS-DOS does not allow filenames that begin with a dot.
7499  lt_cv_objdir=_libs
7500fi
7501rmdir .libs 2>/dev/null
7502fi
7503echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7504echo "${ECHO_T}$lt_cv_objdir" >&6
7505objdir=$lt_cv_objdir
7506
7507
7508
7509
7510
7511case $host_os in
7512aix3*)
7513  # AIX sometimes has problems with the GCC collect2 program.  For some
7514  # reason, if we set the COLLECT_NAMES environment variable, the problems
7515  # vanish in a puff of smoke.
7516  if test "X${COLLECT_NAMES+set}" != Xset; then
7517    COLLECT_NAMES=
7518    export COLLECT_NAMES
7519  fi
7520  ;;
7521esac
7522
7523# Sed substitution that helps us do robust quoting.  It backslashifies
7524# metacharacters that are still active within double-quoted strings.
7525Xsed='sed -e 1s/^X//'
7526sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7527
7528# Same as above, but do not quote variable references.
7529double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7530
7531# Sed substitution to delay expansion of an escaped shell variable in a
7532# double_quote_subst'ed string.
7533delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7534
7535# Sed substitution to avoid accidental globbing in evaled expressions
7536no_glob_subst='s/\*/\\\*/g'
7537
7538# Constants:
7539rm="rm -f"
7540
7541# Global variables:
7542default_ofile=libtool
7543can_build_shared=yes
7544
7545# All known linkers require a `.a' archive for static linking (except MSVC,
7546# which needs '.lib').
7547libext=a
7548ltmain="$ac_aux_dir/ltmain.sh"
7549ofile="$default_ofile"
7550with_gnu_ld="$lt_cv_prog_gnu_ld"
7551
7552if test -n "$ac_tool_prefix"; then
7553  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7554set dummy ${ac_tool_prefix}ar; ac_word=$2
7555echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557if test "${ac_cv_prog_AR+set}" = set; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  if test -n "$AR"; then
7561  ac_cv_prog_AR="$AR" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566  IFS=$as_save_IFS
7567  test -z "$as_dir" && as_dir=.
7568  for ac_exec_ext in '' $ac_executable_extensions; do
7569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570    ac_cv_prog_AR="${ac_tool_prefix}ar"
7571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572    break 2
7573  fi
7574done
7575done
7576
7577fi
7578fi
7579AR=$ac_cv_prog_AR
7580if test -n "$AR"; then
7581  echo "$as_me:$LINENO: result: $AR" >&5
7582echo "${ECHO_T}$AR" >&6
7583else
7584  echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586fi
7587
7588fi
7589if test -z "$ac_cv_prog_AR"; then
7590  ac_ct_AR=$AR
7591  # Extract the first word of "ar", so it can be a program name with args.
7592set dummy ar; ac_word=$2
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7596  echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598  if test -n "$ac_ct_AR"; then
7599  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604  IFS=$as_save_IFS
7605  test -z "$as_dir" && as_dir=.
7606  for ac_exec_ext in '' $ac_executable_extensions; do
7607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608    ac_cv_prog_ac_ct_AR="ar"
7609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610    break 2
7611  fi
7612done
7613done
7614
7615  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7616fi
7617fi
7618ac_ct_AR=$ac_cv_prog_ac_ct_AR
7619if test -n "$ac_ct_AR"; then
7620  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7621echo "${ECHO_T}$ac_ct_AR" >&6
7622else
7623  echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
7625fi
7626
7627  AR=$ac_ct_AR
7628else
7629  AR="$ac_cv_prog_AR"
7630fi
7631
7632if test -n "$ac_tool_prefix"; then
7633  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7634set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7635echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7637if test "${ac_cv_prog_RANLIB+set}" = set; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640  if test -n "$RANLIB"; then
7641  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646  IFS=$as_save_IFS
7647  test -z "$as_dir" && as_dir=.
7648  for ac_exec_ext in '' $ac_executable_extensions; do
7649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652    break 2
7653  fi
7654done
7655done
7656
7657fi
7658fi
7659RANLIB=$ac_cv_prog_RANLIB
7660if test -n "$RANLIB"; then
7661  echo "$as_me:$LINENO: result: $RANLIB" >&5
7662echo "${ECHO_T}$RANLIB" >&6
7663else
7664  echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666fi
7667
7668fi
7669if test -z "$ac_cv_prog_RANLIB"; then
7670  ac_ct_RANLIB=$RANLIB
7671  # Extract the first word of "ranlib", so it can be a program name with args.
7672set dummy ranlib; ac_word=$2
7673echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7675if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678  if test -n "$ac_ct_RANLIB"; then
7679  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686  for ac_exec_ext in '' $ac_executable_extensions; do
7687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688    ac_cv_prog_ac_ct_RANLIB="ranlib"
7689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693done
7694
7695  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7696fi
7697fi
7698ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7699if test -n "$ac_ct_RANLIB"; then
7700  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7701echo "${ECHO_T}$ac_ct_RANLIB" >&6
7702else
7703  echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705fi
7706
7707  RANLIB=$ac_ct_RANLIB
7708else
7709  RANLIB="$ac_cv_prog_RANLIB"
7710fi
7711
7712if test -n "$ac_tool_prefix"; then
7713  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7714set dummy ${ac_tool_prefix}strip; ac_word=$2
7715echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717if test "${ac_cv_prog_STRIP+set}" = set; then
7718  echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720  if test -n "$STRIP"; then
7721  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728  for ac_exec_ext in '' $ac_executable_extensions; do
7729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735done
7736
7737fi
7738fi
7739STRIP=$ac_cv_prog_STRIP
7740if test -n "$STRIP"; then
7741  echo "$as_me:$LINENO: result: $STRIP" >&5
7742echo "${ECHO_T}$STRIP" >&6
7743else
7744  echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748fi
7749if test -z "$ac_cv_prog_STRIP"; then
7750  ac_ct_STRIP=$STRIP
7751  # Extract the first word of "strip", so it can be a program name with args.
7752set dummy strip; ac_word=$2
7753echo "$as_me:$LINENO: checking for $ac_word" >&5
7754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7756  echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758  if test -n "$ac_ct_STRIP"; then
7759  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766  for ac_exec_ext in '' $ac_executable_extensions; do
7767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768    ac_cv_prog_ac_ct_STRIP="strip"
7769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773done
7774
7775  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7776fi
7777fi
7778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7779if test -n "$ac_ct_STRIP"; then
7780  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7781echo "${ECHO_T}$ac_ct_STRIP" >&6
7782else
7783  echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787  STRIP=$ac_ct_STRIP
7788else
7789  STRIP="$ac_cv_prog_STRIP"
7790fi
7791
7792
7793old_CC="$CC"
7794old_CFLAGS="$CFLAGS"
7795
7796# Set sane defaults for various variables
7797test -z "$AR" && AR=ar
7798test -z "$AR_FLAGS" && AR_FLAGS=cru
7799test -z "$AS" && AS=as
7800test -z "$CC" && CC=cc
7801test -z "$LTCC" && LTCC=$CC
7802test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7803test -z "$DLLTOOL" && DLLTOOL=dlltool
7804test -z "$LD" && LD=ld
7805test -z "$LN_S" && LN_S="ln -s"
7806test -z "$MAGIC_CMD" && MAGIC_CMD=file
7807test -z "$NM" && NM=nm
7808test -z "$SED" && SED=sed
7809test -z "$OBJDUMP" && OBJDUMP=objdump
7810test -z "$RANLIB" && RANLIB=:
7811test -z "$STRIP" && STRIP=:
7812test -z "$ac_objext" && ac_objext=o
7813
7814# Determine commands to create old-style static archives.
7815old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7816old_postinstall_cmds='chmod 644 $oldlib'
7817old_postuninstall_cmds=
7818
7819if test -n "$RANLIB"; then
7820  case $host_os in
7821  openbsd*)
7822    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7823    ;;
7824  *)
7825    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7826    ;;
7827  esac
7828  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7829fi
7830
7831for cc_temp in $compiler""; do
7832  case $cc_temp in
7833    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7834    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7835    \-*) ;;
7836    *) break;;
7837  esac
7838done
7839cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7840
7841
7842# Only perform the check for file, if the check method requires it
7843case $deplibs_check_method in
7844file_magic*)
7845  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7846    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7847echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851  case $MAGIC_CMD in
7852[\\/*] |  ?:[\\/]*)
7853  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7854  ;;
7855*)
7856  lt_save_MAGIC_CMD="$MAGIC_CMD"
7857  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7858  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7859  for ac_dir in $ac_dummy; do
7860    IFS="$lt_save_ifs"
7861    test -z "$ac_dir" && ac_dir=.
7862    if test -f $ac_dir/${ac_tool_prefix}file; then
7863      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7864      if test -n "$file_magic_test_file"; then
7865        case $deplibs_check_method in
7866        "file_magic "*)
7867          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7868          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7869          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7870            $EGREP "$file_magic_regex" > /dev/null; then
7871            :
7872          else
7873            cat <<EOF 1>&2
7874
7875*** Warning: the command libtool uses to detect shared libraries,
7876*** $file_magic_cmd, produces output that libtool cannot recognize.
7877*** The result is that libtool may fail to recognize shared libraries
7878*** as such.  This will affect the creation of libtool libraries that
7879*** depend on shared libraries, but programs linked with such libtool
7880*** libraries will work regardless of this problem.  Nevertheless, you
7881*** may want to report the problem to your system manager and/or to
7882*** bug-libtool@gnu.org
7883
7884EOF
7885          fi ;;
7886        esac
7887      fi
7888      break
7889    fi
7890  done
7891  IFS="$lt_save_ifs"
7892  MAGIC_CMD="$lt_save_MAGIC_CMD"
7893  ;;
7894esac
7895fi
7896
7897MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7898if test -n "$MAGIC_CMD"; then
7899  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7900echo "${ECHO_T}$MAGIC_CMD" >&6
7901else
7902  echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906if test -z "$lt_cv_path_MAGIC_CMD"; then
7907  if test -n "$ac_tool_prefix"; then
7908    echo "$as_me:$LINENO: checking for file" >&5
7909echo $ECHO_N "checking for file... $ECHO_C" >&6
7910if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  case $MAGIC_CMD in
7914[\\/*] |  ?:[\\/]*)
7915  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7916  ;;
7917*)
7918  lt_save_MAGIC_CMD="$MAGIC_CMD"
7919  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921  for ac_dir in $ac_dummy; do
7922    IFS="$lt_save_ifs"
7923    test -z "$ac_dir" && ac_dir=.
7924    if test -f $ac_dir/file; then
7925      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7926      if test -n "$file_magic_test_file"; then
7927        case $deplibs_check_method in
7928        "file_magic "*)
7929          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932            $EGREP "$file_magic_regex" > /dev/null; then
7933            :
7934          else
7935            cat <<EOF 1>&2
7936
7937*** Warning: the command libtool uses to detect shared libraries,
7938*** $file_magic_cmd, produces output that libtool cannot recognize.
7939*** The result is that libtool may fail to recognize shared libraries
7940*** as such.  This will affect the creation of libtool libraries that
7941*** depend on shared libraries, but programs linked with such libtool
7942*** libraries will work regardless of this problem.  Nevertheless, you
7943*** may want to report the problem to your system manager and/or to
7944*** bug-libtool@gnu.org
7945
7946EOF
7947          fi ;;
7948        esac
7949      fi
7950      break
7951    fi
7952  done
7953  IFS="$lt_save_ifs"
7954  MAGIC_CMD="$lt_save_MAGIC_CMD"
7955  ;;
7956esac
7957fi
7958
7959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960if test -n "$MAGIC_CMD"; then
7961  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7962echo "${ECHO_T}$MAGIC_CMD" >&6
7963else
7964  echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966fi
7967
7968  else
7969    MAGIC_CMD=:
7970  fi
7971fi
7972
7973  fi
7974  ;;
7975esac
7976
7977enable_dlopen=no
7978enable_win32_dll=no
7979
7980# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7981if test "${enable_libtool_lock+set}" = set; then
7982  enableval="$enable_libtool_lock"
7983
7984fi;
7985test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7986
7987
7988# Check whether --with-pic or --without-pic was given.
7989if test "${with_pic+set}" = set; then
7990  withval="$with_pic"
7991  pic_mode="$withval"
7992else
7993  pic_mode=default
7994fi;
7995test -z "$pic_mode" && pic_mode=default
7996
7997# Use C for the default configuration in the libtool script
7998tagname=
7999lt_save_CC="$CC"
8000ac_ext=c
8001ac_cpp='$CPP $CPPFLAGS'
8002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007# Source file extension for C test sources.
8008ac_ext=c
8009
8010# Object file extension for compiled C test sources.
8011objext=o
8012objext=$objext
8013
8014# Code to be used in simple compile tests
8015lt_simple_compile_test_code="int some_variable = 0;\n"
8016
8017# Code to be used in simple link tests
8018lt_simple_link_test_code='int main(){return(0);}\n'
8019
8020
8021# If no C compiler was specified, use CC.
8022LTCC=${LTCC-"$CC"}
8023
8024# If no C compiler flags were specified, use CFLAGS.
8025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8026
8027# Allow CC to be a program name with arguments.
8028compiler=$CC
8029
8030
8031# save warnings/boilerplate of simple test code
8032ac_outfile=conftest.$ac_objext
8033printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8035_lt_compiler_boilerplate=`cat conftest.err`
8036$rm conftest*
8037
8038ac_outfile=conftest.$ac_objext
8039printf "$lt_simple_link_test_code" >conftest.$ac_ext
8040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041_lt_linker_boilerplate=`cat conftest.err`
8042$rm conftest*
8043
8044
8045## CAVEAT EMPTOR:
8046## There is no encapsulation within the following macros, do not change
8047## the running order or otherwise move them around unless you know exactly
8048## what you are doing...
8049
8050lt_prog_compiler_no_builtin_flag=
8051
8052if test "$GCC" = yes; then
8053  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8054
8055
8056echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8057echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8058if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8059  echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061  lt_cv_prog_compiler_rtti_exceptions=no
8062  ac_outfile=conftest.$ac_objext
8063   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8064   lt_compiler_flag="-fno-rtti -fno-exceptions"
8065   # Insert the option either (1) after the last *FLAGS variable, or
8066   # (2) before a word containing "conftest.", or (3) at the end.
8067   # Note that $ac_compile itself does not contain backslashes and begins
8068   # with a dollar sign (not a hyphen), so the echo should work correctly.
8069   # The option is referenced via a variable to avoid confusing sed.
8070   lt_compile=`echo "$ac_compile" | $SED \
8071   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8072   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8073   -e 's:$: $lt_compiler_flag:'`
8074   (eval echo "\"\$as_me:8074: $lt_compile\"" >&5)
8075   (eval "$lt_compile" 2>conftest.err)
8076   ac_status=$?
8077   cat conftest.err >&5
8078   echo "$as_me:8078: \$? = $ac_status" >&5
8079   if (exit $ac_status) && test -s "$ac_outfile"; then
8080     # The compiler can only warn and ignore the option if not recognized
8081     # So say no if there are warnings other than the usual output.
8082     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8083     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8084     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8085       lt_cv_prog_compiler_rtti_exceptions=yes
8086     fi
8087   fi
8088   $rm conftest*
8089
8090fi
8091echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8092echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8093
8094if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8095    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8096else
8097    :
8098fi
8099
8100fi
8101
8102lt_prog_compiler_wl=
8103lt_prog_compiler_pic=
8104lt_prog_compiler_static=
8105
8106echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8107echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8108
8109  if test "$GCC" = yes; then
8110    lt_prog_compiler_wl='-Wl,'
8111    lt_prog_compiler_static='-static'
8112
8113    case $host_os in
8114      aix*)
8115      # All AIX code is PIC.
8116      if test "$host_cpu" = ia64; then
8117        # AIX 5 now supports IA64 processor
8118        lt_prog_compiler_static='-Bstatic'
8119      fi
8120      ;;
8121
8122    amigaos*)
8123      # FIXME: we need at least 68020 code to build shared libraries, but
8124      # adding the `-m68020' flag to GCC prevents building anything better,
8125      # like `-m68040'.
8126      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8127      ;;
8128
8129    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8130      # PIC is the default for these OSes.
8131      ;;
8132
8133    mingw* | pw32* | os2*)
8134      # This hack is so that the source file can tell whether it is being
8135      # built for inclusion in a dll (and should export symbols for example).
8136      lt_prog_compiler_pic='-DDLL_EXPORT'
8137      ;;
8138
8139    darwin* | rhapsody*)
8140      # PIC is the default on this platform
8141      # Common symbols not allowed in MH_DYLIB files
8142      lt_prog_compiler_pic='-fno-common'
8143      ;;
8144
8145    interix3*)
8146      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8147      # Instead, we relocate shared libraries at runtime.
8148      ;;
8149
8150    msdosdjgpp*)
8151      # Just because we use GCC doesn't mean we suddenly get shared libraries
8152      # on systems that don't support them.
8153      lt_prog_compiler_can_build_shared=no
8154      enable_shared=no
8155      ;;
8156
8157    sysv4*MP*)
8158      if test -d /usr/nec; then
8159        lt_prog_compiler_pic=-Kconform_pic
8160      fi
8161      ;;
8162
8163    hpux*)
8164      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8165      # not for PA HP-UX.
8166      case $host_cpu in
8167      hppa*64*|ia64*)
8168        # +Z the default
8169        ;;
8170      *)
8171        lt_prog_compiler_pic='-fPIC'
8172        ;;
8173      esac
8174      ;;
8175
8176    *)
8177      lt_prog_compiler_pic='-fPIC'
8178      ;;
8179    esac
8180  else
8181    # PORTME Check for flag to pass linker flags through the system compiler.
8182    case $host_os in
8183    aix*)
8184      lt_prog_compiler_wl='-Wl,'
8185      if test "$host_cpu" = ia64; then
8186        # AIX 5 now supports IA64 processor
8187        lt_prog_compiler_static='-Bstatic'
8188      else
8189        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8190      fi
8191      ;;
8192      darwin*)
8193        # PIC is the default on this platform
8194        # Common symbols not allowed in MH_DYLIB files
8195       case $cc_basename in
8196         xlc*)
8197         lt_prog_compiler_pic='-qnocommon'
8198         lt_prog_compiler_wl='-Wl,'
8199         ;;
8200       esac
8201       ;;
8202
8203    mingw* | pw32* | os2*)
8204      # This hack is so that the source file can tell whether it is being
8205      # built for inclusion in a dll (and should export symbols for example).
8206      lt_prog_compiler_pic='-DDLL_EXPORT'
8207      ;;
8208
8209    hpux9* | hpux10* | hpux11*)
8210      lt_prog_compiler_wl='-Wl,'
8211      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8212      # not for PA HP-UX.
8213      case $host_cpu in
8214      hppa*64*|ia64*)
8215        # +Z the default
8216        ;;
8217      *)
8218        lt_prog_compiler_pic='+Z'
8219        ;;
8220      esac
8221      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8222      lt_prog_compiler_static='${wl}-a ${wl}archive'
8223      ;;
8224
8225    irix5* | irix6* | nonstopux*)
8226      lt_prog_compiler_wl='-Wl,'
8227      # PIC (with -KPIC) is the default.
8228      lt_prog_compiler_static='-non_shared'
8229      ;;
8230
8231    newsos6)
8232      lt_prog_compiler_pic='-KPIC'
8233      lt_prog_compiler_static='-Bstatic'
8234      ;;
8235
8236    linux*)
8237      case $cc_basename in
8238      icc* | ecc*)
8239        lt_prog_compiler_wl='-Wl,'
8240        lt_prog_compiler_pic='-KPIC'
8241        lt_prog_compiler_static='-static'
8242        ;;
8243      pgcc* | pgf77* | pgf90* | pgf95*)
8244        # Portland Group compilers (*not* the Pentium gcc compiler,
8245        # which looks to be a dead project)
8246        lt_prog_compiler_wl='-Wl,'
8247        lt_prog_compiler_pic='-fpic'
8248        lt_prog_compiler_static='-Bstatic'
8249        ;;
8250      ccc*)
8251        lt_prog_compiler_wl='-Wl,'
8252        # All Alpha code is PIC.
8253        lt_prog_compiler_static='-non_shared'
8254        ;;
8255      esac
8256      ;;
8257
8258    osf3* | osf4* | osf5*)
8259      lt_prog_compiler_wl='-Wl,'
8260      # All OSF/1 code is PIC.
8261      lt_prog_compiler_static='-non_shared'
8262      ;;
8263
8264    solaris*)
8265      lt_prog_compiler_pic='-KPIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      case $cc_basename in
8268      f77* | f90* | f95*)
8269        lt_prog_compiler_wl='-Qoption ld ';;
8270      *)
8271        lt_prog_compiler_wl='-Wl,';;
8272      esac
8273      ;;
8274
8275    sunos4*)
8276      lt_prog_compiler_wl='-Qoption ld '
8277      lt_prog_compiler_pic='-PIC'
8278      lt_prog_compiler_static='-Bstatic'
8279      ;;
8280
8281    sysv4 | sysv4.2uw2* | sysv4.3*)
8282      lt_prog_compiler_wl='-Wl,'
8283      lt_prog_compiler_pic='-KPIC'
8284      lt_prog_compiler_static='-Bstatic'
8285      ;;
8286
8287    sysv4*MP*)
8288      if test -d /usr/nec ;then
8289        lt_prog_compiler_pic='-Kconform_pic'
8290        lt_prog_compiler_static='-Bstatic'
8291      fi
8292      ;;
8293
8294    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8295      lt_prog_compiler_wl='-Wl,'
8296      lt_prog_compiler_pic='-KPIC'
8297      lt_prog_compiler_static='-Bstatic'
8298      ;;
8299
8300    unicos*)
8301      lt_prog_compiler_wl='-Wl,'
8302      lt_prog_compiler_can_build_shared=no
8303      ;;
8304
8305    uts4*)
8306      lt_prog_compiler_pic='-pic'
8307      lt_prog_compiler_static='-Bstatic'
8308      ;;
8309
8310    *)
8311      lt_prog_compiler_can_build_shared=no
8312      ;;
8313    esac
8314  fi
8315
8316echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8317echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8318
8319#
8320# Check to make sure the PIC flag actually works.
8321#
8322if test -n "$lt_prog_compiler_pic"; then
8323
8324echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8325echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8326if test "${lt_prog_compiler_pic_works+set}" = set; then
8327  echo $ECHO_N "(cached) $ECHO_C" >&6
8328else
8329  lt_prog_compiler_pic_works=no
8330  ac_outfile=conftest.$ac_objext
8331   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8332   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8333   # Insert the option either (1) after the last *FLAGS variable, or
8334   # (2) before a word containing "conftest.", or (3) at the end.
8335   # Note that $ac_compile itself does not contain backslashes and begins
8336   # with a dollar sign (not a hyphen), so the echo should work correctly.
8337   # The option is referenced via a variable to avoid confusing sed.
8338   lt_compile=`echo "$ac_compile" | $SED \
8339   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341   -e 's:$: $lt_compiler_flag:'`
8342   (eval echo "\"\$as_me:8342: $lt_compile\"" >&5)
8343   (eval "$lt_compile" 2>conftest.err)
8344   ac_status=$?
8345   cat conftest.err >&5
8346   echo "$as_me:8346: \$? = $ac_status" >&5
8347   if (exit $ac_status) && test -s "$ac_outfile"; then
8348     # The compiler can only warn and ignore the option if not recognized
8349     # So say no if there are warnings other than the usual output.
8350     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8351     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8353       lt_prog_compiler_pic_works=yes
8354     fi
8355   fi
8356   $rm conftest*
8357
8358fi
8359echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8360echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8361
8362if test x"$lt_prog_compiler_pic_works" = xyes; then
8363    case $lt_prog_compiler_pic in
8364     "" | " "*) ;;
8365     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8366     esac
8367else
8368    lt_prog_compiler_pic=
8369     lt_prog_compiler_can_build_shared=no
8370fi
8371
8372fi
8373case $host_os in
8374  # For platforms which do not support PIC, -DPIC is meaningless:
8375  *djgpp*)
8376    lt_prog_compiler_pic=
8377    ;;
8378  *)
8379    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8380    ;;
8381esac
8382
8383#
8384# Check to make sure the static flag actually works.
8385#
8386wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8387echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8388echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8389if test "${lt_prog_compiler_static_works+set}" = set; then
8390  echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392  lt_prog_compiler_static_works=no
8393   save_LDFLAGS="$LDFLAGS"
8394   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8395   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8396   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8397     # The linker can only warn and ignore the option if not recognized
8398     # So say no if there are warnings
8399     if test -s conftest.err; then
8400       # Append any errors to the config.log.
8401       cat conftest.err 1>&5
8402       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8403       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8404       if diff conftest.exp conftest.er2 >/dev/null; then
8405         lt_prog_compiler_static_works=yes
8406       fi
8407     else
8408       lt_prog_compiler_static_works=yes
8409     fi
8410   fi
8411   $rm conftest*
8412   LDFLAGS="$save_LDFLAGS"
8413
8414fi
8415echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8416echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8417
8418if test x"$lt_prog_compiler_static_works" = xyes; then
8419    :
8420else
8421    lt_prog_compiler_static=
8422fi
8423
8424
8425echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8426echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8427if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8428  echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430  lt_cv_prog_compiler_c_o=no
8431   $rm -r conftest 2>/dev/null
8432   mkdir conftest
8433   cd conftest
8434   mkdir out
8435   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
8437   lt_compiler_flag="-o out/conftest2.$ac_objext"
8438   # Insert the option either (1) after the last *FLAGS variable, or
8439   # (2) before a word containing "conftest.", or (3) at the end.
8440   # Note that $ac_compile itself does not contain backslashes and begins
8441   # with a dollar sign (not a hyphen), so the echo should work correctly.
8442   lt_compile=`echo "$ac_compile" | $SED \
8443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445   -e 's:$: $lt_compiler_flag:'`
8446   (eval echo "\"\$as_me:8446: $lt_compile\"" >&5)
8447   (eval "$lt_compile" 2>out/conftest.err)
8448   ac_status=$?
8449   cat out/conftest.err >&5
8450   echo "$as_me:8450: \$? = $ac_status" >&5
8451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8452   then
8453     # The compiler can only warn and ignore the option if not recognized
8454     # So say no if there are warnings
8455     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8456     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8457     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8458       lt_cv_prog_compiler_c_o=yes
8459     fi
8460   fi
8461   chmod u+w . 2>&5
8462   $rm conftest*
8463   # SGI C++ compiler will create directory out/ii_files/ for
8464   # template instantiation
8465   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8466   $rm out/* && rmdir out
8467   cd ..
8468   rmdir conftest
8469   $rm conftest*
8470
8471fi
8472echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8473echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8474
8475
8476hard_links="nottested"
8477if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8478  # do not overwrite the value of need_locks provided by the user
8479  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8480echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8481  hard_links=yes
8482  $rm conftest*
8483  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8484  touch conftest.a
8485  ln conftest.a conftest.b 2>&5 || hard_links=no
8486  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8487  echo "$as_me:$LINENO: result: $hard_links" >&5
8488echo "${ECHO_T}$hard_links" >&6
8489  if test "$hard_links" = no; then
8490    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8491echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8492    need_locks=warn
8493  fi
8494else
8495  need_locks=no
8496fi
8497
8498echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8499echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8500
8501  runpath_var=
8502  allow_undefined_flag=
8503  enable_shared_with_static_runtimes=no
8504  archive_cmds=
8505  archive_expsym_cmds=
8506  old_archive_From_new_cmds=
8507  old_archive_from_expsyms_cmds=
8508  export_dynamic_flag_spec=
8509  whole_archive_flag_spec=
8510  thread_safe_flag_spec=
8511  hardcode_libdir_flag_spec=
8512  hardcode_libdir_flag_spec_ld=
8513  hardcode_libdir_separator=
8514  hardcode_direct=no
8515  hardcode_minus_L=no
8516  hardcode_shlibpath_var=unsupported
8517  link_all_deplibs=unknown
8518  hardcode_automatic=no
8519  module_cmds=
8520  module_expsym_cmds=
8521  always_export_symbols=no
8522  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8523  # include_expsyms should be a list of space-separated symbols to be *always*
8524  # included in the symbol list
8525  include_expsyms=
8526  # exclude_expsyms can be an extended regexp of symbols to exclude
8527  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8528  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8529  # as well as any symbol that contains `d'.
8530  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8531  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8532  # platforms (ab)use it in PIC code, but their linkers get confused if
8533  # the symbol is explicitly referenced.  Since portable code cannot
8534  # rely on this symbol name, it's probably fine to never include it in
8535  # preloaded symbol tables.
8536  extract_expsyms_cmds=
8537  # Just being paranoid about ensuring that cc_basename is set.
8538  for cc_temp in $compiler""; do
8539  case $cc_temp in
8540    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8541    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8542    \-*) ;;
8543    *) break;;
8544  esac
8545done
8546cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8547
8548  case $host_os in
8549  cygwin* | mingw* | pw32*)
8550    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8551    # When not using gcc, we currently assume that we are using
8552    # Microsoft Visual C++.
8553    if test "$GCC" != yes; then
8554      with_gnu_ld=no
8555    fi
8556    ;;
8557  interix*)
8558    # we just hope/assume this is gcc and not c89 (= MSVC++)
8559    with_gnu_ld=yes
8560    ;;
8561  openbsd*)
8562    with_gnu_ld=no
8563    ;;
8564  esac
8565
8566  ld_shlibs=yes
8567  if test "$with_gnu_ld" = yes; then
8568    # If archive_cmds runs LD, not CC, wlarc should be empty
8569    wlarc='${wl}'
8570
8571    # Set some defaults for GNU ld with shared library support. These
8572    # are reset later if shared libraries are not supported. Putting them
8573    # here allows them to be overridden if necessary.
8574    runpath_var=LD_RUN_PATH
8575    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8576    export_dynamic_flag_spec='${wl}--export-dynamic'
8577    # ancient GNU ld didn't support --whole-archive et. al.
8578    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8579        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8580      else
8581        whole_archive_flag_spec=
8582    fi
8583    supports_anon_versioning=no
8584    case `$LD -v 2>/dev/null` in
8585      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8586      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8587      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8588      *\ 2.11.*) ;; # other 2.11 versions
8589      *) supports_anon_versioning=yes ;;
8590    esac
8591
8592    # See if GNU ld supports shared libraries.
8593    case $host_os in
8594    aix3* | aix4* | aix5*)
8595      # On AIX/PPC, the GNU linker is very broken
8596      if test "$host_cpu" != ia64; then
8597        ld_shlibs=no
8598        cat <<EOF 1>&2
8599
8600*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8601*** to be unable to reliably create shared libraries on AIX.
8602*** Therefore, libtool is disabling shared libraries support.  If you
8603*** really care for shared libraries, you may want to modify your PATH
8604*** so that a non-GNU linker is found, and then restart.
8605
8606EOF
8607      fi
8608      ;;
8609
8610    amigaos*)
8611      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)'
8612      hardcode_libdir_flag_spec='-L$libdir'
8613      hardcode_minus_L=yes
8614
8615      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8616      # that the semantics of dynamic libraries on AmigaOS, at least up
8617      # to version 4, is to share data among multiple programs linked
8618      # with the same dynamic library.  Since this doesn't match the
8619      # behavior of shared libraries on other platforms, we can't use
8620      # them.
8621      ld_shlibs=no
8622      ;;
8623
8624    beos*)
8625      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8626        allow_undefined_flag=unsupported
8627        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628        # support --undefined.  This deserves some investigation.  FIXME
8629        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630      else
8631        ld_shlibs=no
8632      fi
8633      ;;
8634
8635    cygwin* | mingw* | pw32*)
8636      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637      # as there is no search path for DLLs.
8638      hardcode_libdir_flag_spec='-L$libdir'
8639      allow_undefined_flag=unsupported
8640      always_export_symbols=no
8641      enable_shared_with_static_runtimes=yes
8642      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8643
8644      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8645        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8646        # If the export-symbols file already is a .def file (1st line
8647        # is EXPORTS), use it as is; otherwise, prepend...
8648        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8649          cp $export_symbols $output_objdir/$soname.def;
8650        else
8651          echo EXPORTS > $output_objdir/$soname.def;
8652          cat $export_symbols >> $output_objdir/$soname.def;
8653        fi~
8654        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8655      else
8656        ld_shlibs=no
8657      fi
8658      ;;
8659
8660    interix3*)
8661      hardcode_direct=no
8662      hardcode_shlibpath_var=no
8663      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664      export_dynamic_flag_spec='${wl}-E'
8665      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8666      # Instead, shared libraries are loaded at an image base (0x10000000 by
8667      # default) and relocated if they conflict, which is a slow very memory
8668      # consuming and fragmenting process.  To avoid this, we pick a random,
8669      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8670      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8671      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8672      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'
8673      ;;
8674
8675    linux*)
8676      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8677        tmp_addflag=
8678        case $cc_basename,$host_cpu in
8679        pgcc*)                          # Portland Group C compiler
8680          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'
8681          tmp_addflag=' $pic_flag'
8682          ;;
8683        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8684          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'
8685          tmp_addflag=' $pic_flag -Mnomain' ;;
8686        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8687          tmp_addflag=' -i_dynamic' ;;
8688        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8689          tmp_addflag=' -i_dynamic -nofor_main' ;;
8690        ifc* | ifort*)                  # Intel Fortran compiler
8691          tmp_addflag=' -nofor_main' ;;
8692        esac
8693        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694
8695        if test $supports_anon_versioning = yes; then
8696          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8697  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8698  $echo "local: *; };" >> $output_objdir/$libname.ver~
8699          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8700        fi
8701      else
8702        ld_shlibs=no
8703      fi
8704      ;;
8705
8706    netbsd*)
8707      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8708        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8709        wlarc=
8710      else
8711        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713      fi
8714      ;;
8715
8716    solaris*)
8717      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8718        ld_shlibs=no
8719        cat <<EOF 1>&2
8720
8721*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8722*** create shared libraries on Solaris systems.  Therefore, libtool
8723*** is disabling shared libraries support.  We urge you to upgrade GNU
8724*** binutils to release 2.9.1 or newer.  Another option is to modify
8725*** your PATH or compiler configuration so that the native linker is
8726*** used, and then restart.
8727
8728EOF
8729      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732      else
8733        ld_shlibs=no
8734      fi
8735      ;;
8736
8737    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8738      case `$LD -v 2>&1` in
8739        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8740        ld_shlibs=no
8741        cat <<_LT_EOF 1>&2
8742
8743*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8744*** reliably create shared libraries on SCO systems.  Therefore, libtool
8745*** is disabling shared libraries support.  We urge you to upgrade GNU
8746*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8747*** your PATH or compiler configuration so that the native linker is
8748*** used, and then restart.
8749
8750_LT_EOF
8751        ;;
8752        *)
8753          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8754            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8755            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8756            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8757          else
8758            ld_shlibs=no
8759          fi
8760        ;;
8761      esac
8762      ;;
8763
8764    sunos4*)
8765      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766      wlarc=
8767      hardcode_direct=yes
8768      hardcode_shlibpath_var=no
8769      ;;
8770
8771    *)
8772      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8773        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775      else
8776        ld_shlibs=no
8777      fi
8778      ;;
8779    esac
8780
8781    if test "$ld_shlibs" = no; then
8782      runpath_var=
8783      hardcode_libdir_flag_spec=
8784      export_dynamic_flag_spec=
8785      whole_archive_flag_spec=
8786    fi
8787  else
8788    # PORTME fill in a description of your system's linker (not GNU ld)
8789    case $host_os in
8790    aix3*)
8791      allow_undefined_flag=unsupported
8792      always_export_symbols=yes
8793      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'
8794      # Note: this linker hardcodes the directories in LIBPATH if there
8795      # are no directories specified by -L.
8796      hardcode_minus_L=yes
8797      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8798        # Neither direct hardcoding nor static linking is supported with a
8799        # broken collect2.
8800        hardcode_direct=unsupported
8801      fi
8802      ;;
8803
8804    aix4* | aix5*)
8805      if test "$host_cpu" = ia64; then
8806        # On IA64, the linker does run time linking by default, so we don't
8807        # have to do anything special.
8808        aix_use_runtimelinking=no
8809        exp_sym_flag='-Bexport'
8810        no_entry_flag=""
8811      else
8812        # If we're using GNU nm, then we don't want the "-C" option.
8813        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8814        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8815          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'
8816        else
8817          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'
8818        fi
8819        aix_use_runtimelinking=no
8820
8821        # Test if we are trying to use run time linking or normal
8822        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8823        # need to do runtime linking.
8824        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8825          for ld_flag in $LDFLAGS; do
8826          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8827            aix_use_runtimelinking=yes
8828            break
8829          fi
8830          done
8831          ;;
8832        esac
8833
8834        exp_sym_flag='-bexport'
8835        no_entry_flag='-bnoentry'
8836      fi
8837
8838      # When large executables or shared objects are built, AIX ld can
8839      # have problems creating the table of contents.  If linking a library
8840      # or program results in "error TOC overflow" add -mminimal-toc to
8841      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8842      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843
8844      archive_cmds=''
8845      hardcode_direct=yes
8846      hardcode_libdir_separator=':'
8847      link_all_deplibs=yes
8848
8849      if test "$GCC" = yes; then
8850        case $host_os in aix4.[012]|aix4.[012].*)
8851        # We only want to do this on AIX 4.2 and lower, the check
8852        # below for broken collect2 doesn't work under 4.3+
8853          collect2name=`${CC} -print-prog-name=collect2`
8854          if test -f "$collect2name" && \
8855           strings "$collect2name" | grep resolve_lib_name >/dev/null
8856          then
8857          # We have reworked collect2
8858          hardcode_direct=yes
8859          else
8860          # We have old collect2
8861          hardcode_direct=unsupported
8862          # It fails to find uninstalled libraries when the uninstalled
8863          # path is not listed in the libpath.  Setting hardcode_minus_L
8864          # to unsupported forces relinking
8865          hardcode_minus_L=yes
8866          hardcode_libdir_flag_spec='-L$libdir'
8867          hardcode_libdir_separator=
8868          fi
8869          ;;
8870        esac
8871        shared_flag='-shared'
8872        if test "$aix_use_runtimelinking" = yes; then
8873          shared_flag="$shared_flag "'${wl}-G'
8874        fi
8875      else
8876        # not using gcc
8877        if test "$host_cpu" = ia64; then
8878        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8879        # chokes on -Wl,-G. The following line is correct:
8880          shared_flag='-G'
8881        else
8882          if test "$aix_use_runtimelinking" = yes; then
8883            shared_flag='${wl}-G'
8884          else
8885            shared_flag='${wl}-bM:SRE'
8886          fi
8887        fi
8888      fi
8889
8890      # It seems that -bexpall does not export symbols beginning with
8891      # underscore (_), so it is better to generate a list of symbols to export.
8892      always_export_symbols=yes
8893      if test "$aix_use_runtimelinking" = yes; then
8894        # Warning - without using the other runtime loading flags (-brtl),
8895        # -berok will link without error, but may produce a broken library.
8896        allow_undefined_flag='-berok'
8897       # Determine the default libpath from the value encoded in an empty executable.
8898       cat >conftest.$ac_ext <<_ACEOF
8899/* confdefs.h.  */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
8903/* end confdefs.h.  */
8904
8905int
8906main ()
8907{
8908
8909  ;
8910  return 0;
8911}
8912_ACEOF
8913rm -f conftest.$ac_objext conftest$ac_exeext
8914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8915  (eval $ac_link) 2>conftest.er1
8916  ac_status=$?
8917  grep -v '^ *+' conftest.er1 >conftest.err
8918  rm -f conftest.er1
8919  cat conftest.err >&5
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); } &&
8922         { ac_try='test -z "$ac_c_werror_flag"
8923                         || test ! -s conftest.err'
8924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925  (eval $ac_try) 2>&5
8926  ac_status=$?
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); }; } &&
8929         { ac_try='test -s conftest$ac_exeext'
8930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931  (eval $ac_try) 2>&5
8932  ac_status=$?
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); }; }; then
8935
8936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8937}'`
8938# Check for a 64-bit object if we didn't find anything.
8939if 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; }
8940}'`; fi
8941else
8942  echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945fi
8946rm -f conftest.err conftest.$ac_objext \
8947      conftest$ac_exeext conftest.$ac_ext
8948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8950       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951        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"
8952       else
8953        if test "$host_cpu" = ia64; then
8954          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955          allow_undefined_flag="-z nodefs"
8956          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"
8957        else
8958         # Determine the default libpath from the value encoded in an empty executable.
8959         cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h.  */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
8964/* end confdefs.h.  */
8965
8966int
8967main ()
8968{
8969
8970  ;
8971  return 0;
8972}
8973_ACEOF
8974rm -f conftest.$ac_objext conftest$ac_exeext
8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976  (eval $ac_link) 2>conftest.er1
8977  ac_status=$?
8978  grep -v '^ *+' conftest.er1 >conftest.err
8979  rm -f conftest.er1
8980  cat conftest.err >&5
8981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982  (exit $ac_status); } &&
8983         { ac_try='test -z "$ac_c_werror_flag"
8984                         || test ! -s conftest.err'
8985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986  (eval $ac_try) 2>&5
8987  ac_status=$?
8988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989  (exit $ac_status); }; } &&
8990         { ac_try='test -s conftest$ac_exeext'
8991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992  (eval $ac_try) 2>&5
8993  ac_status=$?
8994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995  (exit $ac_status); }; }; then
8996
8997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8998}'`
8999# Check for a 64-bit object if we didn't find anything.
9000if 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; }
9001}'`; fi
9002else
9003  echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006fi
9007rm -f conftest.err conftest.$ac_objext \
9008      conftest$ac_exeext conftest.$ac_ext
9009if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9010
9011         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9012          # Warning - without using the other run time loading flags,
9013          # -berok will link without error, but may produce a broken library.
9014          no_undefined_flag=' ${wl}-bernotok'
9015          allow_undefined_flag=' ${wl}-berok'
9016          # Exported symbols can be pulled into shared objects from archives
9017          whole_archive_flag_spec='$convenience'
9018          archive_cmds_need_lc=yes
9019          # This is similar to how AIX traditionally builds its shared libraries.
9020          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'
9021        fi
9022      fi
9023      ;;
9024
9025    amigaos*)
9026      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)'
9027      hardcode_libdir_flag_spec='-L$libdir'
9028      hardcode_minus_L=yes
9029      # see comment about different semantics on the GNU ld section
9030      ld_shlibs=no
9031      ;;
9032
9033    bsdi[45]*)
9034      export_dynamic_flag_spec=-rdynamic
9035      ;;
9036
9037    cygwin* | mingw* | pw32*)
9038      # When not using gcc, we currently assume that we are using
9039      # Microsoft Visual C++.
9040      # hardcode_libdir_flag_spec is actually meaningless, as there is
9041      # no search path for DLLs.
9042      hardcode_libdir_flag_spec=' '
9043      allow_undefined_flag=unsupported
9044      # Tell ltmain to make .lib files, not .a files.
9045      libext=lib
9046      # Tell ltmain to make .dll files, not .so files.
9047      shrext_cmds=".dll"
9048      # FIXME: Setting linknames here is a bad hack.
9049      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9050      # The linker will automatically build a .lib file if we build a DLL.
9051      old_archive_From_new_cmds='true'
9052      # FIXME: Should let the user specify the lib program.
9053      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9054      fix_srcfile_path='`cygpath -w "$srcfile"`'
9055      enable_shared_with_static_runtimes=yes
9056      ;;
9057
9058    darwin* | rhapsody*)
9059      case $host_os in
9060        rhapsody* | darwin1.[012])
9061         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9062         ;;
9063       *) # Darwin 1.3 on
9064         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9065           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9066         else
9067           case ${MACOSX_DEPLOYMENT_TARGET} in
9068             10.[012])
9069               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9070               ;;
9071             10.*)
9072               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9073               ;;
9074           esac
9075         fi
9076         ;;
9077      esac
9078      archive_cmds_need_lc=no
9079      hardcode_direct=no
9080      hardcode_automatic=yes
9081      hardcode_shlibpath_var=unsupported
9082      whole_archive_flag_spec=''
9083      link_all_deplibs=yes
9084    if test "$GCC" = yes ; then
9085        output_verbose_link_cmd='echo'
9086        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9087      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9088      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9089      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9090      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9091    else
9092      case $cc_basename in
9093        xlc*)
9094         output_verbose_link_cmd='echo'
9095         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9096         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9097          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9098         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}'
9099          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}'
9100          ;;
9101       *)
9102         ld_shlibs=no
9103          ;;
9104      esac
9105    fi
9106      ;;
9107
9108    dgux*)
9109      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110      hardcode_libdir_flag_spec='-L$libdir'
9111      hardcode_shlibpath_var=no
9112      ;;
9113
9114    freebsd1*)
9115      ld_shlibs=no
9116      ;;
9117
9118    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9119    # support.  Future versions do this automatically, but an explicit c++rt0.o
9120    # does not break anything, and helps significantly (at the cost of a little
9121    # extra space).
9122    freebsd2.2*)
9123      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9124      hardcode_libdir_flag_spec='-R$libdir'
9125      hardcode_direct=yes
9126      hardcode_shlibpath_var=no
9127      ;;
9128
9129    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9130    freebsd2*)
9131      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132      hardcode_direct=yes
9133      hardcode_minus_L=yes
9134      hardcode_shlibpath_var=no
9135      ;;
9136
9137    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9138    freebsd* | kfreebsd*-gnu | dragonfly*)
9139      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9140      hardcode_libdir_flag_spec='-R$libdir'
9141      hardcode_direct=yes
9142      hardcode_shlibpath_var=no
9143      ;;
9144
9145    hpux9*)
9146      if test "$GCC" = yes; then
9147        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'
9148      else
9149        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'
9150      fi
9151      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9152      hardcode_libdir_separator=:
9153      hardcode_direct=yes
9154
9155      # hardcode_minus_L: Not really in the search PATH,
9156      # but as the default location of the library.
9157      hardcode_minus_L=yes
9158      export_dynamic_flag_spec='${wl}-E'
9159      ;;
9160
9161    hpux10*)
9162      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9163        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164      else
9165        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9166      fi
9167      if test "$with_gnu_ld" = no; then
9168        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9169        hardcode_libdir_separator=:
9170
9171        hardcode_direct=yes
9172        export_dynamic_flag_spec='${wl}-E'
9173
9174        # hardcode_minus_L: Not really in the search PATH,
9175        # but as the default location of the library.
9176        hardcode_minus_L=yes
9177      fi
9178      ;;
9179
9180    hpux11*)
9181      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9182        case $host_cpu in
9183        hppa*64*)
9184          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185          ;;
9186        ia64*)
9187          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9188          ;;
9189        *)
9190          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9191          ;;
9192        esac
9193      else
9194        case $host_cpu in
9195        hppa*64*)
9196          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197          ;;
9198        ia64*)
9199          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9200          ;;
9201        *)
9202          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203          ;;
9204        esac
9205      fi
9206      if test "$with_gnu_ld" = no; then
9207        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9208        hardcode_libdir_separator=:
9209
9210        case $host_cpu in
9211        hppa*64*|ia64*)
9212          hardcode_libdir_flag_spec_ld='+b $libdir'
9213          hardcode_direct=no
9214          hardcode_shlibpath_var=no
9215          ;;
9216        *)
9217          hardcode_direct=yes
9218          export_dynamic_flag_spec='${wl}-E'
9219
9220          # hardcode_minus_L: Not really in the search PATH,
9221          # but as the default location of the library.
9222          hardcode_minus_L=yes
9223          ;;
9224        esac
9225      fi
9226      ;;
9227
9228    irix5* | irix6* | nonstopux*)
9229      if test "$GCC" = yes; then
9230        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'
9231      else
9232        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'
9233        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9234      fi
9235      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236      hardcode_libdir_separator=:
9237      link_all_deplibs=yes
9238      ;;
9239
9240    netbsd*)
9241      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9243      else
9244        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9245      fi
9246      hardcode_libdir_flag_spec='-R$libdir'
9247      hardcode_direct=yes
9248      hardcode_shlibpath_var=no
9249      ;;
9250
9251    newsos6)
9252      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253      hardcode_direct=yes
9254      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255      hardcode_libdir_separator=:
9256      hardcode_shlibpath_var=no
9257      ;;
9258
9259    openbsd*)
9260      hardcode_direct=yes
9261      hardcode_shlibpath_var=no
9262      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9265        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266        export_dynamic_flag_spec='${wl}-E'
9267      else
9268       case $host_os in
9269         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9270           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9271           hardcode_libdir_flag_spec='-R$libdir'
9272           ;;
9273         *)
9274           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9275           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276           ;;
9277       esac
9278      fi
9279      ;;
9280
9281    os2*)
9282      hardcode_libdir_flag_spec='-L$libdir'
9283      hardcode_minus_L=yes
9284      allow_undefined_flag=unsupported
9285      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'
9286      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9287      ;;
9288
9289    osf3*)
9290      if test "$GCC" = yes; then
9291        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292        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'
9293      else
9294        allow_undefined_flag=' -expect_unresolved \*'
9295        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'
9296      fi
9297      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298      hardcode_libdir_separator=:
9299      ;;
9300
9301    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9302      if test "$GCC" = yes; then
9303        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9304        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'
9305        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306      else
9307        allow_undefined_flag=' -expect_unresolved \*'
9308        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'
9309        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9310        $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'
9311
9312        # Both c and cxx compiler support -rpath directly
9313        hardcode_libdir_flag_spec='-rpath $libdir'
9314      fi
9315      hardcode_libdir_separator=:
9316      ;;
9317
9318    solaris*)
9319      no_undefined_flag=' -z text'
9320      if test "$GCC" = yes; then
9321        wlarc='${wl}'
9322        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9323        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9324          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9325      else
9326        wlarc=''
9327        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9329        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9330      fi
9331      hardcode_libdir_flag_spec='-R$libdir'
9332      hardcode_shlibpath_var=no
9333      case $host_os in
9334      solaris2.[0-5] | solaris2.[0-5].*) ;;
9335      *)
9336        # The compiler driver will combine linker options so we
9337        # cannot just pass the convience library names through
9338        # without $wl, iff we do not link with $LD.
9339        # Luckily, gcc supports the same syntax we need for Sun Studio.
9340        # Supported since Solaris 2.6 (maybe 2.5.1?)
9341        case $wlarc in
9342        '')
9343          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9344        *)
9345          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' ;;
9346        esac ;;
9347      esac
9348      link_all_deplibs=yes
9349      ;;
9350
9351    sunos4*)
9352      if test "x$host_vendor" = xsequent; then
9353        # Use $CC to link under sequent, because it throws in some extra .o
9354        # files that make .init and .fini sections work.
9355        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9356      else
9357        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9358      fi
9359      hardcode_libdir_flag_spec='-L$libdir'
9360      hardcode_direct=yes
9361      hardcode_minus_L=yes
9362      hardcode_shlibpath_var=no
9363      ;;
9364
9365    sysv4)
9366      case $host_vendor in
9367        sni)
9368          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369          hardcode_direct=yes # is this really true???
9370        ;;
9371        siemens)
9372          ## LD is ld it makes a PLAMLIB
9373          ## CC just makes a GrossModule.
9374          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375          reload_cmds='$CC -r -o $output$reload_objs'
9376          hardcode_direct=no
9377        ;;
9378        motorola)
9379          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9381        ;;
9382      esac
9383      runpath_var='LD_RUN_PATH'
9384      hardcode_shlibpath_var=no
9385      ;;
9386
9387    sysv4.3*)
9388      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389      hardcode_shlibpath_var=no
9390      export_dynamic_flag_spec='-Bexport'
9391      ;;
9392
9393    sysv4*MP*)
9394      if test -d /usr/nec; then
9395        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396        hardcode_shlibpath_var=no
9397        runpath_var=LD_RUN_PATH
9398        hardcode_runpath_var=yes
9399        ld_shlibs=yes
9400      fi
9401      ;;
9402
9403    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9404      no_undefined_flag='${wl}-z,text'
9405      archive_cmds_need_lc=no
9406      hardcode_shlibpath_var=no
9407      runpath_var='LD_RUN_PATH'
9408
9409      if test "$GCC" = yes; then
9410        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412      else
9413        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415      fi
9416      ;;
9417
9418    sysv5* | sco3.2v5* | sco5v6*)
9419      # Note: We can NOT use -z defs as we might desire, because we do not
9420      # link with -lc, and that would cause any symbols used from libc to
9421      # always be unresolved, which means just about no library would
9422      # ever link correctly.  If we're not using GNU ld we use -z text
9423      # though, which does catch some bad symbols but isn't as heavy-handed
9424      # as -z defs.
9425      no_undefined_flag='${wl}-z,text'
9426      allow_undefined_flag='${wl}-z,nodefs'
9427      archive_cmds_need_lc=no
9428      hardcode_shlibpath_var=no
9429      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9430      hardcode_libdir_separator=':'
9431      link_all_deplibs=yes
9432      export_dynamic_flag_spec='${wl}-Bexport'
9433      runpath_var='LD_RUN_PATH'
9434
9435      if test "$GCC" = yes; then
9436        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438      else
9439        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441      fi
9442      ;;
9443
9444    uts4*)
9445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446      hardcode_libdir_flag_spec='-L$libdir'
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    *)
9451      ld_shlibs=no
9452      ;;
9453    esac
9454  fi
9455
9456echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9457echo "${ECHO_T}$ld_shlibs" >&6
9458test "$ld_shlibs" = no && can_build_shared=no
9459
9460#
9461# Do we need to explicitly link libc?
9462#
9463case "x$archive_cmds_need_lc" in
9464x|xyes)
9465  # Assume -lc should be added
9466  archive_cmds_need_lc=yes
9467
9468  if test "$enable_shared" = yes && test "$GCC" = yes; then
9469    case $archive_cmds in
9470    *'~'*)
9471      # FIXME: we may have to deal with multi-command sequences.
9472      ;;
9473    '$CC '*)
9474      # Test whether the compiler implicitly links with -lc since on some
9475      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9476      # to ld, don't add -lc before -lgcc.
9477      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9478echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9479      $rm conftest*
9480      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9481
9482      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9483  (eval $ac_compile) 2>&5
9484  ac_status=$?
9485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486  (exit $ac_status); } 2>conftest.err; then
9487        soname=conftest
9488        lib=conftest
9489        libobjs=conftest.$ac_objext
9490        deplibs=
9491        wl=$lt_prog_compiler_wl
9492        pic_flag=$lt_prog_compiler_pic
9493        compiler_flags=-v
9494        linker_flags=-v
9495        verstring=
9496        output_objdir=.
9497        libname=conftest
9498        lt_save_allow_undefined_flag=$allow_undefined_flag
9499        allow_undefined_flag=
9500        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9501  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9502  ac_status=$?
9503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504  (exit $ac_status); }
9505        then
9506          archive_cmds_need_lc=no
9507        else
9508          archive_cmds_need_lc=yes
9509        fi
9510        allow_undefined_flag=$lt_save_allow_undefined_flag
9511      else
9512        cat conftest.err 1>&5
9513      fi
9514      $rm conftest*
9515      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9516echo "${ECHO_T}$archive_cmds_need_lc" >&6
9517      ;;
9518    esac
9519  fi
9520  ;;
9521esac
9522
9523echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9524echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9525library_names_spec=
9526libname_spec='lib$name'
9527soname_spec=
9528shrext_cmds=".so"
9529postinstall_cmds=
9530postuninstall_cmds=
9531finish_cmds=
9532finish_eval=
9533shlibpath_var=
9534shlibpath_overrides_runpath=unknown
9535version_type=none
9536dynamic_linker="$host_os ld.so"
9537sys_lib_dlsearch_path_spec="/lib /usr/lib"
9538if test "$GCC" = yes; then
9539  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9540  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9541    # if the path contains ";" then we assume it to be the separator
9542    # otherwise default to the standard path separator (i.e. ":") - it is
9543    # assumed that no part of a normal pathname contains ";" but that should
9544    # okay in the real world where ";" in dirpaths is itself problematic.
9545    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9546  else
9547    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9548  fi
9549else
9550  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9551fi
9552need_lib_prefix=unknown
9553hardcode_into_libs=no
9554
9555# when you set need_version to no, make sure it does not cause -set_version
9556# flags to be left without arguments
9557need_version=unknown
9558
9559case $host_os in
9560aix3*)
9561  version_type=linux
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9563  shlibpath_var=LIBPATH
9564
9565  # AIX 3 has no versioning support, so we append a major version to the name.
9566  soname_spec='${libname}${release}${shared_ext}$major'
9567  ;;
9568
9569aix4* | aix5*)
9570  version_type=linux
9571  need_lib_prefix=no
9572  need_version=no
9573  hardcode_into_libs=yes
9574  if test "$host_cpu" = ia64; then
9575    # AIX 5 supports IA64
9576    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9577    shlibpath_var=LD_LIBRARY_PATH
9578  else
9579    # With GCC up to 2.95.x, collect2 would create an import file
9580    # for dependence libraries.  The import file would start with
9581    # the line `#! .'.  This would cause the generated library to
9582    # depend on `.', always an invalid library.  This was fixed in
9583    # development snapshots of GCC prior to 3.0.
9584    case $host_os in
9585      aix4 | aix4.[01] | aix4.[01].*)
9586      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9587           echo ' yes '
9588           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9589        :
9590      else
9591        can_build_shared=no
9592      fi
9593      ;;
9594    esac
9595    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9596    # soname into executable. Probably we can add versioning support to
9597    # collect2, so additional links can be useful in future.
9598    if test "$aix_use_runtimelinking" = yes; then
9599      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9600      # instead of lib<name>.a to let people know that these are not
9601      # typical AIX shared libraries.
9602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603    else
9604      # We preserve .a as extension for shared libraries through AIX4.2
9605      # and later when we are not doing run time linking.
9606      library_names_spec='${libname}${release}.a $libname.a'
9607      soname_spec='${libname}${release}${shared_ext}$major'
9608    fi
9609    shlibpath_var=LIBPATH
9610  fi
9611  ;;
9612
9613amigaos*)
9614  library_names_spec='$libname.ixlibrary $libname.a'
9615  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9616  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'
9617  ;;
9618
9619beos*)
9620  library_names_spec='${libname}${shared_ext}'
9621  dynamic_linker="$host_os ld.so"
9622  shlibpath_var=LIBRARY_PATH
9623  ;;
9624
9625bsdi[45]*)
9626  version_type=linux
9627  need_version=no
9628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629  soname_spec='${libname}${release}${shared_ext}$major'
9630  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9633  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9634  # the default ld.so.conf also contains /usr/contrib/lib and
9635  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9636  # libtool to hard-code these into programs
9637  ;;
9638
9639cygwin* | mingw* | pw32*)
9640  version_type=windows
9641  shrext_cmds=".dll"
9642  need_version=no
9643  need_lib_prefix=no
9644
9645  case $GCC,$host_os in
9646  yes,cygwin* | yes,mingw* | yes,pw32*)
9647    library_names_spec='$libname.dll.a'
9648    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9649    postinstall_cmds='base_file=`basename \${file}`~
9650      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9651      dldir=$destdir/`dirname \$dlpath`~
9652      test -d \$dldir || mkdir -p \$dldir~
9653      $install_prog $dir/$dlname \$dldir/$dlname~
9654      chmod a+x \$dldir/$dlname'
9655    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9656      dlpath=$dir/\$dldll~
9657       $rm \$dlpath'
9658    shlibpath_overrides_runpath=yes
9659
9660    case $host_os in
9661    cygwin*)
9662      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9663      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9664      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9665      ;;
9666    mingw*)
9667      # MinGW DLLs use traditional 'lib' prefix
9668      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9669      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9670      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9671        # It is most probably a Windows format PATH printed by
9672        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9673        # path with ; separators, and with drive letters. We can handle the
9674        # drive letters (cygwin fileutils understands them), so leave them,
9675        # especially as we might pass files found there to a mingw objdump,
9676        # which wouldn't understand a cygwinified path. Ahh.
9677        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9678      else
9679        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9680      fi
9681      ;;
9682    pw32*)
9683      # pw32 DLLs use 'pw' prefix rather than 'lib'
9684      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9685      ;;
9686    esac
9687    ;;
9688
9689  *)
9690    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9691    ;;
9692  esac
9693  dynamic_linker='Win32 ld.exe'
9694  # FIXME: first we should search . and the directory the executable is in
9695  shlibpath_var=PATH
9696  ;;
9697
9698darwin* | rhapsody*)
9699  dynamic_linker="$host_os dyld"
9700  version_type=darwin
9701  need_lib_prefix=no
9702  need_version=no
9703  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9704  soname_spec='${libname}${release}${major}$shared_ext'
9705  shlibpath_overrides_runpath=yes
9706  shlibpath_var=DYLD_LIBRARY_PATH
9707  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9708  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9709  if test "$GCC" = yes; then
9710    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"`
9711  else
9712    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9713  fi
9714  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9715  ;;
9716
9717dgux*)
9718  version_type=linux
9719  need_lib_prefix=no
9720  need_version=no
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  ;;
9725
9726freebsd1*)
9727  dynamic_linker=no
9728  ;;
9729
9730kfreebsd*-gnu)
9731  version_type=linux
9732  need_lib_prefix=no
9733  need_version=no
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  shlibpath_overrides_runpath=no
9738  hardcode_into_libs=yes
9739  dynamic_linker='GNU ld.so'
9740  ;;
9741
9742freebsd* | dragonfly*)
9743  # DragonFly does not have aout.  When/if they implement a new
9744  # versioning mechanism, adjust this.
9745  if test -x /usr/bin/objformat; then
9746    objformat=`/usr/bin/objformat`
9747  else
9748    case $host_os in
9749    freebsd[123]*) objformat=aout ;;
9750    *) objformat=elf ;;
9751    esac
9752  fi
9753  version_type=freebsd-$objformat
9754  case $version_type in
9755    freebsd-elf*)
9756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9757      need_version=no
9758      need_lib_prefix=no
9759      ;;
9760    freebsd-*)
9761      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9762      need_version=yes
9763      ;;
9764  esac
9765  shlibpath_var=LD_LIBRARY_PATH
9766  case $host_os in
9767  freebsd2*)
9768    shlibpath_overrides_runpath=yes
9769    ;;
9770  freebsd3.[01]* | freebsdelf3.[01]*)
9771    shlibpath_overrides_runpath=yes
9772    hardcode_into_libs=yes
9773    ;;
9774  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9775  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9776    shlibpath_overrides_runpath=no
9777    hardcode_into_libs=yes
9778    ;;
9779  freebsd*) # from 4.6 on
9780    shlibpath_overrides_runpath=yes
9781    hardcode_into_libs=yes
9782    ;;
9783  esac
9784  ;;
9785
9786gnu*)
9787  version_type=linux
9788  need_lib_prefix=no
9789  need_version=no
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9791  soname_spec='${libname}${release}${shared_ext}$major'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  hardcode_into_libs=yes
9794  ;;
9795
9796hpux9* | hpux10* | hpux11*)
9797  # Give a soname corresponding to the major version so that dld.sl refuses to
9798  # link against other versions.
9799  version_type=sunos
9800  need_lib_prefix=no
9801  need_version=no
9802  case $host_cpu in
9803  ia64*)
9804    shrext_cmds='.so'
9805    hardcode_into_libs=yes
9806    dynamic_linker="$host_os dld.so"
9807    shlibpath_var=LD_LIBRARY_PATH
9808    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9809    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810    soname_spec='${libname}${release}${shared_ext}$major'
9811    if test "X$HPUX_IA64_MODE" = X32; then
9812      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9813    else
9814      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9815    fi
9816    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9817    ;;
9818   hppa*64*)
9819     shrext_cmds='.sl'
9820     hardcode_into_libs=yes
9821     dynamic_linker="$host_os dld.sl"
9822     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9823     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825     soname_spec='${libname}${release}${shared_ext}$major'
9826     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9827     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9828     ;;
9829   *)
9830    shrext_cmds='.sl'
9831    dynamic_linker="$host_os dld.sl"
9832    shlibpath_var=SHLIB_PATH
9833    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9834    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835    soname_spec='${libname}${release}${shared_ext}$major'
9836    ;;
9837  esac
9838  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9839  postinstall_cmds='chmod 555 $lib'
9840  ;;
9841
9842interix3*)
9843  version_type=linux
9844  need_lib_prefix=no
9845  need_version=no
9846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9847  soname_spec='${libname}${release}${shared_ext}$major'
9848  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9849  shlibpath_var=LD_LIBRARY_PATH
9850  shlibpath_overrides_runpath=no
9851  hardcode_into_libs=yes
9852  ;;
9853
9854irix5* | irix6* | nonstopux*)
9855  case $host_os in
9856    nonstopux*) version_type=nonstopux ;;
9857    *)
9858        if test "$lt_cv_prog_gnu_ld" = yes; then
9859                version_type=linux
9860        else
9861                version_type=irix
9862        fi ;;
9863  esac
9864  need_lib_prefix=no
9865  need_version=no
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9868  case $host_os in
9869  irix5* | nonstopux*)
9870    libsuff= shlibsuff=
9871    ;;
9872  *)
9873    case $LD in # libtool.m4 will add one of these switches to LD
9874    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9875      libsuff= shlibsuff= libmagic=32-bit;;
9876    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9877      libsuff=32 shlibsuff=N32 libmagic=N32;;
9878    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9879      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9880    *) libsuff= shlibsuff= libmagic=never-match;;
9881    esac
9882    ;;
9883  esac
9884  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9885  shlibpath_overrides_runpath=no
9886  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9887  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9888  hardcode_into_libs=yes
9889  ;;
9890
9891# No shared lib support for Linux oldld, aout, or coff.
9892linux*oldld* | linux*aout* | linux*coff*)
9893  dynamic_linker=no
9894  ;;
9895
9896# This must be Linux ELF.
9897linux*)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  shlibpath_overrides_runpath=no
9906  # This implies no fast_install, which is unacceptable.
9907  # Some rework will be needed to allow for fast_install
9908  # before this can be enabled.
9909  hardcode_into_libs=yes
9910
9911  # Append ld.so.conf contents to the search path
9912  if test -f /etc/ld.so.conf; then
9913    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' ' '`
9914    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9915  fi
9916
9917  # We used to test for /lib/ld.so.1 and disable shared libraries on
9918  # powerpc, because MkLinux only supported shared libraries with the
9919  # GNU dynamic linker.  Since this was broken with cross compilers,
9920  # most powerpc-linux boxes support dynamic linking these days and
9921  # people can always --disable-shared, the test was removed, and we
9922  # assume the GNU/Linux dynamic linker is in use.
9923  dynamic_linker='GNU/Linux ld.so'
9924  ;;
9925
9926knetbsd*-gnu)
9927  version_type=linux
9928  need_lib_prefix=no
9929  need_version=no
9930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9931  soname_spec='${libname}${release}${shared_ext}$major'
9932  shlibpath_var=LD_LIBRARY_PATH
9933  shlibpath_overrides_runpath=no
9934  hardcode_into_libs=yes
9935  dynamic_linker='GNU ld.so'
9936  ;;
9937
9938netbsd*)
9939  version_type=sunos
9940  need_lib_prefix=no
9941  need_version=no
9942  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9944    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9945    dynamic_linker='NetBSD (a.out) ld.so'
9946  else
9947    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9948    soname_spec='${libname}${release}${shared_ext}$major'
9949    dynamic_linker='NetBSD ld.elf_so'
9950  fi
9951  shlibpath_var=LD_LIBRARY_PATH
9952  shlibpath_overrides_runpath=yes
9953  hardcode_into_libs=yes
9954  ;;
9955
9956newsos6)
9957  version_type=linux
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=yes
9961  ;;
9962
9963nto-qnx*)
9964  version_type=linux
9965  need_lib_prefix=no
9966  need_version=no
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  shlibpath_overrides_runpath=yes
9971  ;;
9972
9973openbsd*)
9974  version_type=sunos
9975  sys_lib_dlsearch_path_spec="/usr/lib"
9976  need_lib_prefix=no
9977  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9978  case $host_os in
9979    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9980    *)                         need_version=no  ;;
9981  esac
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9984  shlibpath_var=LD_LIBRARY_PATH
9985  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9986    case $host_os in
9987      openbsd2.[89] | openbsd2.[89].*)
9988        shlibpath_overrides_runpath=no
9989        ;;
9990      *)
9991        shlibpath_overrides_runpath=yes
9992        ;;
9993      esac
9994  else
9995    shlibpath_overrides_runpath=yes
9996  fi
9997  ;;
9998
9999os2*)
10000  libname_spec='$name'
10001  shrext_cmds=".dll"
10002  need_lib_prefix=no
10003  library_names_spec='$libname${shared_ext} $libname.a'
10004  dynamic_linker='OS/2 ld.exe'
10005  shlibpath_var=LIBPATH
10006  ;;
10007
10008osf3* | osf4* | osf5*)
10009  version_type=osf
10010  need_lib_prefix=no
10011  need_version=no
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  shlibpath_var=LD_LIBRARY_PATH
10015  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10016  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10017  ;;
10018
10019solaris*)
10020  version_type=linux
10021  need_lib_prefix=no
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  shlibpath_overrides_runpath=yes
10027  hardcode_into_libs=yes
10028  # ldd complains unless libraries are executable
10029  postinstall_cmds='chmod +x $lib'
10030  ;;
10031
10032sunos4*)
10033  version_type=sunos
10034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10035  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10036  shlibpath_var=LD_LIBRARY_PATH
10037  shlibpath_overrides_runpath=yes
10038  if test "$with_gnu_ld" = yes; then
10039    need_lib_prefix=no
10040  fi
10041  need_version=yes
10042  ;;
10043
10044sysv4 | sysv4.3*)
10045  version_type=linux
10046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047  soname_spec='${libname}${release}${shared_ext}$major'
10048  shlibpath_var=LD_LIBRARY_PATH
10049  case $host_vendor in
10050    sni)
10051      shlibpath_overrides_runpath=no
10052      need_lib_prefix=no
10053      export_dynamic_flag_spec='${wl}-Blargedynsym'
10054      runpath_var=LD_RUN_PATH
10055      ;;
10056    siemens)
10057      need_lib_prefix=no
10058      ;;
10059    motorola)
10060      need_lib_prefix=no
10061      need_version=no
10062      shlibpath_overrides_runpath=no
10063      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10064      ;;
10065  esac
10066  ;;
10067
10068sysv4*MP*)
10069  if test -d /usr/nec ;then
10070    version_type=linux
10071    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10072    soname_spec='$libname${shared_ext}.$major'
10073    shlibpath_var=LD_LIBRARY_PATH
10074  fi
10075  ;;
10076
10077sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10078  version_type=freebsd-elf
10079  need_lib_prefix=no
10080  need_version=no
10081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10082  soname_spec='${libname}${release}${shared_ext}$major'
10083  shlibpath_var=LD_LIBRARY_PATH
10084  hardcode_into_libs=yes
10085  if test "$with_gnu_ld" = yes; then
10086    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10087    shlibpath_overrides_runpath=no
10088  else
10089    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10090    shlibpath_overrides_runpath=yes
10091    case $host_os in
10092      sco3.2v5*)
10093        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10094        ;;
10095    esac
10096  fi
10097  sys_lib_dlsearch_path_spec='/usr/lib'
10098  ;;
10099
10100uts4*)
10101  version_type=linux
10102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103  soname_spec='${libname}${release}${shared_ext}$major'
10104  shlibpath_var=LD_LIBRARY_PATH
10105  ;;
10106
10107*)
10108  dynamic_linker=no
10109  ;;
10110esac
10111echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10112echo "${ECHO_T}$dynamic_linker" >&6
10113test "$dynamic_linker" = no && can_build_shared=no
10114
10115variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10116if test "$GCC" = yes; then
10117  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10118fi
10119
10120echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10121echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10122hardcode_action=
10123if test -n "$hardcode_libdir_flag_spec" || \
10124   test -n "$runpath_var" || \
10125   test "X$hardcode_automatic" = "Xyes" ; then
10126
10127  # We can hardcode non-existant directories.
10128  if test "$hardcode_direct" != no &&
10129     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10130     # have to relink, otherwise we might link with an installed library
10131     # when we should be linking with a yet-to-be-installed one
10132     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10133     test "$hardcode_minus_L" != no; then
10134    # Linking always hardcodes the temporary library directory.
10135    hardcode_action=relink
10136  else
10137    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10138    hardcode_action=immediate
10139  fi
10140else
10141  # We cannot hardcode anything, or else we can only hardcode existing
10142  # directories.
10143  hardcode_action=unsupported
10144fi
10145echo "$as_me:$LINENO: result: $hardcode_action" >&5
10146echo "${ECHO_T}$hardcode_action" >&6
10147
10148if test "$hardcode_action" = relink; then
10149  # Fast installation is not supported
10150  enable_fast_install=no
10151elif test "$shlibpath_overrides_runpath" = yes ||
10152     test "$enable_shared" = no; then
10153  # Fast installation is not necessary
10154  enable_fast_install=needless
10155fi
10156
10157striplib=
10158old_striplib=
10159echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10160echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10161if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10162  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10163  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10164  echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166else
10167# FIXME - insert some real tests, host_os isn't really good enough
10168  case $host_os in
10169   darwin*)
10170       if test -n "$STRIP" ; then
10171         striplib="$STRIP -x"
10172         echo "$as_me:$LINENO: result: yes" >&5
10173echo "${ECHO_T}yes" >&6
10174       else
10175  echo "$as_me:$LINENO: result: no" >&5
10176echo "${ECHO_T}no" >&6
10177fi
10178       ;;
10179   *)
10180  echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6
10182    ;;
10183  esac
10184fi
10185
10186if test "x$enable_dlopen" != xyes; then
10187  enable_dlopen=unknown
10188  enable_dlopen_self=unknown
10189  enable_dlopen_self_static=unknown
10190else
10191  lt_cv_dlopen=no
10192  lt_cv_dlopen_libs=
10193
10194  case $host_os in
10195  beos*)
10196    lt_cv_dlopen="load_add_on"
10197    lt_cv_dlopen_libs=
10198    lt_cv_dlopen_self=yes
10199    ;;
10200
10201  mingw* | pw32*)
10202    lt_cv_dlopen="LoadLibrary"
10203    lt_cv_dlopen_libs=
10204   ;;
10205
10206  cygwin*)
10207    lt_cv_dlopen="dlopen"
10208    lt_cv_dlopen_libs=
10209   ;;
10210
10211  darwin*)
10212  # if libdl is installed we need to link against it
10213    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10214echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10215if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10216  echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218  ac_check_lib_save_LIBS=$LIBS
10219LIBS="-ldl  $LIBS"
10220cat >conftest.$ac_ext <<_ACEOF
10221/* confdefs.h.  */
10222_ACEOF
10223cat confdefs.h >>conftest.$ac_ext
10224cat >>conftest.$ac_ext <<_ACEOF
10225/* end confdefs.h.  */
10226
10227/* Override any gcc2 internal prototype to avoid an error.  */
10228#ifdef __cplusplus
10229extern "C"
10230#endif
10231/* We use char because int might match the return type of a gcc2
10232   builtin and then its argument prototype would still apply.  */
10233char dlopen ();
10234int
10235main ()
10236{
10237dlopen ();
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244  (eval $ac_link) 2>conftest.er1
10245  ac_status=$?
10246  grep -v '^ *+' conftest.er1 >conftest.err
10247  rm -f conftest.er1
10248  cat conftest.err >&5
10249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250  (exit $ac_status); } &&
10251         { ac_try='test -z "$ac_c_werror_flag"
10252                         || test ! -s conftest.err'
10253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254  (eval $ac_try) 2>&5
10255  ac_status=$?
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); }; } &&
10258         { ac_try='test -s conftest$ac_exeext'
10259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260  (eval $ac_try) 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; }; then
10264  ac_cv_lib_dl_dlopen=yes
10265else
10266  echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269ac_cv_lib_dl_dlopen=no
10270fi
10271rm -f conftest.err conftest.$ac_objext \
10272      conftest$ac_exeext conftest.$ac_ext
10273LIBS=$ac_check_lib_save_LIBS
10274fi
10275echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10276echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10277if test $ac_cv_lib_dl_dlopen = yes; then
10278  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10279else
10280
10281    lt_cv_dlopen="dyld"
10282    lt_cv_dlopen_libs=
10283    lt_cv_dlopen_self=yes
10284
10285fi
10286
10287   ;;
10288
10289  *)
10290    echo "$as_me:$LINENO: checking for shl_load" >&5
10291echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10292if test "${ac_cv_func_shl_load+set}" = set; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295  cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h.  */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h.  */
10301/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10303#define shl_load innocuous_shl_load
10304
10305/* System header to define __stub macros and hopefully few prototypes,
10306    which can conflict with char shl_load (); below.
10307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308    <limits.h> exists even on freestanding compilers.  */
10309
10310#ifdef __STDC__
10311# include <limits.h>
10312#else
10313# include <assert.h>
10314#endif
10315
10316#undef shl_load
10317
10318/* Override any gcc2 internal prototype to avoid an error.  */
10319#ifdef __cplusplus
10320extern "C"
10321{
10322#endif
10323/* We use char because int might match the return type of a gcc2
10324   builtin and then its argument prototype would still apply.  */
10325char shl_load ();
10326/* The GNU C library defines this for functions which it implements
10327    to always fail with ENOSYS.  Some functions are actually named
10328    something starting with __ and the normal name is an alias.  */
10329#if defined (__stub_shl_load) || defined (__stub___shl_load)
10330choke me
10331#else
10332char (*f) () = shl_load;
10333#endif
10334#ifdef __cplusplus
10335}
10336#endif
10337
10338int
10339main ()
10340{
10341return f != shl_load;
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348  (eval $ac_link) 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } &&
10355         { ac_try='test -z "$ac_c_werror_flag"
10356                         || test ! -s conftest.err'
10357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358  (eval $ac_try) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; } &&
10362         { ac_try='test -s conftest$ac_exeext'
10363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364  (eval $ac_try) 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; }; then
10368  ac_cv_func_shl_load=yes
10369else
10370  echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373ac_cv_func_shl_load=no
10374fi
10375rm -f conftest.err conftest.$ac_objext \
10376      conftest$ac_exeext conftest.$ac_ext
10377fi
10378echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10379echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10380if test $ac_cv_func_shl_load = yes; then
10381  lt_cv_dlopen="shl_load"
10382else
10383  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10384echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10385if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10386  echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388  ac_check_lib_save_LIBS=$LIBS
10389LIBS="-ldld  $LIBS"
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h.  */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h.  */
10396
10397/* Override any gcc2 internal prototype to avoid an error.  */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401/* We use char because int might match the return type of a gcc2
10402   builtin and then its argument prototype would still apply.  */
10403char shl_load ();
10404int
10405main ()
10406{
10407shl_load ();
10408  ;
10409  return 0;
10410}
10411_ACEOF
10412rm -f conftest.$ac_objext conftest$ac_exeext
10413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414  (eval $ac_link) 2>conftest.er1
10415  ac_status=$?
10416  grep -v '^ *+' conftest.er1 >conftest.err
10417  rm -f conftest.er1
10418  cat conftest.err >&5
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); } &&
10421         { ac_try='test -z "$ac_c_werror_flag"
10422                         || test ! -s conftest.err'
10423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424  (eval $ac_try) 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); }; } &&
10428         { ac_try='test -s conftest$ac_exeext'
10429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430  (eval $ac_try) 2>&5
10431  ac_status=$?
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); }; }; then
10434  ac_cv_lib_dld_shl_load=yes
10435else
10436  echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
10439ac_cv_lib_dld_shl_load=no
10440fi
10441rm -f conftest.err conftest.$ac_objext \
10442      conftest$ac_exeext conftest.$ac_ext
10443LIBS=$ac_check_lib_save_LIBS
10444fi
10445echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10446echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10447if test $ac_cv_lib_dld_shl_load = yes; then
10448  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10449else
10450  echo "$as_me:$LINENO: checking for dlopen" >&5
10451echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10452if test "${ac_cv_func_dlopen+set}" = set; then
10453  echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455  cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h.  */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h.  */
10461/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10462   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10463#define dlopen innocuous_dlopen
10464
10465/* System header to define __stub macros and hopefully few prototypes,
10466    which can conflict with char dlopen (); below.
10467    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468    <limits.h> exists even on freestanding compilers.  */
10469
10470#ifdef __STDC__
10471# include <limits.h>
10472#else
10473# include <assert.h>
10474#endif
10475
10476#undef dlopen
10477
10478/* Override any gcc2 internal prototype to avoid an error.  */
10479#ifdef __cplusplus
10480extern "C"
10481{
10482#endif
10483/* We use char because int might match the return type of a gcc2
10484   builtin and then its argument prototype would still apply.  */
10485char dlopen ();
10486/* The GNU C library defines this for functions which it implements
10487    to always fail with ENOSYS.  Some functions are actually named
10488    something starting with __ and the normal name is an alias.  */
10489#if defined (__stub_dlopen) || defined (__stub___dlopen)
10490choke me
10491#else
10492char (*f) () = dlopen;
10493#endif
10494#ifdef __cplusplus
10495}
10496#endif
10497
10498int
10499main ()
10500{
10501return f != dlopen;
10502  ;
10503  return 0;
10504}
10505_ACEOF
10506rm -f conftest.$ac_objext conftest$ac_exeext
10507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508  (eval $ac_link) 2>conftest.er1
10509  ac_status=$?
10510  grep -v '^ *+' conftest.er1 >conftest.err
10511  rm -f conftest.er1
10512  cat conftest.err >&5
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); } &&
10515         { ac_try='test -z "$ac_c_werror_flag"
10516                         || test ! -s conftest.err'
10517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518  (eval $ac_try) 2>&5
10519  ac_status=$?
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); }; } &&
10522         { ac_try='test -s conftest$ac_exeext'
10523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524  (eval $ac_try) 2>&5
10525  ac_status=$?
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); }; }; then
10528  ac_cv_func_dlopen=yes
10529else
10530  echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533ac_cv_func_dlopen=no
10534fi
10535rm -f conftest.err conftest.$ac_objext \
10536      conftest$ac_exeext conftest.$ac_ext
10537fi
10538echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10539echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10540if test $ac_cv_func_dlopen = yes; then
10541  lt_cv_dlopen="dlopen"
10542else
10543  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10545if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10546  echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548  ac_check_lib_save_LIBS=$LIBS
10549LIBS="-ldl  $LIBS"
10550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h.  */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h.  */
10556
10557/* Override any gcc2 internal prototype to avoid an error.  */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561/* We use char because int might match the return type of a gcc2
10562   builtin and then its argument prototype would still apply.  */
10563char dlopen ();
10564int
10565main ()
10566{
10567dlopen ();
10568  ;
10569  return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext conftest$ac_exeext
10573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574  (eval $ac_link) 2>conftest.er1
10575  ac_status=$?
10576  grep -v '^ *+' conftest.er1 >conftest.err
10577  rm -f conftest.er1
10578  cat conftest.err >&5
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); } &&
10581         { ac_try='test -z "$ac_c_werror_flag"
10582                         || test ! -s conftest.err'
10583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584  (eval $ac_try) 2>&5
10585  ac_status=$?
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); }; } &&
10588         { ac_try='test -s conftest$ac_exeext'
10589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590  (eval $ac_try) 2>&5
10591  ac_status=$?
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); }; }; then
10594  ac_cv_lib_dl_dlopen=yes
10595else
10596  echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599ac_cv_lib_dl_dlopen=no
10600fi
10601rm -f conftest.err conftest.$ac_objext \
10602      conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10607if test $ac_cv_lib_dl_dlopen = yes; then
10608  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10609else
10610  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10611echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10612if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10613  echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615  ac_check_lib_save_LIBS=$LIBS
10616LIBS="-lsvld  $LIBS"
10617cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h.  */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h.  */
10623
10624/* Override any gcc2 internal prototype to avoid an error.  */
10625#ifdef __cplusplus
10626extern "C"
10627#endif
10628/* We use char because int might match the return type of a gcc2
10629   builtin and then its argument prototype would still apply.  */
10630char dlopen ();
10631int
10632main ()
10633{
10634dlopen ();
10635  ;
10636  return 0;
10637}
10638_ACEOF
10639rm -f conftest.$ac_objext conftest$ac_exeext
10640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641  (eval $ac_link) 2>conftest.er1
10642  ac_status=$?
10643  grep -v '^ *+' conftest.er1 >conftest.err
10644  rm -f conftest.er1
10645  cat conftest.err >&5
10646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647  (exit $ac_status); } &&
10648         { ac_try='test -z "$ac_c_werror_flag"
10649                         || test ! -s conftest.err'
10650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651  (eval $ac_try) 2>&5
10652  ac_status=$?
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); }; } &&
10655         { ac_try='test -s conftest$ac_exeext'
10656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657  (eval $ac_try) 2>&5
10658  ac_status=$?
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); }; }; then
10661  ac_cv_lib_svld_dlopen=yes
10662else
10663  echo "$as_me: failed program was:" >&5
10664sed 's/^/| /' conftest.$ac_ext >&5
10665
10666ac_cv_lib_svld_dlopen=no
10667fi
10668rm -f conftest.err conftest.$ac_objext \
10669      conftest$ac_exeext conftest.$ac_ext
10670LIBS=$ac_check_lib_save_LIBS
10671fi
10672echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10673echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10674if test $ac_cv_lib_svld_dlopen = yes; then
10675  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10676else
10677  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10678echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10679if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10680  echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682  ac_check_lib_save_LIBS=$LIBS
10683LIBS="-ldld  $LIBS"
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690
10691/* Override any gcc2 internal prototype to avoid an error.  */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695/* We use char because int might match the return type of a gcc2
10696   builtin and then its argument prototype would still apply.  */
10697</