source: trunk/Cbc/configure @ 1801

Last change on this file since 1801 was 1801, checked in by stefan, 7 years ago

add --with-pthreadsw32-lib/incdir options to make it easier to build against the windows port of pthread with cl/icl

  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-ositests-lib linker flags for using package OsiTests
1131  --with-ositests-incdir directory with header files for using package
1132                          OsiTests
1133  --with-ositests-datadir directory with data files for using package OsiTests
1134  --with-sample-lib linker flags for using package Sample
1135  --with-sample-incdir directory with header files for using package Sample
1136  --with-sample-datadir directory with data files for using package Sample
1137  --with-netlib-lib linker flags for using package Netlib
1138  --with-netlib-incdir directory with header files for using package Netlib
1139  --with-netlib-datadir directory with data files for using package Netlib
1140  --with-miplib3-lib linker flags for using package Miplib3
1141  --with-miplib3-incdir directory with header files for using package Miplib3
1142  --with-miplib3-datadir directory with data files for using package Miplib3
1143  --with-dylp-lib linker flags for using package DyLP
1144  --with-dylp-incdir directory with header files for using package DyLP
1145  --with-dylp-datadir directory with data files for using package DyLP
1146  --with-vol-lib linker flags for using package Vol
1147  --with-vol-incdir directory with header files for using package Vol
1148  --with-vol-datadir directory with data files for using package Vol
1149  --with-cpx-lib linker flags for using package Cpx
1150  --with-cpx-incdir directory with header files for using package Cpx
1151  --with-cpx-datadir directory with data files for using package Cpx
1152  --with-glpk-lib linker flags for using package Glpk
1153  --with-glpk-incdir directory with header files for using package Glpk
1154  --with-glpk-datadir directory with data files for using package Glpk
1155  --with-grb-lib linker flags for using package Grb
1156  --with-grb-incdir directory with header files for using package Grb
1157  --with-grb-datadir directory with data files for using package Grb
1158  --with-msk-lib linker flags for using package Msk
1159  --with-msk-incdir directory with header files for using package Msk
1160  --with-msk-datadir directory with data files for using package Msk
1161  --with-spx-lib linker flags for using package Spx
1162  --with-spx-incdir directory with header files for using package Spx
1163  --with-spx-datadir directory with data files for using package Spx
1164  --with-xpr-lib linker flags for using package Xpr
1165  --with-xpr-incdir directory with header files for using package Xpr
1166  --with-xpr-datadir directory with data files for using package Xpr
1167  --with-asl-lib linker flags for using package ASL
1168  --with-asl-incdir directory with header files for using package ASL
1169  --with-asl-datadir directory with data files for using package ASL
1170  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1171  --with-cbc-generic-solver
1172                          specify default solver for cbc-generic in lower case
1173                          letters (if not given, clp is assumed)
1174  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1175                          cl/icl builds only)
1176  --with-pthreadsw32-incdir
1177                          specify the path of the pthreads win32 header file
1178                          (for cl/icl builds only)
1179  --with-osicbc-default-solver
1180                          specify underlying solver for OsiCbc (default clp)
1181  --with-dot              use dot (from graphviz) when creating documentation
1182                          with doxygen if available; --without-dot to disable
1183
1184Some influential environment variables:
1185  CDEFS       Additional -D flags to be used when compiling C code.
1186  ADD_CFLAGS  Additional C compiler options
1187  DBG_CFLAGS  Debug C compiler options
1188  OPT_CFLAGS  Optimize C compiler options
1189  CC          C compiler command
1190  CFLAGS      C compiler flags
1191  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1192              nonstandard directory <lib dir>
1193  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1194              headers in a nonstandard directory <include dir>
1195  MPICC       C MPI Compiler
1196  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1197  ADD_CXXFLAGS
1198              Additional C++ compiler options
1199  DBG_CXXFLAGS
1200              Debug C++ compiler options
1201  OPT_CXXFLAGS
1202              Optimize C++ compiler options
1203  CXX         C++ compiler command
1204  CXXFLAGS    C++ compiler flags
1205  MPICXX      C++ MPI Compiler
1206  CPP         C preprocessor
1207  CXXCPP      C++ preprocessor
1208  F77         Fortran 77 compiler command
1209  FFLAGS      Fortran 77 compiler flags
1210  PKG_CONFIG  path to pkg-config utility
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <cbc@lists.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298           test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311Cbc configure trunk
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Eclipse Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by Cbc $as_me trunk, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409        ac_must_keep_next=false # Got value, back to normal.
1410      else
1411        case $ac_arg in
1412          *=* | --config-cache | -C | -disable-* | --disable-* \
1413          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415          | -with-* | --with-* | -without-* | --without-* | --x)
1416            case "$ac_configure_args0 " in
1417              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418            esac
1419            ;;
1420          -* ) ac_must_keep_next=true ;;
1421        esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488        eval ac_val=$`echo $ac_var`
1489        echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611        ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747
1748# As backup, we make sure we don't loose an FLIBS if it has been set
1749# by the user
1750save_FLIBS="$FLIBS"
1751
1752# A useful makefile conditional that is always false
1753
1754
1755if false; then
1756  ALWAYS_FALSE_TRUE=
1757  ALWAYS_FALSE_FALSE='#'
1758else
1759  ALWAYS_FALSE_TRUE='#'
1760  ALWAYS_FALSE_FALSE=
1761fi
1762
1763
1764# We set the following variable so that we know later in AC_COIN_FINALIZE
1765# that we are in a project main directory
1766coin_projectdir=yes
1767
1768# Set the project's version numbers
1769
1770
1771cat >>confdefs.h <<_ACEOF
1772#define CBC_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
1775
1776  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1777  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1778  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1779  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1780  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1781  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CBC_VERSION_MAJOR $coin_majorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CBC_VERSION_MINOR $coin_minorver
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CBC_VERSION_RELEASE $coin_releasever
1795_ACEOF
1796
1797
1798  # We use the following variable to have a string with the upper case
1799  # version of the project name
1800  COIN_PRJCT=CBC
1801
1802  # Set the project's SVN revision number. The complicated sed expression
1803  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1804  # as a single number.
1805  # Extract the first word of "svnversion", so it can be a program name with args.
1806set dummy svnversion; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_have_svnversion+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$have_svnversion"; then
1813  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_have_svnversion="yes"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1830fi
1831fi
1832have_svnversion=$ac_cv_prog_have_svnversion
1833if test -n "$have_svnversion"; then
1834  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1835echo "${ECHO_T}$have_svnversion" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  if test "x$have_svnversion" = xyes; then
1842
1843    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1844    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1845      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1846
1847cat >>confdefs.h <<_ACEOF
1848#define CBC_SVN_REV $CBC_SVN_REV
1849_ACEOF
1850
1851    fi
1852  fi
1853
1854
1855
1856# Capture libtool library version, if given.
1857
1858
1859
1860
1861# Check if user wants to produce debugging code
1862
1863echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1864echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1865
1866# Check whether --enable-debug or --disable-debug was given.
1867if test "${enable_debug+set}" = set; then
1868  enableval="$enable_debug"
1869  case "${enableval}" in
1870   yes) coin_debug_compile=true
1871        if test "${enable_shared+set}" = set; then :; else
1872          enable_shared=no
1873        fi
1874        ;;
1875   no)  coin_debug_compile=false
1876        ;;
1877   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1878echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1879   { (exit 1); exit 1; }; }
1880        ;;
1881esac
1882else
1883  coin_debug_compile=false
1884fi;
1885
1886# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1887if test "${enable_debug_cbc+set}" = set; then
1888  enableval="$enable_debug_cbc"
1889  case "${enableval}" in
1890    yes) coin_debug_compile=true
1891         ;;
1892    no)  coin_debug_compile=false
1893         ;;
1894    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1895echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1896   { (exit 1); exit 1; }; }
1897         ;;
1898 esac
1899else
1900  :
1901fi;
1902
1903 # m4_ifvaln([Cbc],
1904
1905if test $coin_debug_compile = true; then
1906  echo "$as_me:$LINENO: result: yes" >&5
1907echo "${ECHO_T}yes" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913
1914# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1915if test "${with_cbc_verbosity+set}" = set; then
1916  withval="$with_cbc_verbosity"
1917  if test "$withval" = yes; then
1918                withval=1
1919              fi
1920              coin_cbc_verbosity=$withval
1921else
1922  coin_cbc_verbosity=0
1923fi;
1924
1925cat >>confdefs.h <<_ACEOF
1926#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1927_ACEOF
1928
1929
1930
1931# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1932if test "${with_cbc_checklevel+set}" = set; then
1933  withval="$with_cbc_checklevel"
1934  if test "$withval" = yes; then
1935                withval=1
1936              fi
1937              coin_cbc_checklevel=$withval
1938else
1939  coin_cbc_checklevel=0
1940fi;
1941
1942cat >>confdefs.h <<_ACEOF
1943#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1944_ACEOF
1945
1946
1947 # m4_ifvaln([Cbc],
1948
1949
1950
1951# Get the name of the C++ compiler and appropriate compiler options
1952case $build in
1953  *-mingw*)
1954    if test "${LD+set}" = set; then :; else
1955      LD=link
1956    fi
1957    ;;
1958 esac
1959 case $enable_doscompile in
1960   msvc)
1961     if test "x${LD+set}" = xset; then :; else
1962       LD=link
1963     fi
1964     ;;
1965 esac
1966
1967
1968 # Check whether --enable-doscompile or --disable-doscompile was given.
1969if test "${enable_doscompile+set}" = set; then
1970  enableval="$enable_doscompile"
1971  if test "$enable_doscompile" != no; then
1972     case $build in
1973       *-cygwin* | *-mingw*) ;;
1974       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1975echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1976   { (exit 1); exit 1; }; } ;;
1977     esac
1978   fi
1979else
1980  enable_doscompile=no
1981fi;
1982 case "$enable_doscompile" in
1983   mingw)
1984     case $build in
1985       *-mingw*) enable_doscompile=no ;;
1986     esac
1987     ;;
1988   msvc|no) ;;
1989   yes) enable_doscompile=mingw ;;
1990   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1991                    Try configure --help=recursive." >&5
1992echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1993                    Try configure --help=recursive." >&2;}
1994   { (exit 1); exit 1; }; }
1995      ;;
1996  esac
1997  if test "$enable_doscompile" != no ; then
1998    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1999echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
2000  fi
2001
2002
2003
2004
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012# For consistency, we set the C compiler to the same value of the C++
2013# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2014if test x"$CXX" != x; then
2015  case "$CXX" in
2016    clang* ) ;;
2017    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2018      if test x"$CC" = x; then
2019        CC="$CXX"
2020        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2021echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2022      fi
2023      ;;
2024  esac
2025fi
2026
2027
2028
2029
2030
2031
2032coin_has_cc=yes
2033
2034save_cflags="$CFLAGS"
2035
2036# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2037# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2038# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2039# compiler. In this case, put cc after gcc.
2040
2041case $build in
2042  *-cygwin* | *-mingw*)
2043             if test "$enable_doscompile" = msvc ; then
2044               comps="icl cl"
2045             else
2046               comps="gcc cl"
2047             fi ;;
2048  *-*-solaris*)
2049             # Extract the first word of "cc", so it can be a program name with args.
2050set dummy cc; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$sol_cc_compiler"; then
2057  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2058else
2059  ac_prog_rejected=no
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2068       ac_prog_rejected=yes
2069       continue
2070     fi
2071    ac_cv_prog_sol_cc_compiler="cc"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078if test $ac_prog_rejected = yes; then
2079  # We found a bogon in the path, so make sure we never use it.
2080  set dummy $ac_cv_prog_sol_cc_compiler
2081  shift
2082  if test $# != 0; then
2083    # We chose a different compiler from the bogus one.
2084    # However, it has the same basename, so the bogon will be chosen
2085    # first if we set sol_cc_compiler to just the basename; use the full file name.
2086    shift
2087    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2088  fi
2089fi
2090fi
2091fi
2092sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2093if test -n "$sol_cc_compiler"; then
2094  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2095echo "${ECHO_T}$sol_cc_compiler" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101             if test "$sol_cc_compiler" = "cc" ; then
2102               comps="cc xlc gcc pgcc icc"
2103             else
2104               comps="xlc gcc pgcc icc cc"
2105             fi
2106             ;;
2107  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2108  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2109  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2110esac
2111
2112# We delete the cached value, since the test might not have been
2113# performed with our choice of compilers earlier
2114$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2115# AC_MSG_NOTICE([C compiler candidates: $comps])
2116ac_ext=c
2117ac_cpp='$CPP $CPPFLAGS'
2118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121if test -n "$ac_tool_prefix"; then
2122  for ac_prog in $comps
2123  do
2124    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_CC+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  if test -n "$CC"; then
2132  ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139  for ac_exec_ext in '' $ac_executable_extensions; do
2140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143    break 2
2144  fi
2145done
2146done
2147
2148fi
2149fi
2150CC=$ac_cv_prog_CC
2151if test -n "$CC"; then
2152  echo "$as_me:$LINENO: result: $CC" >&5
2153echo "${ECHO_T}$CC" >&6
2154else
2155  echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
2157fi
2158
2159    test -n "$CC" && break
2160  done
2161fi
2162if test -z "$CC"; then
2163  ac_ct_CC=$CC
2164  for ac_prog in $comps
2165do
2166  # Extract the first word of "$ac_prog", so it can be a program name with args.
2167set dummy $ac_prog; ac_word=$2
2168echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  if test -n "$ac_ct_CC"; then
2174  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175else
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179  IFS=$as_save_IFS
2180  test -z "$as_dir" && as_dir=.
2181  for ac_exec_ext in '' $ac_executable_extensions; do
2182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183    ac_cv_prog_ac_ct_CC="$ac_prog"
2184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185    break 2
2186  fi
2187done
2188done
2189
2190fi
2191fi
2192ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193if test -n "$ac_ct_CC"; then
2194  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195echo "${ECHO_T}$ac_ct_CC" >&6
2196else
2197  echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6
2199fi
2200
2201  test -n "$ac_ct_CC" && break
2202done
2203
2204  CC=$ac_ct_CC
2205fi
2206
2207
2208test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&2;}
2212   { (exit 1); exit 1; }; }
2213
2214# Provide some information about the compiler.
2215echo "$as_me:$LINENO:" \
2216     "checking for C compiler version" >&5
2217ac_compiler=`set X $ac_compile; echo $2`
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219  (eval $ac_compiler --version </dev/null >&5) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224  (eval $ac_compiler -v </dev/null >&5) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }
2228{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229  (eval $ac_compiler -V </dev/null >&5) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }
2233
2234cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240
2241int
2242main ()
2243{
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249ac_clean_files_save=$ac_clean_files
2250ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251# Try to create an executable without -o first, disregard a.out.
2252# It will help us diagnose broken compilers, and finding out an intuition
2253# of exeext.
2254echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258  (eval $ac_link_default) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; then
2262  # Find the output, starting from the most likely.  This scheme is
2263# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2264# resort.
2265
2266# Be careful to initialize this variable, since it used to be cached.
2267# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2268ac_cv_exeext=
2269# b.out is created by i960 compilers.
2270for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2271do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2275        ;;
2276    conftest.$ac_ext )
2277        # This is the source file.
2278        ;;
2279    [ab].out )
2280        # We found the default executable, but exeext='' is most
2281        # certainly right.
2282        break;;
2283    *.* )
2284        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285        # FIXME: I believe we export ac_cv_exeext for Libtool,
2286        # but it would be cool to find out if it's true.  Does anybody
2287        # maintain Libtool? --akim.
2288        export ac_cv_exeext
2289        break;;
2290    * )
2291        break;;
2292  esac
2293done
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: C compiler cannot create executables
2301See \`config.log' for more details." >&2;}
2302   { (exit 77); exit 77; }; }
2303fi
2304
2305ac_exeext=$ac_cv_exeext
2306echo "$as_me:$LINENO: result: $ac_file" >&5
2307echo "${ECHO_T}$ac_file" >&6
2308
2309# Check the compiler produces executables we can run.  If not, either
2310# the compiler is broken, or we cross compile.
2311echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314# If not cross compiling, check that we can run a simple program.
2315if test "$cross_compiling" != yes; then
2316  if { ac_try='./$ac_file'
2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318  (eval $ac_try) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; }; then
2322    cross_compiling=no
2323  else
2324    if test "$cross_compiling" = maybe; then
2325        cross_compiling=yes
2326    else
2327        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328If you meant to cross compile, use \`--host'.
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot run C compiled programs.
2331If you meant to cross compile, use \`--host'.
2332See \`config.log' for more details." >&2;}
2333   { (exit 1); exit 1; }; }
2334    fi
2335  fi
2336fi
2337echo "$as_me:$LINENO: result: yes" >&5
2338echo "${ECHO_T}yes" >&6
2339
2340rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341ac_clean_files=$ac_clean_files_save
2342# Check the compiler produces executables we can run.  If not, either
2343# the compiler is broken, or we cross compile.
2344echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347echo "${ECHO_T}$cross_compiling" >&6
2348
2349echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352  (eval $ac_link) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; then
2356  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2358# work properly (i.e., refer to `conftest.exe'), while it won't with
2359# `rm'.
2360for ac_file in conftest.exe conftest conftest.*; do
2361  test -f "$ac_file" || continue
2362  case $ac_file in
2363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365          export ac_cv_exeext
2366          break;;
2367    * ) break;;
2368  esac
2369done
2370else
2371  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374See \`config.log' for more details." >&2;}
2375   { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest$ac_cv_exeext
2379echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380echo "${ECHO_T}$ac_cv_exeext" >&6
2381
2382rm -f conftest.$ac_ext
2383EXEEXT=$ac_cv_exeext
2384ac_exeext=$EXEEXT
2385echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387if test "${ac_cv_objext+set}" = set; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396
2397int
2398main ()
2399{
2400
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405rm -f conftest.o conftest.obj
2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407  (eval $ac_compile) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; then
2411  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2412  case $ac_file in
2413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2415       break;;
2416  esac
2417done
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425See \`config.log' for more details." >&2;}
2426   { (exit 1); exit 1; }; }
2427fi
2428
2429rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432echo "${ECHO_T}$ac_cv_objext" >&6
2433OBJEXT=$ac_cv_objext
2434ac_objext=$OBJEXT
2435echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h.  */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h.  */
2446
2447int
2448main ()
2449{
2450#ifndef __GNUC__
2451       choke me
2452#endif
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  ac_compiler_gnu=yes
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_compiler_gnu=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488ac_cv_c_compiler_gnu=$ac_compiler_gnu
2489
2490fi
2491echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2492echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2493GCC=`test $ac_compiler_gnu = yes && echo yes`
2494ac_test_CFLAGS=${CFLAGS+set}
2495ac_save_CFLAGS=$CFLAGS
2496CFLAGS="-g"
2497echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2498echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_g+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508
2509int
2510main ()
2511{
2512
2513  ;
2514  return 0;
2515}
2516_ACEOF
2517rm -f conftest.$ac_objext
2518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519  (eval $ac_compile) 2>conftest.er1
2520  ac_status=$?
2521  grep -v '^ *+' conftest.er1 >conftest.err
2522  rm -f conftest.er1
2523  cat conftest.err >&5
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); } &&
2526         { ac_try='test -z "$ac_c_werror_flag"
2527                         || test ! -s conftest.err'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; } &&
2533         { ac_try='test -s conftest.$ac_objext'
2534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535  (eval $ac_try) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; }; then
2539  ac_cv_prog_cc_g=yes
2540else
2541  echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544ac_cv_prog_cc_g=no
2545fi
2546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2549echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2550if test "$ac_test_CFLAGS" = set; then
2551  CFLAGS=$ac_save_CFLAGS
2552elif test $ac_cv_prog_cc_g = yes; then
2553  if test "$GCC" = yes; then
2554    CFLAGS="-g -O2"
2555  else
2556    CFLAGS="-g"
2557  fi
2558else
2559  if test "$GCC" = yes; then
2560    CFLAGS="-O2"
2561  else
2562    CFLAGS=
2563  fi
2564fi
2565echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2566echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2567if test "${ac_cv_prog_cc_stdc+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  ac_cv_prog_cc_stdc=no
2571ac_save_CC=$CC
2572cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578#include <stdarg.h>
2579#include <stdio.h>
2580#include <sys/types.h>
2581#include <sys/stat.h>
2582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2583struct buf { int x; };
2584FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585static char *e (p, i)
2586     char **p;
2587     int i;
2588{
2589  return p[i];
2590}
2591static char *f (char * (*g) (char **, int), char **p, ...)
2592{
2593  char *s;
2594  va_list v;
2595  va_start (v,p);
2596  s = g (p, va_arg (v,int));
2597  va_end (v);
2598  return s;
2599}
2600
2601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2602   function prototypes and stuff, but not '\xHH' hex character constants.
2603   These don't provoke an error unfortunately, instead are silently treated
2604   as 'x'.  The following induces an error, until -std1 is added to get
2605   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2606   array size at least.  It's necessary to write '\x00'==0 to get something
2607   that's true only with -std1.  */
2608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2609
2610int test (int i, double x);
2611struct s1 {int (*f) (int a);};
2612struct s2 {int (*f) (double a);};
2613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614int argc;
2615char **argv;
2616int
2617main ()
2618{
2619return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624# Don't try gcc -ansi; that turns off useful extensions and
2625# breaks some systems' header files.
2626# AIX                   -qlanglvl=ansi
2627# Ultrix and OSF/1      -std1
2628# HP-UX 10.20 and later -Ae
2629# HP-UX older versions  -Aa -D_HPUX_SOURCE
2630# SVR4                  -Xc -D__EXTENSIONS__
2631for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2632do
2633  CC="$ac_save_CC $ac_arg"
2634  rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636  (eval $ac_compile) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  ac_cv_prog_cc_stdc=$ac_arg
2657break
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.err conftest.$ac_objext
2664done
2665rm -f conftest.$ac_ext conftest.$ac_objext
2666CC=$ac_save_CC
2667
2668fi
2669
2670case "x$ac_cv_prog_cc_stdc" in
2671  x|xno)
2672    echo "$as_me:$LINENO: result: none needed" >&5
2673echo "${ECHO_T}none needed" >&6 ;;
2674  *)
2675    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677    CC="$CC $ac_cv_prog_cc_stdc" ;;
2678esac
2679
2680# Some people use a C++ compiler to compile C.  Since we use `exit',
2681# in C++ we need to declare it.  In case someone uses the same compiler
2682# for both compiling C and C++ we need to have the C++ compiler decide
2683# the declaration of exit, since it's the most demanding environment.
2684cat >conftest.$ac_ext <<_ACEOF
2685#ifndef __cplusplus
2686  choke me
2687#endif
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691  (eval $ac_compile) 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } &&
2698         { ac_try='test -z "$ac_c_werror_flag"
2699                         || test ! -s conftest.err'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; } &&
2705         { ac_try='test -s conftest.$ac_objext'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; }; then
2711  for ac_declaration in \
2712   '' \
2713   'extern "C" void std::exit (int) throw (); using std::exit;' \
2714   'extern "C" void std::exit (int); using std::exit;' \
2715   'extern "C" void exit (int) throw ();' \
2716   'extern "C" void exit (int);' \
2717   'void exit (int);'
2718do
2719  cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h.  */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h.  */
2725$ac_declaration
2726#include <stdlib.h>
2727int
2728main ()
2729{
2730exit (42);
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737  (eval $ac_compile) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } &&
2744         { ac_try='test -z "$ac_c_werror_flag"
2745                         || test ! -s conftest.err'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751         { ac_try='test -s conftest.$ac_objext'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; }; then
2757  :
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762continue
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765  cat >conftest.$ac_ext <<_ACEOF
2766/* confdefs.h.  */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h.  */
2771$ac_declaration
2772int
2773main ()
2774{
2775exit (42);
2776  ;
2777  return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782  (eval $ac_compile) 2>conftest.er1
2783  ac_status=$?
2784  grep -v '^ *+' conftest.er1 >conftest.err
2785  rm -f conftest.er1
2786  cat conftest.err >&5
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); } &&
2789         { ac_try='test -z "$ac_c_werror_flag"
2790                         || test ! -s conftest.err'
2791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792  (eval $ac_try) 2>&5
2793  ac_status=$?
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); }; } &&
2796         { ac_try='test -s conftest.$ac_objext'
2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798  (eval $ac_try) 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; }; then
2802  break
2803else
2804  echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807fi
2808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809done
2810rm -f conftest*
2811if test -n "$ac_declaration"; then
2812  echo '#ifdef __cplusplus' >>confdefs.h
2813  echo $ac_declaration      >>confdefs.h
2814  echo '#endif'             >>confdefs.h
2815fi
2816
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828
2829if test -z "$CC" ; then
2830  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2831echo "$as_me: error: Failed to find a C compiler!" >&2;}
2832   { (exit 1); exit 1; }; }
2833fi
2834# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2835case "$CC" in
2836  clang* ) ;;
2837  cl* | */cl* | CL* | */CL* )
2838    if test "$ac_cv_prog_cc_g" = yes ; then
2839      ac_cv_prog_cc_g=no
2840      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2841echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2842    fi ;;
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        case $enable_doscompile in
2897          mingw)
2898            CFLAGS="-mno-cygwin"
2899            cat >conftest.$ac_ext <<_ACEOF
2900/* confdefs.h.  */
2901_ACEOF
2902cat confdefs.h >>conftest.$ac_ext
2903cat >>conftest.$ac_ext <<_ACEOF
2904/* end confdefs.h.  */
2905
2906int
2907main ()
2908{
2909int i=0; i++;
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914rm -f conftest.$ac_objext conftest$ac_exeext
2915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2916  (eval $ac_link) 2>conftest.er1
2917  ac_status=$?
2918  grep -v '^ *+' conftest.er1 >conftest.err
2919  rm -f conftest.er1
2920  cat conftest.err >&5
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); } &&
2923         { ac_try='test -z "$ac_c_werror_flag"
2924                         || test ! -s conftest.err'
2925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926  (eval $ac_try) 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; } &&
2930         { ac_try='test -s conftest$ac_exeext'
2931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932  (eval $ac_try) 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }; }; then
2936  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2937else
2938  echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941fi
2942rm -f conftest.err conftest.$ac_objext \
2943      conftest$ac_exeext conftest.$ac_ext
2944            CFLAGS=
2945          ;;
2946        esac
2947    esac
2948  fi
2949  if test -z "$coin_opt_cflags"; then
2950    case $build in
2951      *-cygwin* | *-mingw*)
2952        case "$CC" in
2953          clang* ) ;;
2954          cl* | */cl* | CL* | */CL*)
2955            coin_opt_cflags='-MT -O2'
2956            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2957            coin_dbg_cflags='-MTd'
2958            ;;
2959          icl* | */icl* | ICL* | */ICL*)
2960            coin_opt_cflags='-MT -Ox'
2961            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2962            coin_dbg_cflags='-MTd -debug'
2963            ;;
2964        esac
2965        ;;
2966      *-linux-*)
2967        case "$CC" in
2968          icc* | */icc*)
2969            coin_opt_cflags="-O3 -ip -mp1"
2970            coin_add_cflags=""
2971            coin_dbg_cflags="-g"
2972            # Check if -i_dynamic is necessary (for new glibc library)
2973            CFLAGS=
2974            cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984int i=0; i++;
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext conftest$ac_exeext
2990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991  (eval $ac_link) 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } &&
2998         { ac_try='test -z "$ac_c_werror_flag"
2999                         || test ! -s conftest.err'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; } &&
3005         { ac_try='test -s conftest$ac_exeext'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; }; then
3011  :
3012else
3013  echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016coin_add_cflags="-i_dynamic $coin_add_cflags"
3017fi
3018rm -f conftest.err conftest.$ac_objext \
3019      conftest$ac_exeext conftest.$ac_ext
3020            ;;
3021          pgcc* | */pgcc*)
3022            coin_opt_cflags="-fast"
3023            coin_add_cflags="-Kieee -pc 64"
3024            coin_dbg_cflags="-g"
3025            ;;
3026        esac
3027        ;;
3028      *-ibm-*)
3029        case "$CC" in
3030          xlc* | */xlc* | mpxlc* | */mpxlc*)
3031            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3032            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3033            coin_dbg_cflags="-g"
3034          ;;
3035        esac
3036        ;;
3037      *-hp-*)
3038        coin_opt_cflags="-O"
3039        coin_add_cflags="-Ae"
3040        coin_dbg_cflags="-g"
3041        ;;
3042      *-*-solaris*)
3043        coin_opt_cflags="-xO4"
3044        coin_dbg_cflags="-g"
3045        ;;
3046      *-sgi-*)
3047        coin_opt_cflags="-O -OPT:Olimit=0"
3048        coin_dbg_cflags="-g"
3049        ;;
3050    esac
3051  fi
3052
3053  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3054    coin_dbg_cflags="-g"
3055  fi
3056
3057  if test -z "$coin_opt_cflags"; then
3058    # Try if -O option works if nothing else is set
3059    CFLAGS="-O"
3060    cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h.  */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h.  */
3066
3067int
3068main ()
3069{
3070int i=0; i++;
3071  ;
3072  return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext conftest$ac_exeext
3076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077  (eval $ac_link) 2>conftest.er1
3078  ac_status=$?
3079  grep -v '^ *+' conftest.er1 >conftest.err
3080  rm -f conftest.er1
3081  cat conftest.err >&5
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084         { ac_try='test -z "$ac_c_werror_flag"
3085                         || test ! -s conftest.err'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; } &&
3091         { ac_try='test -s conftest$ac_exeext'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; }; then
3097  coin_opt_cflags="-O"
3098else
3099  echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102fi
3103rm -f conftest.err conftest.$ac_objext \
3104      conftest$ac_exeext conftest.$ac_ext
3105  fi
3106
3107  # if PM doesn't want the warning messages, take them out
3108  if test x"$coin_skip_warn_cflags" = xyes; then
3109    coin_warn_cflags=
3110  fi
3111
3112  if test x${DBG_CFLAGS+set} != xset; then
3113    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3114  fi
3115  if test x${OPT_CFLAGS+set} != xset; then
3116    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3117  fi
3118
3119  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3120  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3121
3122  if test "$coin_debug_compile" = "true"; then
3123    CFLAGS="$DBG_CFLAGS"
3124  else
3125    CFLAGS="$OPT_CFLAGS"
3126  fi
3127else
3128  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3129  if test x${DBG_CFLAGS+set} != xset; then
3130    DBG_CFLAGS="$CFLAGS"
3131  fi
3132  if test x${OPT_CFLAGS+set} != xset; then
3133    OPT_CFLAGS="$CFLAGS"
3134  fi
3135fi
3136
3137# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3138
3139case "$CFLAGS" in
3140  *-mno-cygwin*)
3141    if test x${CPPFLAGS+set} != xset ; then
3142      CPPFLAGS="-mno-cygwin"
3143    else
3144      case "$CPPFLAGS" in
3145        *-mno-cygwin*)
3146          ;;
3147        *)
3148          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3149          ;;
3150      esac
3151    fi ;;
3152esac
3153
3154# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3155if test x$COIN_PRJCT != x; then
3156  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3157fi
3158
3159# Try if CFLAGS works
3160save_CFLAGS="$CFLAGS"
3161cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167
3168int
3169main ()
3170{
3171int i=0; i++;
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext conftest$ac_exeext
3177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178  (eval $ac_link) 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185         { ac_try='test -z "$ac_c_werror_flag"
3186                         || test ! -s conftest.err'
3187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188  (eval $ac_try) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; } &&
3192         { ac_try='test -s conftest$ac_exeext'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; }; then
3198  :
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203CFLAGS=
3204fi
3205rm -f conftest.err conftest.$ac_objext \
3206      conftest$ac_exeext conftest.$ac_ext
3207if test -z "$CFLAGS"; then
3208  { 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
3209echo "$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;}
3210  CFLAGS='-O'
3211  cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h.  */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221int i=0; i++;
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext conftest$ac_exeext
3227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228  (eval $ac_link) 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235         { ac_try='test -z "$ac_c_werror_flag"
3236                         || test ! -s conftest.err'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; } &&
3242         { ac_try='test -s conftest$ac_exeext'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; }; then
3248  :
3249else
3250  echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253CFLAGS=
3254fi
3255rm -f conftest.err conftest.$ac_objext \
3256      conftest$ac_exeext conftest.$ac_ext
3257  if test -z "$CFLAGS"; then
3258    { 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
3259echo "$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;}
3260  fi
3261fi
3262
3263{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3264echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3265
3266
3267if test x"$MPICC" = x; then :; else
3268  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3269echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3270  CC="$MPICC"
3271fi
3272
3273# Correct the LD variable if we are using the MS or Intel-windows compiler
3274case "$CC" in
3275  clang* ) ;;
3276  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3277    case $build in
3278  *-mingw*)
3279    if test "${LD+set}" = set; then :; else
3280      LD=link
3281    fi
3282    ;;
3283 esac
3284 case $enable_doscompile in
3285   msvc)
3286     if test "x${LD+set}" = xset; then :; else
3287       LD=link
3288     fi
3289     ;;
3290 esac
3291
3292    ;;
3293esac
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301
3302
3303 #Let's try if that overcomes configuration problem with VC++ 6.0
3304
3305ac_ext=cc
3306ac_cpp='$CXXCPP $CPPFLAGS'
3307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3310
3311
3312
3313
3314
3315
3316
3317coin_has_cxx=yes
3318
3319save_cxxflags="$CXXFLAGS"
3320# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3321case $build in
3322  *-cygwin* | *-mingw*)
3323             if test "$enable_doscompile" = msvc ; then
3324               comps="icl cl"
3325             else
3326               comps="g++ cl"
3327             fi ;;
3328  *-*-solaris*)
3329             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3330  *-darwin*) comps="g++ c++ CC" ;;
3331  *-linux-gnu*)
3332             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3333          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3334esac
3335
3336# We delete the cached value, since the test might not have been
3337# performed with our choice of compilers earlier
3338$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3339# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3340ac_ext=cc
3341ac_cpp='$CXXCPP $CPPFLAGS'
3342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3345if test -n "$ac_tool_prefix"; then
3346  for ac_prog in $CCC $comps
3347  do
3348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349set dummy $ac_tool_prefix$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_CXX+set}" = set; then
3353  echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355  if test -n "$CXX"; then
3356  ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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
3374CXX=$ac_cv_prog_CXX
3375if test -n "$CXX"; then
3376  echo "$as_me:$LINENO: result: $CXX" >&5
3377echo "${ECHO_T}$CXX" >&6
3378else
3379  echo "$as_me:$LINENO: result: no" >&5
3380echo "${ECHO_T}no" >&6
3381fi
3382
3383    test -n "$CXX" && break
3384  done
3385fi
3386if test -z "$CXX"; then
3387  ac_ct_CXX=$CXX
3388  for ac_prog in $CCC $comps
3389do
3390  # Extract the first word of "$ac_prog", so it can be a program name with args.
3391set dummy $ac_prog; ac_word=$2
3392echo "$as_me:$LINENO: checking for $ac_word" >&5
3393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  if test -n "$ac_ct_CXX"; then
3398  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403  IFS=$as_save_IFS
3404  test -z "$as_dir" && as_dir=.
3405  for ac_exec_ext in '' $ac_executable_extensions; do
3406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407    ac_cv_prog_ac_ct_CXX="$ac_prog"
3408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412done
3413
3414fi
3415fi
3416ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3417if test -n "$ac_ct_CXX"; then
3418  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3419echo "${ECHO_T}$ac_ct_CXX" >&6
3420else
3421  echo "$as_me:$LINENO: result: no" >&5
3422echo "${ECHO_T}no" >&6
3423fi
3424
3425  test -n "$ac_ct_CXX" && break
3426done
3427test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3428
3429  CXX=$ac_ct_CXX
3430fi
3431
3432
3433# Provide some information about the compiler.
3434echo "$as_me:$LINENO:" \
3435     "checking for C++ compiler version" >&5
3436ac_compiler=`set X $ac_compile; echo $2`
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3438  (eval $ac_compiler --version </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3443  (eval $ac_compiler -v </dev/null >&5) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }
3447{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3448  (eval $ac_compiler -V </dev/null >&5) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }
3452
3453echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3454echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h.  */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h.  */
3464
3465int
3466main ()
3467{
3468#ifndef __GNUC__
3469       choke me
3470#endif
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_cxx_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_compiler_gnu=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_compiler_gnu=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3507
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3510echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3511GXX=`test $ac_compiler_gnu = yes && echo yes`
3512ac_test_CXXFLAGS=${CXXFLAGS+set}
3513ac_save_CXXFLAGS=$CXXFLAGS
3514CXXFLAGS="-g"
3515echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3516echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3517if test "${ac_cv_prog_cxx_g+set}" = set; then
3518  echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520  cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h.  */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537  (eval $ac_compile) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } &&
3544         { ac_try='test -z "$ac_cxx_werror_flag"
3545                         || test ! -s conftest.err'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; } &&
3551         { ac_try='test -s conftest.$ac_objext'
3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553  (eval $ac_try) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }; }; then
3557  ac_cv_prog_cxx_g=yes
3558else
3559  echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562ac_cv_prog_cxx_g=no
3563fi
3564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3567echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3568if test "$ac_test_CXXFLAGS" = set; then
3569  CXXFLAGS=$ac_save_CXXFLAGS
3570elif test $ac_cv_prog_cxx_g = yes; then
3571  if test "$GXX" = yes; then
3572    CXXFLAGS="-g -O2"
3573  else
3574    CXXFLAGS="-g"
3575  fi
3576else
3577  if test "$GXX" = yes; then
3578    CXXFLAGS="-O2"
3579  else
3580    CXXFLAGS=
3581  fi
3582fi
3583for ac_declaration in \
3584   '' \
3585   'extern "C" void std::exit (int) throw (); using std::exit;' \
3586   'extern "C" void std::exit (int); using std::exit;' \
3587   'extern "C" void exit (int) throw ();' \
3588   'extern "C" void exit (int);' \
3589   'void exit (int);'
3590do
3591  cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597$ac_declaration
3598#include <stdlib.h>
3599int
3600main ()
3601{
3602exit (42);
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609  (eval $ac_compile) 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } &&
3616         { ac_try='test -z "$ac_cxx_werror_flag"
3617                         || test ! -s conftest.err'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; } &&
3623         { ac_try='test -s conftest.$ac_objext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  :
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634continue
3635fi
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637  cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h.  */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h.  */
3643$ac_declaration
3644int
3645main ()
3646{
3647exit (42);
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661         { ac_try='test -z "$ac_cxx_werror_flag"
3662                         || test ! -s conftest.err'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; } &&
3668         { ac_try='test -s conftest.$ac_objext'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; }; then
3674  break
3675else
3676  echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679fi
3680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681done
3682rm -f conftest*
3683if test -n "$ac_declaration"; then
3684  echo '#ifdef __cplusplus' >>confdefs.h
3685  echo $ac_declaration      >>confdefs.h
3686  echo '#endif'             >>confdefs.h
3687fi
3688
3689ac_ext=cc
3690ac_cpp='$CXXCPP $CPPFLAGS'
3691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694
3695
3696#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3697#thus, we test here whether $CXX is actually working
3698ac_ext=cc
3699ac_cpp='$CXXCPP $CPPFLAGS'
3700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3703
3704echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3705echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3706cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h.  */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716int i=0;
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723  (eval $ac_compile) 2>conftest.er1
3724  ac_status=$?
3725  grep -v '^ *+' conftest.er1 >conftest.err
3726  rm -f conftest.er1
3727  cat conftest.err >&5
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); } &&
3730         { ac_try='test -z "$ac_cxx_werror_flag"
3731                         || test ! -s conftest.err'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; } &&
3737         { ac_try='test -s conftest.$ac_objext'
3738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739  (eval $ac_try) 2>&5
3740  ac_status=$?
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); }; }; then
3743  echo "$as_me:$LINENO: result: yes" >&5
3744echo "${ECHO_T}yes" >&6
3745else
3746  echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3752echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3753   { (exit 1); exit 1; }; }
3754
3755fi
3756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757ac_ext=cc
3758ac_cpp='$CXXCPP $CPPFLAGS'
3759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3762
3763
3764coin_cxx_is_cl=false
3765# It seems that we need to cleanup something here for the Windows
3766case "$CXX" in
3767  clang* ) ;;
3768  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3769    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3770    mv confdefs.hh confdefs.h
3771    coin_cxx_is_cl=true
3772    ;;
3773esac
3774
3775# add automake conditional so we can recognize cl compiler in makefile
3776
3777
3778if test $coin_cxx_is_cl = true; then
3779  COIN_CXX_IS_CL_TRUE=
3780  COIN_CXX_IS_CL_FALSE='#'
3781else
3782  COIN_CXX_IS_CL_TRUE='#'
3783  COIN_CXX_IS_CL_FALSE=
3784fi
3785
3786
3787# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3788case "$CXX" in
3789  clang* ) ;;
3790  cl* | */cl* | CL* | */CL* )
3791    if test "$ac_cv_prog_cxx_g" = yes ; then
3792      ac_cv_prog_cxx_g=no
3793      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3794echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3795    fi ;;
3796esac
3797CXXFLAGS="$save_cxxflags"
3798
3799# Check if a project specific CXXFLAGS variable has been set
3800if test x$COIN_PRJCT != x; then
3801  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3802  if test x$coin_tmp = xset; then
3803    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3804  fi
3805fi
3806
3807if test x"$CXXFLAGS" = x; then
3808
3809# ToDo decide whether we want -DNDEBUG for optimization
3810  coin_add_cxxflags=
3811  coin_opt_cxxflags=
3812  coin_dbg_cxxflags=
3813  coin_warn_cxxflags=
3814
3815  if test "$GXX" = "yes"; then
3816    case "$CXX" in
3817      icpc* | */icpc*)
3818        ;;
3819      *)
3820# ToDo decide about unroll-loops
3821        coin_opt_cxxflags="-O3"
3822        coin_add_cxxflags="-pipe"
3823        coin_dbg_cxxflags="-g -O0"
3824        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3825        case $build in
3826          *-darwin*)
3827            ;;
3828          *)
3829            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3830            ;;
3831        esac
3832
3833        case $enable_doscompile in
3834          mingw)
3835            CXXFLAGS="-mno-cygwin"
3836            cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846int i=0; i++;
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860         { ac_try='test -z "$ac_cxx_werror_flag"
3861                         || test ! -s conftest.err'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; } &&
3867         { ac_try='test -s conftest$ac_exeext'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; }; then
3873  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878fi
3879rm -f conftest.err conftest.$ac_objext \
3880      conftest$ac_exeext conftest.$ac_ext
3881            CXXFLAGS=
3882          ;;
3883        esac
3884    esac
3885  fi
3886
3887# Note that we do not need to cover GCC in the following tests.
3888
3889  if test -z "$coin_opt_cxxflags"; then
3890    case $build in
3891      *-cygwin* | *-mingw*)
3892        case "$CXX" in
3893          clang* ) ;;
3894          cl* | */cl* | CL* | */CL*)
3895            # The MT and MTd options are mutually exclusive
3896            coin_opt_cxxflags='-MT -O2'
3897            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3898            coin_dbg_cxxflags='-MTd'
3899            ;;
3900          icl* | */icl* | ICL* | */ICL*)
3901            # The MT and MTd options are mutually exclusive
3902            coin_opt_cxxflags='-MT -Ox'
3903            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3904            coin_dbg_cxxflags='-MTd -debug'
3905            ;;
3906        esac
3907        ;;
3908      *-linux-*)
3909        case "$CXX" in
3910          icpc* | */icpc*)
3911            coin_opt_cxxflags="-O3 -ip -mp1"
3912            coin_add_cxxflags=""
3913            coin_dbg_cxxflags="-g"
3914            # Check if -i_dynamic is necessary (for new glibc library)
3915            CXXFLAGS=
3916            cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926int i=0; i++;
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext conftest$ac_exeext
3932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933  (eval $ac_link) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } &&
3940         { ac_try='test -z "$ac_cxx_werror_flag"
3941                         || test ! -s conftest.err'
3942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943  (eval $ac_try) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; } &&
3947         { ac_try='test -s conftest$ac_exeext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  :
3954else
3955  echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3959fi
3960rm -f conftest.err conftest.$ac_objext \
3961      conftest$ac_exeext conftest.$ac_ext
3962            ;;
3963          pgCC* | */pgCC*)
3964            coin_opt_cxxflags="-fast"
3965            coin_add_cxxflags="-Kieee -pc 64"
3966            coin_dbg_cxxflags="-g"
3967            ;;
3968        esac
3969        ;;
3970      *-ibm-*)
3971        case "$CXX" in
3972          xlC* | */xlC* | mpxlC* | */mpxlC*)
3973            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3974            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3975            coin_dbg_cxxflags="-g"
3976            ;;
3977        esac
3978        ;;
3979      *-hp-*)
3980        case "$CXX" in
3981          aCC* | */aCC* )
3982            coin_opt_cxxflags="-O"
3983            coin_add_cxxflags="-AA"
3984            coin_dbg_cxxflags="-g"
3985            ;;
3986        esac
3987        ;;
3988      *-*-solaris*)
3989          coin_opt_cxxflags="-O4"
3990          coin_dbg_cxxflags="-g"
3991        ;;
3992    esac
3993  fi
3994
3995# Generic flag settings. If these don't work, add a case above.
3996
3997  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3998    coin_dbg_cxxflags="-g"
3999  fi
4000
4001  if test -z "$coin_opt_cxxflags"; then
4002    # Try if -O option works if nothing else is set
4003    CXXFLAGS=-O
4004    cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h.  */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h.  */
4010
4011int
4012main ()
4013{
4014int i=0; i++;
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019rm -f conftest.$ac_objext conftest$ac_exeext
4020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4021  (eval $ac_link) 2>conftest.er1
4022  ac_status=$?
4023  grep -v '^ *+' conftest.er1 >conftest.err
4024  rm -f conftest.er1
4025  cat conftest.err >&5
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } &&
4028         { ac_try='test -z "$ac_cxx_werror_flag"
4029                         || test ! -s conftest.err'
4030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031  (eval $ac_try) 2>&5
4032  ac_status=$?
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); }; } &&
4035         { ac_try='test -s conftest$ac_exeext'
4036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037  (eval $ac_try) 2>&5
4038  ac_status=$?
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); }; }; then
4041  coin_opt_cxxflags="-O"
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046fi
4047rm -f conftest.err conftest.$ac_objext \
4048      conftest$ac_exeext conftest.$ac_ext
4049  fi
4050
4051  # if PM doesn't want the warning messages, take them out
4052  if test x"$coin_skip_warn_cxxflags" = xyes; then
4053    coin_warn_cxxflags=
4054  fi
4055
4056# Do final setup of flags based on values determined above.
4057
4058  if test x${DBG_CXXFLAGS+set} != xset; then
4059    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4060  fi
4061  if test x${OPT_CXXFLAGS+set} != xset; then
4062    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4063  fi
4064
4065  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4066  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4067
4068  if test "$coin_debug_compile" = "true"; then
4069    CXXFLAGS="$DBG_CXXFLAGS"
4070  else
4071    CXXFLAGS="$OPT_CXXFLAGS"
4072  fi
4073
4074# Handle the case where CXXFLAGS was set externally.
4075else
4076  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4077  if test x${DBG_CXXFLAGS+set} != xset; then
4078    DBG_CXXFLAGS="$CXXFLAGS"
4079  fi
4080  if test x${OPT_CXXFLAGS+set} != xset; then
4081    OPT_CXXFLAGS="$CXXFLAGS"
4082  fi
4083fi
4084
4085# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4086
4087case "$CXXFLAGS" in
4088  *-mno-cygwin*)
4089    if test x${CPPFLAGS+set} != xset ; then
4090      CPPFLAGS="-mno-cygwin"
4091    else
4092      case "$CPPFLAGS" in
4093        *-mno-cygwin*)
4094          ;;
4095        *)
4096          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4097          ;;
4098      esac
4099    fi ;;
4100esac
4101
4102# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4103if test x$COIN_PRJCT != x; then
4104  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4105fi
4106
4107# Try if CXXFLAGS works
4108save_CXXFLAGS="$CXXFLAGS"
4109cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115
4116int
4117main ()
4118{
4119int i=0; i++;
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext conftest$ac_exeext
4125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126  (eval $ac_link) 2>conftest.er1
4127  ac_status=$?
4128  grep -v '^ *+' conftest.er1 >conftest.err
4129  rm -f conftest.er1
4130  cat conftest.err >&5
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); } &&
4133         { ac_try='test -z "$ac_cxx_werror_flag"
4134                         || test ! -s conftest.err'
4135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136  (eval $ac_try) 2>&5
4137  ac_status=$?
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); }; } &&
4140         { ac_try='test -s conftest$ac_exeext'
4141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142  (eval $ac_try) 2>&5
4143  ac_status=$?
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); }; }; then
4146  :
4147else
4148  echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
4151CXXFLAGS=
4152fi
4153rm -f conftest.err conftest.$ac_objext \
4154      conftest$ac_exeext conftest.$ac_ext
4155if test -z "$CXXFLAGS"; then
4156  { 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
4157echo "$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;}
4158  CXXFLAGS='-O'
4159  cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h.  */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h.  */
4165
4166int
4167main ()
4168{
4169int i=0; i++;
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext conftest$ac_exeext
4175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176  (eval $ac_link) 2>conftest.er1
4177  ac_status=$?
4178  grep -v '^ *+' conftest.er1 >conftest.err
4179  rm -f conftest.er1
4180  cat conftest.err >&5
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); } &&
4183         { ac_try='test -z "$ac_cxx_werror_flag"
4184                         || test ! -s conftest.err'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; } &&
4190         { ac_try='test -s conftest$ac_exeext'
4191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  :
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201CXXFLAGS=
4202fi
4203rm -f conftest.err conftest.$ac_objext \
4204      conftest$ac_exeext conftest.$ac_ext
4205  if test -z "$CXXFLAGS"; then
4206    { 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
4207echo "$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;}
4208  fi
4209fi
4210
4211{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4212echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4213
4214
4215if test x"$MPICXX" = x; then :; else
4216  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4217echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4218  CXX="$MPICXX"
4219fi
4220
4221# correct the LD variable in a mingw build with MS or intel compiler
4222case "$CXX" in
4223  clang* ) ;;
4224  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4225    case $build in
4226  *-mingw*)
4227    if test "${LD+set}" = set; then :; else
4228      LD=link
4229    fi
4230    ;;
4231 esac
4232 case $enable_doscompile in
4233   msvc)
4234     if test "x${LD+set}" = xset; then :; else
4235       LD=link
4236     fi
4237     ;;
4238 esac
4239
4240    ;;
4241esac
4242
4243ac_ext=c
4244ac_cpp='$CPP $CPPFLAGS'
4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249
4250
4251# Initialize automake and libtool
4252{
4253
4254
4255
4256# START
4257
4258# Test if force_shared has been set
4259if test "x" = xforce_shared; then
4260  if test x$enable_shared = xno; then
4261    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4262echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4263   { (exit 1); exit 1; }; }
4264  fi
4265  enable_shared=yes;
4266else
4267  # On Cygwin and AIX, building DLLs doesn't work
4268  case $build in
4269    *-cygwin*)
4270      coin_disable_shared=yes
4271      platform=Cygwin
4272    ;;
4273    *-aix*)
4274      coin_disable_shared=yes
4275      platform=AIX
4276    ;;
4277    *-mingw*)
4278      coin_disable_shared=yes
4279      platform="Msys"
4280#      case "$CXX" in
4281#        cl*)
4282#          coin_disable_shared=yes
4283#          platform="Msys with cl"
4284#      ;;
4285#      esac
4286    ;;
4287  esac
4288fi
4289if test x"$coin_disable_shared" = xyes; then
4290  if test x"$enable_shared" = xyes; then
4291    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4292echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4293  fi
4294  enable_shared=no
4295fi
4296# By default, we only want the shared objects to be compiled
4297# Check whether --enable-static or --disable-static was given.
4298if test "${enable_static+set}" = set; then
4299  enableval="$enable_static"
4300  p=${PACKAGE-default}
4301    case $enableval in
4302    yes) enable_static=yes ;;
4303    no) enable_static=no ;;
4304    *)
4305     enable_static=no
4306      # Look at the argument we got.  We use all the common list separators.
4307      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4308      for pkg in $enableval; do
4309        IFS="$lt_save_ifs"
4310        if test "X$pkg" = "X$p"; then
4311          enable_static=yes
4312        fi
4313      done
4314      IFS="$lt_save_ifs"
4315      ;;
4316    esac
4317else
4318  enable_static=no
4319fi;
4320
4321
4322
4323
4324# Initialize automake
4325echo "$as_me:$LINENO: checking for egrep" >&5
4326echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4327if test "${ac_cv_prog_egrep+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4331    then ac_cv_prog_egrep='grep -E'
4332    else ac_cv_prog_egrep='egrep'
4333    fi
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4336echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4337 EGREP=$ac_cv_prog_egrep
4338
4339
4340echo "$as_me:$LINENO: checking whether ln -s works" >&5
4341echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4342LN_S=$as_ln_s
4343if test "$LN_S" = "ln -s"; then
4344  echo "$as_me:$LINENO: result: yes" >&5
4345echo "${ECHO_T}yes" >&6
4346else
4347  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4348echo "${ECHO_T}no, using $LN_S" >&6
4349fi
4350
4351am__api_version="1.9"
4352# Find a good install program.  We prefer a C program (faster),
4353# so one script is as good as another.  But avoid the broken or
4354# incompatible versions:
4355# SysV /etc/install, /usr/sbin/install
4356# SunOS /usr/etc/install
4357# IRIX /sbin/install
4358# AIX /bin/install
4359# AmigaOS /C/install, which installs bootblocks on floppy discs
4360# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4361# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4362# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4363# OS/2's system install, which has a completely different semantic
4364# ./install, which can be erroneously created by make from ./install.sh.
4365echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4366echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4367if test -z "$INSTALL"; then
4368if test "${ac_cv_path_install+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374  IFS=$as_save_IFS
4375  test -z "$as_dir" && as_dir=.
4376  # Account for people who put trailing slashes in PATH elements.
4377case $as_dir/ in
4378  ./ | .// | /cC/* | \
4379  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4380  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4381  /usr/ucb/* ) ;;
4382  *)
4383    # OSF1 and SCO ODT 3.0 have their own names for install.
4384    # Don't use installbsd from OSF since it installs stuff as root
4385    # by default.
4386    for ac_prog in ginstall scoinst install; do
4387      for ac_exec_ext in '' $ac_executable_extensions; do
4388        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4389          if test $ac_prog = install &&
4390            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4391            # AIX install.  It has an incompatible calling convention.
4392            :
4393          elif test $ac_prog = install &&
4394            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4395            # program-specific install script used by HP pwplus--don't use.
4396            :
4397          else
4398            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4399            break 3
4400          fi
4401        fi
4402      done
4403    done
4404    ;;
4405esac
4406done
4407
4408
4409fi
4410  if test "${ac_cv_path_install+set}" = set; then
4411    INSTALL=$ac_cv_path_install
4412  else
4413    # As a last resort, use the slow shell script.  We don't cache a
4414    # path for INSTALL within a source directory, because that will
4415    # break other packages using the cache if that directory is
4416    # removed, or if the path is relative.
4417    INSTALL=$ac_install_sh
4418  fi
4419fi
4420echo "$as_me:$LINENO: result: $INSTALL" >&5
4421echo "${ECHO_T}$INSTALL" >&6
4422
4423# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4424# It thinks the first close brace ends the variable substitution.
4425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4426
4427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4428
4429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4430
4431echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4432echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4433# Just in case
4434sleep 1
4435echo timestamp > conftest.file
4436# Do `set' in a subshell so we don't clobber the current shell's
4437# arguments.  Must try -L first in case configure is actually a
4438# symlink; some systems play weird games with the mod time of symlinks
4439# (eg FreeBSD returns the mod time of the symlink's containing
4440# directory).
4441if (
4442   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4443   if test "$*" = "X"; then
4444      # -L didn't work.
4445      set X `ls -t $srcdir/configure conftest.file`
4446   fi
4447   rm -f conftest.file
4448   if test "$*" != "X $srcdir/configure conftest.file" \
4449      && test "$*" != "X conftest.file $srcdir/configure"; then
4450
4451      # If neither matched, then we have a broken ls.  This can happen
4452      # if, for instance, CONFIG_SHELL is bash and it inherits a
4453      # broken ls alias from the environment.  This has actually
4454      # happened.  Such a system could not be considered "sane".
4455      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4456alias in your environment" >&5
4457echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4458alias in your environment" >&2;}
4459   { (exit 1); exit 1; }; }
4460   fi
4461
4462   test "$2" = conftest.file
4463   )
4464then
4465   # Ok.
4466   :
4467else
4468   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4469Check your system clock" >&5
4470echo "$as_me: error: newly created file is older than distributed files!
4471Check your system clock" >&2;}
4472   { (exit 1); exit 1; }; }
4473fi
4474echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
4476test "$program_prefix" != NONE &&
4477  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4478# Use a double $ so make ignores it.
4479test "$program_suffix" != NONE &&
4480  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4481# Double any \ or $.  echo might interpret backslashes.
4482# By default was `s,x,x', remove it if useless.
4483cat <<\_ACEOF >conftest.sed
4484s/[\\$]/&&/g;s/;s,x,x,$//
4485_ACEOF
4486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4487rm conftest.sed
4488
4489# expand $ac_aux_dir to an absolute path
4490am_aux_dir=`cd $ac_aux_dir && pwd`
4491
4492test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4493# Use eval to expand $SHELL
4494if eval "$MISSING --run true"; then
4495  am_missing_run="$MISSING --run "
4496else
4497  am_missing_run=
4498  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4499echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4500fi
4501
4502if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4503  # We used to keeping the `.' as first argument, in order to
4504  # allow $(mkdir_p) to be used without argument.  As in
4505  #   $(mkdir_p) $(somedir)
4506  # where $(somedir) is conditionally defined.  However this is wrong
4507  # for two reasons:
4508  #  1. if the package is installed by a user who cannot write `.'
4509  #     make install will fail,
4510  #  2. the above comment should most certainly read
4511  #     $(mkdir_p) $(DESTDIR)$(somedir)
4512  #     so it does not work when $(somedir) is undefined and
4513  #     $(DESTDIR) is not.
4514  #  To support the latter case, we have to write
4515  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4516  #  so the `.' trick is pointless.
4517  mkdir_p='mkdir -p --'
4518else
4519  # On NextStep and OpenStep, the `mkdir' command does not
4520  # recognize any option.  It will interpret all options as
4521  # directories to create, and then abort because `.' already
4522  # exists.
4523  for d in ./-p ./--version;
4524  do
4525    test -d $d && rmdir $d
4526  done
4527  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4528  if test -f "$ac_aux_dir/mkinstalldirs"; then
4529    mkdir_p='$(mkinstalldirs)'
4530  else
4531    mkdir_p='$(install_sh) -d'
4532  fi
4533fi
4534
4535for ac_prog in gawk mawk nawk awk
4536do
4537  # Extract the first word of "$ac_prog", so it can be a program name with args.
4538set dummy $ac_prog; ac_word=$2
4539echo "$as_me:$LINENO: checking for $ac_word" >&5
4540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541if test "${ac_cv_prog_AWK+set}" = set; then
4542  echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544  if test -n "$AWK"; then
4545  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552  for ac_exec_ext in '' $ac_executable_extensions; do
4553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554    ac_cv_prog_AWK="$ac_prog"
4555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556    break 2
4557  fi
4558done
4559done
4560
4561fi
4562fi
4563AWK=$ac_cv_prog_AWK
4564if test -n "$AWK"; then
4565  echo "$as_me:$LINENO: result: $AWK" >&5
4566echo "${ECHO_T}$AWK" >&6
4567else
4568  echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570fi
4571
4572  test -n "$AWK" && break
4573done
4574
4575echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4576echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4577set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4578if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4579  echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581  cat >conftest.make <<\_ACEOF
4582all:
4583        @echo 'ac_maketemp="$(MAKE)"'
4584_ACEOF
4585# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4586eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4587if test -n "$ac_maketemp"; then
4588  eval ac_cv_prog_make_${ac_make}_set=yes
4589else
4590  eval ac_cv_prog_make_${ac_make}_set=no
4591fi
4592rm -f conftest.make
4593fi
4594if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4595  echo "$as_me:$LINENO: result: yes" >&5
4596echo "${ECHO_T}yes" >&6
4597  SET_MAKE=
4598else
4599  echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6
4601  SET_MAKE="MAKE=${MAKE-make}"
4602fi
4603
4604rm -rf .tst 2>/dev/null
4605mkdir .tst 2>/dev/null
4606if test -d .tst; then
4607  am__leading_dot=.
4608else
4609  am__leading_dot=_
4610fi
4611rmdir .tst 2>/dev/null
4612
4613DEPDIR="${am__leading_dot}deps"
4614
4615          ac_config_commands="$ac_config_commands depfiles"
4616
4617
4618am_make=${MAKE-make}
4619cat > confinc << 'END'
4620am__doit:
4621        @echo done
4622.PHONY: am__doit
4623END
4624# If we don't find an include directive, just comment out the code.
4625echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4626echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4627am__include="#"
4628am__quote=
4629_am_result=none
4630# First try GNU make style include.
4631echo "include confinc" > confmf
4632# We grep out `Entering directory' and `Leaving directory'
4633# messages which can occur if `w' ends up in MAKEFLAGS.
4634# In particular we don't look at `^make:' because GNU make might
4635# be invoked under some other name (usually "gmake"), in which
4636# case it prints its new name instead of `make'.
4637if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4638   am__include=include
4639   am__quote=
4640   _am_result=GNU
4641fi
4642# Now try BSD make style include.
4643if test "$am__include" = "#"; then
4644   echo '.include "confinc"' > confmf
4645   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4646      am__include=.include
4647      am__quote="\""
4648      _am_result=BSD
4649   fi
4650fi
4651
4652
4653echo "$as_me:$LINENO: result: $_am_result" >&5
4654echo "${ECHO_T}$_am_result" >&6
4655rm -f confinc confmf
4656
4657# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4658if test "${enable_dependency_tracking+set}" = set; then
4659  enableval="$enable_dependency_tracking"
4660
4661fi;
4662if test "x$enable_dependency_tracking" != xno; then
4663  am_depcomp="$ac_aux_dir/depcomp"
4664  AMDEPBACKSLASH='\'
4665fi
4666
4667
4668if test "x$enable_dependency_tracking" != xno; then
4669  AMDEP_TRUE=
4670  AMDEP_FALSE='#'
4671else
4672  AMDEP_TRUE='#'
4673  AMDEP_FALSE=
4674fi
4675
4676
4677
4678
4679
4680
4681# AC_MSG_NOTICE([Beginning automake initialisation.])
4682# Stuff for automake
4683# test to see if srcdir already configured
4684if test "`cd $srcdir && pwd`" != "`pwd`" &&
4685   test -f $srcdir/config.status; then
4686  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4687echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4688   { (exit 1); exit 1; }; }
4689fi
4690
4691# test whether we have cygpath
4692if test -z "$CYGPATH_W"; then
4693  if (cygpath --version) >/dev/null 2>/dev/null; then
4694    CYGPATH_W='cygpath -w'
4695  else
4696    CYGPATH_W=echo
4697  fi
4698fi
4699
4700
4701# Define the identity of the package.
4702 PACKAGE='cbc'
4703 VERSION='trunk'
4704
4705
4706cat >>confdefs.h <<_ACEOF
4707#define PACKAGE "$PACKAGE"
4708_ACEOF
4709
4710
4711cat >>confdefs.h <<_ACEOF
4712#define VERSION "$VERSION"
4713_ACEOF
4714
4715# Some tools Automake needs.
4716
4717ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4718
4719
4720AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4721
4722
4723AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4724
4725
4726AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4727
4728
4729MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4730
4731install_sh=${install_sh-"$am_aux_dir/install-sh"}
4732
4733# Installed binaries are usually stripped using `strip' when the user
4734# run `make install-strip'.  However `strip' might not be the right
4735# tool to use in cross-compilation environments, therefore Automake
4736# will honor the `STRIP' environment variable to overrule this program.
4737if test "$cross_compiling" != no; then
4738  if test -n "$ac_tool_prefix"; then
4739  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}strip; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_STRIP+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$STRIP"; then
4747  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761done
4762
4763fi
4764fi
4765STRIP=$ac_cv_prog_STRIP
4766if test -n "$STRIP"; then
4767  echo "$as_me:$LINENO: result: $STRIP" >&5
4768echo "${ECHO_T}$STRIP" >&6
4769else
4770  echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774fi
4775if test -z "$ac_cv_prog_STRIP"; then
4776  ac_ct_STRIP=$STRIP
4777  # Extract the first word of "strip", so it can be a program name with args.
4778set dummy strip; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4782  echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784  if test -n "$ac_ct_STRIP"; then
4785  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792  for ac_exec_ext in '' $ac_executable_extensions; do
4793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794    ac_cv_prog_ac_ct_STRIP="strip"
4795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799done
4800
4801  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4802fi
4803fi
4804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4805if test -n "$ac_ct_STRIP"; then
4806  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4807echo "${ECHO_T}$ac_ct_STRIP" >&6
4808else
4809  echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813  STRIP=$ac_ct_STRIP
4814else
4815  STRIP="$ac_cv_prog_STRIP"
4816fi
4817
4818fi
4819INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4820
4821# We need awk for the "check" target.  The system "awk" is bad on
4822# some platforms.
4823# Always define AMTAR for backward compatibility.
4824
4825AMTAR=${AMTAR-"${am_missing_run}tar"}
4826
4827am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4828
4829
4830
4831
4832depcc="$CC"   am_compiler_list=
4833
4834echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4835echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4836if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4837  echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4840  # We make a subdir and do the tests there.  Otherwise we can end up
4841  # making bogus files that we don't know about and never remove.  For
4842  # instance it was reported that on HP-UX the gcc test will end up
4843  # making a dummy file named `D' -- because `-MD' means `put the output
4844  # in D'.
4845  mkdir conftest.dir
4846  # Copy depcomp to subdir because otherwise we won't find it if we're
4847  # using a relative directory.
4848  cp "$am_depcomp" conftest.dir
4849  cd conftest.dir
4850  # We will build objects and dependencies in a subdirectory because
4851  # it helps to detect inapplicable dependency modes.  For instance
4852  # both Tru64's cc and ICC support -MD to output dependencies as a
4853  # side effect of compilation, but ICC will put the dependencies in
4854  # the current directory while Tru64 will put them in the object
4855  # directory.
4856  mkdir sub
4857
4858  am_cv_CC_dependencies_compiler_type=none
4859  if test "$am_compiler_list" = ""; then
4860     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4861  fi
4862  for depmode in $am_compiler_list; do
4863    # Setup a source with many dependencies, because some compilers
4864    # like to wrap large dependency lists on column 80 (with \), and
4865    # we should not choose a depcomp mode which is confused by this.
4866    #
4867    # We need to recreate these files for each test, as the compiler may
4868    # overwrite some of them when testing with obscure command lines.
4869    # This happens at least with the AIX C compiler.
4870    : > sub/conftest.c
4871    for i in 1 2 3 4 5 6; do
4872      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4873      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4874      # Solaris 8's {/usr,}/bin/sh.
4875      touch sub/conftst$i.h
4876    done
4877    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4878
4879    case $depmode in
4880    nosideeffect)
4881      # after this tag, mechanisms are not by side-effect, so they'll
4882      # only be used when explicitly requested
4883      if test "x$enable_dependency_tracking" = xyes; then
4884        continue
4885      else
4886        break
4887      fi
4888      ;;
4889    none) break ;;
4890    esac
4891    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4892    # mode.  It turns out that the SunPro C++ compiler does not properly
4893    # handle `-M -o', and we need to detect this.
4894    if depmode=$depmode \
4895       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4896       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4897       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4898         >/dev/null 2>conftest.err &&
4899       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4900       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4901       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4902      # icc doesn't choke on unknown options, it will just issue warnings
4903      # or remarks (even with -Werror).  So we grep stderr for any message
4904      # that says an option was ignored or not supported.
4905      # When given -MP, icc 7.0 and 7.1 complain thusly:
4906      #   icc: Command line warning: ignoring option '-M'; no argument required
4907      # The diagnosis changed in icc 8.0:
4908      #   icc: Command line remark: option '-MP' not supported
4909      if (grep 'ignoring option' conftest.err ||
4910          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911        am_cv_CC_dependencies_compiler_type=$depmode
4912        break
4913      fi
4914    fi
4915  done
4916
4917  cd ..
4918  rm -rf conftest.dir
4919else
4920  am_cv_CC_dependencies_compiler_type=none
4921fi
4922
4923fi
4924echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4925echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4926CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4927
4928
4929
4930if
4931  test "x$enable_dependency_tracking" != xno \
4932  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4933  am__fastdepCC_TRUE=
4934  am__fastdepCC_FALSE='#'
4935else
4936  am__fastdepCC_TRUE='#'
4937  am__fastdepCC_FALSE=
4938fi
4939
4940
4941depcc="$CXX"  am_compiler_list=
4942
4943echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4944echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4945if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4949  # We make a subdir and do the tests there.  Otherwise we can end up
4950  # making bogus files that we don't know about and never remove.  For
4951  # instance it was reported that on HP-UX the gcc test will end up
4952  # making a dummy file named `D' -- because `-MD' means `put the output
4953  # in D'.
4954  mkdir conftest.dir
4955  # Copy depcomp to subdir because otherwise we won't find it if we're
4956  # using a relative directory.
4957  cp "$am_depcomp" conftest.dir
4958  cd conftest.dir
4959  # We will build objects and dependencies in a subdirectory because
4960  # it helps to detect inapplicable dependency modes.  For instance
4961  # both Tru64's cc and ICC support -MD to output dependencies as a
4962  # side effect of compilation, but ICC will put the dependencies in
4963  # the current directory while Tru64 will put them in the object
4964  # directory.
4965  mkdir sub
4966
4967  am_cv_CXX_dependencies_compiler_type=none
4968  if test "$am_compiler_list" = ""; then
4969     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4970  fi
4971  for depmode in $am_compiler_list; do
4972    # Setup a source with many dependencies, because some compilers
4973    # like to wrap large dependency lists on column 80 (with \), and
4974    # we should not choose a depcomp mode which is confused by this.
4975    #
4976    # We need to recreate these files for each test, as the compiler may
4977    # overwrite some of them when testing with obscure command lines.
4978    # This happens at least with the AIX C compiler.
4979    : > sub/conftest.c
4980    for i in 1 2 3 4 5 6; do
4981      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4983      # Solaris 8's {/usr,}/bin/sh.
4984      touch sub/conftst$i.h
4985    done
4986    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
4988    case $depmode in
4989    nosideeffect)
4990      # after this tag, mechanisms are not by side-effect, so they'll
4991      # only be used when explicitly requested
4992      if test "x$enable_dependency_tracking" = xyes; then
4993        continue
4994      else
4995        break
4996      fi
4997      ;;
4998    none) break ;;
4999    esac
5000    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5001    # mode.  It turns out that the SunPro C++ compiler does not properly
5002    # handle `-M -o', and we need to detect this.
5003    if depmode=$depmode \
5004       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5005       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5006       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5007         >/dev/null 2>conftest.err &&
5008       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5009       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5010       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5011      # icc doesn't choke on unknown options, it will just issue warnings
5012      # or remarks (even with -Werror).  So we grep stderr for any message
5013      # that says an option was ignored or not supported.
5014      # When given -MP, icc 7.0 and 7.1 complain thusly:
5015      #   icc: Command line warning: ignoring option '-M'; no argument required
5016      # The diagnosis changed in icc 8.0:
5017      #   icc: Command line remark: option '-MP' not supported
5018      if (grep 'ignoring option' conftest.err ||
5019          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5020        am_cv_CXX_dependencies_compiler_type=$depmode
5021        break
5022      fi
5023    fi
5024  done
5025
5026  cd ..
5027  rm -rf conftest.dir
5028else
5029  am_cv_CXX_dependencies_compiler_type=none
5030fi
5031
5032fi
5033echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5034echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5035CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5036
5037
5038
5039if
5040  test "x$enable_dependency_tracking" != xno \
5041  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5042  am__fastdepCXX_TRUE=
5043  am__fastdepCXX_FALSE='#'
5044else
5045  am__fastdepCXX_TRUE='#'
5046  am__fastdepCXX_FALSE=
5047fi
5048
5049
5050
5051echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5052echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5053    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5054if test "${enable_maintainer_mode+set}" = set; then
5055  enableval="$enable_maintainer_mode"
5056  USE_MAINTAINER_MODE=$enableval
5057else
5058  USE_MAINTAINER_MODE=no
5059fi;
5060  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5061echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5062
5063
5064if test $USE_MAINTAINER_MODE = yes; then
5065  MAINTAINER_MODE_TRUE=
5066  MAINTAINER_MODE_FALSE='#'
5067else
5068  MAINTAINER_MODE_TRUE='#'
5069  MAINTAINER_MODE_FALSE=
5070fi
5071
5072  MAINT=$MAINTAINER_MODE_TRUE
5073
5074
5075
5076coin_have_externals=no
5077if test "$enable_maintainer_mode" = yes; then
5078
5079  # If maintainer mode is chosen, we make sure that the correct versions
5080  # of the tools are used, and that we know where libtool.m4 is (to
5081  # recreate acinclude.m4)
5082
5083
5084  LIBTOOLM4=
5085  # Normally, $HOME
5086  AUTOTOOLS_DFLT=$HOME
5087
5088  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5089echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5090if test "${ac_cv_use_correct_autotools+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093  ac_cv_use_correct_autotools=check
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5096echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5097
5098  if test $ac_cv_use_correct_autotools = check; then
5099    ac_cv_use_correct_autotools=yes
5100    # Check if we have autoconf
5101    # Extract the first word of "autoconf", so it can be a program name with args.
5102set dummy autoconf; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_prog_have_autoconf+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  if test -n "$have_autoconf"; then
5109  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116  for ac_exec_ext in '' $ac_executable_extensions; do
5117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118    ac_cv_prog_have_autoconf="yes"
5119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123done
5124
5125  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5126fi
5127fi
5128have_autoconf=$ac_cv_prog_have_autoconf
5129if test -n "$have_autoconf"; then
5130  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5131echo "${ECHO_T}$have_autoconf" >&6
5132else
5133  echo "$as_me:$LINENO: result: no" >&5
5134echo "${ECHO_T}no" >&6
5135fi
5136
5137    if test $have_autoconf = no; then
5138      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5139echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5140   { (exit 1); exit 1; }; }
5141    fi
5142
5143    # Check whether autoconf is the correct version
5144    correct_version='2.59'
5145    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5146    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5147echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5148    autoconf --version > confauto.out 2>&1
5149    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5150      echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152    else
5153      rm -f confauto.out
5154      echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6
5156      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5157echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5158   { (exit 1); exit 1; }; }
5159    fi
5160    rm -f confauto.out
5161
5162    # Check if the executable autoconf is picked up from the correct location
5163    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5164echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5165    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5166    autoconf_dir=`cd $autoconf_dir; pwd`
5167    if test x$AUTOTOOLS_DIR = x; then
5168      want_dir=$AUTOTOOLS_DFLT/bin
5169    else
5170      want_dir=$AUTOTOOLS_DIR/bin
5171    fi
5172    if test $autoconf_dir = `cd $want_dir; pwd`; then
5173      echo "$as_me:$LINENO: result: yes" >&5
5174echo "${ECHO_T}yes" >&6
5175    else
5176      rm -f confauto.out
5177      echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5180echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5181   { (exit 1); exit 1; }; }
5182    fi
5183
5184    # Check if we have automake
5185    # Extract the first word of "automake", so it can be a program name with args.
5186set dummy automake; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_have_automake+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  if test -n "$have_automake"; then
5193  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200  for ac_exec_ext in '' $ac_executable_extensions; do
5201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202    ac_cv_prog_have_automake="yes"
5203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207done
5208
5209  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5210fi
5211fi
5212have_automake=$ac_cv_prog_have_automake
5213if test -n "$have_automake"; then
5214  echo "$as_me:$LINENO: result: $have_automake" >&5
5215echo "${ECHO_T}$have_automake" >&6
5216else
5217  echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221    if test $have_automake = no; then
5222      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5223echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5224   { (exit 1); exit 1; }; }
5225    fi
5226
5227    # Check whether automake is the correct version
5228    correct_version='1.9.6'
5229    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5230    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5231echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5232    automake --version > confauto.out 2>&1
5233    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5234      echo "$as_me:$LINENO: result: yes" >&5
5235echo "${ECHO_T}yes" >&6
5236    else
5237      rm -f confauto.out
5238      echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5241echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5242   { (exit 1); exit 1; }; }
5243    fi
5244    rm -f confauto.out
5245
5246    # Check if the executable automake is picked up from the correct location
5247    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5248echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5249    automake_dir=`which automake | sed -e 's=/automake=='`
5250    automake_dir=`cd $automake_dir; pwd`
5251    if test x$AUTOTOOLS_DIR = x; then
5252      want_dir=$AUTOTOOLS_DFLT/bin
5253    else
5254      want_dir=$AUTOTOOLS_DIR/bin
5255    fi
5256    if test $automake_dir = `cd $want_dir; pwd`; then
5257      echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259    else
5260      rm -f confauto.out
5261      echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5264echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5265   { (exit 1); exit 1; }; }
5266    fi
5267
5268    # Check if this is the correct version of libtool (with escaped dots)
5269    if test x$AUTOTOOLS_DIR = x; then
5270      want_dir=$AUTOTOOLS_DFLT/share
5271    else
5272      want_dir=$AUTOTOOLS_DIR/share
5273    fi
5274    correct_version='1.5.22'
5275    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5276    if test -r $want_dir/libtool/ltmain.sh; then
5277  have_ltmain=yes
5278  :
5279else
5280  have_ltmain=no
5281  :
5282fi
5283
5284    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5285echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5286    if test $have_ltmain = yes; then
5287    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5288        echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
5290      else
5291        echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5294echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5295   { (exit 1); exit 1; }; }
5296      fi
5297    else
5298      echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6
5300      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5301echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5302   { (exit 1); exit 1; }; }
5303    fi
5304  fi
5305
5306  # Check if we can find the libtool file
5307  if test x$AUTOTOOLS_DIR = x; then
5308    want_dir=$AUTOTOOLS_DFLT/share
5309  else
5310    want_dir=$AUTOTOOLS_DIR/share
5311  fi
5312  if test -r $want_dir/aclocal/libtool.m4; then
5313  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5314  :
5315else
5316  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5317echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5318   { (exit 1); exit 1; }; }
5319  :
5320fi
5321
5322
5323  # Check if we have an Dependencies file
5324  if test -r $srcdir/Dependencies; then
5325    coin_have_externals=yes
5326  fi
5327  # Check if subversion is installed and understands https
5328  # Extract the first word of "svn", so it can be a program name with args.
5329set dummy svn; ac_word=$2
5330echo "$as_me:$LINENO: checking for $ac_word" >&5
5331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332if test "${ac_cv_prog_have_svn+set}" = set; then
5333  echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335  if test -n "$have_svn"; then
5336  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5337else
5338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341  IFS=$as_save_IFS
5342  test -z "$as_dir" && as_dir=.
5343  for ac_exec_ext in '' $ac_executable_extensions; do
5344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345    ac_cv_prog_have_svn="yes"
5346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347    break 2
5348  fi
5349done
5350done
5351
5352  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5353fi
5354fi
5355have_svn=$ac_cv_prog_have_svn
5356if test -n "$have_svn"; then
5357  echo "$as_me:$LINENO: result: $have_svn" >&5
5358echo "${ECHO_T}$have_svn" >&6
5359else
5360  echo "$as_me:$LINENO: result: no" >&5
5361echo "${ECHO_T}no" >&6
5362fi
5363
5364  if test x$have_svn = xyes; then
5365    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5366echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5367if test "${ac_cv_svn_understands_https+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  svn --version > confauto.out 2>&1
5371                    if $EGREP https confauto.out >/dev/null 2>&1; then
5372                      ac_cv_svn_understands_https=yes
5373                    else
5374                      ac_cv_svn_understands_https=no
5375                      have_svn=no
5376                      ac_cv_prog_have_svn=no
5377                    fi
5378                    rm -f confauto.out
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5381echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5382  fi
5383
5384  # Find the location of the BuildTools directory
5385  BUILDTOOLSDIR=
5386  if test -r $srcdir/BuildTools/coin.m4; then
5387    BUILDTOOLSDIR=$srcdir/BuildTools
5388  else
5389    if test -r $srcdir/../BuildTools/coin.m4; then
5390      BUILDTOOLSDIR=$srcdir/../BuildTools
5391    else
5392      if test -r $srcdir/../../BuildTools/coin.m4; then
5393        BUILDTOOLSDIR=$srcdir/../../BuildTools
5394      else
5395        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5396echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5397   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5398      fi
5399    fi
5400  fi
5401
5402
5403  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5404  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5405    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5406  fi
5407
5408  # The following variable is set to the name of the directory where
5409  # the autotool scripts are located
5410
5411  AUX_DIR=$ac_aux_dir
5412fi
5413
5414# helpful variable for the base directory of this package
5415abs_source_dir=`cd $srcdir; pwd`
5416
5417
5418# Stuff for example Makefiles
5419if test x$prefix = xNONE; then
5420  full_prefix=$ac_default_prefix
5421else
5422  full_prefix=$prefix
5423fi
5424full_prefix=`cd $full_prefix ; pwd`
5425
5426abs_lib_dir=$full_prefix/lib
5427
5428abs_include_dir=$full_prefix/include
5429
5430abs_bin_dir=$full_prefix/bin
5431
5432
5433
5434if test $coin_have_externals = yes && test x$have_svn = xyes; then
5435  HAVE_EXTERNALS_TRUE=
5436  HAVE_EXTERNALS_FALSE='#'
5437else
5438  HAVE_EXTERNALS_TRUE='#'
5439  HAVE_EXTERNALS_FALSE=
5440fi
5441
5442
5443# AC_MSG_NOTICE([End automake initialisation.])
5444
5445
5446
5447LIBTOOL=
5448if test -r ../libtool; then
5449  coin_config_dir=..
5450  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5451fi
5452if test "x$LIBTOOL" = x; then
5453  if test -r ../../libtool; then
5454    coin_config_dir=../..
5455    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5456  fi
5457fi
5458
5459if test "x$LIBTOOL" = x; then
5460# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5461  # Stuff for libtool
5462  # Check whether --enable-shared or --disable-shared was given.
5463if test "${enable_shared+set}" = set; then
5464  enableval="$enable_shared"
5465  p=${PACKAGE-default}
5466    case $enableval in
5467    yes) enable_shared=yes ;;
5468    no) enable_shared=no ;;
5469    *)
5470      enable_shared=no
5471      # Look at the argument we got.  We use all the common list separators.
5472      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5473      for pkg in $enableval; do
5474        IFS="$lt_save_ifs"
5475        if test "X$pkg" = "X$p"; then
5476          enable_shared=yes
5477        fi
5478      done
5479      IFS="$lt_save_ifs"
5480      ;;
5481    esac
5482else
5483  enable_shared=yes
5484fi;
5485
5486# Check whether --enable-fast-install or --disable-fast-install was given.
5487if test "${enable_fast_install+set}" = set; then
5488  enableval="$enable_fast_install"
5489  p=${PACKAGE-default}
5490    case $enableval in
5491    yes) enable_fast_install=yes ;;
5492    no) enable_fast_install=no ;;
5493    *)
5494      enable_fast_install=no
5495      # Look at the argument we got.  We use all the common list separators.
5496      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5497      for pkg in $enableval; do
5498        IFS="$lt_save_ifs"
5499        if test "X$pkg" = "X$p"; then
5500          enable_fast_install=yes
5501        fi
5502      done
5503      IFS="$lt_save_ifs"
5504      ;;
5505    esac
5506else
5507  enable_fast_install=yes
5508fi;
5509
5510echo "$as_me:$LINENO: checking host system type" >&5
5511echo $ECHO_N "checking host system type... $ECHO_C" >&6
5512if test "${ac_cv_host+set}" = set; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515  ac_cv_host_alias=$host_alias
5516test -z "$ac_cv_host_alias" &&
5517  ac_cv_host_alias=$ac_cv_build_alias
5518ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5519  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5520echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5521   { (exit 1); exit 1; }; }
5522
5523fi
5524echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5525echo "${ECHO_T}$ac_cv_host" >&6
5526host=$ac_cv_host
5527host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5528host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5529host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5530
5531
5532echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5533echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5534if test "${lt_cv_path_SED+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  # Loop through the user's path and test for sed and gsed.
5538# Then use that list of sed's as ones to test for truncation.
5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540for as_dir in $PATH
5541do
5542  IFS=$as_save_IFS
5543  test -z "$as_dir" && as_dir=.
5544  for lt_ac_prog in sed gsed; do
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5547        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5548      fi
5549    done
5550  done
5551done
5552lt_ac_max=0
5553lt_ac_count=0
5554# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5555# along with /bin/sed that truncates output.
5556for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5557  test ! -f $lt_ac_sed && continue
5558  cat /dev/null > conftest.in
5559  lt_ac_count=0
5560  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5561  # Check for GNU sed and select it if it is found.
5562  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5563    lt_cv_path_SED=$lt_ac_sed
5564    break
5565  fi
5566  while true; do
5567    cat conftest.in conftest.in >conftest.tmp
5568    mv conftest.tmp conftest.in
5569    cp conftest.in conftest.nl
5570    echo >>conftest.nl
5571    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5572    cmp -s conftest.out conftest.nl || break
5573    # 10000 chars as input seems more than enough
5574    test $lt_ac_count -gt 10 && break
5575    lt_ac_count=`expr $lt_ac_count + 1`
5576    if test $lt_ac_count -gt $lt_ac_max; then
5577      lt_ac_max=$lt_ac_count
5578      lt_cv_path_SED=$lt_ac_sed
5579    fi
5580  done
5581done
5582
5583fi
5584
5585SED=$lt_cv_path_SED
5586echo "$as_me:$LINENO: result: $SED" >&5
5587echo "${ECHO_T}$SED" >&6
5588
5589
5590# Check whether --with-gnu-ld or --without-gnu-ld was given.
5591if test "${with_gnu_ld+set}" = set; then
5592  withval="$with_gnu_ld"
5593  test "$withval" = no || with_gnu_ld=yes
5594else
5595  with_gnu_ld=no
5596fi;
5597ac_prog=ld
5598if test "$GCC" = yes; then
5599  # Check if gcc -print-prog-name=ld gives a path.
5600  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5601echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5602  case $host in
5603  *-*-mingw*)
5604    # gcc leaves a trailing carriage return which upsets mingw
5605    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5606  *)
5607    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5608  esac
5609  case $ac_prog in
5610    # Accept absolute paths.
5611    [\\/]* | ?:[\\/]*)
5612      re_direlt='/[^/][^/]*/\.\./'
5613      # Canonicalize the pathname of ld
5614      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5615      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5616        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5617      done
5618      test -z "$LD" && LD="$ac_prog"
5619      ;;
5620  "")
5621    # If it fails, then pretend we aren't using GCC.
5622    ac_prog=ld
5623    ;;
5624  *)
5625    # If it is relative, then search for the first ld in PATH.
5626    with_gnu_ld=unknown
5627    ;;
5628  esac
5629elif test "$with_gnu_ld" = yes; then
5630  echo "$as_me:$LINENO: checking for GNU ld" >&5
5631echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5632else
5633  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5634echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5635fi
5636if test "${lt_cv_path_LD+set}" = set; then
5637  echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639  if test -z "$LD"; then
5640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5641  for ac_dir in $PATH; do
5642    IFS="$lt_save_ifs"
5643    test -z "$ac_dir" && ac_dir=.
5644    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5645      lt_cv_path_LD="$ac_dir/$ac_prog"
5646      # Check to see if the program is GNU ld.  I'd rather use --version,
5647      # but apparently some variants of GNU ld only accept -v.
5648      # Break only if it was the GNU/non-GNU ld that we prefer.
5649      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5650      *GNU* | *'with BFD'*)
5651        test "$with_gnu_ld" != no && break
5652        ;;
5653      *)
5654        test "$with_gnu_ld" != yes && break
5655        ;;
5656      esac
5657    fi
5658  done
5659  IFS="$lt_save_ifs"
5660else
5661  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5662fi
5663fi
5664
5665LD="$lt_cv_path_LD"
5666if test -n "$LD"; then
5667  echo "$as_me:$LINENO: result: $LD" >&5
5668echo "${ECHO_T}$LD" >&6
5669else
5670  echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672fi
5673test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5674echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5675   { (exit 1); exit 1; }; }
5676echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5677echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5678if test "${lt_cv_prog_gnu_ld+set}" = set; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5682case `$LD -v 2>&1 </dev/null` in
5683*GNU* | *'with BFD'*)
5684  lt_cv_prog_gnu_ld=yes
5685  ;;
5686*)
5687  lt_cv_prog_gnu_ld=no
5688  ;;
5689esac
5690fi
5691echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5692echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5693with_gnu_ld=$lt_cv_prog_gnu_ld
5694
5695
5696echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5697echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5698if test "${lt_cv_ld_reload_flag+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  lt_cv_ld_reload_flag='-r'
5702fi
5703echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5704echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5705reload_flag=$lt_cv_ld_reload_flag
5706case $reload_flag in
5707"" | " "*) ;;
5708*) reload_flag=" $reload_flag" ;;
5709esac
5710reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711case $host_os in
5712  darwin*)
5713    if test "$GCC" = yes; then
5714      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5715    else
5716      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717    fi
5718    ;;
5719esac
5720
5721echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5722echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5723if test "${lt_cv_path_NM+set}" = set; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726  if test -n "$NM"; then
5727  # Let the user override the test.
5728  lt_cv_path_NM="$NM"
5729else
5730  lt_nm_to_check="${ac_tool_prefix}nm"
5731  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5732    lt_nm_to_check="$lt_nm_to_check nm"
5733  fi
5734  for lt_tmp_nm in $lt_nm_to_check; do
5735    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5736    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5737      IFS="$lt_save_ifs"
5738      test -z "$ac_dir" && ac_dir=.
5739      tmp_nm="$ac_dir/$lt_tmp_nm"
5740      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5741        # Check to see if the nm accepts a BSD-compat flag.
5742        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5743        #   nm: unknown option "B" ignored
5744        # Tru64's nm complains that /dev/null is an invalid object file
5745        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5746        */dev/null* | *'Invalid file or object type'*)
5747          lt_cv_path_NM="$tmp_nm -B"
5748          break
5749          ;;
5750        *)
5751          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5752          */dev/null*)
5753            lt_cv_path_NM="$tmp_nm -p"
5754            break
5755            ;;
5756          *)
5757            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5758            continue # so that we can try to find one that supports BSD flags
5759            ;;
5760          esac
5761          ;;
5762        esac
5763      fi
5764    done
5765    IFS="$lt_save_ifs"
5766  done
5767  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5768fi
5769fi
5770echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5771echo "${ECHO_T}$lt_cv_path_NM" >&6
5772NM="$lt_cv_path_NM"
5773
5774echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5775echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5776if test "${lt_cv_deplibs_check_method+set}" = set; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779  lt_cv_file_magic_cmd='$MAGIC_CMD'
5780lt_cv_file_magic_test_file=
5781lt_cv_deplibs_check_method='unknown'
5782# Need to set the preceding variable on all platforms that support
5783# interlibrary dependencies.
5784# 'none' -- dependencies not supported.
5785# `unknown' -- same as none, but documents that we really don't know.
5786# 'pass_all' -- all dependencies passed with no checks.
5787# 'test_compile' -- check by making test program.
5788# 'file_magic [[regex]]' -- check by looking for files in library path
5789# which responds to the $file_magic_cmd with a given extended regex.
5790# If you have `file' or equivalent on your system and you're not sure
5791# whether `pass_all' will *always* work, you probably want this one.
5792
5793case $host_os in
5794aix4* | aix5*)
5795  lt_cv_deplibs_check_method=pass_all
5796  ;;
5797
5798beos*)
5799  lt_cv_deplibs_check_method=pass_all
5800  ;;
5801
5802bsdi[45]*)
5803  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5804  lt_cv_file_magic_cmd='/usr/bin/file -L'
5805  lt_cv_file_magic_test_file=/shlib/libc.so
5806  ;;
5807
5808cygwin*)
5809  # func_win32_libid is a shell function defined in ltmain.sh
5810  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5811  lt_cv_file_magic_cmd='func_win32_libid'
5812  ;;
5813
5814mingw* | pw32*)
5815  # Base MSYS/MinGW do not provide the 'file' command needed by
5816  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5817  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5818  lt_cv_file_magic_cmd='$OBJDUMP -f'
5819  ;;
5820
5821darwin* | rhapsody*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825freebsd* | kfreebsd*-gnu | dragonfly*)
5826  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5827    case $host_cpu in
5828    i*86 )
5829      # Not sure whether the presence of OpenBSD here was a mistake.
5830      # Let's accept both of them until this is cleared up.
5831      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5832      lt_cv_file_magic_cmd=/usr/bin/file
5833      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5834      ;;
5835    esac
5836  else
5837    lt_cv_deplibs_check_method=pass_all
5838  fi
5839  ;;
5840
5841gnu*)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845hpux10.20* | hpux11*)
5846  lt_cv_file_magic_cmd=/usr/bin/file
5847  case $host_cpu in
5848  ia64*)
5849    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5850    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5851    ;;
5852  hppa*64*)
5853    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]'
5854    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5855    ;;
5856  *)
5857    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5858    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5859    ;;
5860  esac
5861  ;;
5862
5863interix3*)
5864  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5865  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5866  ;;
5867
5868irix5* | irix6* | nonstopux*)
5869  case $LD in
5870  *-32|*"-32 ") libmagic=32-bit;;
5871  *-n32|*"-n32 ") libmagic=N32;;
5872  *-64|*"-64 ") libmagic=64-bit;;
5873  *) libmagic=never-match;;
5874  esac
5875  lt_cv_deplibs_check_method=pass_all
5876  ;;
5877
5878# This must be Linux ELF.
5879linux*)
5880  lt_cv_deplibs_check_method=pass_all
5881  ;;
5882
5883netbsd*)
5884  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5885    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5886  else
5887    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5888  fi
5889  ;;
5890
5891newos6*)
5892  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5893  lt_cv_file_magic_cmd=/usr/bin/file
5894  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5895  ;;
5896
5897nto-qnx*)
5898  lt_cv_deplibs_check_method=unknown
5899  ;;
5900
5901openbsd*)
5902  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5904  else
5905    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5906  fi
5907  ;;
5908
5909osf3* | osf4* | osf5*)
5910  lt_cv_deplibs_check_method=pass_all
5911  ;;
5912
5913solaris*)
5914  lt_cv_deplibs_check_method=pass_all
5915  ;;
5916
5917sysv4 | sysv4.3*)
5918  case $host_vendor in
5919  motorola)
5920    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]'
5921    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5922    ;;
5923  ncr)
5924    lt_cv_deplibs_check_method=pass_all
5925    ;;
5926  sequent)
5927    lt_cv_file_magic_cmd='/bin/file'
5928    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5929    ;;
5930  sni)
5931    lt_cv_file_magic_cmd='/bin/file'
5932    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5933    lt_cv_file_magic_test_file=/lib/libc.so
5934    ;;
5935  siemens)
5936    lt_cv_deplibs_check_method=pass_all
5937    ;;
5938  pc)
5939    lt_cv_deplibs_check_method=pass_all
5940    ;;
5941  esac
5942  ;;
5943
5944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5945  lt_cv_deplibs_check_method=pass_all
5946  ;;
5947esac
5948
5949fi
5950echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5951echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5952file_magic_cmd=$lt_cv_file_magic_cmd
5953deplibs_check_method=$lt_cv_deplibs_check_method
5954test -z "$deplibs_check_method" && deplibs_check_method=unknown
5955
5956
5957
5958
5959# If no C compiler was specified, use CC.
5960LTCC=${LTCC-"$CC"}
5961
5962# If no C compiler flags were specified, use CFLAGS.
5963LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5964
5965# Allow CC to be a program name with arguments.
5966compiler=$CC
5967
5968# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5969if test "${enable_libtool_lock+set}" = set; then
5970  enableval="$enable_libtool_lock"
5971
5972fi;
5973test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5974
5975# Some flags need to be propagated to the compiler or linker for good
5976# libtool support.
5977case $host in
5978ia64-*-hpux*)
5979  # Find out which ABI we are using.
5980  echo 'int i;' > conftest.$ac_ext
5981  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982  (eval $ac_compile) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; then
5986    case `/usr/bin/file conftest.$ac_objext` in
5987    *ELF-32*)
5988      HPUX_IA64_MODE="32"
5989      ;;
5990    *ELF-64*)
5991      HPUX_IA64_MODE="64"
5992      ;;
5993    esac
5994  fi
5995  rm -rf conftest*
5996  ;;
5997*-*-irix6*)
5998  # Find out which ABI we are using.
5999  echo '#line 5999 "configure"' > conftest.$ac_ext
6000  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001  (eval $ac_compile) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }; then
6005   if test "$lt_cv_prog_gnu_ld" = yes; then
6006    case `/usr/bin/file conftest.$ac_objext` in
6007    *32-bit*)
6008      LD="${LD-ld} -melf32bsmip"
6009      ;;
6010    *N32*)
6011      LD="${LD-ld} -melf32bmipn32"
6012      ;;
6013    *64-bit*)
6014      LD="${LD-ld} -melf64bmip"
6015      ;;
6016    esac
6017   else
6018    case `/usr/bin/file conftest.$ac_objext` in
6019    *32-bit*)
6020      LD="${LD-ld} -32"
6021      ;;
6022    *N32*)
6023      LD="${LD-ld} -n32"
6024      ;;
6025    *64-bit*)
6026      LD="${LD-ld} -64"
6027      ;;
6028    esac
6029   fi
6030  fi
6031  rm -rf conftest*
6032  ;;
6033
6034x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6035  # Find out which ABI we are using.
6036  echo 'int i;' > conftest.$ac_ext
6037  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038  (eval $ac_compile) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; then
6042    case `/usr/bin/file conftest.o` in
6043    *32-bit*)
6044      case $host in
6045        x86_64-*linux*)
6046          LD="${LD-ld} -m elf_i386"
6047          ;;
6048        ppc64-*linux*|powerpc64-*linux*)
6049          LD="${LD-ld} -m elf32ppclinux"
6050          ;;
6051        s390x-*linux*)
6052          LD="${LD-ld} -m elf_s390"
6053          ;;
6054        sparc64-*linux*)
6055          LD="${LD-ld} -m elf32_sparc"
6056          ;;
6057      esac
6058      ;;
6059    *64-bit*)
6060      case $host in
6061        x86_64-*linux*)
6062          LD="${LD-ld} -m elf_x86_64"
6063          ;;
6064        ppc*-*linux*|powerpc*-*linux*)
6065          LD="${LD-ld} -m elf64ppc"
6066          ;;
6067        s390*-*linux*)
6068          LD="${LD-ld} -m elf64_s390"
6069          ;;
6070        sparc*-*linux*)
6071          LD="${LD-ld} -m elf64_sparc"
6072          ;;
6073      esac
6074      ;;
6075    esac
6076  fi
6077  rm -rf conftest*
6078  ;;
6079
6080*-*-sco3.2v5*)
6081  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6082  SAVE_CFLAGS="$CFLAGS"
6083  CFLAGS="$CFLAGS -belf"
6084  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6085echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6086if test "${lt_cv_cc_needs_belf+set}" = set; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089  ac_ext=c
6090ac_cpp='$CPP $CPPFLAGS'
6091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095     cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101
6102int
6103main ()
6104{
6105
6106  ;
6107  return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext
6111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112  (eval $ac_link) 2>conftest.er1
6113  ac_status=$?
6114  grep -v '^ *+' conftest.er1 >conftest.err
6115  rm -f conftest.er1
6116  cat conftest.err >&5
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); } &&
6119         { ac_try='test -z "$ac_c_werror_flag"
6120                         || test ! -s conftest.err'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; } &&
6126         { ac_try='test -s conftest$ac_exeext'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; }; then
6132  lt_cv_cc_needs_belf=yes
6133else
6134  echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137lt_cv_cc_needs_belf=no
6138fi
6139rm -f conftest.err conftest.$ac_objext \
6140      conftest$ac_exeext conftest.$ac_ext
6141     ac_ext=c
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147fi
6148echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6149echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6150  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6151    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6152    CFLAGS="$SAVE_CFLAGS"
6153  fi
6154  ;;
6155sparc*-*solaris*)
6156  # Find out which ABI we are using.
6157  echo 'int i;' > conftest.$ac_ext
6158  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159  (eval $ac_compile) 2>&5
6160  ac_status=$?
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); }; then
6163    case `/usr/bin/file conftest.o` in
6164    *64-bit*)
6165      case $lt_cv_prog_gnu_ld in
6166      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6167      *)    LD="${LD-ld} -64" ;;
6168      esac
6169      ;;
6170    esac
6171  fi
6172  rm -rf conftest*
6173  ;;
6174
6175
6176esac
6177
6178need_locks="$enable_libtool_lock"
6179
6180
6181ac_ext=c
6182ac_cpp='$CPP $CPPFLAGS'
6183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6187echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6188# On Suns, sometimes $CPP names a directory.
6189if test -n "$CPP" && test -d "$CPP"; then
6190  CPP=
6191fi
6192if test -z "$CPP"; then
6193  if test "${ac_cv_prog_CPP+set}" = set; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196      # Double quotes because CPP needs to be expanded
6197    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6198    do
6199      ac_preproc_ok=false
6200for ac_c_preproc_warn_flag in '' yes
6201do
6202  # Use a header file that comes with gcc, so configuring glibc
6203  # with a fresh cross-compiler works.
6204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6205  # <limits.h> exists even on freestanding compilers.
6206  # On the NeXT, cc -E runs the code through the compiler's parser,
6207  # not just through cpp. "Syntax error" is here to catch this case.
6208  cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h.  */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h.  */
6214#ifdef __STDC__
6215# include <limits.h>
6216#else
6217# include <assert.h>
6218#endif
6219                     Syntax error
6220_ACEOF
6221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223  ac_status=$?
6224  grep -v '^ *+' conftest.er1 >conftest.err
6225  rm -f conftest.er1
6226  cat conftest.err >&5
6227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); } >/dev/null; then
6229  if test -s conftest.err; then
6230    ac_cpp_err=$ac_c_preproc_warn_flag
6231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6232  else
6233    ac_cpp_err=
6234  fi
6235else
6236  ac_cpp_err=yes
6237fi
6238if test -z "$ac_cpp_err"; then
6239  :
6240else
6241  echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244  # Broken: fails on valid input.
6245continue
6246fi
6247rm -f conftest.err conftest.$ac_ext
6248
6249  # OK, works on sane cases.  Now check whether non-existent headers
6250  # can be detected and how.
6251  cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h.  */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h.  */
6257#include <ac_nonexistent.h>
6258_ACEOF
6259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6261  ac_status=$?
6262  grep -v '^ *+' conftest.er1 >conftest.err
6263  rm -f conftest.er1
6264  cat conftest.err >&5
6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); } >/dev/null; then
6267  if test -s conftest.err; then
6268    ac_cpp_err=$ac_c_preproc_warn_flag
6269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6270  else
6271    ac_cpp_err=
6272  fi
6273else
6274  ac_cpp_err=yes
6275fi
6276if test -z "$ac_cpp_err"; then
6277  # Broken: success on invalid input.
6278continue
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283  # Passes both tests.
6284ac_preproc_ok=:
6285break
6286fi
6287rm -f conftest.err conftest.$ac_ext
6288
6289done
6290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6291rm -f conftest.err conftest.$ac_ext
6292if $ac_preproc_ok; then
6293  break
6294fi
6295
6296    done
6297    ac_cv_prog_CPP=$CPP
6298
6299fi
6300  CPP=$ac_cv_prog_CPP
6301else
6302  ac_cv_prog_CPP=$CPP
6303fi
6304echo "$as_me:$LINENO: result: $CPP" >&5
6305echo "${ECHO_T}$CPP" >&6
6306ac_preproc_ok=false
6307for ac_c_preproc_warn_flag in '' yes
6308do
6309  # Use a header file that comes with gcc, so configuring glibc
6310  # with a fresh cross-compiler works.
6311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6312  # <limits.h> exists even on freestanding compilers.
6313  # On the NeXT, cc -E runs the code through the compiler's parser,
6314  # not just through cpp. "Syntax error" is here to catch this case.
6315  cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h.  */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h.  */
6321#ifdef __STDC__
6322# include <limits.h>
6323#else
6324# include <assert.h>
6325#endif
6326                     Syntax error
6327_ACEOF
6328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6329  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6330  ac_status=$?
6331  grep -v '^ *+' conftest.er1 >conftest.err
6332  rm -f conftest.er1
6333  cat conftest.err >&5
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } >/dev/null; then
6336  if test -s conftest.err; then
6337    ac_cpp_err=$ac_c_preproc_warn_flag
6338    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6339  else
6340    ac_cpp_err=
6341  fi
6342else
6343  ac_cpp_err=yes
6344fi
6345if test -z "$ac_cpp_err"; then
6346  :
6347else
6348  echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351  # Broken: fails on valid input.
6352continue
6353fi
6354rm -f conftest.err conftest.$ac_ext
6355
6356  # OK, works on sane cases.  Now check whether non-existent headers
6357  # can be detected and how.
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364#include <ac_nonexistent.h>
6365_ACEOF
6366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6368  ac_status=$?
6369  grep -v '^ *+' conftest.er1 >conftest.err
6370  rm -f conftest.er1
6371  cat conftest.err >&5
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); } >/dev/null; then
6374  if test -s conftest.err; then
6375    ac_cpp_err=$ac_c_preproc_warn_flag
6376    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6377  else
6378    ac_cpp_err=
6379  fi
6380else
6381  ac_cpp_err=yes
6382fi
6383if test -z "$ac_cpp_err"; then
6384  # Broken: success on invalid input.
6385continue
6386else
6387  echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390  # Passes both tests.
6391ac_preproc_ok=:
6392break
6393fi
6394rm -f conftest.err conftest.$ac_ext
6395
6396done
6397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6398rm -f conftest.err conftest.$ac_ext
6399if $ac_preproc_ok; then
6400  :
6401else
6402  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6403See \`config.log' for more details." >&5
6404echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6405See \`config.log' for more details." >&2;}
6406   { (exit 1); exit 1; }; }
6407fi
6408
6409ac_ext=c
6410ac_cpp='$CPP $CPPFLAGS'
6411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414
6415
6416echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6417echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6418if test "${ac_cv_header_stdc+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <stdlib.h>
6428#include <stdarg.h>
6429#include <string.h>
6430#include <float.h>
6431
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440rm -f conftest.$ac_objext
6441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442  (eval $ac_compile) 2>conftest.er1
6443  ac_status=$?
6444  grep -v '^ *+' conftest.er1 >conftest.err
6445  rm -f conftest.er1
6446  cat conftest.err >&5
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); } &&
6449         { ac_try='test -z "$ac_c_werror_flag"
6450                         || test ! -s conftest.err'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; } &&
6456         { ac_try='test -s conftest.$ac_objext'
6457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458  (eval $ac_try) 2>&5
6459  ac_status=$?
6460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461  (exit $ac_status); }; }; then
6462  ac_cv_header_stdc=yes
6463else
6464  echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467ac_cv_header_stdc=no
6468fi
6469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470
6471if test $ac_cv_header_stdc = yes; then
6472  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6473  cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h.  */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h.  */
6479#include <string.h>
6480
6481_ACEOF
6482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483  $EGREP "memchr" >/dev/null 2>&1; then
6484  :
6485else
6486  ac_cv_header_stdc=no
6487fi
6488rm -f conftest*
6489
6490fi
6491
6492if test $ac_cv_header_stdc = yes; then
6493  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6494  cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h.  */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h.  */
6500#include <stdlib.h>
6501
6502_ACEOF
6503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504  $EGREP "free" >/dev/null 2>&1; then
6505  :
6506else
6507  ac_cv_header_stdc=no
6508fi
6509rm -f conftest*
6510
6511fi
6512
6513if test $ac_cv_header_stdc = yes; then
6514  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6515  if test "$cross_compiling" = yes; then
6516  :
6517else
6518  cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524#include <ctype.h>
6525#if ((' ' & 0x0FF) == 0x020)
6526# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6527# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6528#else
6529# define ISLOWER(c) \
6530                   (('a' <= (c) && (c) <= 'i') \
6531                     || ('j' <= (c) && (c) <= 'r') \
6532                     || ('s' <= (c) && (c) <= 'z'))
6533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6534#endif
6535
6536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6537int
6538main ()
6539{
6540  int i;
6541  for (i = 0; i < 256; i++)
6542    if (XOR (islower (i), ISLOWER (i))
6543        || toupper (i) != TOUPPER (i))
6544      exit(2);
6545  exit (0);
6546}
6547_ACEOF
6548rm -f conftest$ac_exeext
6549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550  (eval $ac_link) 2>&5
6551  ac_status=$?
6552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559  :
6560else
6561  echo "$as_me: program exited with status $ac_status" >&5
6562echo "$as_me: failed program was:" >&5
6563sed 's/^/| /' conftest.$ac_ext >&5
6564
6565( exit $ac_status )
6566ac_cv_header_stdc=no
6567fi
6568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6569fi
6570fi
6571fi
6572echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6573echo "${ECHO_T}$ac_cv_header_stdc" >&6
6574if test $ac_cv_header_stdc = yes; then
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define STDC_HEADERS 1
6578_ACEOF
6579
6580fi
6581
6582# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6593                  inttypes.h stdint.h unistd.h
6594do
6595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596echo "$as_me:$LINENO: checking for $ac_header" >&5
6597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599  echo $ECHO_N "(cached) $ECHO_C" >&6
6600else
6601  cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h.  */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h.  */
6607$ac_includes_default
6608
6609#include <$ac_header>
6610_ACEOF
6611rm -f conftest.$ac_objext
6612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613  (eval $ac_compile) 2>conftest.er1
6614  ac_status=$?
6615  grep -v '^ *+' conftest.er1 >conftest.err
6616  rm -f conftest.er1
6617  cat conftest.err >&5
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); } &&
6620         { ac_try='test -z "$ac_c_werror_flag"
6621                         || test ! -s conftest.err'
6622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623  (eval $ac_try) 2>&5
6624  ac_status=$?
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }; } &&
6627         { ac_try='test -s conftest.$ac_objext'
6628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629  (eval $ac_try) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); }; }; then
6633  eval "$as_ac_Header=yes"
6634else
6635  echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638eval "$as_ac_Header=no"
6639fi
6640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6641fi
6642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6644if test `eval echo '${'$as_ac_Header'}'` = yes; then
6645  cat >>confdefs.h <<_ACEOF
6646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647_ACEOF
6648
6649fi
6650
6651done
6652
6653
6654
6655for ac_header in dlfcn.h
6656do
6657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo "$as_me:$LINENO: checking for $ac_header" >&5
6660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6661if eval "test \"\${$as_ac_Header+set}\" = set"; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663fi
6664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6666else
6667  # Is the header compilable?
6668echo "$as_me:$LINENO: checking $ac_header usability" >&5
6669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6670cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h.  */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h.  */
6676$ac_includes_default
6677#include <$ac_header>
6678_ACEOF
6679rm -f conftest.$ac_objext
6680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681  (eval $ac_compile) 2>conftest.er1
6682  ac_status=$?
6683  grep -v '^ *+' conftest.er1 >conftest.err
6684  rm -f conftest.er1
6685  cat conftest.err >&5
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); } &&
6688         { ac_try='test -z "$ac_c_werror_flag"
6689                         || test ! -s conftest.err'
6690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691  (eval $ac_try) 2>&5
6692  ac_status=$?
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); }; } &&
6695         { ac_try='test -s conftest.$ac_objext'
6696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697  (eval $ac_try) 2>&5
6698  ac_status=$?
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); }; }; then
6701  ac_header_compiler=yes
6702else
6703  echo "$as_me: failed program was:" >&5
6704sed 's/^/| /' conftest.$ac_ext >&5
6705
6706ac_header_compiler=no
6707fi
6708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6710echo "${ECHO_T}$ac_header_compiler" >&6
6711
6712# Is the header present?
6713echo "$as_me:$LINENO: checking $ac_header presence" >&5
6714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6715cat >conftest.$ac_ext <<_ACEOF
6716/* confdefs.h.  */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h.  */
6721#include <$ac_header>
6722_ACEOF
6723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6725  ac_status=$?
6726  grep -v '^ *+' conftest.er1 >conftest.err
6727  rm -f conftest.er1
6728  cat conftest.err >&5
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); } >/dev/null; then
6731  if test -s conftest.err; then
6732    ac_cpp_err=$ac_c_preproc_warn_flag
6733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6734  else
6735    ac_cpp_err=
6736  fi
6737else
6738  ac_cpp_err=yes
6739fi
6740if test -z "$ac_cpp_err"; then
6741  ac_header_preproc=yes
6742else
6743  echo "$as_me: failed program was:" >&5
6744sed 's/^/| /' conftest.$ac_ext >&5
6745
6746  ac_header_preproc=no
6747fi
6748rm -f conftest.err conftest.$ac_ext
6749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6750echo "${ECHO_T}$ac_header_preproc" >&6
6751
6752# So?  What about this header?
6753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6754  yes:no: )
6755    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6759    ac_header_preproc=yes
6760    ;;
6761  no:yes:* )
6762    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6764    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6765echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6766    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6768    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6769echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6772    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6774    (
6775      cat <<\_ASBOX
6776## ------------------------------------ ##
6777## Report this to cbc@lists.coin-or.org ##
6778## ------------------------------------ ##
6779_ASBOX
6780    ) |
6781      sed "s/^/$as_me: WARNING:     /" >&2
6782    ;;
6783esac
6784echo "$as_me:$LINENO: checking for $ac_header" >&5
6785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6786if eval "test \"\${$as_ac_Header+set}\" = set"; then
6787  echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789  eval "$as_ac_Header=\$ac_header_preproc"
6790fi
6791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6793
6794fi
6795if test `eval echo '${'$as_ac_Header'}'` = yes; then
6796  cat >>confdefs.h <<_ACEOF
6797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6798_ACEOF
6799
6800fi
6801
6802done
6803
6804
6805
6806if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6807    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6808    (test "X$CXX" != "Xg++"))) ; then
6809  ac_ext=cc
6810ac_cpp='$CXXCPP $CPPFLAGS'
6811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6815echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6816if test -z "$CXXCPP"; then
6817  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6818  echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820      # Double quotes because CXXCPP needs to be expanded
6821    for CXXCPP in "$CXX -E" "/lib/cpp"
6822    do
6823      ac_preproc_ok=false
6824for ac_cxx_preproc_warn_flag in '' yes
6825do
6826  # Use a header file that comes with gcc, so configuring glibc
6827  # with a fresh cross-compiler works.
6828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829  # <limits.h> exists even on freestanding compilers.
6830  # On the NeXT, cc -E runs the code through the compiler's parser,
6831  # not just through cpp. "Syntax error" is here to catch this case.
6832  cat >conftest.$ac_ext <<_ACEOF
6833/* confdefs.h.  */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h.  */
6838#ifdef __STDC__
6839# include <limits.h>
6840#else
6841# include <assert.h>
6842#endif
6843                     Syntax error
6844_ACEOF
6845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6847  ac_status=$?
6848  grep -v '^ *+' conftest.er1 >conftest.err
6849  rm -f conftest.er1
6850  cat conftest.err >&5
6851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852  (exit $ac_status); } >/dev/null; then
6853  if test -s conftest.err; then
6854    ac_cpp_err=$ac_cxx_preproc_warn_flag
6855    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6856  else
6857    ac_cpp_err=
6858  fi
6859else
6860  ac_cpp_err=yes
6861fi
6862if test -z "$ac_cpp_err"; then
6863  :
6864else
6865  echo "$as_me: failed program was:" >&5
6866sed 's/^/| /' conftest.$ac_ext >&5
6867
6868  # Broken: fails on valid input.
6869continue
6870fi
6871rm -f conftest.err conftest.$ac_ext
6872
6873  # OK, works on sane cases.  Now check whether non-existent headers
6874  # can be detected and how.
6875  cat >conftest.$ac_ext <<_ACEOF
6876/* confdefs.h.  */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h.  */
6881#include <ac_nonexistent.h>
6882_ACEOF
6883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6884  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } >/dev/null; then
6891  if test -s conftest.err; then
6892    ac_cpp_err=$ac_cxx_preproc_warn_flag
6893    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6894  else
6895    ac_cpp_err=
6896  fi
6897else
6898  ac_cpp_err=yes
6899fi
6900if test -z "$ac_cpp_err"; then
6901  # Broken: success on invalid input.
6902continue
6903else
6904  echo "$as_me: failed program was:" >&5
6905sed 's/^/| /' conftest.$ac_ext >&5
6906
6907  # Passes both tests.
6908ac_preproc_ok=:
6909break
6910fi
6911rm -f conftest.err conftest.$ac_ext
6912
6913done
6914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6915rm -f conftest.err conftest.$ac_ext
6916if $ac_preproc_ok; then
6917  break
6918fi
6919
6920    done
6921    ac_cv_prog_CXXCPP=$CXXCPP
6922
6923fi
6924  CXXCPP=$ac_cv_prog_CXXCPP
6925else
6926  ac_cv_prog_CXXCPP=$CXXCPP
6927fi
6928echo "$as_me:$LINENO: result: $CXXCPP" >&5
6929echo "${ECHO_T}$CXXCPP" >&6
6930ac_preproc_ok=false
6931for ac_cxx_preproc_warn_flag in '' yes
6932do
6933  # Use a header file that comes with gcc, so configuring glibc
6934  # with a fresh cross-compiler works.
6935  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936  # <limits.h> exists even on freestanding compilers.
6937  # On the NeXT, cc -E runs the code through the compiler's parser,
6938  # not just through cpp. "Syntax error" is here to catch this case.
6939  cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945#ifdef __STDC__
6946# include <limits.h>
6947#else
6948# include <assert.h>
6949#endif
6950                     Syntax error
6951_ACEOF
6952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } >/dev/null; then
6960  if test -s conftest.err; then
6961    ac_cpp_err=$ac_cxx_preproc_warn_flag
6962    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6963  else
6964    ac_cpp_err=
6965  fi
6966else
6967  ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970  :
6971else
6972  echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975  # Broken: fails on valid input.
6976continue
6977fi
6978rm -f conftest.err conftest.$ac_ext
6979
6980  # OK, works on sane cases.  Now check whether non-existent headers
6981  # can be detected and how.
6982  cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988#include <ac_nonexistent.h>
6989_ACEOF
6990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6991  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6992  ac_status=$?
6993  grep -v '^ *+' conftest.er1 >conftest.err
6994  rm -f conftest.er1
6995  cat conftest.err >&5
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } >/dev/null; then
6998  if test -s conftest.err; then
6999    ac_cpp_err=$ac_cxx_preproc_warn_flag
7000    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7001  else
7002    ac_cpp_err=
7003  fi
7004else
7005  ac_cpp_err=yes
7006fi
7007if test -z "$ac_cpp_err"; then
7008  # Broken: success on invalid input.
7009continue
7010else
7011  echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014  # Passes both tests.
7015ac_preproc_ok=:
7016break
7017fi
7018rm -f conftest.err conftest.$ac_ext
7019
7020done
7021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022rm -f conftest.err conftest.$ac_ext
7023if $ac_preproc_ok; then
7024  :
7025else
7026  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7027See \`config.log' for more details." >&5
7028echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7029See \`config.log' for more details." >&2;}
7030   { (exit 1); exit 1; }; }
7031fi
7032
7033ac_ext=cc
7034ac_cpp='$CXXCPP $CPPFLAGS'
7035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7038
7039fi
7040
7041ac_ext=f
7042ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7043ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7045if test -n "$ac_tool_prefix"; then
7046  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7047  do
7048    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7049set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7050echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7052if test "${ac_cv_prog_F77+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  if test -n "$F77"; then
7056  ac_cv_prog_F77="$F77" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063  for ac_exec_ext in '' $ac_executable_extensions; do
7064  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070done
7071
7072fi
7073fi
7074F77=$ac_cv_prog_F77
7075if test -n "$F77"; then
7076  echo "$as_me:$LINENO: result: $F77" >&5
7077echo "${ECHO_T}$F77" >&6
7078else
7079  echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
7081fi
7082
7083    test -n "$F77" && break
7084  done
7085fi
7086if test -z "$F77"; then
7087  ac_ct_F77=$F77
7088  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7089do
7090  # Extract the first word of "$ac_prog", so it can be a program name with args.
7091set dummy $ac_prog; ac_word=$2
7092echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7095  echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097  if test -n "$ac_ct_F77"; then
7098  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7099else
7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  test -z "$as_dir" && as_dir=.
7105  for ac_exec_ext in '' $ac_executable_extensions; do
7106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107    ac_cv_prog_ac_ct_F77="$ac_prog"
7108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109    break 2
7110  fi
7111done
7112done
7113
7114fi
7115fi
7116ac_ct_F77=$ac_cv_prog_ac_ct_F77
7117if test -n "$ac_ct_F77"; then
7118  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7119echo "${ECHO_T}$ac_ct_F77" >&6
7120else
7121  echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6
7123fi
7124
7125  test -n "$ac_ct_F77" && break
7126done
7127
7128  F77=$ac_ct_F77
7129fi
7130
7131
7132# Provide some information about the compiler.
7133echo "$as_me:7133:" \
7134     "checking for Fortran 77 compiler version" >&5
7135ac_compiler=`set X $ac_compile; echo $2`
7136{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7137  (eval $ac_compiler --version </dev/null >&5) 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }
7141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7142  (eval $ac_compiler -v </dev/null >&5) 2>&5
7143  ac_status=$?
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); }
7146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7147  (eval $ac_compiler -V </dev/null >&5) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }
7151rm -f a.out
7152
7153# If we don't use `.F' as extension, the preprocessor is not run on the
7154# input file.  (Note that this only needs to work for GNU compilers.)
7155ac_save_ext=$ac_ext
7156ac_ext=F
7157echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7158echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7159if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  cat >conftest.$ac_ext <<_ACEOF
7163      program main
7164#ifndef __GNUC__
7165       choke me
7166#endif
7167
7168      end
7169_ACEOF
7170rm -f conftest.$ac_objext
7171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172  (eval $ac_compile) 2>conftest.er1
7173  ac_status=$?
7174  grep -v '^ *+' conftest.er1 >conftest.err
7175  rm -f conftest.er1
7176  cat conftest.err >&5
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); } &&
7179         { ac_try='test -z "$ac_f77_werror_flag"
7180                         || test ! -s conftest.err'
7181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182  (eval $ac_try) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }; } &&
7186         { ac_try='test -s conftest.$ac_objext'
7187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188  (eval $ac_try) 2>&5
7189  ac_status=$?
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); }; }; then
7192  ac_compiler_gnu=yes
7193else
7194  echo "$as_me: failed program was:" >&5
7195sed 's/^/| /' conftest.$ac_ext >&5
7196
7197ac_compiler_gnu=no
7198fi
7199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7201
7202fi
7203echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7204echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7205ac_ext=$ac_save_ext
7206ac_test_FFLAGS=${FFLAGS+set}
7207ac_save_FFLAGS=$FFLAGS
7208FFLAGS=
7209echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7210echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7211if test "${ac_cv_prog_f77_g+set}" = set; then
7212  echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214  FFLAGS=-g
7215cat >conftest.$ac_ext <<_ACEOF
7216      program main
7217
7218      end
7219_ACEOF
7220rm -f conftest.$ac_objext
7221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222  (eval $ac_compile) 2>conftest.er1
7223  ac_status=$?
7224  grep -v '^ *+' conftest.er1 >conftest.err
7225  rm -f conftest.er1
7226  cat conftest.err >&5
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); } &&
7229         { ac_try='test -z "$ac_f77_werror_flag"
7230                         || test ! -s conftest.err'
7231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232  (eval $ac_try) 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); }; } &&
7236         { ac_try='test -s conftest.$ac_objext'
7237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238  (eval $ac_try) 2>&5
7239  ac_status=$?
7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241  (exit $ac_status); }; }; then
7242  ac_cv_prog_f77_g=yes
7243else
7244  echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247ac_cv_prog_f77_g=no
7248fi
7249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250
7251fi
7252echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7253echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7254if test "$ac_test_FFLAGS" = set; then
7255  FFLAGS=$ac_save_FFLAGS
7256elif test $ac_cv_prog_f77_g = yes; then
7257  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7258    FFLAGS="-g -O2"
7259  else
7260    FFLAGS="-g"
7261  fi
7262else
7263  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7264    FFLAGS="-O2"
7265  else
7266    FFLAGS=
7267  fi
7268fi
7269
7270G77=`test $ac_compiler_gnu = yes && echo yes`
7271ac_ext=c
7272ac_cpp='$CPP $CPPFLAGS'
7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276
7277
7278
7279# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7280
7281# find the maximum length of command line arguments
7282echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7283echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7284if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7285  echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287    i=0
7288  teststring="ABCD"
7289
7290  case $build_os in
7291  msdosdjgpp*)
7292    # On DJGPP, this test can blow up pretty badly due to problems in libc
7293    # (any single argument exceeding 2000 bytes causes a buffer overrun
7294    # during glob expansion).  Even if it were fixed, the result of this
7295    # check would be larger than it should be.
7296    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7297    ;;
7298
7299  gnu*)
7300    # Under GNU Hurd, this test is not required because there is
7301    # no limit to the length of command line arguments.
7302    # Libtool will interpret -1 as no limit whatsoever
7303    lt_cv_sys_max_cmd_len=-1;
7304    ;;
7305
7306  cygwin* | mingw*)
7307    # On Win9x/ME, this test blows up -- it succeeds, but takes
7308    # about 5 minutes as the teststring grows exponentially.
7309    # Worse, since 9x/ME are not pre-emptively multitasking,
7310    # you end up with a "frozen" computer, even though with patience
7311    # the test eventually succeeds (with a max line length of 256k).
7312    # Instead, let's just punt: use the minimum linelength reported by
7313    # all of the supported platforms: 8192 (on NT/2K/XP).
7314    lt_cv_sys_max_cmd_len=8192;
7315    ;;
7316
7317  amigaos*)
7318    # On AmigaOS with pdksh, this test takes hours, literally.
7319    # So we just punt and use a minimum line length of 8192.
7320    lt_cv_sys_max_cmd_len=8192;
7321    ;;
7322
7323  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7324    # This has been around since 386BSD, at least.  Likely further.
7325    if test -x /sbin/sysctl; then
7326      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7327    elif test -x /usr/sbin/sysctl; then
7328      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7329    else
7330      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7331    fi
7332    # And add a safety zone
7333    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7334    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7335    ;;
7336
7337  interix*)
7338    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7339    lt_cv_sys_max_cmd_len=196608
7340    ;;
7341
7342  osf*)
7343    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7344    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7345    # nice to cause kernel panics so lets avoid the loop below.
7346    # First set a reasonable default.
7347    lt_cv_sys_max_cmd_len=16384
7348    #
7349    if test -x /sbin/sysconfig; then
7350      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7351        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7352      esac
7353    fi
7354    ;;
7355  sco3.2v5*)
7356    lt_cv_sys_max_cmd_len=102400
7357    ;;
7358  sysv5* | sco5v6* | sysv4.2uw2*)
7359    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7360    if test -n "$kargmax"; then
7361      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7362    else
7363      lt_cv_sys_max_cmd_len=32768
7364    fi
7365    ;;
7366  *)
7367    # If test is not a shell built-in, we'll probably end up computing a
7368    # maximum length that is only half of the actual maximum length, but
7369    # we can't tell.
7370    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7371    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7372               = "XX$teststring") >/dev/null 2>&1 &&
7373            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7374            lt_cv_sys_max_cmd_len=$new_result &&
7375            test $i != 17 # 1/2 MB should be enough
7376    do
7377      i=`expr $i + 1`
7378      teststring=$teststring$teststring
7379    done
7380    teststring=
7381    # Add a significant safety factor because C++ compilers can tack on massive
7382    # amounts of additional arguments before passing them to the linker.
7383    # It appears as though 1/2 is a usable value.
7384    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7385    ;;
7386  esac
7387
7388fi
7389
7390if test -n $lt_cv_sys_max_cmd_len ; then
7391  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7392echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7393else
7394  echo "$as_me:$LINENO: result: none" >&5
7395echo "${ECHO_T}none" >&6
7396fi
7397
7398
7399
7400
7401# Check for command to grab the raw symbol name followed by C symbol from nm.
7402echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7403echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7404if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7405  echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407
7408# These are sane defaults that work on at least a few old systems.
7409# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7410
7411# Character class describing NM global symbol codes.
7412symcode='[BCDEGRST]'
7413
7414# Regexp to match symbols that can be accessed directly from C.
7415sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7416
7417# Transform an extracted symbol line into a proper C declaration
7418lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7419
7420# Transform an extracted symbol line into symbol name and symbol address
7421lt_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'"
7422
7423# Define system-specific variables.
7424case $host_os in
7425aix*)
7426  symcode='[BCDT]'
7427  ;;
7428cygwin* | mingw* | pw32*)
7429  symcode='[ABCDGISTW]'
7430  ;;
7431hpux*) # Its linker distinguishes data from code symbols
7432  if test "$host_cpu" = ia64; then
7433    symcode='[ABCDEGRST]'
7434  fi
7435  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436  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'"
7437  ;;
7438linux*)
7439  if test "$host_cpu" = ia64; then
7440    symcode='[ABCDGIRSTW]'
7441    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7442    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'"
7443  fi
7444  ;;
7445irix* | nonstopux*)
7446  symcode='[BCDEGRST]'
7447  ;;
7448osf*)
7449  symcode='[BCDEGQRST]'
7450  ;;
7451solaris*)
7452  symcode='[BDRT]'
7453  ;;
7454sco3.2v5*)
7455  symcode='[DT]'
7456  ;;
7457sysv4.2uw2*)
7458  symcode='[DT]'
7459  ;;
7460sysv5* | sco5v6* | unixware* | OpenUNIX*)
7461  symcode='[ABDT]'
7462  ;;
7463sysv4)
7464  symcode='[DFNSTU]'
7465  ;;
7466esac
7467
7468# Handle CRLF in mingw tool chain
7469opt_cr=
7470case $build_os in
7471mingw*)
7472  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7473  ;;
7474esac
7475
7476# If we're using GNU nm, then use its standard symbol codes.
7477case `$NM -V 2>&1` in
7478*GNU* | *'with BFD'*)
7479  symcode='[ABCDGIRSTW]' ;;
7480esac
7481
7482# Try without a prefix undercore, then with it.
7483for ac_symprfx in "" "_"; do
7484
7485  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7486  symxfrm="\\1 $ac_symprfx\\2 \\2"
7487
7488  # Write the raw and C identifiers.
7489  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7490
7491  # Check to see that the pipe works correctly.
7492  pipe_works=no
7493
7494  rm -f conftest*
7495  cat > conftest.$ac_ext <<EOF
7496#ifdef __cplusplus
7497extern "C" {
7498#endif
7499char nm_test_var;
7500void nm_test_func(){}
7501#ifdef __cplusplus
7502}
7503#endif
7504int main(){nm_test_var='a';nm_test_func();return(0);}
7505EOF
7506
7507  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7508  (eval $ac_compile) 2>&5
7509  ac_status=$?
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); }; then
7512    # Now try to grab the symbols.
7513    nlist=conftest.nm
7514    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7515  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7516  ac_status=$?
7517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518  (exit $ac_status); } && test -s "$nlist"; then
7519      # Try sorting and uniquifying the output.
7520      if sort "$nlist" | uniq > "$nlist"T; then
7521        mv -f "$nlist"T "$nlist"
7522      else
7523        rm -f "$nlist"T
7524      fi
7525
7526      # Make sure that we snagged all the symbols we need.
7527      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7528        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7529          cat <<EOF > conftest.$ac_ext
7530#ifdef __cplusplus
7531extern "C" {
7532#endif
7533
7534EOF
7535          # Now generate the symbol file.
7536          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7537
7538          cat <<EOF >> conftest.$ac_ext
7539#if defined (__STDC__) && __STDC__
7540# define lt_ptr_t void *
7541#else
7542# define lt_ptr_t char *
7543# define const
7544#endif
7545
7546/* The mapping between symbol names and symbols. */
7547const struct {
7548  const char *name;
7549  lt_ptr_t address;
7550}
7551lt_preloaded_symbols[] =
7552{
7553EOF
7554          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7555          cat <<\EOF >> conftest.$ac_ext
7556  {0, (lt_ptr_t) 0}
7557};
7558
7559#ifdef __cplusplus
7560}
7561#endif
7562EOF
7563          # Now try linking the two files.
7564          mv conftest.$ac_objext conftstm.$ac_objext
7565          lt_save_LIBS="$LIBS"
7566          lt_save_CFLAGS="$CFLAGS"
7567          LIBS="conftstm.$ac_objext"
7568          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7569          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570  (eval $ac_link) 2>&5
7571  ac_status=$?
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7574            pipe_works=yes
7575          fi
7576          LIBS="$lt_save_LIBS"
7577          CFLAGS="$lt_save_CFLAGS"
7578        else
7579          echo "cannot find nm_test_func in $nlist" >&5
7580        fi
7581      else
7582        echo "cannot find nm_test_var in $nlist" >&5
7583      fi
7584    else
7585      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7586    fi
7587  else
7588    echo "$progname: failed program was:" >&5
7589    cat conftest.$ac_ext >&5
7590  fi
7591  rm -f conftest* conftst*
7592
7593  # Do not use the global_symbol_pipe unless it works.
7594  if test "$pipe_works" = yes; then
7595    break
7596  else
7597    lt_cv_sys_global_symbol_pipe=
7598  fi
7599done
7600
7601fi
7602
7603if test -z "$lt_cv_sys_global_symbol_pipe"; then
7604  lt_cv_sys_global_symbol_to_cdecl=
7605fi
7606if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7607  echo "$as_me:$LINENO: result: failed" >&5
7608echo "${ECHO_T}failed" >&6
7609else
7610  echo "$as_me:$LINENO: result: ok" >&5
7611echo "${ECHO_T}ok" >&6
7612fi
7613
7614echo "$as_me:$LINENO: checking for objdir" >&5
7615echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7616if test "${lt_cv_objdir+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  rm -f .libs 2>/dev/null
7620mkdir .libs 2>/dev/null
7621if test -d .libs; then
7622  lt_cv_objdir=.libs
7623else
7624  # MS-DOS does not allow filenames that begin with a dot.
7625  lt_cv_objdir=_libs
7626fi
7627rmdir .libs 2>/dev/null
7628fi
7629echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7630echo "${ECHO_T}$lt_cv_objdir" >&6
7631objdir=$lt_cv_objdir
7632
7633
7634
7635
7636
7637case $host_os in
7638aix3*)
7639  # AIX sometimes has problems with the GCC collect2 program.  For some
7640  # reason, if we set the COLLECT_NAMES environment variable, the problems
7641  # vanish in a puff of smoke.
7642  if test "X${COLLECT_NAMES+set}" != Xset; then
7643    COLLECT_NAMES=
7644    export COLLECT_NAMES
7645  fi
7646  ;;
7647esac
7648
7649# Sed substitution that helps us do robust quoting.  It backslashifies
7650# metacharacters that are still active within double-quoted strings.
7651Xsed='sed -e 1s/^X//'
7652sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7653
7654# Same as above, but do not quote variable references.
7655double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7656
7657# Sed substitution to delay expansion of an escaped shell variable in a
7658# double_quote_subst'ed string.
7659delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7660
7661# Sed substitution to avoid accidental globbing in evaled expressions
7662no_glob_subst='s/\*/\\\*/g'
7663
7664# Constants:
7665rm="rm -f"
7666
7667# Global variables:
7668default_ofile=libtool
7669can_build_shared=yes
7670
7671# All known linkers require a `.a' archive for static linking (except MSVC,
7672# which needs '.lib').
7673libext=a
7674ltmain="$ac_aux_dir/ltmain.sh"
7675ofile="$default_ofile"
7676with_gnu_ld="$lt_cv_prog_gnu_ld"
7677
7678if test -n "$ac_tool_prefix"; then
7679  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7680set dummy ${ac_tool_prefix}ar; ac_word=$2
7681echo "$as_me:$LINENO: checking for $ac_word" >&5
7682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683if test "${ac_cv_prog_AR+set}" = set; then
7684  echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686  if test -n "$AR"; then
7687  ac_cv_prog_AR="$AR" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692  IFS=$as_save_IFS
7693  test -z "$as_dir" && as_dir=.
7694  for ac_exec_ext in '' $ac_executable_extensions; do
7695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696    ac_cv_prog_AR="${ac_tool_prefix}ar"
7697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698    break 2
7699  fi
7700done
7701done
7702
7703fi
7704fi
7705AR=$ac_cv_prog_AR
7706if test -n "$AR"; then
7707  echo "$as_me:$LINENO: result: $AR" >&5
7708echo "${ECHO_T}$AR" >&6
7709else
7710  echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712fi
7713
7714fi
7715if test -z "$ac_cv_prog_AR"; then
7716  ac_ct_AR=$AR
7717  # Extract the first word of "ar", so it can be a program name with args.
7718set dummy ar; ac_word=$2
7719echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7722  echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724  if test -n "$ac_ct_AR"; then
7725  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730  IFS=$as_save_IFS
7731  test -z "$as_dir" && as_dir=.
7732  for ac_exec_ext in '' $ac_executable_extensions; do
7733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734    ac_cv_prog_ac_ct_AR="ar"
7735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736    break 2
7737  fi
7738done
7739done
7740
7741  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7742fi
7743fi
7744ac_ct_AR=$ac_cv_prog_ac_ct_AR
7745if test -n "$ac_ct_AR"; then
7746  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7747echo "${ECHO_T}$ac_ct_AR" >&6
7748else
7749  echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
7751fi
7752
7753  AR=$ac_ct_AR
7754else
7755  AR="$ac_cv_prog_AR"
7756fi
7757
7758if test -n "$ac_tool_prefix"; then
7759  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7761echo "$as_me:$LINENO: checking for $ac_word" >&5
7762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763if test "${ac_cv_prog_RANLIB+set}" = set; then
7764  echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766  if test -n "$RANLIB"; then
7767  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774  for ac_exec_ext in '' $ac_executable_extensions; do
7775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781done
7782
7783fi
7784fi
7785RANLIB=$ac_cv_prog_RANLIB
7786if test -n "$RANLIB"; then
7787  echo "$as_me:$LINENO: result: $RANLIB" >&5
7788echo "${ECHO_T}$RANLIB" >&6
7789else
7790  echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
7792fi
7793
7794fi
7795if test -z "$ac_cv_prog_RANLIB"; then
7796  ac_ct_RANLIB=$RANLIB
7797  # Extract the first word of "ranlib", so it can be a program name with args.
7798set dummy ranlib; ac_word=$2
7799echo "$as_me:$LINENO: checking for $ac_word" >&5
7800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7802  echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804  if test -n "$ac_ct_RANLIB"; then
7805  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812  for ac_exec_ext in '' $ac_executable_extensions; do
7813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_ac_ct_RANLIB="ranlib"
7815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819done
7820
7821  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7822fi
7823fi
7824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7825if test -n "$ac_ct_RANLIB"; then
7826  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7827echo "${ECHO_T}$ac_ct_RANLIB" >&6
7828else
7829  echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831fi
7832
7833  RANLIB=$ac_ct_RANLIB
7834else
7835  RANLIB="$ac_cv_prog_RANLIB"
7836fi
7837
7838if test -n "$ac_tool_prefix"; then
7839  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7840set dummy ${ac_tool_prefix}strip; ac_word=$2
7841echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7843if test "${ac_cv_prog_STRIP+set}" = set; then
7844  echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846  if test -n "$STRIP"; then
7847  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  test -z "$as_dir" && as_dir=.
7854  for ac_exec_ext in '' $ac_executable_extensions; do
7855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861done
7862
7863fi
7864fi
7865STRIP=$ac_cv_prog_STRIP
7866if test -n "$STRIP"; then
7867  echo "$as_me:$LINENO: result: $STRIP" >&5
7868echo "${ECHO_T}$STRIP" >&6
7869else
7870  echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872fi
7873
7874fi
7875if test -z "$ac_cv_prog_STRIP"; then
7876  ac_ct_STRIP=$STRIP
7877  # Extract the first word of "strip", so it can be a program name with args.
7878set dummy strip; ac_word=$2
7879echo "$as_me:$LINENO: checking for $ac_word" >&5
7880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7881if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7882  echo $ECHO_N "(cached) $ECHO_C" >&6
7883else
7884  if test -n "$ac_ct_STRIP"; then
7885  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7886else
7887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888for as_dir in $PATH
7889do
7890  IFS=$as_save_IFS
7891  test -z "$as_dir" && as_dir=.
7892  for ac_exec_ext in '' $ac_executable_extensions; do
7893  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894    ac_cv_prog_ac_ct_STRIP="strip"
7895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896    break 2
7897  fi
7898done
7899done
7900
7901  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7902fi
7903fi
7904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7905if test -n "$ac_ct_STRIP"; then
7906  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7907echo "${ECHO_T}$ac_ct_STRIP" >&6
7908else
7909  echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911fi
7912
7913  STRIP=$ac_ct_STRIP
7914else
7915  STRIP="$ac_cv_prog_STRIP"
7916fi
7917
7918
7919old_CC="$CC"
7920old_CFLAGS="$CFLAGS"
7921
7922# Set sane defaults for various variables
7923test -z "$AR" && AR=ar
7924test -z "$AR_FLAGS" && AR_FLAGS=cru
7925test -z "$AS" && AS=as
7926test -z "$CC" && CC=cc
7927test -z "$LTCC" && LTCC=$CC
7928test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7929test -z "$DLLTOOL" && DLLTOOL=dlltool
7930test -z "$LD" && LD=ld
7931test -z "$LN_S" && LN_S="ln -s"
7932test -z "$MAGIC_CMD" && MAGIC_CMD=file
7933test -z "$NM" && NM=nm
7934test -z "$SED" && SED=sed
7935test -z "$OBJDUMP" && OBJDUMP=objdump
7936test -z "$RANLIB" && RANLIB=:
7937test -z "$STRIP" && STRIP=:
7938test -z "$ac_objext" && ac_objext=o
7939
7940# Determine commands to create old-style static archives.
7941old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7942old_postinstall_cmds='chmod 644 $oldlib'
7943old_postuninstall_cmds=
7944
7945if test -n "$RANLIB"; then
7946  case $host_os in
7947  openbsd*)
7948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7949    ;;
7950  *)
7951    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7952    ;;
7953  esac
7954  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7955fi
7956
7957for cc_temp in $compiler""; do
7958  case $cc_temp in
7959    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7960    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7961    \-*) ;;
7962    *) break;;
7963  esac
7964done
7965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7966
7967
7968# Only perform the check for file, if the check method requires it
7969case $deplibs_check_method in
7970file_magic*)
7971  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7973echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7975  echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977  case $MAGIC_CMD in
7978[\\/*] |  ?:[\\/]*)
7979  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980  ;;
7981*)
7982  lt_save_MAGIC_CMD="$MAGIC_CMD"
7983  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985  for ac_dir in $ac_dummy; do
7986    IFS="$lt_save_ifs"
7987    test -z "$ac_dir" && ac_dir=.
7988    if test -f $ac_dir/${ac_tool_prefix}file; then
7989      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990      if test -n "$file_magic_test_file"; then
7991        case $deplibs_check_method in
7992        "file_magic "*)
7993          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996            $EGREP "$file_magic_regex" > /dev/null; then
7997            :
7998          else
7999            cat <<EOF 1>&2
8000
8001*** Warning: the command libtool uses to detect shared libraries,
8002*** $file_magic_cmd, produces output that libtool cannot recognize.
8003*** The result is that libtool may fail to recognize shared libraries
8004*** as such.  This will affect the creation of libtool libraries that
8005*** depend on shared libraries, but programs linked with such libtool
8006*** libraries will work regardless of this problem.  Nevertheless, you
8007*** may want to report the problem to your system manager and/or to
8008*** bug-libtool@gnu.org
8009
8010EOF
8011          fi ;;
8012        esac
8013      fi
8014      break
8015    fi
8016  done
8017  IFS="$lt_save_ifs"
8018  MAGIC_CMD="$lt_save_MAGIC_CMD"
8019  ;;
8020esac
8021fi
8022
8023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024if test -n "$MAGIC_CMD"; then
8025  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8026echo "${ECHO_T}$MAGIC_CMD" >&6
8027else
8028  echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
8030fi
8031
8032if test -z "$lt_cv_path_MAGIC_CMD"; then
8033  if test -n "$ac_tool_prefix"; then
8034    echo "$as_me:$LINENO: checking for file" >&5
8035echo $ECHO_N "checking for file... $ECHO_C" >&6
8036if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8037  echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039  case $MAGIC_CMD in
8040[\\/*] |  ?:[\\/]*)
8041  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8042  ;;
8043*)
8044  lt_save_MAGIC_CMD="$MAGIC_CMD"
8045  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8046  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8047  for ac_dir in $ac_dummy; do
8048    IFS="$lt_save_ifs"
8049    test -z "$ac_dir" && ac_dir=.
8050    if test -f $ac_dir/file; then
8051      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8052      if test -n "$file_magic_test_file"; then
8053        case $deplibs_check_method in
8054        "file_magic "*)
8055          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8056          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8057          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8058            $EGREP "$file_magic_regex" > /dev/null; then
8059            :
8060          else
8061            cat <<EOF 1>&2
8062
8063*** Warning: the command libtool uses to detect shared libraries,
8064*** $file_magic_cmd, produces output that libtool cannot recognize.
8065*** The result is that libtool may fail to recognize shared libraries
8066*** as such.  This will affect the creation of libtool libraries that
8067*** depend on shared libraries, but programs linked with such libtool
8068*** libraries will work regardless of this problem.  Nevertheless, you
8069*** may want to report the problem to your system manager and/or to
8070*** bug-libtool@gnu.org
8071
8072EOF
8073          fi ;;
8074        esac
8075      fi
8076      break
8077    fi
8078  done
8079  IFS="$lt_save_ifs"
8080  MAGIC_CMD="$lt_save_MAGIC_CMD"
8081  ;;
8082esac
8083fi
8084
8085MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8086if test -n "$MAGIC_CMD"; then
8087  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8088echo "${ECHO_T}$MAGIC_CMD" >&6
8089else
8090  echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
8092fi
8093
8094  else
8095    MAGIC_CMD=:
8096  fi
8097fi
8098
8099  fi
8100  ;;
8101esac
8102
8103enable_dlopen=no
8104enable_win32_dll=no
8105
8106# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8107if test "${enable_libtool_lock+set}" = set; then
8108  enableval="$enable_libtool_lock"
8109
8110fi;
8111test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8112
8113
8114# Check whether --with-pic or --without-pic was given.
8115if test "${with_pic+set}" = set; then
8116  withval="$with_pic"
8117  pic_mode="$withval"
8118else
8119  pic_mode=default
8120fi;
8121test -z "$pic_mode" && pic_mode=default
8122
8123# Use C for the default configuration in the libtool script
8124tagname=
8125lt_save_CC="$CC"
8126ac_ext=c
8127ac_cpp='$CPP $CPPFLAGS'
8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132
8133# Source file extension for C test sources.
8134ac_ext=c
8135
8136# Object file extension for compiled C test sources.
8137objext=o
8138objext=$objext
8139
8140# Code to be used in simple compile tests
8141lt_simple_compile_test_code="int some_variable = 0;\n"
8142
8143# Code to be used in simple link tests
8144lt_simple_link_test_code='int main(){return(0);}\n'
8145
8146
8147# If no C compiler was specified, use CC.
8148LTCC=${LTCC-"$CC"}
8149
8150# If no C compiler flags were specified, use CFLAGS.
8151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8152
8153# Allow CC to be a program name with arguments.
8154compiler=$CC
8155
8156
8157# save warnings/boilerplate of simple test code
8158ac_outfile=conftest.$ac_objext
8159printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8161_lt_compiler_boilerplate=`cat conftest.err`
8162$rm conftest*
8163
8164ac_outfile=conftest.$ac_objext
8165printf "$lt_simple_link_test_code" >conftest.$ac_ext
8166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8167_lt_linker_boilerplate=`cat conftest.err`
8168$rm conftest*
8169
8170
8171## CAVEAT EMPTOR:
8172## There is no encapsulation within the following macros, do not change
8173## the running order or otherwise move them around unless you know exactly
8174## what you are doing...
8175
8176lt_prog_compiler_no_builtin_flag=
8177
8178if test "$GCC" = yes; then
8179  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8180
8181
8182echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8183echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8184if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187  lt_cv_prog_compiler_rtti_exceptions=no
8188  ac_outfile=conftest.$ac_objext
8189   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8190   lt_compiler_flag="-fno-rtti -fno-exceptions"
8191   # Insert the option either (1) after the last *FLAGS variable, or
8192   # (2) before a word containing "conftest.", or (3) at the end.
8193   # Note that $ac_compile itself does not contain backslashes and begins
8194   # with a dollar sign (not a hyphen), so the echo should work correctly.
8195   # The option is referenced via a variable to avoid confusing sed.
8196   lt_compile=`echo "$ac_compile" | $SED \
8197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199   -e 's:$: $lt_compiler_flag:'`
8200   (eval echo "\"\$as_me:8200: $lt_compile\"" >&5)
8201   (eval "$lt_compile" 2>conftest.err)
8202   ac_status=$?
8203   cat conftest.err >&5
8204   echo "$as_me:8204: \$? = $ac_status" >&5
8205   if (exit $ac_status) && test -s "$ac_outfile"; then
8206     # The compiler can only warn and ignore the option if not recognized
8207     # So say no if there are warnings other than the usual output.
8208     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8209     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8211       lt_cv_prog_compiler_rtti_exceptions=yes
8212     fi
8213   fi
8214   $rm conftest*
8215
8216fi
8217echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8218echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8219
8220if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8221    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8222else
8223    :
8224fi
8225
8226fi
8227
8228lt_prog_compiler_wl=
8229lt_prog_compiler_pic=
8230lt_prog_compiler_static=
8231
8232echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8233echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8234
8235  if test "$GCC" = yes; then
8236    lt_prog_compiler_wl='-Wl,'
8237    lt_prog_compiler_static='-static'
8238
8239    case $host_os in
8240      aix*)
8241      # All AIX code is PIC.
8242      if test "$host_cpu" = ia64; then
8243        # AIX 5 now supports IA64 processor
8244        lt_prog_compiler_static='-Bstatic'
8245      fi
8246      ;;
8247
8248    amigaos*)
8249      # FIXME: we need at least 68020 code to build shared libraries, but
8250      # adding the `-m68020' flag to GCC prevents building anything better,
8251      # like `-m68040'.
8252      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8253      ;;
8254
8255    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8256      # PIC is the default for these OSes.
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    darwin* | rhapsody*)
8266      # PIC is the default on this platform
8267      # Common symbols not allowed in MH_DYLIB files
8268      lt_prog_compiler_pic='-fno-common'
8269      ;;
8270
8271    interix3*)
8272      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8273      # Instead, we relocate shared libraries at runtime.
8274      ;;
8275
8276    msdosdjgpp*)
8277      # Just because we use GCC doesn't mean we suddenly get shared libraries
8278      # on systems that don't support them.
8279      lt_prog_compiler_can_build_shared=no
8280      enable_shared=no
8281      ;;
8282
8283    sysv4*MP*)
8284      if test -d /usr/nec; then
8285        lt_prog_compiler_pic=-Kconform_pic
8286      fi
8287      ;;
8288
8289    hpux*)
8290      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8291      # not for PA HP-UX.
8292      case $host_cpu in
8293      hppa*64*|ia64*)
8294        # +Z the default
8295        ;;
8296      *)
8297        lt_prog_compiler_pic='-fPIC'
8298        ;;
8299      esac
8300      ;;
8301
8302    *)
8303      lt_prog_compiler_pic='-fPIC'
8304      ;;
8305    esac
8306  else
8307    # PORTME Check for flag to pass linker flags through the system compiler.
8308    case $host_os in
8309    aix*)
8310      lt_prog_compiler_wl='-Wl,'
8311      if test "$host_cpu" = ia64; then
8312        # AIX 5 now supports IA64 processor
8313        lt_prog_compiler_static='-Bstatic'
8314      else
8315        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8316      fi
8317      ;;
8318      darwin*)
8319        # PIC is the default on this platform
8320        # Common symbols not allowed in MH_DYLIB files
8321       case $cc_basename in
8322         xlc*)
8323         lt_prog_compiler_pic='-qnocommon'
8324         lt_prog_compiler_wl='-Wl,'
8325         ;;
8326       esac
8327       ;;
8328
8329    mingw* | pw32* | os2*)
8330      # This hack is so that the source file can tell whether it is being
8331      # built for inclusion in a dll (and should export symbols for example).
8332      lt_prog_compiler_pic='-DDLL_EXPORT'
8333      ;;
8334
8335    hpux9* | hpux10* | hpux11*)
8336      lt_prog_compiler_wl='-Wl,'
8337      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8338      # not for PA HP-UX.
8339      case $host_cpu in
8340      hppa*64*|ia64*)
8341        # +Z the default
8342        ;;
8343      *)
8344        lt_prog_compiler_pic='+Z'
8345        ;;
8346      esac
8347      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8348      lt_prog_compiler_static='${wl}-a ${wl}archive'
8349      ;;
8350
8351    irix5* | irix6* | nonstopux*)
8352      lt_prog_compiler_wl='-Wl,'
8353      # PIC (with -KPIC) is the default.
8354      lt_prog_compiler_static='-non_shared'
8355      ;;
8356
8357    newsos6)
8358      lt_prog_compiler_pic='-KPIC'
8359      lt_prog_compiler_static='-Bstatic'
8360      ;;
8361
8362    linux*)
8363      case $cc_basename in
8364      icc* | ecc*)
8365        lt_prog_compiler_wl='-Wl,'
8366        lt_prog_compiler_pic='-KPIC'
8367        lt_prog_compiler_static='-static'
8368        ;;
8369      pgcc* | pgf77* | pgf90* | pgf95*)
8370        # Portland Group compilers (*not* the Pentium gcc compiler,
8371        # which looks to be a dead project)
8372        lt_prog_compiler_wl='-Wl,'
8373        lt_prog_compiler_pic='-fpic'
8374        lt_prog_compiler_static='-Bstatic'
8375        ;;
8376      ccc*)
8377        lt_prog_compiler_wl='-Wl,'
8378        # All Alpha code is PIC.
8379        lt_prog_compiler_static='-non_shared'
8380        ;;
8381      esac
8382      ;;
8383
8384    osf3* | osf4* | osf5*)
8385      lt_prog_compiler_wl='-Wl,'
8386      # All OSF/1 code is PIC.
8387      lt_prog_compiler_static='-non_shared'
8388      ;;
8389
8390    solaris*)
8391      lt_prog_compiler_pic='-KPIC'
8392      lt_prog_compiler_static='-Bstatic'
8393      case $cc_basename in
8394      f77* | f90* | f95*)
8395        lt_prog_compiler_wl='-Qoption ld ';;
8396      *)
8397        lt_prog_compiler_wl='-Wl,';;
8398      esac
8399      ;;
8400
8401    sunos4*)
8402      lt_prog_compiler_wl='-Qoption ld '
8403      lt_prog_compiler_pic='-PIC'
8404      lt_prog_compiler_static='-Bstatic'
8405      ;;
8406
8407    sysv4 | sysv4.2uw2* | sysv4.3*)
8408      lt_prog_compiler_wl='-Wl,'
8409      lt_prog_compiler_pic='-KPIC'
8410      lt_prog_compiler_static='-Bstatic'
8411      ;;
8412
8413    sysv4*MP*)
8414      if test -d /usr/nec ;then
8415        lt_prog_compiler_pic='-Kconform_pic'
8416        lt_prog_compiler_static='-Bstatic'
8417      fi
8418      ;;
8419
8420    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8421      lt_prog_compiler_wl='-Wl,'
8422      lt_prog_compiler_pic='-KPIC'
8423      lt_prog_compiler_static='-Bstatic'
8424      ;;
8425
8426    unicos*)
8427      lt_prog_compiler_wl='-Wl,'
8428      lt_prog_compiler_can_build_shared=no
8429      ;;
8430
8431    uts4*)
8432      lt_prog_compiler_pic='-pic'
8433      lt_prog_compiler_static='-Bstatic'
8434      ;;
8435
8436    *)
8437      lt_prog_compiler_can_build_shared=no
8438      ;;
8439    esac
8440  fi
8441
8442echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8443echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8444
8445#
8446# Check to make sure the PIC flag actually works.
8447#
8448if test -n "$lt_prog_compiler_pic"; then
8449
8450echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8451echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8452if test "${lt_prog_compiler_pic_works+set}" = set; then
8453  echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455  lt_prog_compiler_pic_works=no
8456  ac_outfile=conftest.$ac_objext
8457   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8458   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8459   # Insert the option either (1) after the last *FLAGS variable, or
8460   # (2) before a word containing "conftest.", or (3) at the end.
8461   # Note that $ac_compile itself does not contain backslashes and begins
8462   # with a dollar sign (not a hyphen), so the echo should work correctly.
8463   # The option is referenced via a variable to avoid confusing sed.
8464   lt_compile=`echo "$ac_compile" | $SED \
8465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8467   -e 's:$: $lt_compiler_flag:'`
8468   (eval echo "\"\$as_me:8468: $lt_compile\"" >&5)
8469   (eval "$lt_compile" 2>conftest.err)
8470   ac_status=$?
8471   cat conftest.err >&5
8472   echo "$as_me:8472: \$? = $ac_status" >&5
8473   if (exit $ac_status) && test -s "$ac_outfile"; then
8474     # The compiler can only warn and ignore the option if not recognized
8475     # So say no if there are warnings other than the usual output.
8476     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8477     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8478     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8479       lt_prog_compiler_pic_works=yes
8480     fi
8481   fi
8482   $rm conftest*
8483
8484fi
8485echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8486echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8487
8488if test x"$lt_prog_compiler_pic_works" = xyes; then
8489    case $lt_prog_compiler_pic in
8490     "" | " "*) ;;
8491     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8492     esac
8493else
8494    lt_prog_compiler_pic=
8495     lt_prog_compiler_can_build_shared=no
8496fi
8497
8498fi
8499case $host_os in
8500  # For platforms which do not support PIC, -DPIC is meaningless:
8501  *djgpp*)
8502    lt_prog_compiler_pic=
8503    ;;
8504  *)
8505    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8506    ;;
8507esac
8508
8509#
8510# Check to make sure the static flag actually works.
8511#
8512wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8513echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8514echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8515if test "${lt_prog_compiler_static_works+set}" = set; then
8516  echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518  lt_prog_compiler_static_works=no
8519   save_LDFLAGS="$LDFLAGS"
8520   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8521   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8522   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8523     # The linker can only warn and ignore the option if not recognized
8524     # So say no if there are warnings
8525     if test -s conftest.err; then
8526       # Append any errors to the config.log.
8527       cat conftest.err 1>&5
8528       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8529       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530       if diff conftest.exp conftest.er2 >/dev/null; then
8531         lt_prog_compiler_static_works=yes
8532       fi
8533     else
8534       lt_prog_compiler_static_works=yes
8535     fi
8536   fi
8537   $rm conftest*
8538   LDFLAGS="$save_LDFLAGS"
8539
8540fi
8541echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8542echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8543
8544if test x"$lt_prog_compiler_static_works" = xyes; then
8545    :
8546else
8547    lt_prog_compiler_static=
8548fi
8549
8550
8551echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8552echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8553if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8554  echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556  lt_cv_prog_compiler_c_o=no
8557   $rm -r conftest 2>/dev/null
8558   mkdir conftest
8559   cd conftest
8560   mkdir out
8561   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8562
8563   lt_compiler_flag="-o out/conftest2.$ac_objext"
8564   # Insert the option either (1) after the last *FLAGS variable, or
8565   # (2) before a word containing "conftest.", or (3) at the end.
8566   # Note that $ac_compile itself does not contain backslashes and begins
8567   # with a dollar sign (not a hyphen), so the echo should work correctly.
8568   lt_compile=`echo "$ac_compile" | $SED \
8569   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8570   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8571   -e 's:$: $lt_compiler_flag:'`
8572   (eval echo "\"\$as_me:8572: $lt_compile\"" >&5)
8573   (eval "$lt_compile" 2>out/conftest.err)
8574   ac_status=$?
8575   cat out/conftest.err >&5
8576   echo "$as_me:8576: \$? = $ac_status" >&5
8577   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8578   then
8579     # The compiler can only warn and ignore the option if not recognized
8580     # So say no if there are warnings
8581     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8582     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8583     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8584       lt_cv_prog_compiler_c_o=yes
8585     fi
8586   fi
8587   chmod u+w . 2>&5
8588   $rm conftest*
8589   # SGI C++ compiler will create directory out/ii_files/ for
8590   # template instantiation
8591   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8592   $rm out/* && rmdir out
8593   cd ..
8594   rmdir conftest
8595   $rm conftest*
8596
8597fi
8598echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8599echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8600
8601
8602hard_links="nottested"
8603if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8604  # do not overwrite the value of need_locks provided by the user
8605  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8606echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8607  hard_links=yes
8608  $rm conftest*
8609  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8610  touch conftest.a
8611  ln conftest.a conftest.b 2>&5 || hard_links=no
8612  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8613  echo "$as_me:$LINENO: result: $hard_links" >&5
8614echo "${ECHO_T}$hard_links" >&6
8615  if test "$hard_links" = no; then
8616    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8617echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8618    need_locks=warn
8619  fi
8620else
8621  need_locks=no
8622fi
8623
8624echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8625echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8626
8627  runpath_var=
8628  allow_undefined_flag=
8629  enable_shared_with_static_runtimes=no
8630  archive_cmds=
8631  archive_expsym_cmds=
8632  old_archive_From_new_cmds=
8633  old_archive_from_expsyms_cmds=
8634  export_dynamic_flag_spec=
8635  whole_archive_flag_spec=
8636  thread_safe_flag_spec=
8637  hardcode_libdir_flag_spec=
8638  hardcode_libdir_flag_spec_ld=
8639  hardcode_libdir_separator=
8640  hardcode_direct=no
8641  hardcode_minus_L=no
8642  hardcode_shlibpath_var=unsupported
8643  link_all_deplibs=unknown
8644  hardcode_automatic=no
8645  module_cmds=
8646  module_expsym_cmds=
8647  always_export_symbols=no
8648  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8649  # include_expsyms should be a list of space-separated symbols to be *always*
8650  # included in the symbol list
8651  include_expsyms=
8652  # exclude_expsyms can be an extended regexp of symbols to exclude
8653  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8654  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8655  # as well as any symbol that contains `d'.
8656  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8657  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8658  # platforms (ab)use it in PIC code, but their linkers get confused if
8659  # the symbol is explicitly referenced.  Since portable code cannot
8660  # rely on this symbol name, it's probably fine to never include it in
8661  # preloaded symbol tables.
8662  extract_expsyms_cmds=
8663  # Just being paranoid about ensuring that cc_basename is set.
8664  for cc_temp in $compiler""; do
8665  case $cc_temp in
8666    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8667    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8668    \-*) ;;
8669    *) break;;
8670  esac
8671done
8672cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8673
8674  case $host_os in
8675  cygwin* | mingw* | pw32*)
8676    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8677    # When not using gcc, we currently assume that we are using
8678    # Microsoft Visual C++.
8679    if test "$GCC" != yes; then
8680      with_gnu_ld=no
8681    fi
8682    ;;
8683  interix*)
8684    # we just hope/assume this is gcc and not c89 (= MSVC++)
8685    with_gnu_ld=yes
8686    ;;
8687  openbsd*)
8688    with_gnu_ld=no
8689    ;;
8690  esac
8691
8692  ld_shlibs=yes
8693  if test "$with_gnu_ld" = yes; then
8694    # If archive_cmds runs LD, not CC, wlarc should be empty
8695    wlarc='${wl}'
8696
8697    # Set some defaults for GNU ld with shared library support. These
8698    # are reset later if shared libraries are not supported. Putting them
8699    # here allows them to be overridden if necessary.
8700    runpath_var=LD_RUN_PATH
8701    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8702    export_dynamic_flag_spec='${wl}--export-dynamic'
8703    # ancient GNU ld didn't support --whole-archive et. al.
8704    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8705        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8706      else
8707        whole_archive_flag_spec=
8708    fi
8709    supports_anon_versioning=no
8710    case `$LD -v 2>/dev/null` in
8711      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8712      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8713      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8714      *\ 2.11.*) ;; # other 2.11 versions
8715      *) supports_anon_versioning=yes ;;
8716    esac
8717
8718    # See if GNU ld supports shared libraries.
8719    case $host_os in
8720    aix3* | aix4* | aix5*)
8721      # On AIX/PPC, the GNU linker is very broken
8722      if test "$host_cpu" != ia64; then
8723        ld_shlibs=no
8724        cat <<EOF 1>&2
8725
8726*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8727*** to be unable to reliably create shared libraries on AIX.
8728*** Therefore, libtool is disabling shared libraries support.  If you
8729*** really care for shared libraries, you may want to modify your PATH
8730*** so that a non-GNU linker is found, and then restart.
8731
8732EOF
8733      fi
8734      ;;
8735
8736    amigaos*)
8737      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)'
8738      hardcode_libdir_flag_spec='-L$libdir'
8739      hardcode_minus_L=yes
8740
8741      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8742      # that the semantics of dynamic libraries on AmigaOS, at least up
8743      # to version 4, is to share data among multiple programs linked
8744      # with the same dynamic library.  Since this doesn't match the
8745      # behavior of shared libraries on other platforms, we can't use
8746      # them.
8747      ld_shlibs=no
8748      ;;
8749
8750    beos*)
8751      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752        allow_undefined_flag=unsupported
8753        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8754        # support --undefined.  This deserves some investigation.  FIXME
8755        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756      else
8757        ld_shlibs=no
8758      fi
8759      ;;
8760
8761    cygwin* | mingw* | pw32*)
8762      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8763      # as there is no search path for DLLs.
8764      hardcode_libdir_flag_spec='-L$libdir'
8765      allow_undefined_flag=unsupported
8766      always_export_symbols=no
8767      enable_shared_with_static_runtimes=yes
8768      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8769
8770      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8771        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8772        # If the export-symbols file already is a .def file (1st line
8773        # is EXPORTS), use it as is; otherwise, prepend...
8774        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8775          cp $export_symbols $output_objdir/$soname.def;
8776        else
8777          echo EXPORTS > $output_objdir/$soname.def;
8778          cat $export_symbols >> $output_objdir/$soname.def;
8779        fi~
8780        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8781      else
8782        ld_shlibs=no
8783      fi
8784      ;;
8785
8786    interix3*)
8787      hardcode_direct=no
8788      hardcode_shlibpath_var=no
8789      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8790      export_dynamic_flag_spec='${wl}-E'
8791      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8792      # Instead, shared libraries are loaded at an image base (0x10000000 by
8793      # default) and relocated if they conflict, which is a slow very memory
8794      # consuming and fragmenting process.  To avoid this, we pick a random,
8795      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8796      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8797      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8798      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'
8799      ;;
8800
8801    linux*)
8802      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8803        tmp_addflag=
8804        case $cc_basename,$host_cpu in
8805        pgcc*)                          # Portland Group C compiler
8806          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'
8807          tmp_addflag=' $pic_flag'
8808          ;;
8809        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8810          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'
8811          tmp_addflag=' $pic_flag -Mnomain' ;;
8812        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8813          tmp_addflag=' -i_dynamic' ;;
8814        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8815          tmp_addflag=' -i_dynamic -nofor_main' ;;
8816        ifc* | ifort*)                  # Intel Fortran compiler
8817          tmp_addflag=' -nofor_main' ;;
8818        esac
8819        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820
8821        if test $supports_anon_versioning = yes; then
8822          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8823  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8824  $echo "local: *; };" >> $output_objdir/$libname.ver~
8825          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8826        fi
8827      else
8828        ld_shlibs=no
8829      fi
8830      ;;
8831
8832    netbsd*)
8833      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8834        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8835        wlarc=
8836      else
8837        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8839      fi
8840      ;;
8841
8842    solaris*)
8843      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8844        ld_shlibs=no
8845        cat <<EOF 1>&2
8846
8847*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8848*** create shared libraries on Solaris systems.  Therefore, libtool
8849*** is disabling shared libraries support.  We urge you to upgrade GNU
8850*** binutils to release 2.9.1 or newer.  Another option is to modify
8851*** your PATH or compiler configuration so that the native linker is
8852*** used, and then restart.
8853
8854EOF
8855      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8856        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858      else
8859        ld_shlibs=no
8860      fi
8861      ;;
8862
8863    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8864      case `$LD -v 2>&1` in
8865        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8866        ld_shlibs=no
8867        cat <<_LT_EOF 1>&2
8868
8869*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8870*** reliably create shared libraries on SCO systems.  Therefore, libtool
8871*** is disabling shared libraries support.  We urge you to upgrade GNU
8872*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8873*** your PATH or compiler configuration so that the native linker is
8874*** used, and then restart.
8875
8876_LT_EOF
8877        ;;
8878        *)
8879          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8880            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8881            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8882            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8883          else
8884            ld_shlibs=no
8885          fi
8886        ;;
8887      esac
8888      ;;
8889
8890    sunos4*)
8891      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892      wlarc=
8893      hardcode_direct=yes
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    *)
8898      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8899        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8900        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8901      else
8902        ld_shlibs=no
8903      fi
8904      ;;
8905    esac
8906
8907    if test "$ld_shlibs" = no; then
8908      runpath_var=
8909      hardcode_libdir_flag_spec=
8910      export_dynamic_flag_spec=
8911      whole_archive_flag_spec=
8912    fi
8913  else
8914    # PORTME fill in a description of your system's linker (not GNU ld)
8915    case $host_os in
8916    aix3*)
8917      allow_undefined_flag=unsupported
8918      always_export_symbols=yes
8919      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'
8920      # Note: this linker hardcodes the directories in LIBPATH if there
8921      # are no directories specified by -L.
8922      hardcode_minus_L=yes
8923      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8924        # Neither direct hardcoding nor static linking is supported with a
8925        # broken collect2.
8926        hardcode_direct=unsupported
8927      fi
8928      ;;
8929
8930    aix4* | aix5*)
8931      if test "$host_cpu" = ia64; then
8932        # On IA64, the linker does run time linking by default, so we don't
8933        # have to do anything special.
8934        aix_use_runtimelinking=no
8935        exp_sym_flag='-Bexport'
8936        no_entry_flag=""
8937      else
8938        # If we're using GNU nm, then we don't want the "-C" option.
8939        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8940        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8941          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'
8942        else
8943          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'
8944        fi
8945        aix_use_runtimelinking=no
8946
8947        # Test if we are trying to use run time linking or normal
8948        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8949        # need to do runtime linking.
8950        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8951          for ld_flag in $LDFLAGS; do
8952          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8953            aix_use_runtimelinking=yes
8954            break
8955          fi
8956          done
8957          ;;
8958        esac
8959
8960        exp_sym_flag='-bexport'
8961        no_entry_flag='-bnoentry'
8962      fi
8963
8964      # When large executables or shared objects are built, AIX ld can
8965      # have problems creating the table of contents.  If linking a library
8966      # or program results in "error TOC overflow" add -mminimal-toc to
8967      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8968      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8969
8970      archive_cmds=''
8971      hardcode_direct=yes
8972      hardcode_libdir_separator=':'
8973      link_all_deplibs=yes
8974
8975      if test "$GCC" = yes; then
8976        case $host_os in aix4.[012]|aix4.[012].*)
8977        # We only want to do this on AIX 4.2 and lower, the check
8978        # below for broken collect2 doesn't work under 4.3+
8979          collect2name=`${CC} -print-prog-name=collect2`
8980          if test -f "$collect2name" && \
8981           strings "$collect2name" | grep resolve_lib_name >/dev/null
8982          then
8983          # We have reworked collect2
8984          hardcode_direct=yes
8985          else
8986          # We have old collect2
8987          hardcode_direct=unsupported
8988          # It fails to find uninstalled libraries when the uninstalled
8989          # path is not listed in the libpath.  Setting hardcode_minus_L
8990          # to unsupported forces relinking
8991          hardcode_minus_L=yes
8992          hardcode_libdir_flag_spec='-L$libdir'
8993          hardcode_libdir_separator=
8994          fi
8995          ;;
8996        esac
8997        shared_flag='-shared'
8998        if test "$aix_use_runtimelinking" = yes; then
8999          shared_flag="$shared_flag "'${wl}-G'
9000        fi
9001      else
9002        # not using gcc
9003        if test "$host_cpu" = ia64; then
9004        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9005        # chokes on -Wl,-G. The following line is correct:
9006          shared_flag='-G'
9007        else
9008          if test "$aix_use_runtimelinking" = yes; then
9009            shared_flag='${wl}-G'
9010          else
9011            shared_flag='${wl}-bM:SRE'
9012          fi
9013        fi
9014      fi
9015
9016      # It seems that -bexpall does not export symbols beginning with
9017      # underscore (_), so it is better to generate a list of symbols to export.
9018      always_export_symbols=yes
9019      if test "$aix_use_runtimelinking" = yes; then
9020        # Warning - without using the other runtime loading flags (-brtl),
9021        # -berok will link without error, but may produce a broken library.
9022        allow_undefined_flag='-berok'
9023       # Determine the default libpath from the value encoded in an empty executable.
9024       cat >conftest.$ac_ext <<_ACEOF
9025/* confdefs.h.  */
9026_ACEOF
9027cat confdefs.h >>conftest.$ac_ext
9028cat >>conftest.$ac_ext <<_ACEOF
9029/* end confdefs.h.  */
9030
9031int
9032main ()
9033{
9034
9035  ;
9036  return 0;
9037}
9038_ACEOF
9039rm -f conftest.$ac_objext conftest$ac_exeext
9040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041  (eval $ac_link) 2>conftest.er1
9042  ac_status=$?
9043  grep -v '^ *+' conftest.er1 >conftest.err
9044  rm -f conftest.er1
9045  cat conftest.err >&5
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); } &&
9048         { ac_try='test -z "$ac_c_werror_flag"
9049                         || test ! -s conftest.err'
9050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051  (eval $ac_try) 2>&5
9052  ac_status=$?
9053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); }; } &&
9055         { ac_try='test -s conftest$ac_exeext'
9056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057  (eval $ac_try) 2>&5
9058  ac_status=$?
9059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060  (exit $ac_status); }; }; then
9061
9062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9063}'`
9064# Check for a 64-bit object if we didn't find anything.
9065if 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; }
9066}'`; fi
9067else
9068  echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071fi
9072rm -f conftest.err conftest.$ac_objext \
9073      conftest$ac_exeext conftest.$ac_ext
9074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9075
9076       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9077        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"
9078       else
9079        if test "$host_cpu" = ia64; then
9080          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9081          allow_undefined_flag="-z nodefs"
9082          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"
9083        else
9084         # Determine the default libpath from the value encoded in an empty executable.
9085         cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h.  */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h.  */
9091
9092int
9093main ()
9094{
9095
9096  ;
9097  return 0;
9098}
9099_ACEOF
9100rm -f conftest.$ac_objext conftest$ac_exeext
9101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102  (eval $ac_link) 2>conftest.er1
9103  ac_status=$?
9104  grep -v '^ *+' conftest.er1 >conftest.err
9105  rm -f conftest.er1
9106  cat conftest.err >&5
9107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108  (exit $ac_status); } &&
9109         { ac_try='test -z "$ac_c_werror_flag"
9110                         || test ! -s conftest.err'
9111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112  (eval $ac_try) 2>&5
9113  ac_status=$?
9114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115  (exit $ac_status); }; } &&
9116         { ac_try='test -s conftest$ac_exeext'
9117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118  (eval $ac_try) 2>&5
9119  ac_status=$?
9120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121  (exit $ac_status); }; }; then
9122
9123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9124}'`
9125# Check for a 64-bit object if we didn't find anything.
9126if 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; }
9127}'`; fi
9128else
9129  echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132fi
9133rm -f conftest.err conftest.$ac_objext \
9134      conftest$ac_exeext conftest.$ac_ext
9135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9136
9137         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9138          # Warning - without using the other run time loading flags,
9139          # -berok will link without error, but may produce a broken library.
9140          no_undefined_flag=' ${wl}-bernotok'
9141          allow_undefined_flag=' ${wl}-berok'
9142          # Exported symbols can be pulled into shared objects from archives
9143          whole_archive_flag_spec='$convenience'
9144          archive_cmds_need_lc=yes
9145          # This is similar to how AIX traditionally builds its shared libraries.
9146          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'
9147        fi
9148      fi
9149      ;;
9150
9151    amigaos*)
9152      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)'
9153      hardcode_libdir_flag_spec='-L$libdir'
9154      hardcode_minus_L=yes
9155      # see comment about different semantics on the GNU ld section
9156      ld_shlibs=no
9157      ;;
9158
9159    bsdi[45]*)
9160      export_dynamic_flag_spec=-rdynamic
9161      ;;
9162
9163    cygwin* | mingw* | pw32*)
9164      # When not using gcc, we currently assume that we are using
9165      # Microsoft Visual C++.
9166      # hardcode_libdir_flag_spec is actually meaningless, as there is
9167      # no search path for DLLs.
9168      hardcode_libdir_flag_spec=' '
9169      allow_undefined_flag=unsupported
9170      # Tell ltmain to make .lib files, not .a files.
9171      libext=lib
9172      # Tell ltmain to make .dll files, not .so files.
9173      shrext_cmds=".dll"
9174      # FIXME: Setting linknames here is a bad hack.
9175      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9176      # The linker will automatically build a .lib file if we build a DLL.
9177      old_archive_From_new_cmds='true'
9178      # FIXME: Should let the user specify the lib program.
9179      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9180      fix_srcfile_path='`cygpath -w "$srcfile"`'
9181      enable_shared_with_static_runtimes=yes
9182      ;;
9183
9184    darwin* | rhapsody*)
9185      case $host_os in
9186        rhapsody* | darwin1.[012])
9187         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9188         ;;
9189       *) # Darwin 1.3 on
9190         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9191           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9192         else
9193           case ${MACOSX_DEPLOYMENT_TARGET} in
9194             10.[012])
9195               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9196               ;;
9197             10.*)
9198               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9199               ;;
9200           esac
9201         fi
9202         ;;
9203      esac
9204      archive_cmds_need_lc=no
9205      hardcode_direct=no
9206      hardcode_automatic=yes
9207      hardcode_shlibpath_var=unsupported
9208      whole_archive_flag_spec=''
9209      link_all_deplibs=yes
9210    if test "$GCC" = yes ; then
9211        output_verbose_link_cmd='echo'
9212        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9213      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9214      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9215      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}'
9216      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}'
9217    else
9218      case $cc_basename in
9219        xlc*)
9220         output_verbose_link_cmd='echo'
9221         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9222         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9223          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9224         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}'
9225          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}'
9226          ;;
9227       *)
9228         ld_shlibs=no
9229          ;;
9230      esac
9231    fi
9232      ;;
9233
9234    dgux*)
9235      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236      hardcode_libdir_flag_spec='-L$libdir'
9237      hardcode_shlibpath_var=no
9238      ;;
9239
9240    freebsd1*)
9241      ld_shlibs=no
9242      ;;
9243
9244    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9245    # support.  Future versions do this automatically, but an explicit c++rt0.o
9246    # does not break anything, and helps significantly (at the cost of a little
9247    # extra space).
9248    freebsd2.2*)
9249      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9250      hardcode_libdir_flag_spec='-R$libdir'
9251      hardcode_direct=yes
9252      hardcode_shlibpath_var=no
9253      ;;
9254
9255    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9256    freebsd2*)
9257      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9258      hardcode_direct=yes
9259      hardcode_minus_L=yes
9260      hardcode_shlibpath_var=no
9261      ;;
9262
9263    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9264    freebsd* | kfreebsd*-gnu | dragonfly*)
9265      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9266      hardcode_libdir_flag_spec='-R$libdir'
9267      hardcode_direct=yes
9268      hardcode_shlibpath_var=no
9269      ;;
9270
9271    hpux9*)
9272      if test "$GCC" = yes; then
9273        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'
9274      else
9275        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'
9276      fi
9277      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9278      hardcode_libdir_separator=:
9279      hardcode_direct=yes
9280
9281      # hardcode_minus_L: Not really in the search PATH,
9282      # but as the default location of the library.
9283      hardcode_minus_L=yes
9284      export_dynamic_flag_spec='${wl}-E'
9285      ;;
9286
9287    hpux10*)
9288      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9289        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9290      else
9291        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9292      fi
9293      if test "$with_gnu_ld" = no; then
9294        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9295        hardcode_libdir_separator=:
9296
9297        hardcode_direct=yes
9298        export_dynamic_flag_spec='${wl}-E'
9299
9300        # hardcode_minus_L: Not really in the search PATH,
9301        # but as the default location of the library.
9302        hardcode_minus_L=yes
9303      fi
9304      ;;
9305
9306    hpux11*)
9307      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9308        case $host_cpu in
9309        hppa*64*)
9310          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311          ;;
9312        ia64*)
9313          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9314          ;;
9315        *)
9316          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9317          ;;
9318        esac
9319      else
9320        case $host_cpu in
9321        hppa*64*)
9322          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9323          ;;
9324        ia64*)
9325          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9326          ;;
9327        *)
9328          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9329          ;;
9330        esac
9331      fi
9332      if test "$with_gnu_ld" = no; then
9333        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9334        hardcode_libdir_separator=:
9335
9336        case $host_cpu in
9337        hppa*64*|ia64*)
9338          hardcode_libdir_flag_spec_ld='+b $libdir'
9339          hardcode_direct=no
9340          hardcode_shlibpath_var=no
9341          ;;
9342        *)
9343          hardcode_direct=yes
9344          export_dynamic_flag_spec='${wl}-E'
9345
9346          # hardcode_minus_L: Not really in the search PATH,
9347          # but as the default location of the library.
9348          hardcode_minus_L=yes
9349          ;;
9350        esac
9351      fi
9352      ;;
9353
9354    irix5* | irix6* | nonstopux*)
9355      if test "$GCC" = yes; then
9356        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'
9357      else
9358        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'
9359        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9360      fi
9361      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362      hardcode_libdir_separator=:
9363      link_all_deplibs=yes
9364      ;;
9365
9366    netbsd*)
9367      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9368        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9369      else
9370        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9371      fi
9372      hardcode_libdir_flag_spec='-R$libdir'
9373      hardcode_direct=yes
9374      hardcode_shlibpath_var=no
9375      ;;
9376
9377    newsos6)
9378      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379      hardcode_direct=yes
9380      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381      hardcode_libdir_separator=:
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    openbsd*)
9386      hardcode_direct=yes
9387      hardcode_shlibpath_var=no
9388      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9389        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9390        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9391        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9392        export_dynamic_flag_spec='${wl}-E'
9393      else
9394       case $host_os in
9395         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9396           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397           hardcode_libdir_flag_spec='-R$libdir'
9398           ;;
9399         *)
9400           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9401           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402           ;;
9403       esac
9404      fi
9405      ;;
9406
9407    os2*)
9408      hardcode_libdir_flag_spec='-L$libdir'
9409      hardcode_minus_L=yes
9410      allow_undefined_flag=unsupported
9411      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'
9412      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9413      ;;
9414
9415    osf3*)
9416      if test "$GCC" = yes; then
9417        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9418        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'
9419      else
9420        allow_undefined_flag=' -expect_unresolved \*'
9421        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'
9422      fi
9423      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424      hardcode_libdir_separator=:
9425      ;;
9426
9427    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9428      if test "$GCC" = yes; then
9429        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9430        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'
9431        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432      else
9433        allow_undefined_flag=' -expect_unresolved \*'
9434        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'
9435        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9436        $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'
9437
9438        # Both c and cxx compiler support -rpath directly
9439        hardcode_libdir_flag_spec='-rpath $libdir'
9440      fi
9441      hardcode_libdir_separator=:
9442      ;;
9443
9444    solaris*)
9445      no_undefined_flag=' -z text'
9446      if test "$GCC" = yes; then
9447        wlarc='${wl}'
9448        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9450          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9451      else
9452        wlarc=''
9453        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9455        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9456      fi
9457      hardcode_libdir_flag_spec='-R$libdir'
9458      hardcode_shlibpath_var=no
9459      case $host_os in
9460      solaris2.[0-5] | solaris2.[0-5].*) ;;
9461      *)
9462        # The compiler driver will combine linker options so we
9463        # cannot just pass the convience library names through
9464        # without $wl, iff we do not link with $LD.
9465        # Luckily, gcc supports the same syntax we need for Sun Studio.
9466        # Supported since Solaris 2.6 (maybe 2.5.1?)
9467        case $wlarc in
9468        '')
9469          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9470        *)
9471          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' ;;
9472        esac ;;
9473      esac
9474      link_all_deplibs=yes
9475      ;;
9476
9477    sunos4*)
9478      if test "x$host_vendor" = xsequent; then
9479        # Use $CC to link under sequent, because it throws in some extra .o
9480        # files that make .init and .fini sections work.
9481        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9482      else
9483        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9484      fi
9485      hardcode_libdir_flag_spec='-L$libdir'
9486      hardcode_direct=yes
9487      hardcode_minus_L=yes
9488      hardcode_shlibpath_var=no
9489      ;;
9490
9491    sysv4)
9492      case $host_vendor in
9493        sni)
9494          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495          hardcode_direct=yes # is this really true???
9496        ;;
9497        siemens)
9498          ## LD is ld it makes a PLAMLIB
9499          ## CC just makes a GrossModule.
9500          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9501          reload_cmds='$CC -r -o $output$reload_objs'
9502          hardcode_direct=no
9503        ;;
9504        motorola)
9505          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9507        ;;
9508      esac
9509      runpath_var='LD_RUN_PATH'
9510      hardcode_shlibpath_var=no
9511      ;;
9512
9513    sysv4.3*)
9514      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515      hardcode_shlibpath_var=no
9516      export_dynamic_flag_spec='-Bexport'
9517      ;;
9518
9519    sysv4*MP*)
9520      if test -d /usr/nec; then
9521        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522        hardcode_shlibpath_var=no
9523        runpath_var=LD_RUN_PATH
9524        hardcode_runpath_var=yes
9525        ld_shlibs=yes
9526      fi
9527      ;;
9528
9529    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9530      no_undefined_flag='${wl}-z,text'
9531      archive_cmds_need_lc=no
9532      hardcode_shlibpath_var=no
9533      runpath_var='LD_RUN_PATH'
9534
9535      if test "$GCC" = yes; then
9536        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538      else
9539        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541      fi
9542      ;;
9543
9544    sysv5* | sco3.2v5* | sco5v6*)
9545      # Note: We can NOT use -z defs as we might desire, because we do not
9546      # link with -lc, and that would cause any symbols used from libc to
9547      # always be unresolved, which means just about no library would
9548      # ever link correctly.  If we're not using GNU ld we use -z text
9549      # though, which does catch some bad symbols but isn't as heavy-handed
9550      # as -z defs.
9551      no_undefined_flag='${wl}-z,text'
9552      allow_undefined_flag='${wl}-z,nodefs'
9553      archive_cmds_need_lc=no
9554      hardcode_shlibpath_var=no
9555      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9556      hardcode_libdir_separator=':'
9557      link_all_deplibs=yes
9558      export_dynamic_flag_spec='${wl}-Bexport'
9559      runpath_var='LD_RUN_PATH'
9560
9561      if test "$GCC" = yes; then
9562        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9564      else
9565        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9566        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567      fi
9568      ;;
9569
9570    uts4*)
9571      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572      hardcode_libdir_flag_spec='-L$libdir'
9573      hardcode_shlibpath_var=no
9574      ;;
9575
9576    *)
9577      ld_shlibs=no
9578      ;;
9579    esac
9580  fi
9581
9582echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9583echo "${ECHO_T}$ld_shlibs" >&6
9584test "$ld_shlibs" = no && can_build_shared=no
9585
9586#
9587# Do we need to explicitly link libc?
9588#
9589case "x$archive_cmds_need_lc" in
9590x|xyes)
9591  # Assume -lc should be added
9592  archive_cmds_need_lc=yes
9593
9594  if test "$enable_shared" = yes && test "$GCC" = yes; then
9595    case $archive_cmds in
9596    *'~'*)
9597      # FIXME: we may have to deal with multi-command sequences.
9598      ;;
9599    '$CC '*)
9600      # Test whether the compiler implicitly links with -lc since on some
9601      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9602      # to ld, don't add -lc before -lgcc.
9603      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9604echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9605      $rm conftest*
9606      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9607
9608      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609  (eval $ac_compile) 2>&5
9610  ac_status=$?
9611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612  (exit $ac_status); } 2>conftest.err; then
9613        soname=conftest
9614        lib=conftest
9615        libobjs=conftest.$ac_objext
9616        deplibs=
9617        wl=$lt_prog_compiler_wl
9618        pic_flag=$lt_prog_compiler_pic
9619        compiler_flags=-v
9620        linker_flags=-v
9621        verstring=
9622        output_objdir=.
9623        libname=conftest
9624        lt_save_allow_undefined_flag=$allow_undefined_flag
9625        allow_undefined_flag=
9626        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9627  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9628  ac_status=$?
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); }
9631        then
9632          archive_cmds_need_lc=no
9633        else
9634          archive_cmds_need_lc=yes
9635        fi
9636        allow_undefined_flag=$lt_save_allow_undefined_flag
9637      else
9638        cat conftest.err 1>&5
9639      fi
9640      $rm conftest*
9641      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9642echo "${ECHO_T}$archive_cmds_need_lc" >&6
9643      ;;
9644    esac
9645  fi
9646  ;;
9647esac
9648
9649echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9650echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9651library_names_spec=
9652libname_spec='lib$name'
9653soname_spec=
9654shrext_cmds=".so"
9655postinstall_cmds=
9656postuninstall_cmds=
9657finish_cmds=
9658finish_eval=
9659shlibpath_var=
9660shlibpath_overrides_runpath=unknown
9661version_type=none
9662dynamic_linker="$host_os ld.so"
9663sys_lib_dlsearch_path_spec="/lib /usr/lib"
9664if test "$GCC" = yes; then
9665  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9666  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9667    # if the path contains ";" then we assume it to be the separator
9668    # otherwise default to the standard path separator (i.e. ":") - it is
9669    # assumed that no part of a normal pathname contains ";" but that should
9670    # okay in the real world where ";" in dirpaths is itself problematic.
9671    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9672  else
9673    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9674  fi
9675else
9676  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9677fi
9678need_lib_prefix=unknown
9679hardcode_into_libs=no
9680
9681# when you set need_version to no, make sure it does not cause -set_version
9682# flags to be left without arguments
9683need_version=unknown
9684
9685case $host_os in
9686aix3*)
9687  version_type=linux
9688  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9689  shlibpath_var=LIBPATH
9690
9691  # AIX 3 has no versioning support, so we append a major version to the name.
9692  soname_spec='${libname}${release}${shared_ext}$major'
9693  ;;
9694
9695aix4* | aix5*)
9696  version_type=linux
9697  need_lib_prefix=no
9698  need_version=no
9699  hardcode_into_libs=yes
9700  if test "$host_cpu" = ia64; then
9701    # AIX 5 supports IA64
9702    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9703    shlibpath_var=LD_LIBRARY_PATH
9704  else
9705    # With GCC up to 2.95.x, collect2 would create an import file
9706    # for dependence libraries.  The import file would start with
9707    # the line `#! .'.  This would cause the generated library to
9708    # depend on `.', always an invalid library.  This was fixed in
9709    # development snapshots of GCC prior to 3.0.
9710    case $host_os in
9711      aix4 | aix4.[01] | aix4.[01].*)
9712      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9713           echo ' yes '
9714           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9715        :
9716      else
9717        can_build_shared=no
9718      fi
9719      ;;
9720    esac
9721    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9722    # soname into executable. Probably we can add versioning support to
9723    # collect2, so additional links can be useful in future.
9724    if test "$aix_use_runtimelinking" = yes; then
9725      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9726      # instead of lib<name>.a to let people know that these are not
9727      # typical AIX shared libraries.
9728      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729    else
9730      # We preserve .a as extension for shared libraries through AIX4.2
9731      # and later when we are not doing run time linking.
9732      library_names_spec='${libname}${release}.a $libname.a'
9733      soname_spec='${libname}${release}${shared_ext}$major'
9734    fi
9735    shlibpath_var=LIBPATH
9736  fi
9737  ;;
9738
9739amigaos*)
9740  library_names_spec='$libname.ixlibrary $libname.a'
9741  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9742  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'
9743  ;;
9744
9745beos*)
9746  library_names_spec='${libname}${shared_ext}'
9747  dynamic_linker="$host_os ld.so"
9748  shlibpath_var=LIBRARY_PATH
9749  ;;
9750
9751bsdi[45]*)
9752  version_type=linux
9753  need_version=no
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9759  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9760  # the default ld.so.conf also contains /usr/contrib/lib and
9761  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9762  # libtool to hard-code these into programs
9763  ;;
9764
9765cygwin* | mingw* | pw32*)
9766  version_type=windows
9767  shrext_cmds=".dll"
9768  need_version=no
9769  need_lib_prefix=no
9770
9771  case $GCC,$host_os in
9772  yes,cygwin* | yes,mingw* | yes,pw32*)
9773    library_names_spec='$libname.dll.a'
9774    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9775    postinstall_cmds='base_file=`basename \${file}`~
9776      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9777      dldir=$destdir/`dirname \$dlpath`~
9778      test -d \$dldir || mkdir -p \$dldir~
9779      $install_prog $dir/$dlname \$dldir/$dlname~
9780      chmod a+x \$dldir/$dlname'
9781    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9782      dlpath=$dir/\$dldll~
9783       $rm \$dlpath'
9784    shlibpath_overrides_runpath=yes
9785
9786    case $host_os in
9787    cygwin*)
9788      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9789      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9791      ;;
9792    mingw*)
9793      # MinGW DLLs use traditional 'lib' prefix
9794      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9795      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9796      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9797        # It is most probably a Windows format PATH printed by
9798        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9799        # path with ; separators, and with drive letters. We can handle the
9800        # drive letters (cygwin fileutils understands them), so leave them,
9801        # especially as we might pass files found there to a mingw objdump,
9802        # which wouldn't understand a cygwinified path. Ahh.
9803        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9804      else
9805        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9806      fi
9807      ;;
9808    pw32*)
9809      # pw32 DLLs use 'pw' prefix rather than 'lib'
9810      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9811      ;;
9812    esac
9813    ;;
9814
9815  *)
9816    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9817    ;;
9818  esac
9819  dynamic_linker='Win32 ld.exe'
9820  # FIXME: first we should search . and the directory the executable is in
9821  shlibpath_var=PATH
9822  ;;
9823
9824darwin* | rhapsody*)
9825  dynamic_linker="$host_os dyld"
9826  version_type=darwin
9827  need_lib_prefix=no
9828  need_version=no
9829  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9830  soname_spec='${libname}${release}${major}$shared_ext'
9831  shlibpath_overrides_runpath=yes
9832  shlibpath_var=DYLD_LIBRARY_PATH
9833  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9834  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9835  if test "$GCC" = yes; then
9836    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"`
9837  else
9838    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9839  fi
9840  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9841  ;;
9842
9843dgux*)
9844  version_type=linux
9845  need_lib_prefix=no
9846  need_version=no
9847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9848  soname_spec='${libname}${release}${shared_ext}$major'
9849  shlibpath_var=LD_LIBRARY_PATH
9850  ;;
9851
9852freebsd1*)
9853  dynamic_linker=no
9854  ;;
9855
9856kfreebsd*-gnu)
9857  version_type=linux
9858  need_lib_prefix=no
9859  need_version=no
9860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9861  soname_spec='${libname}${release}${shared_ext}$major'
9862  shlibpath_var=LD_LIBRARY_PATH
9863  shlibpath_overrides_runpath=no
9864  hardcode_into_libs=yes
9865  dynamic_linker='GNU ld.so'
9866  ;;
9867
9868freebsd* | dragonfly*)
9869  # DragonFly does not have aout.  When/if they implement a new
9870  # versioning mechanism, adjust this.
9871  if test -x /usr/bin/objformat; then
9872    objformat=`/usr/bin/objformat`
9873  else
9874    case $host_os in
9875    freebsd[123]*) objformat=aout ;;
9876    *) objformat=elf ;;
9877    esac
9878  fi
9879  version_type=freebsd-$objformat
9880  case $version_type in
9881    freebsd-elf*)
9882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9883      need_version=no
9884      need_lib_prefix=no
9885      ;;
9886    freebsd-*)
9887      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9888      need_version=yes
9889      ;;
9890  esac
9891  shlibpath_var=LD_LIBRARY_PATH
9892  case $host_os in
9893  freebsd2*)
9894    shlibpath_overrides_runpath=yes
9895    ;;
9896  freebsd3.[01]* | freebsdelf3.[01]*)
9897    shlibpath_overrides_runpath=yes
9898    hardcode_into_libs=yes
9899    ;;
9900  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9901  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9902    shlibpath_overrides_runpath=no
9903    hardcode_into_libs=yes
9904    ;;
9905  freebsd*) # from 4.6 on
9906    shlibpath_overrides_runpath=yes
9907    hardcode_into_libs=yes
9908    ;;
9909  esac
9910  ;;
9911
9912gnu*)
9913  version_type=linux
9914  need_lib_prefix=no
9915  need_version=no
9916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9917  soname_spec='${libname}${release}${shared_ext}$major'
9918  shlibpath_var=LD_LIBRARY_PATH
9919  hardcode_into_libs=yes
9920  ;;
9921
9922hpux9* | hpux10* | hpux11*)
9923  # Give a soname corresponding to the major version so that dld.sl refuses to
9924  # link against other versions.
9925  version_type=sunos
9926  need_lib_prefix=no
9927  need_version=no
9928  case $host_cpu in
9929  ia64*)
9930    shrext_cmds='.so'
9931    hardcode_into_libs=yes
9932    dynamic_linker="$host_os dld.so"
9933    shlibpath_var=LD_LIBRARY_PATH
9934    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936    soname_spec='${libname}${release}${shared_ext}$major'
9937    if test "X$HPUX_IA64_MODE" = X32; then
9938      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9939    else
9940      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9941    fi
9942    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9943    ;;
9944   hppa*64*)
9945     shrext_cmds='.sl'
9946     hardcode_into_libs=yes
9947     dynamic_linker="$host_os dld.sl"
9948     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9949     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951     soname_spec='${libname}${release}${shared_ext}$major'
9952     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9954     ;;
9955   *)
9956    shrext_cmds='.sl'
9957    dynamic_linker="$host_os dld.sl"
9958    shlibpath_var=SHLIB_PATH
9959    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961    soname_spec='${libname}${release}${shared_ext}$major'
9962    ;;
9963  esac
9964  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9965  postinstall_cmds='chmod 555 $lib'
9966  ;;
9967
9968interix3*)
9969  version_type=linux
9970  need_lib_prefix=no
9971  need_version=no
9972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9973  soname_spec='${libname}${release}${shared_ext}$major'
9974  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9975  shlibpath_var=LD_LIBRARY_PATH
9976  shlibpath_overrides_runpath=no
9977  hardcode_into_libs=yes
9978  ;;
9979
9980irix5* | irix6* | nonstopux*)
9981  case $host_os in
9982    nonstopux*) version_type=nonstopux ;;
9983    *)
9984        if test "$lt_cv_prog_gnu_ld" = yes; then
9985                version_type=linux
9986        else
9987                version_type=irix
9988        fi ;;
9989  esac
9990  need_lib_prefix=no
9991  need_version=no
9992  soname_spec='${libname}${release}${shared_ext}$major'
9993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9994  case $host_os in
9995  irix5* | nonstopux*)
9996    libsuff= shlibsuff=
9997    ;;
9998  *)
9999    case $LD in # libtool.m4 will add one of these switches to LD
10000    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10001      libsuff= shlibsuff= libmagic=32-bit;;
10002    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10003      libsuff=32 shlibsuff=N32 libmagic=N32;;
10004    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10005      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10006    *) libsuff= shlibsuff= libmagic=never-match;;
10007    esac
10008    ;;
10009  esac
10010  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10011  shlibpath_overrides_runpath=no
10012  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10013  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10014  hardcode_into_libs=yes
10015  ;;
10016
10017# No shared lib support for Linux oldld, aout, or coff.
10018linux*oldld* | linux*aout* | linux*coff*)
10019  dynamic_linker=no
10020  ;;
10021
10022# This must be Linux ELF.
10023linux*)
10024  version_type=linux
10025  need_lib_prefix=no
10026  need_version=no
10027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028  soname_spec='${libname}${release}${shared_ext}$major'
10029  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  shlibpath_overrides_runpath=no
10032  # This implies no fast_install, which is unacceptable.
10033  # Some rework will be needed to allow for fast_install
10034  # before this can be enabled.
10035  hardcode_into_libs=yes
10036
10037  # Append ld.so.conf contents to the search path
10038  if test -f /etc/ld.so.conf; then
10039    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' ' '`
10040    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10041  fi
10042
10043  # We used to test for /lib/ld.so.1 and disable shared libraries on
10044  # powerpc, because MkLinux only supported shared libraries with the
10045  # GNU dynamic linker.  Since this was broken with cross compilers,
10046  # most powerpc-linux boxes support dynamic linking these days and
10047  # people can always --disable-shared, the test was removed, and we
10048  # assume the GNU/Linux dynamic linker is in use.
10049  dynamic_linker='GNU/Linux ld.so'
10050  ;;
10051
10052knetbsd*-gnu)
10053  version_type=linux
10054  need_lib_prefix=no
10055  need_version=no
10056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057  soname_spec='${libname}${release}${shared_ext}$major'
10058  shlibpath_var=LD_LIBRARY_PATH
10059  shlibpath_overrides_runpath=no
10060  hardcode_into_libs=yes
10061  dynamic_linker='GNU ld.so'
10062  ;;
10063
10064netbsd*)
10065  version_type=sunos
10066  need_lib_prefix=no
10067  need_version=no
10068  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10070    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10071    dynamic_linker='NetBSD (a.out) ld.so'
10072  else
10073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10074    soname_spec='${libname}${release}${shared_ext}$major'
10075    dynamic_linker='NetBSD ld.elf_so'
10076  fi
10077  shlibpath_var=LD_LIBRARY_PATH
10078  shlibpath_overrides_runpath=yes
10079  hardcode_into_libs=yes
10080  ;;
10081
10082newsos6)
10083  version_type=linux
10084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  shlibpath_overrides_runpath=yes
10087  ;;
10088
10089nto-qnx*)
10090  version_type=linux
10091  need_lib_prefix=no
10092  need_version=no
10093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094  soname_spec='${libname}${release}${shared_ext}$major'
10095  shlibpath_var=LD_LIBRARY_PATH
10096  shlibpath_overrides_runpath=yes
10097  ;;
10098
10099openbsd*)
10100  version_type=sunos
10101  sys_lib_dlsearch_path_spec="/usr/lib"
10102  need_lib_prefix=no
10103  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10104  case $host_os in
10105    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10106    *)                         need_version=no  ;;
10107  esac
10108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10109  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10110  shlibpath_var=LD_LIBRARY_PATH
10111  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10112    case $host_os in
10113      openbsd2.[89] | openbsd2.[89].*)
10114        shlibpath_overrides_runpath=no
10115        ;;
10116      *)
10117        shlibpath_overrides_runpath=yes
10118        ;;
10119      esac
10120  else
10121    shlibpath_overrides_runpath=yes
10122  fi
10123  ;;
10124
10125os2*)
10126  libname_spec='$name'
10127  shrext_cmds=".dll"
10128  need_lib_prefix=no
10129  library_names_spec='$libname${shared_ext} $libname.a'
10130  dynamic_linker='OS/2 ld.exe'
10131  shlibpath_var=LIBPATH
10132  ;;
10133
10134osf3* | osf4* | osf5*)
10135  version_type=osf
10136  need_lib_prefix=no
10137  need_version=no
10138  soname_spec='${libname}${release}${shared_ext}$major'
10139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140  shlibpath_var=LD_LIBRARY_PATH
10141  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10142  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10143  ;;
10144
10145solaris*)
10146  version_type=linux
10147  need_lib_prefix=no
10148  need_version=no
10149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150  soname_spec='${libname}${release}${shared_ext}$major'
10151  shlibpath_var=LD_LIBRARY_PATH
10152  shlibpath_overrides_runpath=yes
10153  hardcode_into_libs=yes
10154  # ldd complains unless libraries are executable
10155  postinstall_cmds='chmod +x $lib'
10156  ;;
10157
10158sunos4*)
10159  version_type=sunos
10160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10162  shlibpath_var=LD_LIBRARY_PATH
10163  shlibpath_overrides_runpath=yes
10164  if test "$with_gnu_ld" = yes; then
10165    need_lib_prefix=no
10166  fi
10167  need_version=yes
10168  ;;
10169
10170sysv4 | sysv4.3*)
10171  version_type=linux
10172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  shlibpath_var=LD_LIBRARY_PATH
10175  case $host_vendor in
10176    sni)
10177      shlibpath_overrides_runpath=no
10178      need_lib_prefix=no
10179      export_dynamic_flag_spec='${wl}-Blargedynsym'
10180      runpath_var=LD_RUN_PATH
10181      ;;
10182    siemens)
10183      need_lib_prefix=no
10184      ;;
10185    motorola)
10186      need_lib_prefix=no
10187      need_version=no
10188      shlibpath_overrides_runpath=no
10189      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10190      ;;
10191  esac
10192  ;;
10193
10194sysv4*MP*)
10195  if test -d /usr/nec ;then
10196    version_type=linux
10197    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10198    soname_spec='$libname${shared_ext}.$major'
10199    shlibpath_var=LD_LIBRARY_PATH
10200  fi
10201  ;;
10202
10203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10204  version_type=freebsd-elf
10205  need_lib_prefix=no
10206  need_version=no
10207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10208  soname_spec='${libname}${release}${shared_ext}$major'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  hardcode_into_libs=yes
10211  if test "$with_gnu_ld" = yes; then
10212    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10213    shlibpath_overrides_runpath=no
10214  else
10215    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10216    shlibpath_overrides_runpath=yes
10217    case $host_os in
10218      sco3.2v5*)
10219        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10220        ;;
10221    esac
10222  fi
10223  sys_lib_dlsearch_path_spec='/usr/lib'
10224  ;;
10225
10226uts4*)
10227  version_type=linux
10228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229  soname_spec='${libname}${release}${shared_ext}$major'
10230  shlibpath_var=LD_LIBRARY_PATH
10231  ;;
10232
10233*)
10234  dynamic_linker=no
10235  ;;
10236esac
10237echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10238echo "${ECHO_T}$dynamic_linker" >&6
10239test "$dynamic_linker" = no && can_build_shared=no
10240
10241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10242if test "$GCC" = yes; then
10243  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10244fi
10245
10246echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10247echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10248hardcode_action=
10249if test -n "$hardcode_libdir_flag_spec" || \
10250   test -n "$runpath_var" || \
10251   test "X$hardcode_automatic" = "Xyes" ; then
10252
10253  # We can hardcode non-existant directories.
10254  if test "$hardcode_direct" != no &&
10255     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10256     # have to relink, otherwise we might link with an installed library
10257     # when we should be linking with a yet-to-be-installed one
10258     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10259     test "$hardcode_minus_L" != no; then
10260    # Linking always hardcodes the temporary library directory.
10261    hardcode_action=relink
10262  else
10263    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10264    hardcode_action=immediate
10265  fi
10266else
10267  # We cannot hardcode anything, or else we can only hardcode existing
10268  # directories.
10269  hardcode_action=unsupported
10270fi
10271echo "$as_me:$LINENO: result: $hardcode_action" >&5
10272echo "${ECHO_T}$hardcode_action" >&6
10273
10274if test "$hardcode_action" = relink; then
10275  # Fast installation is not supported
10276  enable_fast_install=no
10277elif test "$shlibpath_overrides_runpath" = yes ||
10278     test "$enable_shared" = no; then
10279  # Fast installation is not necessary
10280  enable_fast_install=needless
10281fi
10282
10283striplib=
10284old_striplib=
10285echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10286echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10287if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10288  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10289  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10290  echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292else
10293# FIXME - insert some real tests, host_os isn't really good enough
10294  case $host_os in
10295   darwin*)
10296       if test -n "$STRIP" ; then
10297         striplib="$STRIP -x"
10298         echo "$as_me:$LINENO: result: yes" >&5
10299echo "${ECHO_T}yes" >&6
10300       else
10301  echo "$as_me:$LINENO: result: no" >&5
10302echo "${ECHO_T}no" >&6
10303fi
10304       ;;
10305   *)
10306  echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
10308    ;;
10309  esac
10310fi
10311
10312if test "x$enable_dlopen" != xyes; then
10313  enable_dlopen=unknown
10314  enable_dlopen_self=unknown
10315  enable_dlopen_self_static=unknown
10316else
10317  lt_cv_dlopen=no
10318  lt_cv_dlopen_libs=
10319
10320  case $host_os in
10321  beos*)
10322    lt_cv_dlopen="load_add_on"
10323    lt_cv_dlopen_libs=
10324    lt_cv_dlopen_self=yes
10325    ;;
10326
10327  mingw* | pw32*)
10328    lt_cv_dlopen="LoadLibrary"
10329    lt_cv_dlopen_libs=
10330   ;;
10331
10332  cygwin*)
10333    lt_cv_dlopen="dlopen"
10334    lt_cv_dlopen_libs=
10335   ;;
10336
10337  darwin*)
10338  # if libdl is installed we need to link against it
10339    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10340echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10341if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10342  echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344  ac_check_lib_save_LIBS=$LIBS
10345LIBS="-ldl  $LIBS"
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h.  */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h.  */
10352
10353/* Override any gcc2 internal prototype to avoid an error.  */
10354#ifdef __cplusplus
10355extern "C"
10356#endif
10357/* We use char because int might match the return type of a gcc2
10358   builtin and then its argument prototype would still apply.  */
10359char dlopen ();
10360int
10361main ()
10362{
10363dlopen ();
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370  (eval $ac_link) 2>conftest.er1
10371  ac_status=$?
10372  grep -v '^ *+' conftest.er1 >conftest.err
10373  rm -f conftest.er1
10374  cat conftest.err >&5
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); } &&
10377         { ac_try='test -z "$ac_c_werror_flag"
10378                         || test ! -s conftest.err'
10379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380  (eval $ac_try) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); }; } &&
10384         { ac_try='test -s conftest$ac_exeext'
10385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386  (eval $ac_try) 2>&5
10387  ac_status=$?
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); }; }; then
10390  ac_cv_lib_dl_dlopen=yes
10391else
10392  echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395ac_cv_lib_dl_dlopen=no
10396fi
10397rm -f conftest.err conftest.$ac_objext \
10398      conftest$ac_exeext conftest.$ac_ext
10399LIBS=$ac_check_lib_save_LIBS
10400fi
10401echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10402echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10403if test $ac_cv_lib_dl_dlopen = yes; then
10404  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10405else
10406
10407    lt_cv_dlopen="dyld"
10408    lt_cv_dlopen_libs=
10409    lt_cv_dlopen_self=yes
10410
10411fi
10412
10413   ;;
10414
10415  *)
10416    echo "$as_me:$LINENO: checking for shl_load" >&5
10417echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10418if test "${ac_cv_func_shl_load+set}" = set; then
10419  echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421  cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h.  */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h.  */
10427/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10429#define shl_load innocuous_shl_load
10430
10431/* System header to define __stub macros and hopefully few prototypes,
10432    which can conflict with char shl_load (); below.
10433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10434    <limits.h> exists even on freestanding compilers.  */
10435
10436#ifdef __STDC__
10437# include <limits.h>
10438#else
10439# include <assert.h>
10440#endif
10441
10442#undef shl_load
10443
10444/* Override any gcc2 internal prototype to avoid an error.  */
10445#ifdef __cplusplus
10446extern "C"
10447{
10448#endif
10449/* We use char because int might match the return type of a gcc2
10450   builtin and then its argument prototype would still apply.  */
10451char shl_load ();
10452/* The GNU C library defines this for functions which it implements
10453    to always fail with ENOSYS.  Some functions are actually named
10454    something starting with __ and the normal name is an alias.  */
10455#if defined (__stub_shl_load) || defined (__stub___shl_load)
10456choke me
10457#else
10458char (*f) () = shl_load;
10459#endif
10460#ifdef __cplusplus
10461}
10462#endif
10463
10464int
10465main ()
10466{
10467return f != shl_load;
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472rm -f conftest.$ac_objext conftest$ac_exeext
10473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474  (eval $ac_link) 2>conftest.er1
10475  ac_status=$?
10476  grep -v '^ *+' conftest.er1 >conftest.err
10477  rm -f conftest.er1
10478  cat conftest.err >&5
10479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480  (exit $ac_status); } &&
10481         { ac_try='test -z "$ac_c_werror_flag"
10482                         || test ! -s conftest.err'
10483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484  (eval $ac_try) 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; } &&
10488         { ac_try='test -s conftest$ac_exeext'
10489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490  (eval $ac_try) 2>&5
10491  ac_status=$?
10492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493  (exit $ac_status); }; }; then
10494  ac_cv_func_shl_load=yes
10495else
10496  echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499ac_cv_func_shl_load=no
10500fi
10501rm -f conftest.err conftest.$ac_objext \
10502      conftest$ac_exeext conftest.$ac_ext
10503fi
10504echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10505echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10506if test $ac_cv_func_shl_load = yes; then
10507  lt_cv_dlopen="shl_load"
10508else
10509  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10510echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10511if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10512  echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514  ac_check_lib_save_LIBS=$LIBS
10515LIBS="-ldld  $LIBS"
10516cat >conftest.$ac_ext <<_ACEOF
10517/* confdefs.h.  */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h.  */
10522
10523/* Override any gcc2 internal prototype to avoid an error.  */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527/* We use char because int might match the return type of a gcc2
10528   builtin and then its argument prototype would still apply.  */
10529char shl_load ();
10530int
10531main ()
10532{
10533shl_load ();
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext conftest$ac_exeext
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540  (eval $ac_link) 2>conftest.er1
10541  ac_status=$?
10542  grep -v '^ *+' conftest.er1 >conftest.err
10543  rm -f conftest.er1
10544  cat conftest.err >&5
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } &&
10547         { ac_try='test -z "$ac_c_werror_flag"
10548                         || test ! -s conftest.err'
10549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550  (eval $ac_try) 2>&5
10551  ac_status=$?
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); }; } &&
10554         { ac_try='test -s conftest$ac_exeext'
10555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556  (eval $ac_try) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); }; }; then
10560  ac_cv_lib_dld_shl_load=yes
10561else
10562  echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565ac_cv_lib_dld_shl_load=no
10566fi
10567rm -f conftest.err conftest.$ac_objext \
10568      conftest$ac_exeext conftest.$ac_ext
10569LIBS=$ac_check_lib_save_LIBS
10570fi
10571echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10572echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10573if test $ac_cv_lib_dld_shl_load = yes; then
10574  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10575else
10576  echo "$as_me:$LINENO: checking for dlopen" >&5
10577echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10578if test "${ac_cv_func_dlopen+set}" = set; then
10579  echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581  cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h.  */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h.  */
10587/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10588   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10589#define dlopen innocuous_dlopen
10590
10591/* System header to define __stub macros and hopefully few prototypes,
10592    which can conflict with char dlopen (); below.
10593    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594    <limits.h> exists even on freestanding compilers.  */
10595
10596#ifdef __STDC__
10597# include <limits.h>
10598#else
10599# include <assert.h>
10600#endif
10601
10602#undef dlopen
10603
10604/* Override any gcc2 internal prototype to avoid an error.  */
10605#ifdef __cplusplus
10606extern "C"
10607{
10608#endif
10609/* We use char because int might match the return type of a gcc2
10610   builtin and then its argument prototype would still apply.  */
10611char dlopen ();
10612/* The GNU C library defines this for functions which it implements
10613    to always fail with ENOSYS.  Some functions are actually named
10614    something starting with __ and the normal name is an alias.  */
10615#if defined (__stub_dlopen) || defined (__stub___dlopen)
10616choke me
10617#else
10618char (*f) () = dlopen;
10619#endif
10620#ifdef __cplusplus
10621}
10622#endif
10623
10624int
10625main ()
10626{
10627return f != dlopen;
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632rm -f conftest.$ac_objext conftest$ac_exeext
10633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634  (eval $ac_link) 2>conftest.er1
10635  ac_status=$?
10636  grep -v '^ *+' conftest.er1 >conftest.err
10637  rm -f conftest.er1
10638  cat conftest.err >&5
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); } &&
10641         { ac_try='test -z "$ac_c_werror_flag"
10642                         || test ! -s conftest.err'
10643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644  (eval $ac_try) 2>&5
10645  ac_status=$?
10646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647  (exit $ac_status); }; } &&
10648         { ac_try='test -s conftest$ac_exeext'
10649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650  (eval $ac_try) 2>&5
10651  ac_status=$?
10652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653  (exit $ac_status); }; }; then
10654  ac_cv_func_dlopen=yes
10655else
10656  echo "$as_me: failed program was:" >&5
10657sed 's/^/| /' conftest.$ac_ext >&5
10658
10659ac_cv_func_dlopen=no
10660fi
10661rm -f conftest.err conftest.$ac_objext \
10662      conftest$ac_exeext conftest.$ac_ext
10663fi
10664echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10665echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10666if test $ac_cv_func_dlopen = yes; then
10667  lt_cv_dlopen="dlopen"
10668else
10669  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10672  echo $ECHO_N "(cached) $ECHO_C" >&6
10673else
10674  ac_check_lib_save_LIBS=$LIBS
10675LIBS="-ldl  $LIBS"
10676cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h.  */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h.  */
10682
10683/* Override any gcc2 internal prototype to avoid an error.  */
10684#ifdef __cplusplus
10685extern "C"
10686#endif
10687/* We use char because int might match the return type of a gcc2
10688   builtin and then its argument prototype would still apply.  */
10689char dlopen ();
10690int
10691main ()
10692{
10693dlopen ();
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698rm -f conftest.$ac_objext conftest$ac_exeext
10699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700  (eval $ac_link) 2>conftest.er1
10701  ac_status=$?
10702  grep -v '^ *+' conftest.er1 >conftest.err
10703  rm -f conftest.er1
10704  cat conftest.err >&5
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); } &&
10707         { ac_try='test -z "$ac_c_werror_flag"
10708                         || test ! -s conftest.err'
10709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710  (eval $ac_try) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }; } &&
10714         { ac_try='test -s conftest$ac_exeext'
10715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716  (eval $ac_try) 2>&5