source: stable/2.8/Cbc/configure @ 1970

Last change on this file since 1970 was 1970, checked in by tkr, 6 years ago

Re-running the autotools

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