source: trunk/Cbc/configure @ 1945

Last change on this file since 1945 was 1945, checked in by forrest, 6 years ago

adding a dubious heuristic

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 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            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2956              coin_opt_cflags='-MD -O2'
2957              coin_dbg_cflags='-MDd'
2958            else
2959              coin_opt_cflags='-MT -O2'
2960              coin_dbg_cflags='-MTd'
2961            fi
2962            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2963            ;;
2964          icl* | */icl* | ICL* | */ICL*)
2965            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2966              coin_opt_cflags='-MD -Ox'
2967              coin_dbg_cflags='-MDd -debug'
2968            else
2969              coin_opt_cflags='-MT -Ox'
2970              coin_dbg_cflags='-MTd -debug'
2971            fi
2972            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2973            ;;
2974        esac
2975        ;;
2976      *-linux-*)
2977        case "$CC" in
2978          icc* | */icc*)
2979            coin_opt_cflags="-O3 -ip -mp1"
2980            coin_add_cflags=""
2981            coin_dbg_cflags="-g"
2982            # Check if -i_dynamic is necessary (for new glibc library)
2983            CFLAGS=
2984            cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h.  */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h.  */
2990
2991int
2992main ()
2993{
2994int i=0; i++;
2995  ;
2996  return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext conftest$ac_exeext
3000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001  (eval $ac_link) 2>conftest.er1
3002  ac_status=$?
3003  grep -v '^ *+' conftest.er1 >conftest.err
3004  rm -f conftest.er1
3005  cat conftest.err >&5
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); } &&
3008         { ac_try='test -z "$ac_c_werror_flag"
3009                         || test ! -s conftest.err'
3010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011  (eval $ac_try) 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }; } &&
3015         { ac_try='test -s conftest$ac_exeext'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; }; then
3021  :
3022else
3023  echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026coin_add_cflags="-i_dynamic $coin_add_cflags"
3027fi
3028rm -f conftest.err conftest.$ac_objext \
3029      conftest$ac_exeext conftest.$ac_ext
3030            ;;
3031          pgcc* | */pgcc*)
3032            coin_opt_cflags="-fast"
3033            coin_add_cflags="-Kieee -pc 64"
3034            coin_dbg_cflags="-g"
3035            ;;
3036        esac
3037        ;;
3038      *-ibm-*)
3039        case "$CC" in
3040          xlc* | */xlc* | mpxlc* | */mpxlc*)
3041            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3042            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3043            coin_dbg_cflags="-g"
3044          ;;
3045        esac
3046        ;;
3047      *-hp-*)
3048        coin_opt_cflags="-O"
3049        coin_add_cflags="-Ae"
3050        coin_dbg_cflags="-g"
3051        ;;
3052      *-*-solaris*)
3053        coin_opt_cflags="-xO4"
3054        coin_dbg_cflags="-g"
3055        ;;
3056      *-sgi-*)
3057        coin_opt_cflags="-O -OPT:Olimit=0"
3058        coin_dbg_cflags="-g"
3059        ;;
3060    esac
3061  fi
3062
3063  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3064    coin_dbg_cflags="-g"
3065  fi
3066
3067  if test -z "$coin_opt_cflags"; then
3068    # Try if -O option works if nothing else is set
3069    CFLAGS="-O"
3070    cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080int i=0; i++;
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
3086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087  (eval $ac_link) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094         { ac_try='test -z "$ac_c_werror_flag"
3095                         || test ! -s conftest.err'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; } &&
3101         { ac_try='test -s conftest$ac_exeext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  coin_opt_cflags="-O"
3108else
3109  echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112fi
3113rm -f conftest.err conftest.$ac_objext \
3114      conftest$ac_exeext conftest.$ac_ext
3115  fi
3116
3117  # if PM doesn't want the warning messages, take them out
3118  if test x"$coin_skip_warn_cflags" = xyes; then
3119    coin_warn_cflags=
3120  fi
3121
3122  if test x${DBG_CFLAGS+set} != xset; then
3123    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3124  fi
3125  if test x${OPT_CFLAGS+set} != xset; then
3126    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3127  fi
3128
3129  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3130  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3131
3132  if test "$coin_debug_compile" = "true"; then
3133    CFLAGS="$DBG_CFLAGS"
3134  else
3135    CFLAGS="$OPT_CFLAGS"
3136  fi
3137else
3138  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3139  if test x${DBG_CFLAGS+set} != xset; then
3140    DBG_CFLAGS="$CFLAGS"
3141  fi
3142  if test x${OPT_CFLAGS+set} != xset; then
3143    OPT_CFLAGS="$CFLAGS"
3144  fi
3145fi
3146
3147# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3148
3149case "$CFLAGS" in
3150  *-mno-cygwin*)
3151    if test x${CPPFLAGS+set} != xset ; then
3152      CPPFLAGS="-mno-cygwin"
3153    else
3154      case "$CPPFLAGS" in
3155        *-mno-cygwin*)
3156          ;;
3157        *)
3158          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3159          ;;
3160      esac
3161    fi ;;
3162esac
3163
3164# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3165if test x$COIN_PRJCT != x; then
3166  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3167fi
3168
3169# Try if CFLAGS works
3170save_CFLAGS="$CFLAGS"
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h.  */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h.  */
3177
3178int
3179main ()
3180{
3181int i=0; i++;
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext conftest$ac_exeext
3187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188  (eval $ac_link) 2>conftest.er1
3189  ac_status=$?
3190  grep -v '^ *+' conftest.er1 >conftest.err
3191  rm -f conftest.er1
3192  cat conftest.err >&5
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); } &&
3195         { ac_try='test -z "$ac_c_werror_flag"
3196                         || test ! -s conftest.err'
3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198  (eval $ac_try) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; } &&
3202         { ac_try='test -s conftest$ac_exeext'
3203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204  (eval $ac_try) 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208  :
3209else
3210  echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213CFLAGS=
3214fi
3215rm -f conftest.err conftest.$ac_objext \
3216      conftest$ac_exeext conftest.$ac_ext
3217if test -z "$CFLAGS"; then
3218  { 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
3219echo "$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;}
3220  CFLAGS='-O'
3221  cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h.  */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231int i=0; i++;
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext conftest$ac_exeext
3237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3238  (eval $ac_link) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_c_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest$ac_exeext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  :
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263CFLAGS=
3264fi
3265rm -f conftest.err conftest.$ac_objext \
3266      conftest$ac_exeext conftest.$ac_ext
3267  if test -z "$CFLAGS"; then
3268    { 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
3269echo "$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;}
3270  fi
3271fi
3272
3273{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3274echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3275
3276
3277if test x"$MPICC" = x; then :; else
3278  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3279echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3280  CC="$MPICC"
3281fi
3282
3283# Correct the LD variable if we are using the MS or Intel-windows compiler
3284case "$CC" in
3285  clang* ) ;;
3286  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3287    case $build in
3288  *-mingw*)
3289    if test "${LD+set}" = set; then :; else
3290      LD=link
3291    fi
3292    ;;
3293 esac
3294 case $enable_doscompile in
3295   msvc)
3296     if test "x${LD+set}" = xset; then :; else
3297       LD=link
3298     fi
3299     ;;
3300 esac
3301
3302    ;;
3303esac
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312
3313 #Let's try if that overcomes configuration problem with VC++ 6.0
3314
3315ac_ext=cc
3316ac_cpp='$CXXCPP $CPPFLAGS'
3317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3320
3321
3322
3323
3324
3325
3326
3327coin_has_cxx=yes
3328
3329save_cxxflags="$CXXFLAGS"
3330# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3331case $build in
3332  *-cygwin* | *-mingw*)
3333             if test "$enable_doscompile" = msvc ; then
3334               comps="icl cl"
3335             else
3336               comps="g++ cl"
3337             fi ;;
3338  *-*-solaris*)
3339             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3340  *-darwin*) comps="g++ c++ CC" ;;
3341  *-linux-gnu*)
3342             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3343          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3344esac
3345
3346# We delete the cached value, since the test might not have been
3347# performed with our choice of compilers earlier
3348$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3349# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3350ac_ext=cc
3351ac_cpp='$CXXCPP $CPPFLAGS'
3352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3355if test -n "$ac_tool_prefix"; then
3356  for ac_prog in $CCC $comps
3357  do
3358    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360echo "$as_me:$LINENO: checking for $ac_word" >&5
3361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362if test "${ac_cv_prog_CXX+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365  if test -n "$CXX"; then
3366  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373  for ac_exec_ext in '' $ac_executable_extensions; do
3374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380done
3381
3382fi
3383fi
3384CXX=$ac_cv_prog_CXX
3385if test -n "$CXX"; then
3386  echo "$as_me:$LINENO: result: $CXX" >&5
3387echo "${ECHO_T}$CXX" >&6
3388else
3389  echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391fi
3392
3393    test -n "$CXX" && break
3394  done
3395fi
3396if test -z "$CXX"; then
3397  ac_ct_CXX=$CXX
3398  for ac_prog in $CCC $comps
3399do
3400  # Extract the first word of "$ac_prog", so it can be a program name with args.
3401set dummy $ac_prog; ac_word=$2
3402echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -n "$ac_ct_CXX"; then
3408  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415  for ac_exec_ext in '' $ac_executable_extensions; do
3416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_ac_ct_CXX="$ac_prog"
3418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422done
3423
3424fi
3425fi
3426ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3427if test -n "$ac_ct_CXX"; then
3428  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3429echo "${ECHO_T}$ac_ct_CXX" >&6
3430else
3431  echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433fi
3434
3435  test -n "$ac_ct_CXX" && break
3436done
3437test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3438
3439  CXX=$ac_ct_CXX
3440fi
3441
3442
3443# Provide some information about the compiler.
3444echo "$as_me:$LINENO:" \
3445     "checking for C++ compiler version" >&5
3446ac_compiler=`set X $ac_compile; echo $2`
3447{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3448  (eval $ac_compiler --version </dev/null >&5) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }
3452{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3453  (eval $ac_compiler -v </dev/null >&5) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }
3457{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3458  (eval $ac_compiler -V </dev/null >&5) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }
3462
3463echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3464echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3465if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478#ifndef __GNUC__
3479       choke me
3480#endif
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_cxx_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  ac_compiler_gnu=yes
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513ac_compiler_gnu=no
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3517
3518fi
3519echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3520echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3521GXX=`test $ac_compiler_gnu = yes && echo yes`
3522ac_test_CXXFLAGS=${CXXFLAGS+set}
3523ac_save_CXXFLAGS=$CXXFLAGS
3524CXXFLAGS="-g"
3525echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3526echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3527if test "${ac_cv_prog_cxx_g+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547  (eval $ac_compile) 2>conftest.er1
3548  ac_status=$?
3549  grep -v '^ *+' conftest.er1 >conftest.err
3550  rm -f conftest.er1
3551  cat conftest.err >&5
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); } &&
3554         { ac_try='test -z "$ac_cxx_werror_flag"
3555                         || test ! -s conftest.err'
3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557  (eval $ac_try) 2>&5
3558  ac_status=$?
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); }; } &&
3561         { ac_try='test -s conftest.$ac_objext'
3562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563  (eval $ac_try) 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }; }; then
3567  ac_cv_prog_cxx_g=yes
3568else
3569  echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572ac_cv_prog_cxx_g=no
3573fi
3574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3577echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3578if test "$ac_test_CXXFLAGS" = set; then
3579  CXXFLAGS=$ac_save_CXXFLAGS
3580elif test $ac_cv_prog_cxx_g = yes; then
3581  if test "$GXX" = yes; then
3582    CXXFLAGS="-g -O2"
3583  else
3584    CXXFLAGS="-g"
3585  fi
3586else
3587  if test "$GXX" = yes; then
3588    CXXFLAGS="-O2"
3589  else
3590    CXXFLAGS=
3591  fi
3592fi
3593for ac_declaration in \
3594   '' \
3595   'extern "C" void std::exit (int) throw (); using std::exit;' \
3596   'extern "C" void std::exit (int); using std::exit;' \
3597   'extern "C" void exit (int) throw ();' \
3598   'extern "C" void exit (int);' \
3599   'void exit (int);'
3600do
3601  cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607$ac_declaration
3608#include <stdlib.h>
3609int
3610main ()
3611{
3612exit (42);
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619  (eval $ac_compile) 2>conftest.er1
3620  ac_status=$?
3621  grep -v '^ *+' conftest.er1 >conftest.err
3622  rm -f conftest.er1
3623  cat conftest.err >&5
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } &&
3626         { ac_try='test -z "$ac_cxx_werror_flag"
3627                         || test ! -s conftest.err'
3628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629  (eval $ac_try) 2>&5
3630  ac_status=$?
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); }; } &&
3633         { ac_try='test -s conftest.$ac_objext'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; }; then
3639  :
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644continue
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647  cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h.  */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h.  */
3653$ac_declaration
3654int
3655main ()
3656{
3657exit (42);
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664  (eval $ac_compile) 2>conftest.er1
3665  ac_status=$?
3666  grep -v '^ *+' conftest.er1 >conftest.err
3667  rm -f conftest.er1
3668  cat conftest.err >&5
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); } &&
3671         { ac_try='test -z "$ac_cxx_werror_flag"
3672                         || test ! -s conftest.err'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; } &&
3678         { ac_try='test -s conftest.$ac_objext'
3679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680  (eval $ac_try) 2>&5
3681  ac_status=$?
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); }; }; then
3684  break
3685else
3686  echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689fi
3690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691done
3692rm -f conftest*
3693if test -n "$ac_declaration"; then
3694  echo '#ifdef __cplusplus' >>confdefs.h
3695  echo $ac_declaration      >>confdefs.h
3696  echo '#endif'             >>confdefs.h
3697fi
3698
3699ac_ext=cc
3700ac_cpp='$CXXCPP $CPPFLAGS'
3701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3704
3705
3706#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3707#thus, we test here whether $CXX is actually working
3708ac_ext=cc
3709ac_cpp='$CXXCPP $CPPFLAGS'
3710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3713
3714echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3715echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3716cat >conftest.$ac_ext <<_ACEOF
3717/* confdefs.h.  */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726int i=0;
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731rm -f conftest.$ac_objext
3732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733  (eval $ac_compile) 2>conftest.er1
3734  ac_status=$?
3735  grep -v '^ *+' conftest.er1 >conftest.err
3736  rm -f conftest.er1
3737  cat conftest.err >&5
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); } &&
3740         { ac_try='test -z "$ac_cxx_werror_flag"
3741                         || test ! -s conftest.err'
3742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743  (eval $ac_try) 2>&5
3744  ac_status=$?
3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); }; } &&
3747         { ac_try='test -s conftest.$ac_objext'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; }; then
3753  echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755else
3756  echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
3761   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3762echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3763   { (exit 1); exit 1; }; }
3764
3765fi
3766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3767ac_ext=cc
3768ac_cpp='$CXXCPP $CPPFLAGS'
3769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3772
3773
3774coin_cxx_is_cl=false
3775# It seems that we need to cleanup something here for the Windows
3776case "$CXX" in
3777  clang* ) ;;
3778  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3779    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3780    mv confdefs.hh confdefs.h
3781    coin_cxx_is_cl=true
3782    ;;
3783esac
3784
3785# add automake conditional so we can recognize cl compiler in makefile
3786
3787
3788if test $coin_cxx_is_cl = true; then
3789  COIN_CXX_IS_CL_TRUE=
3790  COIN_CXX_IS_CL_FALSE='#'
3791else
3792  COIN_CXX_IS_CL_TRUE='#'
3793  COIN_CXX_IS_CL_FALSE=
3794fi
3795
3796
3797# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3798case "$CXX" in
3799  clang* ) ;;
3800  cl* | */cl* | CL* | */CL* )
3801    if test "$ac_cv_prog_cxx_g" = yes ; then
3802      ac_cv_prog_cxx_g=no
3803      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3804echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3805    fi ;;
3806esac
3807CXXFLAGS="$save_cxxflags"
3808
3809# Check if a project specific CXXFLAGS variable has been set
3810if test x$COIN_PRJCT != x; then
3811  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3812  if test x$coin_tmp = xset; then
3813    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3814  fi
3815fi
3816
3817if test x"$CXXFLAGS" = x; then
3818
3819# ToDo decide whether we want -DNDEBUG for optimization
3820  coin_add_cxxflags=
3821  coin_opt_cxxflags=
3822  coin_dbg_cxxflags=
3823  coin_warn_cxxflags=
3824
3825  if test "$GXX" = "yes"; then
3826    case "$CXX" in
3827      icpc* | */icpc*)
3828        ;;
3829      *)
3830# ToDo decide about unroll-loops
3831        coin_opt_cxxflags="-O3"
3832        coin_add_cxxflags="-pipe"
3833        coin_dbg_cxxflags="-g -O0"
3834        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3835        case $build in
3836          *-darwin*)
3837            ;;
3838          *)
3839            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3840            ;;
3841        esac
3842
3843        case $enable_doscompile in
3844          mingw)
3845            CXXFLAGS="-mno-cygwin"
3846            cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h.  */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h.  */
3852
3853int
3854main ()
3855{
3856int i=0; i++;
3857  ;
3858  return 0;
3859}
3860_ACEOF
3861rm -f conftest.$ac_objext conftest$ac_exeext
3862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863  (eval $ac_link) 2>conftest.er1
3864  ac_status=$?
3865  grep -v '^ *+' conftest.er1 >conftest.err
3866  rm -f conftest.er1
3867  cat conftest.err >&5
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); } &&
3870         { ac_try='test -z "$ac_cxx_werror_flag"
3871                         || test ! -s conftest.err'
3872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873  (eval $ac_try) 2>&5
3874  ac_status=$?
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); }; } &&
3877         { ac_try='test -s conftest$ac_exeext'
3878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879  (eval $ac_try) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; }; then
3883  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3884else
3885  echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888fi
3889rm -f conftest.err conftest.$ac_objext \
3890      conftest$ac_exeext conftest.$ac_ext
3891            CXXFLAGS=
3892          ;;
3893        esac
3894    esac
3895  fi
3896
3897# Note that we do not need to cover GCC in the following tests.
3898
3899  if test -z "$coin_opt_cxxflags"; then
3900    case $build in
3901      *-cygwin* | *-mingw*)
3902        case "$CXX" in
3903          clang* ) ;;
3904          cl* | */cl* | CL* | */CL*)
3905            # The MT and MTd options are mutually exclusive
3906            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3907               coin_opt_cxxflags='-MD -O2'
3908               coin_dbg_cxxflags='-MDd'
3909            else
3910               coin_opt_cxxflags='-MT -O2'
3911               coin_dbg_cxxflags='-MTd'
3912            fi
3913            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3914            ;;
3915          icl* | */icl* | ICL* | */ICL*)
3916          # The MT and MTd options are mutually exclusive
3917            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3918              coin_opt_cxxflags='-MD -Ox'
3919              coin_dbg_cxxflags='-MDd -debug'
3920            else
3921              coin_opt_cxxflags='-MT -Ox'
3922              coin_dbg_cxxflags='-MTd -debug'
3923            fi
3924            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3925            ;;
3926        esac
3927        ;;
3928      *-linux-*)
3929        case "$CXX" in
3930          icpc* | */icpc*)
3931            coin_opt_cxxflags="-O3 -ip -mp1"
3932            coin_add_cxxflags=""
3933            coin_dbg_cxxflags="-g"
3934            # Check if -i_dynamic is necessary (for new glibc library)
3935            CXXFLAGS=
3936            cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942
3943int
3944main ()
3945{
3946int i=0; i++;
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953  (eval $ac_link) 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } &&
3960         { ac_try='test -z "$ac_cxx_werror_flag"
3961                         || test ! -s conftest.err'
3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963  (eval $ac_try) 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; } &&
3967         { ac_try='test -s conftest$ac_exeext'
3968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969  (eval $ac_try) 2>&5
3970  ac_status=$?
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); }; }; then
3973  :
3974else
3975  echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3979fi
3980rm -f conftest.err conftest.$ac_objext \
3981      conftest$ac_exeext conftest.$ac_ext
3982            ;;
3983          pgCC* | */pgCC*)
3984            coin_opt_cxxflags="-fast"
3985            coin_add_cxxflags="-Kieee -pc 64"
3986            coin_dbg_cxxflags="-g"
3987            ;;
3988        esac
3989        ;;
3990      *-ibm-*)
3991        case "$CXX" in
3992          xlC* | */xlC* | mpxlC* | */mpxlC*)
3993            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3994            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3995            coin_dbg_cxxflags="-g"
3996            ;;
3997        esac
3998        ;;
3999      *-hp-*)
4000        case "$CXX" in
4001          aCC* | */aCC* )
4002            coin_opt_cxxflags="-O"
4003            coin_add_cxxflags="-AA"
4004            coin_dbg_cxxflags="-g"
4005            ;;
4006        esac
4007        ;;
4008      *-*-solaris*)
4009          coin_opt_cxxflags="-O4"
4010          coin_dbg_cxxflags="-g"
4011        ;;
4012    esac
4013  fi
4014
4015# Generic flag settings. If these don't work, add a case above.
4016
4017  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
4018    coin_dbg_cxxflags="-g"
4019  fi
4020
4021  if test -z "$coin_opt_cxxflags"; then
4022    # Try if -O option works if nothing else is set
4023    CXXFLAGS=-O
4024    cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h.  */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h.  */
4030
4031int
4032main ()
4033{
4034int i=0; i++;
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041  (eval $ac_link) 2>conftest.er1
4042  ac_status=$?
4043  grep -v '^ *+' conftest.er1 >conftest.err
4044  rm -f conftest.er1
4045  cat conftest.err >&5
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); } &&
4048         { ac_try='test -z "$ac_cxx_werror_flag"
4049                         || test ! -s conftest.err'
4050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051  (eval $ac_try) 2>&5
4052  ac_status=$?
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); }; } &&
4055         { ac_try='test -s conftest$ac_exeext'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; }; then
4061  coin_opt_cxxflags="-O"
4062else
4063  echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066fi
4067rm -f conftest.err conftest.$ac_objext \
4068      conftest$ac_exeext conftest.$ac_ext
4069  fi
4070
4071  # if PM doesn't want the warning messages, take them out
4072  if test x"$coin_skip_warn_cxxflags" = xyes; then
4073    coin_warn_cxxflags=
4074  fi
4075
4076# Do final setup of flags based on values determined above.
4077
4078  if test x${DBG_CXXFLAGS+set} != xset; then
4079    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4080  fi
4081  if test x${OPT_CXXFLAGS+set} != xset; then
4082    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4083  fi
4084
4085  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4086  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4087
4088  if test "$coin_debug_compile" = "true"; then
4089    CXXFLAGS="$DBG_CXXFLAGS"
4090  else
4091    CXXFLAGS="$OPT_CXXFLAGS"
4092  fi
4093
4094# Handle the case where CXXFLAGS was set externally.
4095else
4096  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4097  if test x${DBG_CXXFLAGS+set} != xset; then
4098    DBG_CXXFLAGS="$CXXFLAGS"
4099  fi
4100  if test x${OPT_CXXFLAGS+set} != xset; then
4101    OPT_CXXFLAGS="$CXXFLAGS"
4102  fi
4103fi
4104
4105# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4106
4107case "$CXXFLAGS" in
4108  *-mno-cygwin*)
4109    if test x${CPPFLAGS+set} != xset ; then
4110      CPPFLAGS="-mno-cygwin"
4111    else
4112      case "$CPPFLAGS" in
4113        *-mno-cygwin*)
4114          ;;
4115        *)
4116          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4117          ;;
4118      esac
4119    fi ;;
4120esac
4121
4122# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4123if test x$COIN_PRJCT != x; then
4124  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4125fi
4126
4127# Try if CXXFLAGS works
4128save_CXXFLAGS="$CXXFLAGS"
4129cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135
4136int
4137main ()
4138{
4139int i=0; i++;
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext conftest$ac_exeext
4145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146  (eval $ac_link) 2>conftest.er1
4147  ac_status=$?
4148  grep -v '^ *+' conftest.er1 >conftest.err
4149  rm -f conftest.er1
4150  cat conftest.err >&5
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); } &&
4153         { ac_try='test -z "$ac_cxx_werror_flag"
4154                         || test ! -s conftest.err'
4155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156  (eval $ac_try) 2>&5
4157  ac_status=$?
4158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159  (exit $ac_status); }; } &&
4160         { ac_try='test -s conftest$ac_exeext'
4161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162  (eval $ac_try) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; }; then
4166  :
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171CXXFLAGS=
4172fi
4173rm -f conftest.err conftest.$ac_objext \
4174      conftest$ac_exeext conftest.$ac_ext
4175if test -z "$CXXFLAGS"; then
4176  { 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
4177echo "$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;}
4178  CXXFLAGS='-O'
4179  cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h.  */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h.  */
4185
4186int
4187main ()
4188{
4189int i=0; i++;
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194rm -f conftest.$ac_objext conftest$ac_exeext
4195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196  (eval $ac_link) 2>conftest.er1
4197  ac_status=$?
4198  grep -v '^ *+' conftest.er1 >conftest.err
4199  rm -f conftest.er1
4200  cat conftest.err >&5
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); } &&
4203         { ac_try='test -z "$ac_cxx_werror_flag"
4204                         || test ! -s conftest.err'
4205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206  (eval $ac_try) 2>&5
4207  ac_status=$?
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); }; } &&
4210         { ac_try='test -s conftest$ac_exeext'
4211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212  (eval $ac_try) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); }; }; then
4216  :
4217else
4218  echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221CXXFLAGS=
4222fi
4223rm -f conftest.err conftest.$ac_objext \
4224      conftest$ac_exeext conftest.$ac_ext
4225  if test -z "$CXXFLAGS"; then
4226    { 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
4227echo "$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;}
4228  fi
4229fi
4230
4231{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4232echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4233
4234
4235if test x"$MPICXX" = x; then :; else
4236  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4237echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4238  CXX="$MPICXX"
4239fi
4240
4241# correct the LD variable in a mingw build with MS or intel compiler
4242case "$CXX" in
4243  clang* ) ;;
4244  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4245    case $build in
4246  *-mingw*)
4247    if test "${LD+set}" = set; then :; else
4248      LD=link
4249    fi
4250    ;;
4251 esac
4252 case $enable_doscompile in
4253   msvc)
4254     if test "x${LD+set}" = xset; then :; else
4255       LD=link
4256     fi
4257     ;;
4258 esac
4259
4260    ;;
4261esac
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269
4270
4271# Initialize automake and libtool
4272{
4273
4274
4275
4276# START
4277
4278coin_disable_shared=no
4279# Test if force_shared has been set
4280if test "x" = xforce_shared; then
4281  if test x$enable_shared = xno; then
4282    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4283echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4284   { (exit 1); exit 1; }; }
4285  fi
4286  enable_shared=yes;
4287else
4288  # On Cygwin and AIX, building DLLs doesn't work
4289  case $build in
4290    *-cygwin*)
4291      coin_disable_shared=yes
4292      platform=Cygwin
4293    ;;
4294    *-aix*)
4295      coin_disable_shared=yes
4296      platform=AIX
4297    ;;
4298    *-mingw*)
4299      coin_disable_shared=yes
4300      platform="Msys"
4301#      case "$CXX" in
4302#        cl*)
4303#          coin_disable_shared=yes
4304#          platform="Msys with cl"
4305#      ;;
4306#      esac
4307    ;;
4308  esac
4309fi
4310if test x"$coin_disable_shared" = xyes; then
4311  if test x"$enable_shared" = xyes; then
4312    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4313echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4314  else
4315    # we don't disable shared, because it was not selected anyway
4316    coin_disable_shared=no
4317  fi
4318  enable_shared=no
4319fi
4320# By default, we only want the shared objects to be compiled
4321# Check whether --enable-static or --disable-static was given.
4322if test "${enable_static+set}" = set; then
4323  enableval="$enable_static"
4324  p=${PACKAGE-default}
4325    case $enableval in
4326    yes) enable_static=yes ;;
4327    no) enable_static=no ;;
4328    *)
4329     enable_static=no
4330      # Look at the argument we got.  We use all the common list separators.
4331      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4332      for pkg in $enableval; do
4333        IFS="$lt_save_ifs"
4334        if test "X$pkg" = "X$p"; then
4335          enable_static=yes
4336        fi
4337      done
4338      IFS="$lt_save_ifs"
4339      ;;
4340    esac
4341else
4342  enable_static=no
4343fi;
4344
4345
4346
4347
4348# Initialize automake
4349echo "$as_me:$LINENO: checking for egrep" >&5
4350echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4351if test "${ac_cv_prog_egrep+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4355    then ac_cv_prog_egrep='grep -E'
4356    else ac_cv_prog_egrep='egrep'
4357    fi
4358fi
4359echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4360echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4361 EGREP=$ac_cv_prog_egrep
4362
4363
4364echo "$as_me:$LINENO: checking whether ln -s works" >&5
4365echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4366LN_S=$as_ln_s
4367if test "$LN_S" = "ln -s"; then
4368  echo "$as_me:$LINENO: result: yes" >&5
4369echo "${ECHO_T}yes" >&6
4370else
4371  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4372echo "${ECHO_T}no, using $LN_S" >&6
4373fi
4374
4375am__api_version="1.9"
4376# Find a good install program.  We prefer a C program (faster),
4377# so one script is as good as another.  But avoid the broken or
4378# incompatible versions:
4379# SysV /etc/install, /usr/sbin/install
4380# SunOS /usr/etc/install
4381# IRIX /sbin/install
4382# AIX /bin/install
4383# AmigaOS /C/install, which installs bootblocks on floppy discs
4384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4385# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4387# OS/2's system install, which has a completely different semantic
4388# ./install, which can be erroneously created by make from ./install.sh.
4389echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4391if test -z "$INSTALL"; then
4392if test "${ac_cv_path_install+set}" = set; then
4393  echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400  # Account for people who put trailing slashes in PATH elements.
4401case $as_dir/ in
4402  ./ | .// | /cC/* | \
4403  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4405  /usr/ucb/* ) ;;
4406  *)
4407    # OSF1 and SCO ODT 3.0 have their own names for install.
4408    # Don't use installbsd from OSF since it installs stuff as root
4409    # by default.
4410    for ac_prog in ginstall scoinst install; do
4411      for ac_exec_ext in '' $ac_executable_extensions; do
4412        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4413          if test $ac_prog = install &&
4414            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415            # AIX install.  It has an incompatible calling convention.
4416            :
4417          elif test $ac_prog = install &&
4418            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419            # program-specific install script used by HP pwplus--don't use.
4420            :
4421          else
4422            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4423            break 3
4424          fi
4425        fi
4426      done
4427    done
4428    ;;
4429esac
4430done
4431
4432
4433fi
4434  if test "${ac_cv_path_install+set}" = set; then
4435    INSTALL=$ac_cv_path_install
4436  else
4437    # As a last resort, use the slow shell script.  We don't cache a
4438    # path for INSTALL within a source directory, because that will
4439    # break other packages using the cache if that directory is
4440    # removed, or if the path is relative.
4441    INSTALL=$ac_install_sh
4442  fi
4443fi
4444echo "$as_me:$LINENO: result: $INSTALL" >&5
4445echo "${ECHO_T}$INSTALL" >&6
4446
4447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4448# It thinks the first close brace ends the variable substitution.
4449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4450
4451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4452
4453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4454
4455echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4456echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4457# Just in case
4458sleep 1
4459echo timestamp > conftest.file
4460# Do `set' in a subshell so we don't clobber the current shell's
4461# arguments.  Must try -L first in case configure is actually a
4462# symlink; some systems play weird games with the mod time of symlinks
4463# (eg FreeBSD returns the mod time of the symlink's containing
4464# directory).
4465if (
4466   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4467   if test "$*" = "X"; then
4468      # -L didn't work.
4469      set X `ls -t $srcdir/configure conftest.file`
4470   fi
4471   rm -f conftest.file
4472   if test "$*" != "X $srcdir/configure conftest.file" \
4473      && test "$*" != "X conftest.file $srcdir/configure"; then
4474
4475      # If neither matched, then we have a broken ls.  This can happen
4476      # if, for instance, CONFIG_SHELL is bash and it inherits a
4477      # broken ls alias from the environment.  This has actually
4478      # happened.  Such a system could not be considered "sane".
4479      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4480alias in your environment" >&5
4481echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4482alias in your environment" >&2;}
4483   { (exit 1); exit 1; }; }
4484   fi
4485
4486   test "$2" = conftest.file
4487   )
4488then
4489   # Ok.
4490   :
4491else
4492   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4493Check your system clock" >&5
4494echo "$as_me: error: newly created file is older than distributed files!
4495Check your system clock" >&2;}
4496   { (exit 1); exit 1; }; }
4497fi
4498echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500test "$program_prefix" != NONE &&
4501  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4502# Use a double $ so make ignores it.
4503test "$program_suffix" != NONE &&
4504  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4505# Double any \ or $.  echo might interpret backslashes.
4506# By default was `s,x,x', remove it if useless.
4507cat <<\_ACEOF >conftest.sed
4508s/[\\$]/&&/g;s/;s,x,x,$//
4509_ACEOF
4510program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4511rm conftest.sed
4512
4513# expand $ac_aux_dir to an absolute path
4514am_aux_dir=`cd $ac_aux_dir && pwd`
4515
4516test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4517# Use eval to expand $SHELL
4518if eval "$MISSING --run true"; then
4519  am_missing_run="$MISSING --run "
4520else
4521  am_missing_run=
4522  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4523echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4524fi
4525
4526if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4527  # We used to keeping the `.' as first argument, in order to
4528  # allow $(mkdir_p) to be used without argument.  As in
4529  #   $(mkdir_p) $(somedir)
4530  # where $(somedir) is conditionally defined.  However this is wrong
4531  # for two reasons:
4532  #  1. if the package is installed by a user who cannot write `.'
4533  #     make install will fail,
4534  #  2. the above comment should most certainly read
4535  #     $(mkdir_p) $(DESTDIR)$(somedir)
4536  #     so it does not work when $(somedir) is undefined and
4537  #     $(DESTDIR) is not.
4538  #  To support the latter case, we have to write
4539  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4540  #  so the `.' trick is pointless.
4541  mkdir_p='mkdir -p --'
4542else
4543  # On NextStep and OpenStep, the `mkdir' command does not
4544  # recognize any option.  It will interpret all options as
4545  # directories to create, and then abort because `.' already
4546  # exists.
4547  for d in ./-p ./--version;
4548  do
4549    test -d $d && rmdir $d
4550  done
4551  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4552  if test -f "$ac_aux_dir/mkinstalldirs"; then
4553    mkdir_p='$(mkinstalldirs)'
4554  else
4555    mkdir_p='$(install_sh) -d'
4556  fi
4557fi
4558
4559for ac_prog in gawk mawk nawk awk
4560do
4561  # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
4563echo "$as_me:$LINENO: checking for $ac_word" >&5
4564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565if test "${ac_cv_prog_AWK+set}" = set; then
4566  echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568  if test -n "$AWK"; then
4569  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576  for ac_exec_ext in '' $ac_executable_extensions; do
4577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578    ac_cv_prog_AWK="$ac_prog"
4579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583done
4584
4585fi
4586fi
4587AWK=$ac_cv_prog_AWK
4588if test -n "$AWK"; then
4589  echo "$as_me:$LINENO: result: $AWK" >&5
4590echo "${ECHO_T}$AWK" >&6
4591else
4592  echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594fi
4595
4596  test -n "$AWK" && break
4597done
4598
4599echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4600echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4601set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4602if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  cat >conftest.make <<\_ACEOF
4606all:
4607        @echo 'ac_maketemp="$(MAKE)"'
4608_ACEOF
4609# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4610eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4611if test -n "$ac_maketemp"; then
4612  eval ac_cv_prog_make_${ac_make}_set=yes
4613else
4614  eval ac_cv_prog_make_${ac_make}_set=no
4615fi
4616rm -f conftest.make
4617fi
4618if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4619  echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
4621  SET_MAKE=
4622else
4623  echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
4625  SET_MAKE="MAKE=${MAKE-make}"
4626fi
4627
4628rm -rf .tst 2>/dev/null
4629mkdir .tst 2>/dev/null
4630if test -d .tst; then
4631  am__leading_dot=.
4632else
4633  am__leading_dot=_
4634fi
4635rmdir .tst 2>/dev/null
4636
4637DEPDIR="${am__leading_dot}deps"
4638
4639          ac_config_commands="$ac_config_commands depfiles"
4640
4641
4642am_make=${MAKE-make}
4643cat > confinc << 'END'
4644am__doit:
4645        @echo done
4646.PHONY: am__doit
4647END
4648# If we don't find an include directive, just comment out the code.
4649echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4650echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4651am__include="#"
4652am__quote=
4653_am_result=none
4654# First try GNU make style include.
4655echo "include confinc" > confmf
4656# We grep out `Entering directory' and `Leaving directory'
4657# messages which can occur if `w' ends up in MAKEFLAGS.
4658# In particular we don't look at `^make:' because GNU make might
4659# be invoked under some other name (usually "gmake"), in which
4660# case it prints its new name instead of `make'.
4661if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4662   am__include=include
4663   am__quote=
4664   _am_result=GNU
4665fi
4666# Now try BSD make style include.
4667if test "$am__include" = "#"; then
4668   echo '.include "confinc"' > confmf
4669   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4670      am__include=.include
4671      am__quote="\""
4672      _am_result=BSD
4673   fi
4674fi
4675
4676
4677echo "$as_me:$LINENO: result: $_am_result" >&5
4678echo "${ECHO_T}$_am_result" >&6
4679rm -f confinc confmf
4680
4681# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4682if test "${enable_dependency_tracking+set}" = set; then
4683  enableval="$enable_dependency_tracking"
4684
4685fi;
4686if test "x$enable_dependency_tracking" != xno; then
4687  am_depcomp="$ac_aux_dir/depcomp"
4688  AMDEPBACKSLASH='\'
4689fi
4690
4691
4692if test "x$enable_dependency_tracking" != xno; then
4693  AMDEP_TRUE=
4694  AMDEP_FALSE='#'
4695else
4696  AMDEP_TRUE='#'
4697  AMDEP_FALSE=
4698fi
4699
4700
4701
4702
4703
4704
4705# AC_MSG_NOTICE([Beginning automake initialisation.])
4706# Stuff for automake
4707# test to see if srcdir already configured
4708if test "`cd $srcdir && pwd`" != "`pwd`" &&
4709   test -f $srcdir/config.status; then
4710  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4711echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4712   { (exit 1); exit 1; }; }
4713fi
4714
4715# test whether we have cygpath
4716if test -z "$CYGPATH_W"; then
4717  if (cygpath --version) >/dev/null 2>/dev/null; then
4718    CYGPATH_W='cygpath -w'
4719  else
4720    CYGPATH_W=echo
4721  fi
4722fi
4723
4724
4725# Define the identity of the package.
4726 PACKAGE='cbc'
4727 VERSION='trunk'
4728
4729
4730cat >>confdefs.h <<_ACEOF
4731#define PACKAGE "$PACKAGE"
4732_ACEOF
4733
4734
4735cat >>confdefs.h <<_ACEOF
4736#define VERSION "$VERSION"
4737_ACEOF
4738
4739# Some tools Automake needs.
4740
4741ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4742
4743
4744AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4745
4746
4747AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4748
4749
4750AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4751
4752
4753MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4754
4755install_sh=${install_sh-"$am_aux_dir/install-sh"}
4756
4757# Installed binaries are usually stripped using `strip' when the user
4758# run `make install-strip'.  However `strip' might not be the right
4759# tool to use in cross-compilation environments, therefore Automake
4760# will honor the `STRIP' environment variable to overrule this program.
4761if test "$cross_compiling" != no; then
4762  if test -n "$ac_tool_prefix"; then
4763  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4764set dummy ${ac_tool_prefix}strip; ac_word=$2
4765echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767if test "${ac_cv_prog_STRIP+set}" = set; then
4768  echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770  if test -n "$STRIP"; then
4771  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776  IFS=$as_save_IFS
4777  test -z "$as_dir" && as_dir=.
4778  for ac_exec_ext in '' $ac_executable_extensions; do
4779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782    break 2
4783  fi
4784done
4785done
4786
4787fi
4788fi
4789STRIP=$ac_cv_prog_STRIP
4790if test -n "$STRIP"; then
4791  echo "$as_me:$LINENO: result: $STRIP" >&5
4792echo "${ECHO_T}$STRIP" >&6
4793else
4794  echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796fi
4797
4798fi
4799if test -z "$ac_cv_prog_STRIP"; then
4800  ac_ct_STRIP=$STRIP
4801  # Extract the first word of "strip", so it can be a program name with args.
4802set dummy strip; ac_word=$2
4803echo "$as_me:$LINENO: checking for $ac_word" >&5
4804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4806  echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808  if test -n "$ac_ct_STRIP"; then
4809  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4810else
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH
4813do
4814  IFS=$as_save_IFS
4815  test -z "$as_dir" && as_dir=.
4816  for ac_exec_ext in '' $ac_executable_extensions; do
4817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818    ac_cv_prog_ac_ct_STRIP="strip"
4819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820    break 2
4821  fi
4822done
4823done
4824
4825  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4826fi
4827fi
4828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4829if test -n "$ac_ct_STRIP"; then
4830  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4831echo "${ECHO_T}$ac_ct_STRIP" >&6
4832else
4833  echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6
4835fi
4836
4837  STRIP=$ac_ct_STRIP
4838else
4839  STRIP="$ac_cv_prog_STRIP"
4840fi
4841
4842fi
4843INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4844
4845# We need awk for the "check" target.  The system "awk" is bad on
4846# some platforms.
4847# Always define AMTAR for backward compatibility.
4848
4849AMTAR=${AMTAR-"${am_missing_run}tar"}
4850
4851am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4852
4853
4854
4855
4856depcc="$CC"   am_compiler_list=
4857
4858echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4859echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4860if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4861  echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4864  # We make a subdir and do the tests there.  Otherwise we can end up
4865  # making bogus files that we don't know about and never remove.  For
4866  # instance it was reported that on HP-UX the gcc test will end up
4867  # making a dummy file named `D' -- because `-MD' means `put the output
4868  # in D'.
4869  mkdir conftest.dir
4870  # Copy depcomp to subdir because otherwise we won't find it if we're
4871  # using a relative directory.
4872  cp "$am_depcomp" conftest.dir
4873  cd conftest.dir
4874  # We will build objects and dependencies in a subdirectory because
4875  # it helps to detect inapplicable dependency modes.  For instance
4876  # both Tru64's cc and ICC support -MD to output dependencies as a
4877  # side effect of compilation, but ICC will put the dependencies in
4878  # the current directory while Tru64 will put them in the object
4879  # directory.
4880  mkdir sub
4881
4882  am_cv_CC_dependencies_compiler_type=none
4883  if test "$am_compiler_list" = ""; then
4884     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4885  fi
4886  for depmode in $am_compiler_list; do
4887    # Setup a source with many dependencies, because some compilers
4888    # like to wrap large dependency lists on column 80 (with \), and
4889    # we should not choose a depcomp mode which is confused by this.
4890    #
4891    # We need to recreate these files for each test, as the compiler may
4892    # overwrite some of them when testing with obscure command lines.
4893    # This happens at least with the AIX C compiler.
4894    : > sub/conftest.c
4895    for i in 1 2 3 4 5 6; do
4896      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4897      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4898      # Solaris 8's {/usr,}/bin/sh.
4899      touch sub/conftst$i.h
4900    done
4901    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902
4903    case $depmode in
4904    nosideeffect)
4905      # after this tag, mechanisms are not by side-effect, so they'll
4906      # only be used when explicitly requested
4907      if test "x$enable_dependency_tracking" = xyes; then
4908        continue
4909      else
4910        break
4911      fi
4912      ;;
4913    none) break ;;
4914    esac
4915    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4916    # mode.  It turns out that the SunPro C++ compiler does not properly
4917    # handle `-M -o', and we need to detect this.
4918    if depmode=$depmode \
4919       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4920       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4922         >/dev/null 2>conftest.err &&
4923       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4925       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926      # icc doesn't choke on unknown options, it will just issue warnings
4927      # or remarks (even with -Werror).  So we grep stderr for any message
4928      # that says an option was ignored or not supported.
4929      # When given -MP, icc 7.0 and 7.1 complain thusly:
4930      #   icc: Command line warning: ignoring option '-M'; no argument required
4931      # The diagnosis changed in icc 8.0:
4932      #   icc: Command line remark: option '-MP' not supported
4933      if (grep 'ignoring option' conftest.err ||
4934          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935        am_cv_CC_dependencies_compiler_type=$depmode
4936        break
4937      fi
4938    fi
4939  done
4940
4941  cd ..
4942  rm -rf conftest.dir
4943else
4944  am_cv_CC_dependencies_compiler_type=none
4945fi
4946
4947fi
4948echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4949echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4950CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4951
4952
4953
4954if
4955  test "x$enable_dependency_tracking" != xno \
4956  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4957  am__fastdepCC_TRUE=
4958  am__fastdepCC_FALSE='#'
4959else
4960  am__fastdepCC_TRUE='#'
4961  am__fastdepCC_FALSE=
4962fi
4963
4964
4965depcc="$CXX"  am_compiler_list=
4966
4967echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4968echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4969if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4973  # We make a subdir and do the tests there.  Otherwise we can end up
4974  # making bogus files that we don't know about and never remove.  For
4975  # instance it was reported that on HP-UX the gcc test will end up
4976  # making a dummy file named `D' -- because `-MD' means `put the output
4977  # in D'.
4978  mkdir conftest.dir
4979  # Copy depcomp to subdir because otherwise we won't find it if we're
4980  # using a relative directory.
4981  cp "$am_depcomp" conftest.dir
4982  cd conftest.dir
4983  # We will build objects and dependencies in a subdirectory because
4984  # it helps to detect inapplicable dependency modes.  For instance
4985  # both Tru64's cc and ICC support -MD to output dependencies as a
4986  # side effect of compilation, but ICC will put the dependencies in
4987  # the current directory while Tru64 will put them in the object
4988  # directory.
4989  mkdir sub
4990
4991  am_cv_CXX_dependencies_compiler_type=none
4992  if test "$am_compiler_list" = ""; then
4993     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4994  fi
4995  for depmode in $am_compiler_list; do
4996    # Setup a source with many dependencies, because some compilers
4997    # like to wrap large dependency lists on column 80 (with \), and
4998    # we should not choose a depcomp mode which is confused by this.
4999    #
5000    # We need to recreate these files for each test, as the compiler may
5001    # overwrite some of them when testing with obscure command lines.
5002    # This happens at least with the AIX C compiler.
5003    : > sub/conftest.c
5004    for i in 1 2 3 4 5 6; do
5005      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5006      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5007      # Solaris 8's {/usr,}/bin/sh.
5008      touch sub/conftst$i.h
5009    done
5010    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011
5012    case $depmode in
5013    nosideeffect)
5014      # after this tag, mechanisms are not by side-effect, so they'll
5015      # only be used when explicitly requested
5016      if test "x$enable_dependency_tracking" = xyes; then
5017        continue
5018      else
5019        break
5020      fi
5021      ;;
5022    none) break ;;
5023    esac
5024    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025    # mode.  It turns out that the SunPro C++ compiler does not properly
5026    # handle `-M -o', and we need to detect this.
5027    if depmode=$depmode \
5028       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5029       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5030       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5031         >/dev/null 2>conftest.err &&
5032       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5033       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5034       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5035      # icc doesn't choke on unknown options, it will just issue warnings
5036      # or remarks (even with -Werror).  So we grep stderr for any message
5037      # that says an option was ignored or not supported.
5038      # When given -MP, icc 7.0 and 7.1 complain thusly:
5039      #   icc: Command line warning: ignoring option '-M'; no argument required
5040      # The diagnosis changed in icc 8.0:
5041      #   icc: Command line remark: option '-MP' not supported
5042      if (grep 'ignoring option' conftest.err ||
5043          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5044        am_cv_CXX_dependencies_compiler_type=$depmode
5045        break
5046      fi
5047    fi
5048  done
5049
5050  cd ..
5051  rm -rf conftest.dir
5052else
5053  am_cv_CXX_dependencies_compiler_type=none
5054fi
5055
5056fi
5057echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5058echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5059CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5060
5061
5062
5063if
5064  test "x$enable_dependency_tracking" != xno \
5065  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5066  am__fastdepCXX_TRUE=
5067  am__fastdepCXX_FALSE='#'
5068else
5069  am__fastdepCXX_TRUE='#'
5070  am__fastdepCXX_FALSE=
5071fi
5072
5073
5074
5075echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5076echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5077    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5078if test "${enable_maintainer_mode+set}" = set; then
5079  enableval="$enable_maintainer_mode"
5080  USE_MAINTAINER_MODE=$enableval
5081else
5082  USE_MAINTAINER_MODE=no
5083fi;
5084  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5085echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5086
5087
5088if test $USE_MAINTAINER_MODE = yes; then
5089  MAINTAINER_MODE_TRUE=
5090  MAINTAINER_MODE_FALSE='#'
5091else
5092  MAINTAINER_MODE_TRUE='#'
5093  MAINTAINER_MODE_FALSE=
5094fi
5095
5096  MAINT=$MAINTAINER_MODE_TRUE
5097
5098
5099
5100coin_have_externals=no
5101if test "$enable_maintainer_mode" = yes; then
5102
5103  # If maintainer mode is chosen, we make sure that the correct versions
5104  # of the tools are used, and that we know where libtool.m4 is (to
5105  # recreate acinclude.m4)
5106
5107
5108  LIBTOOLM4=
5109  # Normally, $HOME
5110  AUTOTOOLS_DFLT=$HOME
5111
5112  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5113echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5114if test "${ac_cv_use_correct_autotools+set}" = set; then
5115  echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117  ac_cv_use_correct_autotools=check
5118fi
5119echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5120echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5121
5122  if test $ac_cv_use_correct_autotools = check; then
5123    ac_cv_use_correct_autotools=yes
5124    # Check if we have autoconf
5125    # Extract the first word of "autoconf", so it can be a program name with args.
5126set dummy autoconf; ac_word=$2
5127echo "$as_me:$LINENO: checking for $ac_word" >&5
5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129if test "${ac_cv_prog_have_autoconf+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  if test -n "$have_autoconf"; then
5133  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140  for ac_exec_ext in '' $ac_executable_extensions; do
5141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142    ac_cv_prog_have_autoconf="yes"
5143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147done
5148
5149  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5150fi
5151fi
5152have_autoconf=$ac_cv_prog_have_autoconf
5153if test -n "$have_autoconf"; then
5154  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5155echo "${ECHO_T}$have_autoconf" >&6
5156else
5157  echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6
5159fi
5160
5161    if test $have_autoconf = no; then
5162      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5163echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5164   { (exit 1); exit 1; }; }
5165    fi
5166
5167    # Check whether autoconf is the correct version
5168    correct_version='2.59'
5169    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5170    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5171echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5172    autoconf --version > confauto.out 2>&1
5173    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5174      echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
5176    else
5177      rm -f confauto.out
5178      echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5181echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5182   { (exit 1); exit 1; }; }
5183    fi
5184    rm -f confauto.out
5185
5186    # Check if the executable autoconf is picked up from the correct location
5187    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5188echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5189    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5190    autoconf_dir=`cd $autoconf_dir; pwd`
5191    if test x$AUTOTOOLS_DIR = x; then
5192      want_dir=$AUTOTOOLS_DFLT/bin
5193    else
5194      want_dir=$AUTOTOOLS_DIR/bin
5195    fi
5196    if test $autoconf_dir = `cd $want_dir; pwd`; then
5197      echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
5199    else
5200      rm -f confauto.out
5201      echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5204echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5205   { (exit 1); exit 1; }; }
5206    fi
5207
5208    # Check if we have automake
5209    # Extract the first word of "automake", so it can be a program name with args.
5210set dummy automake; ac_word=$2
5211echo "$as_me:$LINENO: checking for $ac_word" >&5
5212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213if test "${ac_cv_prog_have_automake+set}" = set; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  if test -n "$have_automake"; then
5217  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224  for ac_exec_ext in '' $ac_executable_extensions; do
5225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226    ac_cv_prog_have_automake="yes"
5227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231done
5232
5233  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5234fi
5235fi
5236have_automake=$ac_cv_prog_have_automake
5237if test -n "$have_automake"; then
5238  echo "$as_me:$LINENO: result: $have_automake" >&5
5239echo "${ECHO_T}$have_automake" >&6
5240else
5241  echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243fi
5244
5245    if test $have_automake = no; then
5246      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5247echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5248   { (exit 1); exit 1; }; }
5249    fi
5250
5251    # Check whether automake is the correct version
5252    correct_version='1.9.6'
5253    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5254    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5255echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5256    automake --version > confauto.out 2>&1
5257    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5258      echo "$as_me:$LINENO: result: yes" >&5
5259echo "${ECHO_T}yes" >&6
5260    else
5261      rm -f confauto.out
5262      echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5265echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5266   { (exit 1); exit 1; }; }
5267    fi
5268    rm -f confauto.out
5269
5270    # Check if the executable automake is picked up from the correct location
5271    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5272echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5273    automake_dir=`which automake | sed -e 's=/automake=='`
5274    automake_dir=`cd $automake_dir; pwd`
5275    if test x$AUTOTOOLS_DIR = x; then
5276      want_dir=$AUTOTOOLS_DFLT/bin
5277    else
5278      want_dir=$AUTOTOOLS_DIR/bin
5279    fi
5280    if test $automake_dir = `cd $want_dir; pwd`; then
5281      echo "$as_me:$LINENO: result: yes" >&5
5282echo "${ECHO_T}yes" >&6
5283    else
5284      rm -f confauto.out
5285      echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5288echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5289   { (exit 1); exit 1; }; }
5290    fi
5291
5292    # Check if this is the correct version of libtool (with escaped dots)
5293    if test x$AUTOTOOLS_DIR = x; then
5294      want_dir=$AUTOTOOLS_DFLT/share
5295    else
5296      want_dir=$AUTOTOOLS_DIR/share
5297    fi
5298    correct_version='1.5.22'
5299    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5300    if test -r $want_dir/libtool/ltmain.sh; then
5301  have_ltmain=yes
5302  :
5303else
5304  have_ltmain=no
5305  :
5306fi
5307
5308    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5309echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5310    if test $have_ltmain = yes; then
5311    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5312        echo "$as_me:$LINENO: result: yes" >&5
5313echo "${ECHO_T}yes" >&6
5314      else
5315        echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5318echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5319   { (exit 1); exit 1; }; }
5320      fi
5321    else
5322      echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5325echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5326   { (exit 1); exit 1; }; }
5327    fi
5328  fi
5329
5330  # Check if we can find the libtool file
5331  if test x$AUTOTOOLS_DIR = x; then
5332    want_dir=$AUTOTOOLS_DFLT/share
5333  else
5334    want_dir=$AUTOTOOLS_DIR/share
5335  fi
5336  if test -r $want_dir/aclocal/libtool.m4; then
5337  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5338  :
5339else
5340  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5341echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5342   { (exit 1); exit 1; }; }
5343  :
5344fi
5345
5346
5347  # Check if we have an Dependencies file
5348  if test -r $srcdir/Dependencies; then
5349    coin_have_externals=yes
5350  fi
5351  # Check if subversion is installed and understands https
5352  # Extract the first word of "svn", so it can be a program name with args.
5353set dummy svn; ac_word=$2
5354echo "$as_me:$LINENO: checking for $ac_word" >&5
5355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356if test "${ac_cv_prog_have_svn+set}" = set; then
5357  echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359  if test -n "$have_svn"; then
5360  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365  IFS=$as_save_IFS
5366  test -z "$as_dir" && as_dir=.
5367  for ac_exec_ext in '' $ac_executable_extensions; do
5368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369    ac_cv_prog_have_svn="yes"
5370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371    break 2
5372  fi
5373done
5374done
5375
5376  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5377fi
5378fi
5379have_svn=$ac_cv_prog_have_svn
5380if test -n "$have_svn"; then
5381  echo "$as_me:$LINENO: result: $have_svn" >&5
5382echo "${ECHO_T}$have_svn" >&6
5383else
5384  echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386fi
5387
5388  if test x$have_svn = xyes; then
5389    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5390echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5391if test "${ac_cv_svn_understands_https+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  svn --version > confauto.out 2>&1
5395                    if $EGREP https confauto.out >/dev/null 2>&1; then
5396                      ac_cv_svn_understands_https=yes
5397                    else
5398                      ac_cv_svn_understands_https=no
5399                      have_svn=no
5400                      ac_cv_prog_have_svn=no
5401                    fi
5402                    rm -f confauto.out
5403fi
5404echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5405echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5406  fi
5407
5408  # Find the location of the BuildTools directory
5409  BUILDTOOLSDIR=
5410  if test -r $srcdir/BuildTools/coin.m4; then
5411    BUILDTOOLSDIR=$srcdir/BuildTools
5412  else
5413    if test -r $srcdir/../BuildTools/coin.m4; then
5414      BUILDTOOLSDIR=$srcdir/../BuildTools
5415    else
5416      if test -r $srcdir/../../BuildTools/coin.m4; then
5417        BUILDTOOLSDIR=$srcdir/../../BuildTools
5418      else
5419        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5420echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5421   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5422      fi
5423    fi
5424  fi
5425
5426
5427  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5428  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5429    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5430  fi
5431
5432  # The following variable is set to the name of the directory where
5433  # the autotool scripts are located
5434
5435  AUX_DIR=$ac_aux_dir
5436fi
5437
5438# helpful variable for the base directory of this package
5439abs_source_dir=`cd $srcdir; pwd`
5440
5441
5442# Stuff for example Makefiles
5443if test x$prefix = xNONE; then
5444  full_prefix=$ac_default_prefix
5445else
5446  full_prefix=$prefix
5447fi
5448full_prefix=`cd $full_prefix ; pwd`
5449
5450abs_lib_dir=$full_prefix/lib
5451
5452abs_include_dir=$full_prefix/include
5453
5454abs_bin_dir=$full_prefix/bin
5455
5456
5457
5458if test $coin_have_externals = yes && test x$have_svn = xyes; then
5459  HAVE_EXTERNALS_TRUE=
5460  HAVE_EXTERNALS_FALSE='#'
5461else
5462  HAVE_EXTERNALS_TRUE='#'
5463  HAVE_EXTERNALS_FALSE=
5464fi
5465
5466
5467# AC_MSG_NOTICE([End automake initialisation.])
5468
5469
5470
5471LIBTOOL=
5472if test -r ../libtool; then
5473  coin_config_dir=..
5474  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5475fi
5476if test "x$LIBTOOL" = x; then
5477  if test -r ../../libtool; then
5478    coin_config_dir=../..
5479    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5480  fi
5481fi
5482
5483if test "x$LIBTOOL" = x; then
5484# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5485  # Stuff for libtool
5486  # Check whether --enable-shared or --disable-shared was given.
5487if test "${enable_shared+set}" = set; then
5488  enableval="$enable_shared"
5489  p=${PACKAGE-default}
5490    case $enableval in
5491    yes) enable_shared=yes ;;
5492    no) enable_shared=no ;;
5493    *)
5494      enable_shared=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_shared=yes
5501        fi
5502      done
5503      IFS="$lt_save_ifs"
5504      ;;
5505    esac
5506else
5507  enable_shared=yes
5508fi;
5509
5510# Check whether --enable-fast-install or --disable-fast-install was given.
5511if test "${enable_fast_install+set}" = set; then
5512  enableval="$enable_fast_install"
5513  p=${PACKAGE-default}
5514    case $enableval in
5515    yes) enable_fast_install=yes ;;
5516    no) enable_fast_install=no ;;
5517    *)
5518      enable_fast_install=no
5519      # Look at the argument we got.  We use all the common list separators.
5520      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5521      for pkg in $enableval; do
5522        IFS="$lt_save_ifs"
5523        if test "X$pkg" = "X$p"; then
5524          enable_fast_install=yes
5525        fi
5526      done
5527      IFS="$lt_save_ifs"
5528      ;;
5529    esac
5530else
5531  enable_fast_install=yes
5532fi;
5533
5534echo "$as_me:$LINENO: checking host system type" >&5
5535echo $ECHO_N "checking host system type... $ECHO_C" >&6
5536if test "${ac_cv_host+set}" = set; then
5537  echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539  ac_cv_host_alias=$host_alias
5540test -z "$ac_cv_host_alias" &&
5541  ac_cv_host_alias=$ac_cv_build_alias
5542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5543  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5545   { (exit 1); exit 1; }; }
5546
5547fi
5548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5549echo "${ECHO_T}$ac_cv_host" >&6
5550host=$ac_cv_host
5551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5554
5555
5556echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5557echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5558if test "${lt_cv_path_SED+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  # Loop through the user's path and test for sed and gsed.
5562# Then use that list of sed's as ones to test for truncation.
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568  for lt_ac_prog in sed gsed; do
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5571        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5572      fi
5573    done
5574  done
5575done
5576lt_ac_max=0
5577lt_ac_count=0
5578# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5579# along with /bin/sed that truncates output.
5580for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5581  test ! -f $lt_ac_sed && continue
5582  cat /dev/null > conftest.in
5583  lt_ac_count=0
5584  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5585  # Check for GNU sed and select it if it is found.
5586  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5587    lt_cv_path_SED=$lt_ac_sed
5588    break
5589  fi
5590  while true; do
5591    cat conftest.in conftest.in >conftest.tmp
5592    mv conftest.tmp conftest.in
5593    cp conftest.in conftest.nl
5594    echo >>conftest.nl
5595    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5596    cmp -s conftest.out conftest.nl || break
5597    # 10000 chars as input seems more than enough
5598    test $lt_ac_count -gt 10 && break
5599    lt_ac_count=`expr $lt_ac_count + 1`
5600    if test $lt_ac_count -gt $lt_ac_max; then
5601      lt_ac_max=$lt_ac_count
5602      lt_cv_path_SED=$lt_ac_sed
5603    fi
5604  done
5605done
5606
5607fi
5608
5609SED=$lt_cv_path_SED
5610echo "$as_me:$LINENO: result: $SED" >&5
5611echo "${ECHO_T}$SED" >&6
5612
5613
5614# Check whether --with-gnu-ld or --without-gnu-ld was given.
5615if test "${with_gnu_ld+set}" = set; then
5616  withval="$with_gnu_ld"
5617  test "$withval" = no || with_gnu_ld=yes
5618else
5619  with_gnu_ld=no
5620fi;
5621ac_prog=ld
5622if test "$GCC" = yes; then
5623  # Check if gcc -print-prog-name=ld gives a path.
5624  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5625echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5626  case $host in
5627  *-*-mingw*)
5628    # gcc leaves a trailing carriage return which upsets mingw
5629    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5630  *)
5631    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5632  esac
5633  case $ac_prog in
5634    # Accept absolute paths.
5635    [\\/]* | ?:[\\/]*)
5636      re_direlt='/[^/][^/]*/\.\./'
5637      # Canonicalize the pathname of ld
5638      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5639      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5640        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5641      done
5642      test -z "$LD" && LD="$ac_prog"
5643      ;;
5644  "")
5645    # If it fails, then pretend we aren't using GCC.
5646    ac_prog=ld
5647    ;;
5648  *)
5649    # If it is relative, then search for the first ld in PATH.
5650    with_gnu_ld=unknown
5651    ;;
5652  esac
5653elif test "$with_gnu_ld" = yes; then
5654  echo "$as_me:$LINENO: checking for GNU ld" >&5
5655echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5656else
5657  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5658echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5659fi
5660if test "${lt_cv_path_LD+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  if test -z "$LD"; then
5664  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5665  for ac_dir in $PATH; do
5666    IFS="$lt_save_ifs"
5667    test -z "$ac_dir" && ac_dir=.
5668    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5669      lt_cv_path_LD="$ac_dir/$ac_prog"
5670      # Check to see if the program is GNU ld.  I'd rather use --version,
5671      # but apparently some variants of GNU ld only accept -v.
5672      # Break only if it was the GNU/non-GNU ld that we prefer.
5673      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5674      *GNU* | *'with BFD'*)
5675        test "$with_gnu_ld" != no && break
5676        ;;
5677      *)
5678        test "$with_gnu_ld" != yes && break
5679        ;;
5680      esac
5681    fi
5682  done
5683  IFS="$lt_save_ifs"
5684else
5685  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5686fi
5687fi
5688
5689LD="$lt_cv_path_LD"
5690if test -n "$LD"; then
5691  echo "$as_me:$LINENO: result: $LD" >&5
5692echo "${ECHO_T}$LD" >&6
5693else
5694  echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696fi
5697test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5698echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5699   { (exit 1); exit 1; }; }
5700echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5701echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5702if test "${lt_cv_prog_gnu_ld+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5706case `$LD -v 2>&1 </dev/null` in
5707*GNU* | *'with BFD'*)
5708  lt_cv_prog_gnu_ld=yes
5709  ;;
5710*)
5711  lt_cv_prog_gnu_ld=no
5712  ;;
5713esac
5714fi
5715echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5716echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5717with_gnu_ld=$lt_cv_prog_gnu_ld
5718
5719
5720echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5721echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5722if test "${lt_cv_ld_reload_flag+set}" = set; then
5723  echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725  lt_cv_ld_reload_flag='-r'
5726fi
5727echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5728echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5729reload_flag=$lt_cv_ld_reload_flag
5730case $reload_flag in
5731"" | " "*) ;;
5732*) reload_flag=" $reload_flag" ;;
5733esac
5734reload_cmds='$LD$reload_flag -o $output$reload_objs'
5735case $host_os in
5736  darwin*)
5737    if test "$GCC" = yes; then
5738      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5739    else
5740      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5741    fi
5742    ;;
5743esac
5744
5745echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5746echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5747if test "${lt_cv_path_NM+set}" = set; then
5748  echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750  if test -n "$NM"; then
5751  # Let the user override the test.
5752  lt_cv_path_NM="$NM"
5753else
5754  lt_nm_to_check="${ac_tool_prefix}nm"
5755  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5756    lt_nm_to_check="$lt_nm_to_check nm"
5757  fi
5758  for lt_tmp_nm in $lt_nm_to_check; do
5759    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5760    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5761      IFS="$lt_save_ifs"
5762      test -z "$ac_dir" && ac_dir=.
5763      tmp_nm="$ac_dir/$lt_tmp_nm"
5764      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765        # Check to see if the nm accepts a BSD-compat flag.
5766        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5767        #   nm: unknown option "B" ignored
5768        # Tru64's nm complains that /dev/null is an invalid object file
5769        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5770        */dev/null* | *'Invalid file or object type'*)
5771          lt_cv_path_NM="$tmp_nm -B"
5772          break
5773          ;;
5774        *)
5775          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5776          */dev/null*)
5777            lt_cv_path_NM="$tmp_nm -p"
5778            break
5779            ;;
5780          *)
5781            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5782            continue # so that we can try to find one that supports BSD flags
5783            ;;
5784          esac
5785          ;;
5786        esac
5787      fi
5788    done
5789    IFS="$lt_save_ifs"
5790  done
5791  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5792fi
5793fi
5794echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5795echo "${ECHO_T}$lt_cv_path_NM" >&6
5796NM="$lt_cv_path_NM"
5797
5798echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5799echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5800if test "${lt_cv_deplibs_check_method+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  lt_cv_file_magic_cmd='$MAGIC_CMD'
5804lt_cv_file_magic_test_file=
5805lt_cv_deplibs_check_method='unknown'
5806# Need to set the preceding variable on all platforms that support
5807# interlibrary dependencies.
5808# 'none' -- dependencies not supported.
5809# `unknown' -- same as none, but documents that we really don't know.
5810# 'pass_all' -- all dependencies passed with no checks.
5811# 'test_compile' -- check by making test program.
5812# 'file_magic [[regex]]' -- check by looking for files in library path
5813# which responds to the $file_magic_cmd with a given extended regex.
5814# If you have `file' or equivalent on your system and you're not sure
5815# whether `pass_all' will *always* work, you probably want this one.
5816
5817case $host_os in
5818aix4* | aix5*)
5819  lt_cv_deplibs_check_method=pass_all
5820  ;;
5821
5822beos*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826bsdi[45]*)
5827  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5828  lt_cv_file_magic_cmd='/usr/bin/file -L'
5829  lt_cv_file_magic_test_file=/shlib/libc.so
5830  ;;
5831
5832cygwin*)
5833  # func_win32_libid is a shell function defined in ltmain.sh
5834  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5835  lt_cv_file_magic_cmd='func_win32_libid'
5836  ;;
5837
5838mingw* | pw32*)
5839  # Base MSYS/MinGW do not provide the 'file' command needed by
5840  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5841  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5842  lt_cv_file_magic_cmd='$OBJDUMP -f'
5843  ;;
5844
5845darwin* | rhapsody*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849freebsd* | kfreebsd*-gnu | dragonfly*)
5850  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5851    case $host_cpu in
5852    i*86 )
5853      # Not sure whether the presence of OpenBSD here was a mistake.
5854      # Let's accept both of them until this is cleared up.
5855      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5856      lt_cv_file_magic_cmd=/usr/bin/file
5857      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5858      ;;
5859    esac
5860  else
5861    lt_cv_deplibs_check_method=pass_all
5862  fi
5863  ;;
5864
5865gnu*)
5866  lt_cv_deplibs_check_method=pass_all
5867  ;;
5868
5869hpux10.20* | hpux11*)
5870  lt_cv_file_magic_cmd=/usr/bin/file
5871  case $host_cpu in
5872  ia64*)
5873    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5874    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5875    ;;
5876  hppa*64*)
5877    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]'
5878    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5879    ;;
5880  *)
5881    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5882    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5883    ;;
5884  esac
5885  ;;
5886
5887interix3*)
5888  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5889  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5890  ;;
5891
5892irix5* | irix6* | nonstopux*)
5893  case $LD in
5894  *-32|*"-32 ") libmagic=32-bit;;
5895  *-n32|*"-n32 ") libmagic=N32;;
5896  *-64|*"-64 ") libmagic=64-bit;;
5897  *) libmagic=never-match;;
5898  esac
5899  lt_cv_deplibs_check_method=pass_all
5900  ;;
5901
5902# This must be Linux ELF.
5903linux*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907netbsd*)
5908  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5910  else
5911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5912  fi
5913  ;;
5914
5915newos6*)
5916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5917  lt_cv_file_magic_cmd=/usr/bin/file
5918  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5919  ;;
5920
5921nto-qnx*)
5922  lt_cv_deplibs_check_method=unknown
5923  ;;
5924
5925openbsd*)
5926  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5927    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5928  else
5929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5930  fi
5931  ;;
5932
5933osf3* | osf4* | osf5*)
5934  lt_cv_deplibs_check_method=pass_all
5935  ;;
5936
5937solaris*)
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941sysv4 | sysv4.3*)
5942  case $host_vendor in
5943  motorola)
5944    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]'
5945    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5946    ;;
5947  ncr)
5948    lt_cv_deplibs_check_method=pass_all
5949    ;;
5950  sequent)
5951    lt_cv_file_magic_cmd='/bin/file'
5952    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5953    ;;
5954  sni)
5955    lt_cv_file_magic_cmd='/bin/file'
5956    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5957    lt_cv_file_magic_test_file=/lib/libc.so
5958    ;;
5959  siemens)
5960    lt_cv_deplibs_check_method=pass_all
5961    ;;
5962  pc)
5963    lt_cv_deplibs_check_method=pass_all
5964    ;;
5965  esac
5966  ;;
5967
5968sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5969  lt_cv_deplibs_check_method=pass_all
5970  ;;
5971esac
5972
5973fi
5974echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5975echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5976file_magic_cmd=$lt_cv_file_magic_cmd
5977deplibs_check_method=$lt_cv_deplibs_check_method
5978test -z "$deplibs_check_method" && deplibs_check_method=unknown
5979
5980
5981
5982
5983# If no C compiler was specified, use CC.
5984LTCC=${LTCC-"$CC"}
5985
5986# If no C compiler flags were specified, use CFLAGS.
5987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989# Allow CC to be a program name with arguments.
5990compiler=$CC
5991
5992# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5993if test "${enable_libtool_lock+set}" = set; then
5994  enableval="$enable_libtool_lock"
5995
5996fi;
5997test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5998
5999# Some flags need to be propagated to the compiler or linker for good
6000# libtool support.
6001case $host in
6002ia64-*-hpux*)
6003  # Find out which ABI we are using.
6004  echo 'int i;' > conftest.$ac_ext
6005  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006  (eval $ac_compile) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; then
6010    case `/usr/bin/file conftest.$ac_objext` in
6011    *ELF-32*)
6012      HPUX_IA64_MODE="32"
6013      ;;
6014    *ELF-64*)
6015      HPUX_IA64_MODE="64"
6016      ;;
6017    esac
6018  fi
6019  rm -rf conftest*
6020  ;;
6021*-*-irix6*)
6022  # Find out which ABI we are using.
6023  echo '#line 6023 "configure"' > conftest.$ac_ext
6024  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025  (eval $ac_compile) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; then
6029   if test "$lt_cv_prog_gnu_ld" = yes; then
6030    case `/usr/bin/file conftest.$ac_objext` in
6031    *32-bit*)
6032      LD="${LD-ld} -melf32bsmip"
6033      ;;
6034    *N32*)
6035      LD="${LD-ld} -melf32bmipn32"
6036      ;;
6037    *64-bit*)
6038      LD="${LD-ld} -melf64bmip"
6039      ;;
6040    esac
6041   else
6042    case `/usr/bin/file conftest.$ac_objext` in
6043    *32-bit*)
6044      LD="${LD-ld} -32"
6045      ;;
6046    *N32*)
6047      LD="${LD-ld} -n32"
6048      ;;
6049    *64-bit*)
6050      LD="${LD-ld} -64"
6051      ;;
6052    esac
6053   fi
6054  fi
6055  rm -rf conftest*
6056  ;;
6057
6058x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6059  # Find out which ABI we are using.
6060  echo 'int i;' > conftest.$ac_ext
6061  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062  (eval $ac_compile) 2>&5
6063  ac_status=$?
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); }; then
6066    case `/usr/bin/file conftest.o` in
6067    *32-bit*)
6068      case $host in
6069        x86_64-*linux*)
6070          LD="${LD-ld} -m elf_i386"
6071          ;;
6072        ppc64-*linux*|powerpc64-*linux*)
6073          LD="${LD-ld} -m elf32ppclinux"
6074          ;;
6075        s390x-*linux*)
6076          LD="${LD-ld} -m elf_s390"
6077          ;;
6078        sparc64-*linux*)
6079          LD="${LD-ld} -m elf32_sparc"
6080          ;;
6081      esac
6082      ;;
6083    *64-bit*)
6084      case $host in
6085        x86_64-*linux*)
6086          LD="${LD-ld} -m elf_x86_64"
6087          ;;
6088        ppc*-*linux*|powerpc*-*linux*)
6089          LD="${LD-ld} -m elf64ppc"
6090          ;;
6091        s390*-*linux*)
6092          LD="${LD-ld} -m elf64_s390"
6093          ;;
6094        sparc*-*linux*)
6095          LD="${LD-ld} -m elf64_sparc"
6096          ;;
6097      esac
6098      ;;
6099    esac
6100  fi
6101  rm -rf conftest*
6102  ;;
6103
6104*-*-sco3.2v5*)
6105  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6106  SAVE_CFLAGS="$CFLAGS"
6107  CFLAGS="$CFLAGS -belf"
6108  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6109echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6110if test "${lt_cv_cc_needs_belf+set}" = set; then
6111  echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113  ac_ext=c
6114ac_cpp='$CPP $CPPFLAGS'
6115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118
6119     cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125
6126int
6127main ()
6128{
6129
6130  ;
6131  return 0;
6132}
6133_ACEOF
6134rm -f conftest.$ac_objext conftest$ac_exeext
6135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136  (eval $ac_link) 2>conftest.er1
6137  ac_status=$?
6138  grep -v '^ *+' conftest.er1 >conftest.err
6139  rm -f conftest.er1
6140  cat conftest.err >&5
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); } &&
6143         { ac_try='test -z "$ac_c_werror_flag"
6144                         || test ! -s conftest.err'
6145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146  (eval $ac_try) 2>&5
6147  ac_status=$?
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); }; } &&
6150         { ac_try='test -s conftest$ac_exeext'
6151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152  (eval $ac_try) 2>&5
6153  ac_status=$?
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); }; }; then
6156  lt_cv_cc_needs_belf=yes
6157else
6158  echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161lt_cv_cc_needs_belf=no
6162fi
6163rm -f conftest.err conftest.$ac_objext \
6164      conftest$ac_exeext conftest.$ac_ext
6165     ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171fi
6172echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6173echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6174  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6175    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6176    CFLAGS="$SAVE_CFLAGS"
6177  fi
6178  ;;
6179sparc*-*solaris*)
6180  # Find out which ABI we are using.
6181  echo 'int i;' > conftest.$ac_ext
6182  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183  (eval $ac_compile) 2>&5
6184  ac_status=$?
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); }; then
6187    case `/usr/bin/file conftest.o` in
6188    *64-bit*)
6189      case $lt_cv_prog_gnu_ld in
6190      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6191      *)    LD="${LD-ld} -64" ;;
6192      esac
6193      ;;
6194    esac
6195  fi
6196  rm -rf conftest*
6197  ;;
6198
6199
6200esac
6201
6202need_locks="$enable_libtool_lock"
6203
6204
6205ac_ext=c
6206ac_cpp='$CPP $CPPFLAGS'
6207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6212# On Suns, sometimes $CPP names a directory.
6213if test -n "$CPP" && test -d "$CPP"; then
6214  CPP=
6215fi
6216if test -z "$CPP"; then
6217  if test "${ac_cv_prog_CPP+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220      # Double quotes because CPP needs to be expanded
6221    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6222    do
6223      ac_preproc_ok=false
6224for ac_c_preproc_warn_flag in '' yes
6225do
6226  # Use a header file that comes with gcc, so configuring glibc
6227  # with a fresh cross-compiler works.
6228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229  # <limits.h> exists even on freestanding compilers.
6230  # On the NeXT, cc -E runs the code through the compiler's parser,
6231  # not just through cpp. "Syntax error" is here to catch this case.
6232  cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238#ifdef __STDC__
6239# include <limits.h>
6240#else
6241# include <assert.h>
6242#endif
6243                     Syntax error
6244_ACEOF
6245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } >/dev/null; then
6253  if test -s conftest.err; then
6254    ac_cpp_err=$ac_c_preproc_warn_flag
6255    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256  else
6257    ac_cpp_err=
6258  fi
6259else
6260  ac_cpp_err=yes
6261fi
6262if test -z "$ac_cpp_err"; then
6263  :
6264else
6265  echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268  # Broken: fails on valid input.
6269continue
6270fi
6271rm -f conftest.err conftest.$ac_ext
6272
6273  # OK, works on sane cases.  Now check whether non-existent headers
6274  # can be detected and how.
6275  cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h.  */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h.  */
6281#include <ac_nonexistent.h>
6282_ACEOF
6283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } >/dev/null; then
6291  if test -s conftest.err; then
6292    ac_cpp_err=$ac_c_preproc_warn_flag
6293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294  else
6295    ac_cpp_err=
6296  fi
6297else
6298  ac_cpp_err=yes
6299fi
6300if test -z "$ac_cpp_err"; then
6301  # Broken: success on invalid input.
6302continue
6303else
6304  echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307  # Passes both tests.
6308ac_preproc_ok=:
6309break
6310fi
6311rm -f conftest.err conftest.$ac_ext
6312
6313done
6314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6315rm -f conftest.err conftest.$ac_ext
6316if $ac_preproc_ok; then
6317  break
6318fi
6319
6320    done
6321    ac_cv_prog_CPP=$CPP
6322
6323fi
6324  CPP=$ac_cv_prog_CPP
6325else
6326  ac_cv_prog_CPP=$CPP
6327fi
6328echo "$as_me:$LINENO: result: $CPP" >&5
6329echo "${ECHO_T}$CPP" >&6
6330ac_preproc_ok=false
6331for ac_c_preproc_warn_flag in '' yes
6332do
6333  # Use a header file that comes with gcc, so configuring glibc
6334  # with a fresh cross-compiler works.
6335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6336  # <limits.h> exists even on freestanding compilers.
6337  # On the NeXT, cc -E runs the code through the compiler's parser,
6338  # not just through cpp. "Syntax error" is here to catch this case.
6339  cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h.  */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h.  */
6345#ifdef __STDC__
6346# include <limits.h>
6347#else
6348# include <assert.h>
6349#endif
6350                     Syntax error
6351_ACEOF
6352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } >/dev/null; then
6360  if test -s conftest.err; then
6361    ac_cpp_err=$ac_c_preproc_warn_flag
6362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6363  else
6364    ac_cpp_err=
6365  fi
6366else
6367  ac_cpp_err=yes
6368fi
6369if test -z "$ac_cpp_err"; then
6370  :
6371else
6372  echo "$as_me: failed program was:" >&5
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
6375  # Broken: fails on valid input.
6376continue
6377fi
6378rm -f conftest.err conftest.$ac_ext
6379
6380  # OK, works on sane cases.  Now check whether non-existent headers
6381  # can be detected and how.
6382  cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388#include <ac_nonexistent.h>
6389_ACEOF
6390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6392  ac_status=$?
6393  grep -v '^ *+' conftest.er1 >conftest.err
6394  rm -f conftest.er1
6395  cat conftest.err >&5
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); } >/dev/null; then
6398  if test -s conftest.err; then
6399    ac_cpp_err=$ac_c_preproc_warn_flag
6400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6401  else
6402    ac_cpp_err=
6403  fi
6404else
6405  ac_cpp_err=yes
6406fi
6407if test -z "$ac_cpp_err"; then
6408  # Broken: success on invalid input.
6409continue
6410else
6411  echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414  # Passes both tests.
6415ac_preproc_ok=:
6416break
6417fi
6418rm -f conftest.err conftest.$ac_ext
6419
6420done
6421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6422rm -f conftest.err conftest.$ac_ext
6423if $ac_preproc_ok; then
6424  :
6425else
6426  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6427See \`config.log' for more details." >&5
6428echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6429See \`config.log' for more details." >&2;}
6430   { (exit 1); exit 1; }; }
6431fi
6432
6433ac_ext=c
6434ac_cpp='$CPP $CPPFLAGS'
6435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439
6440echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6441echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6442if test "${ac_cv_header_stdc+set}" = set; then
6443  echo $ECHO_N "(cached) $ECHO_C" >&6
6444else
6445  cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451#include <stdlib.h>
6452#include <stdarg.h>
6453#include <string.h>
6454#include <float.h>
6455
6456int
6457main ()
6458{
6459
6460  ;
6461  return 0;
6462}
6463_ACEOF
6464rm -f conftest.$ac_objext
6465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466  (eval $ac_compile) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } &&
6473         { ac_try='test -z "$ac_c_werror_flag"
6474                         || test ! -s conftest.err'
6475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476  (eval $ac_try) 2>&5
6477  ac_status=$?
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); }; } &&
6480         { ac_try='test -s conftest.$ac_objext'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; }; then
6486  ac_cv_header_stdc=yes
6487else
6488  echo "$as_me: failed program was:" >&5
6489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491ac_cv_header_stdc=no
6492fi
6493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494
6495if test $ac_cv_header_stdc = yes; then
6496  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6497  cat >conftest.$ac_ext <<_ACEOF
6498/* confdefs.h.  */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h.  */
6503#include <string.h>
6504
6505_ACEOF
6506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507  $EGREP "memchr" >/dev/null 2>&1; then
6508  :
6509else
6510  ac_cv_header_stdc=no
6511fi
6512rm -f conftest*
6513
6514fi
6515
6516if test $ac_cv_header_stdc = yes; then
6517  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
6525
6526_ACEOF
6527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6528  $EGREP "free" >/dev/null 2>&1; then
6529  :
6530else
6531  ac_cv_header_stdc=no
6532fi
6533rm -f conftest*
6534
6535fi
6536
6537if test $ac_cv_header_stdc = yes; then
6538  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6539  if test "$cross_compiling" = yes; then
6540  :
6541else
6542  cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h.  */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h.  */
6548#include <ctype.h>
6549#if ((' ' & 0x0FF) == 0x020)
6550# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6552#else
6553# define ISLOWER(c) \
6554                   (('a' <= (c) && (c) <= 'i') \
6555                     || ('j' <= (c) && (c) <= 'r') \
6556                     || ('s' <= (c) && (c) <= 'z'))
6557# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558#endif
6559
6560#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561int
6562main ()
6563{
6564  int i;
6565  for (i = 0; i < 256; i++)
6566    if (XOR (islower (i), ISLOWER (i))
6567        || toupper (i) != TOUPPER (i))
6568      exit(2);
6569  exit (0);
6570}
6571_ACEOF
6572rm -f conftest$ac_exeext
6573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574  (eval $ac_link) 2>&5
6575  ac_status=$?
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579  (eval $ac_try) 2>&5
6580  ac_status=$?
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); }; }; then
6583  :
6584else
6585  echo "$as_me: program exited with status $ac_status" >&5
6586echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589( exit $ac_status )
6590ac_cv_header_stdc=no
6591fi
6592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6593fi
6594fi
6595fi
6596echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6597echo "${ECHO_T}$ac_cv_header_stdc" >&6
6598if test $ac_cv_header_stdc = yes; then
6599
6600cat >>confdefs.h <<\_ACEOF
6601#define STDC_HEADERS 1
6602_ACEOF
6603
6604fi
6605
6606# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6617                  inttypes.h stdint.h unistd.h
6618do
6619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620echo "$as_me:$LINENO: checking for $ac_header" >&5
6621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6622if eval "test \"\${$as_ac_Header+set}\" = set"; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625  cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631$ac_includes_default
6632
6633#include <$ac_header>
6634_ACEOF
6635rm -f conftest.$ac_objext
6636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637  (eval $ac_compile) 2>conftest.er1
6638  ac_status=$?
6639  grep -v '^ *+' conftest.er1 >conftest.err
6640  rm -f conftest.er1
6641  cat conftest.err >&5
6642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643  (exit $ac_status); } &&
6644         { ac_try='test -z "$ac_c_werror_flag"
6645                         || test ! -s conftest.err'
6646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647  (eval $ac_try) 2>&5
6648  ac_status=$?
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); }; } &&
6651         { ac_try='test -s conftest.$ac_objext'
6652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653  (eval $ac_try) 2>&5
6654  ac_status=$?
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); }; }; then
6657  eval "$as_ac_Header=yes"
6658else
6659  echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662eval "$as_ac_Header=no"
6663fi
6664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6668if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669  cat >>confdefs.h <<_ACEOF
6670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671_ACEOF
6672
6673fi
6674
6675done
6676
6677
6678
6679for ac_header in dlfcn.h
6680do
6681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6682if eval "test \"\${$as_ac_Header+set}\" = set"; then
6683  echo "$as_me:$LINENO: checking for $ac_header" >&5
6684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686  echo $ECHO_N "(cached) $ECHO_C" >&6
6687fi
6688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6690else
6691  # Is the header compilable?
6692echo "$as_me:$LINENO: checking $ac_header usability" >&5
6693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6694cat >conftest.$ac_ext <<_ACEOF
6695/* confdefs.h.  */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h.  */
6700$ac_includes_default
6701#include <$ac_header>
6702_ACEOF
6703rm -f conftest.$ac_objext
6704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705  (eval $ac_compile) 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } &&
6712         { ac_try='test -z "$ac_c_werror_flag"
6713                         || test ! -s conftest.err'
6714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715  (eval $ac_try) 2>&5
6716  ac_status=$?
6717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718  (exit $ac_status); }; } &&
6719         { ac_try='test -s conftest.$ac_objext'
6720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721  (eval $ac_try) 2>&5
6722  ac_status=$?
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); }; }; then
6725  ac_header_compiler=yes
6726else
6727  echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730ac_header_compiler=no
6731fi
6732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6734echo "${ECHO_T}$ac_header_compiler" >&6
6735
6736# Is the header present?
6737echo "$as_me:$LINENO: checking $ac_header presence" >&5
6738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6739cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h.  */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h.  */
6745#include <$ac_header>
6746_ACEOF
6747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6749  ac_status=$?
6750  grep -v '^ *+' conftest.er1 >conftest.err
6751  rm -f conftest.er1
6752  cat conftest.err >&5
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); } >/dev/null; then
6755  if test -s conftest.err; then
6756    ac_cpp_err=$ac_c_preproc_warn_flag
6757    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6758  else
6759    ac_cpp_err=
6760  fi
6761else
6762  ac_cpp_err=yes
6763fi
6764if test -z "$ac_cpp_err"; then
6765  ac_header_preproc=yes
6766else
6767  echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770  ac_header_preproc=no
6771fi
6772rm -f conftest.err conftest.$ac_ext
6773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6774echo "${ECHO_T}$ac_header_preproc" >&6
6775
6776# So?  What about this header?
6777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6778  yes:no: )
6779    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6783    ac_header_preproc=yes
6784    ;;
6785  no:yes:* )
6786    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6788    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6789echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6790    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6792    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6793echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6794    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6796    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6798    (
6799      cat <<\_ASBOX
6800## ------------------------------------ ##
6801## Report this to cbc@lists.coin-or.org ##
6802## ------------------------------------ ##
6803_ASBOX
6804    ) |
6805      sed "s/^/$as_me: WARNING:     /" >&2
6806    ;;
6807esac
6808echo "$as_me:$LINENO: checking for $ac_header" >&5
6809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6810if eval "test \"\${$as_ac_Header+set}\" = set"; then
6811  echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813  eval "$as_ac_Header=\$ac_header_preproc"
6814fi
6815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817
6818fi
6819if test `eval echo '${'$as_ac_Header'}'` = yes; then
6820  cat >>confdefs.h <<_ACEOF
6821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6822_ACEOF
6823
6824fi
6825
6826done
6827
6828
6829
6830if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6831    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6832    (test "X$CXX" != "Xg++"))) ; then
6833  ac_ext=cc
6834ac_cpp='$CXXCPP $CPPFLAGS'
6835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6838echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6839echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6840if test -z "$CXXCPP"; then
6841  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844      # Double quotes because CXXCPP needs to be expanded
6845    for CXXCPP in "$CXX -E" "/lib/cpp"
6846    do
6847      ac_preproc_ok=false
6848for ac_cxx_preproc_warn_flag in '' yes
6849do
6850  # Use a header file that comes with gcc, so configuring glibc
6851  # with a fresh cross-compiler works.
6852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6853  # <limits.h> exists even on freestanding compilers.
6854  # On the NeXT, cc -E runs the code through the compiler's parser,
6855  # not just through cpp. "Syntax error" is here to catch this case.
6856  cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862#ifdef __STDC__
6863# include <limits.h>
6864#else
6865# include <assert.h>
6866#endif
6867                     Syntax error
6868_ACEOF
6869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6871  ac_status=$?
6872  grep -v '^ *+' conftest.er1 >conftest.err
6873  rm -f conftest.er1
6874  cat conftest.err >&5
6875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); } >/dev/null; then
6877  if test -s conftest.err; then
6878    ac_cpp_err=$ac_cxx_preproc_warn_flag
6879    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6880  else
6881    ac_cpp_err=
6882  fi
6883else
6884  ac_cpp_err=yes
6885fi
6886if test -z "$ac_cpp_err"; then
6887  :
6888else
6889  echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892  # Broken: fails on valid input.
6893continue
6894fi
6895rm -f conftest.err conftest.$ac_ext
6896
6897  # OK, works on sane cases.  Now check whether non-existent headers
6898  # can be detected and how.
6899  cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h.  */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h.  */
6905#include <ac_nonexistent.h>
6906_ACEOF
6907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909  ac_status=$?
6910  grep -v '^ *+' conftest.er1 >conftest.err
6911  rm -f conftest.er1
6912  cat conftest.err >&5
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); } >/dev/null; then
6915  if test -s conftest.err; then
6916    ac_cpp_err=$ac_cxx_preproc_warn_flag
6917    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6918  else
6919    ac_cpp_err=
6920  fi
6921else
6922  ac_cpp_err=yes
6923fi
6924if test -z "$ac_cpp_err"; then
6925  # Broken: success on invalid input.
6926continue
6927else
6928  echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931  # Passes both tests.
6932ac_preproc_ok=:
6933break
6934fi
6935rm -f conftest.err conftest.$ac_ext
6936
6937done
6938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6939rm -f conftest.err conftest.$ac_ext
6940if $ac_preproc_ok; then
6941  break
6942fi
6943
6944    done
6945    ac_cv_prog_CXXCPP=$CXXCPP
6946
6947fi
6948  CXXCPP=$ac_cv_prog_CXXCPP
6949else
6950  ac_cv_prog_CXXCPP=$CXXCPP
6951fi
6952echo "$as_me:$LINENO: result: $CXXCPP" >&5
6953echo "${ECHO_T}$CXXCPP" >&6
6954ac_preproc_ok=false
6955for ac_cxx_preproc_warn_flag in '' yes
6956do
6957  # Use a header file that comes with gcc, so configuring glibc
6958  # with a fresh cross-compiler works.
6959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6960  # <limits.h> exists even on freestanding compilers.
6961  # On the NeXT, cc -E runs the code through the compiler's parser,
6962  # not just through cpp. "Syntax error" is here to catch this case.
6963  cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969#ifdef __STDC__
6970# include <limits.h>
6971#else
6972# include <assert.h>
6973#endif
6974                     Syntax error
6975_ACEOF
6976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978  ac_status=$?
6979  grep -v '^ *+' conftest.er1 >conftest.err
6980  rm -f conftest.er1
6981  cat conftest.err >&5
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } >/dev/null; then
6984  if test -s conftest.err; then
6985    ac_cpp_err=$ac_cxx_preproc_warn_flag
6986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6987  else
6988    ac_cpp_err=
6989  fi
6990else
6991  ac_cpp_err=yes
6992fi
6993if test -z "$ac_cpp_err"; then
6994  :
6995else
6996  echo "$as_me: failed program was:" >&5
6997sed 's/^/| /' conftest.$ac_ext >&5
6998
6999  # Broken: fails on valid input.
7000continue
7001fi
7002rm -f conftest.err conftest.$ac_ext
7003
7004  # OK, works on sane cases.  Now check whether non-existent headers
7005  # can be detected and how.
7006  cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h.  */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h.  */
7012#include <ac_nonexistent.h>
7013_ACEOF
7014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } >/dev/null; then
7022  if test -s conftest.err; then
7023    ac_cpp_err=$ac_cxx_preproc_warn_flag
7024    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7025  else
7026    ac_cpp_err=
7027  fi
7028else
7029  ac_cpp_err=yes
7030fi
7031if test -z "$ac_cpp_err"; then
7032  # Broken: success on invalid input.
7033continue
7034else
7035  echo "$as_me: failed program was:" >&5
7036sed 's/^/| /' conftest.$ac_ext >&5
7037
7038  # Passes both tests.
7039ac_preproc_ok=:
7040break
7041fi
7042rm -f conftest.err conftest.$ac_ext
7043
7044done
7045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7046rm -f conftest.err conftest.$ac_ext
7047if $ac_preproc_ok; then
7048  :
7049else
7050  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7051See \`config.log' for more details." >&5
7052echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7053See \`config.log' for more details." >&2;}
7054   { (exit 1); exit 1; }; }
7055fi
7056
7057ac_ext=cc
7058ac_cpp='$CXXCPP $CPPFLAGS'
7059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7062
7063fi
7064
7065ac_ext=f
7066ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7067ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7069if test -n "$ac_tool_prefix"; then
7070  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7071  do
7072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076if test "${ac_cv_prog_F77+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  if test -n "$F77"; then
7080  ac_cv_prog_F77="$F77" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087  for ac_exec_ext in '' $ac_executable_extensions; do
7088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094done
7095
7096fi
7097fi
7098F77=$ac_cv_prog_F77
7099if test -n "$F77"; then
7100  echo "$as_me:$LINENO: result: $F77" >&5
7101echo "${ECHO_T}$F77" >&6
7102else
7103  echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105fi
7106
7107    test -n "$F77" && break
7108  done
7109fi
7110if test -z "$F77"; then
7111  ac_ct_F77=$F77
7112  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7113do
7114  # Extract the first word of "$ac_prog", so it can be a program name with args.
7115set dummy $ac_prog; ac_word=$2
7116echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7118if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7119  echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121  if test -n "$ac_ct_F77"; then
7122  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129  for ac_exec_ext in '' $ac_executable_extensions; do
7130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_F77="$ac_prog"
7132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136done
7137
7138fi
7139fi
7140ac_ct_F77=$ac_cv_prog_ac_ct_F77
7141if test -n "$ac_ct_F77"; then
7142  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7143echo "${ECHO_T}$ac_ct_F77" >&6
7144else
7145  echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6
7147fi
7148
7149  test -n "$ac_ct_F77" && break
7150done
7151
7152  F77=$ac_ct_F77
7153fi
7154
7155
7156# Provide some information about the compiler.
7157echo "$as_me:7157:" \
7158     "checking for Fortran 77 compiler version" >&5
7159ac_compiler=`set X $ac_compile; echo $2`
7160{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7161  (eval $ac_compiler --version </dev/null >&5) 2>&5
7162  ac_status=$?
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); }
7165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7166  (eval $ac_compiler -v </dev/null >&5) 2>&5
7167  ac_status=$?
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); }
7170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7171  (eval $ac_compiler -V </dev/null >&5) 2>&5
7172  ac_status=$?
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); }
7175rm -f a.out
7176
7177# If we don't use `.F' as extension, the preprocessor is not run on the
7178# input file.  (Note that this only needs to work for GNU compilers.)
7179ac_save_ext=$ac_ext
7180ac_ext=F
7181echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7182echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7183if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7184  echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186  cat >conftest.$ac_ext <<_ACEOF
7187      program main
7188#ifndef __GNUC__
7189       choke me
7190#endif
7191
7192      end
7193_ACEOF
7194rm -f conftest.$ac_objext
7195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196  (eval $ac_compile) 2>conftest.er1
7197  ac_status=$?
7198  grep -v '^ *+' conftest.er1 >conftest.err
7199  rm -f conftest.er1
7200  cat conftest.err >&5
7201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202  (exit $ac_status); } &&
7203         { ac_try='test -z "$ac_f77_werror_flag"
7204                         || test ! -s conftest.err'
7205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206  (eval $ac_try) 2>&5
7207  ac_status=$?
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); }; } &&
7210         { ac_try='test -s conftest.$ac_objext'
7211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212  (eval $ac_try) 2>&5
7213  ac_status=$?
7214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215  (exit $ac_status); }; }; then
7216  ac_compiler_gnu=yes
7217else
7218  echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221ac_compiler_gnu=no
7222fi
7223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7224ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7225
7226fi
7227echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7228echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7229ac_ext=$ac_save_ext
7230ac_test_FFLAGS=${FFLAGS+set}
7231ac_save_FFLAGS=$FFLAGS
7232FFLAGS=
7233echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7234echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7235if test "${ac_cv_prog_f77_g+set}" = set; then
7236  echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238  FFLAGS=-g
7239cat >conftest.$ac_ext <<_ACEOF
7240      program main
7241
7242      end
7243_ACEOF
7244rm -f conftest.$ac_objext
7245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246  (eval $ac_compile) 2>conftest.er1
7247  ac_status=$?
7248  grep -v '^ *+' conftest.er1 >conftest.err
7249  rm -f conftest.er1
7250  cat conftest.err >&5
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); } &&
7253         { ac_try='test -z "$ac_f77_werror_flag"
7254                         || test ! -s conftest.err'
7255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256  (eval $ac_try) 2>&5
7257  ac_status=$?
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); }; } &&
7260         { ac_try='test -s conftest.$ac_objext'
7261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262  (eval $ac_try) 2>&5
7263  ac_status=$?
7264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265  (exit $ac_status); }; }; then
7266  ac_cv_prog_f77_g=yes
7267else
7268  echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
7271ac_cv_prog_f77_g=no
7272fi
7273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274
7275fi
7276echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7277echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7278if test "$ac_test_FFLAGS" = set; then
7279  FFLAGS=$ac_save_FFLAGS
7280elif test $ac_cv_prog_f77_g = yes; then
7281  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7282    FFLAGS="-g -O2"
7283  else
7284    FFLAGS="-g"
7285  fi
7286else
7287  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7288    FFLAGS="-O2"
7289  else
7290    FFLAGS=
7291  fi
7292fi
7293
7294G77=`test $ac_compiler_gnu = yes && echo yes`
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
7301
7302
7303# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7304
7305# find the maximum length of command line arguments
7306echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7307echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7308if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7309  echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311    i=0
7312  teststring="ABCD"
7313
7314  case $build_os in
7315  msdosdjgpp*)
7316    # On DJGPP, this test can blow up pretty badly due to problems in libc
7317    # (any single argument exceeding 2000 bytes causes a buffer overrun
7318    # during glob expansion).  Even if it were fixed, the result of this
7319    # check would be larger than it should be.
7320    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7321    ;;
7322
7323  gnu*)
7324    # Under GNU Hurd, this test is not required because there is
7325    # no limit to the length of command line arguments.
7326    # Libtool will interpret -1 as no limit whatsoever
7327    lt_cv_sys_max_cmd_len=-1;
7328    ;;
7329
7330  cygwin* | mingw*)
7331    # On Win9x/ME, this test blows up -- it succeeds, but takes
7332    # about 5 minutes as the teststring grows exponentially.
7333    # Worse, since 9x/ME are not pre-emptively multitasking,
7334    # you end up with a "frozen" computer, even though with patience
7335    # the test eventually succeeds (with a max line length of 256k).
7336    # Instead, let's just punt: use the minimum linelength reported by
7337    # all of the supported platforms: 8192 (on NT/2K/XP).
7338    lt_cv_sys_max_cmd_len=8192;
7339    ;;
7340
7341  amigaos*)
7342    # On AmigaOS with pdksh, this test takes hours, literally.
7343    # So we just punt and use a minimum line length of 8192.
7344    lt_cv_sys_max_cmd_len=8192;
7345    ;;
7346
7347  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7348    # This has been around since 386BSD, at least.  Likely further.
7349    if test -x /sbin/sysctl; then
7350      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7351    elif test -x /usr/sbin/sysctl; then
7352      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7353    else
7354      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7355    fi
7356    # And add a safety zone
7357    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7358    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7359    ;;
7360
7361  interix*)
7362    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7363    lt_cv_sys_max_cmd_len=196608
7364    ;;
7365
7366  osf*)
7367    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7368    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7369    # nice to cause kernel panics so lets avoid the loop below.
7370    # First set a reasonable default.
7371    lt_cv_sys_max_cmd_len=16384
7372    #
7373    if test -x /sbin/sysconfig; then
7374      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7375        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7376      esac
7377    fi
7378    ;;
7379  sco3.2v5*)
7380    lt_cv_sys_max_cmd_len=102400
7381    ;;
7382  sysv5* | sco5v6* | sysv4.2uw2*)
7383    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7384    if test -n "$kargmax"; then
7385      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7386    else
7387      lt_cv_sys_max_cmd_len=32768
7388    fi
7389    ;;
7390  *)
7391    # If test is not a shell built-in, we'll probably end up computing a
7392    # maximum length that is only half of the actual maximum length, but
7393    # we can't tell.
7394    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7395    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7396               = "XX$teststring") >/dev/null 2>&1 &&
7397            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7398            lt_cv_sys_max_cmd_len=$new_result &&
7399            test $i != 17 # 1/2 MB should be enough
7400    do
7401      i=`expr $i + 1`
7402      teststring=$teststring$teststring
7403    done
7404    teststring=
7405    # Add a significant safety factor because C++ compilers can tack on massive
7406    # amounts of additional arguments before passing them to the linker.
7407    # It appears as though 1/2 is a usable value.
7408    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7409    ;;
7410  esac
7411
7412fi
7413
7414if test -n $lt_cv_sys_max_cmd_len ; then
7415  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7416echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7417else
7418  echo "$as_me:$LINENO: result: none" >&5
7419echo "${ECHO_T}none" >&6
7420fi
7421
7422
7423
7424
7425# Check for command to grab the raw symbol name followed by C symbol from nm.
7426echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7427echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7428if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7429  echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431
7432# These are sane defaults that work on at least a few old systems.
7433# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7434
7435# Character class describing NM global symbol codes.
7436symcode='[BCDEGRST]'
7437
7438# Regexp to match symbols that can be accessed directly from C.
7439sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7440
7441# Transform an extracted symbol line into a proper C declaration
7442lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7443
7444# Transform an extracted symbol line into symbol name and symbol address
7445lt_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'"
7446
7447# Define system-specific variables.
7448case $host_os in
7449aix*)
7450  symcode='[BCDT]'
7451  ;;
7452cygwin* | mingw* | pw32*)
7453  symcode='[ABCDGISTW]'
7454  ;;
7455hpux*) # Its linker distinguishes data from code symbols
7456  if test "$host_cpu" = ia64; then
7457    symcode='[ABCDEGRST]'
7458  fi
7459  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7460  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'"
7461  ;;
7462linux*)
7463  if test "$host_cpu" = ia64; then
7464    symcode='[ABCDGIRSTW]'
7465    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7466    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'"
7467  fi
7468  ;;
7469irix* | nonstopux*)
7470  symcode='[BCDEGRST]'
7471  ;;
7472osf*)
7473  symcode='[BCDEGQRST]'
7474  ;;
7475solaris*)
7476  symcode='[BDRT]'
7477  ;;
7478sco3.2v5*)
7479  symcode='[DT]'
7480  ;;
7481sysv4.2uw2*)
7482  symcode='[DT]'
7483  ;;
7484sysv5* | sco5v6* | unixware* | OpenUNIX*)
7485  symcode='[ABDT]'
7486  ;;
7487sysv4)
7488  symcode='[DFNSTU]'
7489  ;;
7490esac
7491
7492# Handle CRLF in mingw tool chain
7493opt_cr=
7494case $build_os in
7495mingw*)
7496  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7497  ;;
7498esac
7499
7500# If we're using GNU nm, then use its standard symbol codes.
7501case `$NM -V 2>&1` in
7502*GNU* | *'with BFD'*)
7503  symcode='[ABCDGIRSTW]' ;;
7504esac
7505
7506# Try without a prefix undercore, then with it.
7507for ac_symprfx in "" "_"; do
7508
7509  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7510  symxfrm="\\1 $ac_symprfx\\2 \\2"
7511
7512  # Write the raw and C identifiers.
7513  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7514
7515  # Check to see that the pipe works correctly.
7516  pipe_works=no
7517
7518  rm -f conftest*
7519  cat > conftest.$ac_ext <<EOF
7520#ifdef __cplusplus
7521extern "C" {
7522#endif
7523char nm_test_var;
7524void nm_test_func(){}
7525#ifdef __cplusplus
7526}
7527#endif
7528int main(){nm_test_var='a';nm_test_func();return(0);}
7529EOF
7530
7531  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532  (eval $ac_compile) 2>&5
7533  ac_status=$?
7534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535  (exit $ac_status); }; then
7536    # Now try to grab the symbols.
7537    nlist=conftest.nm
7538    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7539  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7540  ac_status=$?
7541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542  (exit $ac_status); } && test -s "$nlist"; then
7543      # Try sorting and uniquifying the output.
7544      if sort "$nlist" | uniq > "$nlist"T; then
7545        mv -f "$nlist"T "$nlist"
7546      else
7547        rm -f "$nlist"T
7548      fi
7549
7550      # Make sure that we snagged all the symbols we need.
7551      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7552        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7553          cat <<EOF > conftest.$ac_ext
7554#ifdef __cplusplus
7555extern "C" {
7556#endif
7557
7558EOF
7559          # Now generate the symbol file.
7560          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7561
7562          cat <<EOF >> conftest.$ac_ext
7563#if defined (__STDC__) && __STDC__
7564# define lt_ptr_t void *
7565#else
7566# define lt_ptr_t char *
7567# define const
7568#endif
7569
7570/* The mapping between symbol names and symbols. */
7571const struct {
7572  const char *name;
7573  lt_ptr_t address;
7574}
7575lt_preloaded_symbols[] =
7576{
7577EOF
7578          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7579          cat <<\EOF >> conftest.$ac_ext
7580  {0, (lt_ptr_t) 0}
7581};
7582
7583#ifdef __cplusplus
7584}
7585#endif
7586EOF
7587          # Now try linking the two files.
7588          mv conftest.$ac_objext conftstm.$ac_objext
7589          lt_save_LIBS="$LIBS"
7590          lt_save_CFLAGS="$CFLAGS"
7591          LIBS="conftstm.$ac_objext"
7592          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7593          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594  (eval $ac_link) 2>&5
7595  ac_status=$?
7596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7598            pipe_works=yes
7599          fi
7600          LIBS="$lt_save_LIBS"
7601          CFLAGS="$lt_save_CFLAGS"
7602        else
7603          echo "cannot find nm_test_func in $nlist" >&5
7604        fi
7605      else
7606        echo "cannot find nm_test_var in $nlist" >&5
7607      fi
7608    else
7609      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7610    fi
7611  else
7612    echo "$progname: failed program was:" >&5
7613    cat conftest.$ac_ext >&5
7614  fi
7615  rm -f conftest* conftst*
7616
7617  # Do not use the global_symbol_pipe unless it works.
7618  if test "$pipe_works" = yes; then
7619    break
7620  else
7621    lt_cv_sys_global_symbol_pipe=
7622  fi
7623done
7624
7625fi
7626
7627if test -z "$lt_cv_sys_global_symbol_pipe"; then
7628  lt_cv_sys_global_symbol_to_cdecl=
7629fi
7630if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7631  echo "$as_me:$LINENO: result: failed" >&5
7632echo "${ECHO_T}failed" >&6
7633else
7634  echo "$as_me:$LINENO: result: ok" >&5
7635echo "${ECHO_T}ok" >&6
7636fi
7637
7638echo "$as_me:$LINENO: checking for objdir" >&5
7639echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7640if test "${lt_cv_objdir+set}" = set; then
7641  echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643  rm -f .libs 2>/dev/null
7644mkdir .libs 2>/dev/null
7645if test -d .libs; then
7646  lt_cv_objdir=.libs
7647else
7648  # MS-DOS does not allow filenames that begin with a dot.
7649  lt_cv_objdir=_libs
7650fi
7651rmdir .libs 2>/dev/null
7652fi
7653echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7654echo "${ECHO_T}$lt_cv_objdir" >&6
7655objdir=$lt_cv_objdir
7656
7657
7658
7659
7660
7661case $host_os in
7662aix3*)
7663  # AIX sometimes has problems with the GCC collect2 program.  For some
7664  # reason, if we set the COLLECT_NAMES environment variable, the problems
7665  # vanish in a puff of smoke.
7666  if test "X${COLLECT_NAMES+set}" != Xset; then
7667    COLLECT_NAMES=
7668    export COLLECT_NAMES
7669  fi
7670  ;;
7671esac
7672
7673# Sed substitution that helps us do robust quoting.  It backslashifies
7674# metacharacters that are still active within double-quoted strings.
7675Xsed='sed -e 1s/^X//'
7676sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7677
7678# Same as above, but do not quote variable references.
7679double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7680
7681# Sed substitution to delay expansion of an escaped shell variable in a
7682# double_quote_subst'ed string.
7683delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7684
7685# Sed substitution to avoid accidental globbing in evaled expressions
7686no_glob_subst='s/\*/\\\*/g'
7687
7688# Constants:
7689rm="rm -f"
7690
7691# Global variables:
7692default_ofile=libtool
7693can_build_shared=yes
7694
7695# All known linkers require a `.a' archive for static linking (except MSVC,
7696# which needs '.lib').
7697libext=a
7698ltmain="$ac_aux_dir/ltmain.sh"
7699ofile="$default_ofile"
7700with_gnu_ld="$lt_cv_prog_gnu_ld"
7701
7702if test -n "$ac_tool_prefix"; then
7703  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7704set dummy ${ac_tool_prefix}ar; ac_word=$2
7705echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7707if test "${ac_cv_prog_AR+set}" = set; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  if test -n "$AR"; then
7711  ac_cv_prog_AR="$AR" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718  for ac_exec_ext in '' $ac_executable_extensions; do
7719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_AR="${ac_tool_prefix}ar"
7721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725done
7726
7727fi
7728fi
7729AR=$ac_cv_prog_AR
7730if test -n "$AR"; then
7731  echo "$as_me:$LINENO: result: $AR" >&5
7732echo "${ECHO_T}$AR" >&6
7733else
7734  echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
7736fi
7737
7738fi
7739if test -z "$ac_cv_prog_AR"; then
7740  ac_ct_AR=$AR
7741  # Extract the first word of "ar", so it can be a program name with args.
7742set dummy ar; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7746  echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748  if test -n "$ac_ct_AR"; then
7749  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  test -z "$as_dir" && as_dir=.
7756  for ac_exec_ext in '' $ac_executable_extensions; do
7757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758    ac_cv_prog_ac_ct_AR="ar"
7759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760    break 2
7761  fi
7762done
7763done
7764
7765  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7766fi
7767fi
7768ac_ct_AR=$ac_cv_prog_ac_ct_AR
7769if test -n "$ac_ct_AR"; then
7770  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7771echo "${ECHO_T}$ac_ct_AR" >&6
7772else
7773  echo "$as_me:$LINENO: result: no" >&5
7774echo "${ECHO_T}no" >&6
7775fi
7776
7777  AR=$ac_ct_AR
7778else
7779  AR="$ac_cv_prog_AR"
7780fi
7781
7782if test -n "$ac_tool_prefix"; then
7783  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7784set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7785echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787if test "${ac_cv_prog_RANLIB+set}" = set; then
7788  echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790  if test -n "$RANLIB"; then
7791  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798  for ac_exec_ext in '' $ac_executable_extensions; do
7799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805done
7806
7807fi
7808fi
7809RANLIB=$ac_cv_prog_RANLIB
7810if test -n "$RANLIB"; then
7811  echo "$as_me:$LINENO: result: $RANLIB" >&5
7812echo "${ECHO_T}$RANLIB" >&6
7813else
7814  echo "$as_me:$LINENO: result: no" >&5
7815echo "${ECHO_T}no" >&6
7816fi
7817
7818fi
7819if test -z "$ac_cv_prog_RANLIB"; then
7820  ac_ct_RANLIB=$RANLIB
7821  # Extract the first word of "ranlib", so it can be a program name with args.
7822set dummy ranlib; ac_word=$2
7823echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  if test -n "$ac_ct_RANLIB"; then
7829  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834  IFS=$as_save_IFS
7835  test -z "$as_dir" && as_dir=.
7836  for ac_exec_ext in '' $ac_executable_extensions; do
7837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838    ac_cv_prog_ac_ct_RANLIB="ranlib"
7839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840    break 2
7841  fi
7842done
7843done
7844
7845  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7846fi
7847fi
7848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7849if test -n "$ac_ct_RANLIB"; then
7850  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7851echo "${ECHO_T}$ac_ct_RANLIB" >&6
7852else
7853  echo "$as_me:$LINENO: result: no" >&5
7854echo "${ECHO_T}no" >&6
7855fi
7856
7857  RANLIB=$ac_ct_RANLIB
7858else
7859  RANLIB="$ac_cv_prog_RANLIB"
7860fi
7861
7862if test -n "$ac_tool_prefix"; then
7863  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7864set dummy ${ac_tool_prefix}strip; ac_word=$2
7865echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867if test "${ac_cv_prog_STRIP+set}" = set; then
7868  echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870  if test -n "$STRIP"; then
7871  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7872else
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876  IFS=$as_save_IFS
7877  test -z "$as_dir" && as_dir=.
7878  for ac_exec_ext in '' $ac_executable_extensions; do
7879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882    break 2
7883  fi
7884done
7885done
7886
7887fi
7888fi
7889STRIP=$ac_cv_prog_STRIP
7890if test -n "$STRIP"; then
7891  echo "$as_me:$LINENO: result: $STRIP" >&5
7892echo "${ECHO_T}$STRIP" >&6
7893else
7894  echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6
7896fi
7897
7898fi
7899if test -z "$ac_cv_prog_STRIP"; then
7900  ac_ct_STRIP=$STRIP
7901  # Extract the first word of "strip", so it can be a program name with args.
7902set dummy strip; ac_word=$2
7903echo "$as_me:$LINENO: checking for $ac_word" >&5
7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7906  echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908  if test -n "$ac_ct_STRIP"; then
7909  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914  IFS=$as_save_IFS
7915  test -z "$as_dir" && as_dir=.
7916  for ac_exec_ext in '' $ac_executable_extensions; do
7917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918    ac_cv_prog_ac_ct_STRIP="strip"
7919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920    break 2
7921  fi
7922done
7923done
7924
7925  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7926fi
7927fi
7928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7929if test -n "$ac_ct_STRIP"; then
7930  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7931echo "${ECHO_T}$ac_ct_STRIP" >&6
7932else
7933  echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937  STRIP=$ac_ct_STRIP
7938else
7939  STRIP="$ac_cv_prog_STRIP"
7940fi
7941
7942
7943old_CC="$CC"
7944old_CFLAGS="$CFLAGS"
7945
7946# Set sane defaults for various variables
7947test -z "$AR" && AR=ar
7948test -z "$AR_FLAGS" && AR_FLAGS=cru
7949test -z "$AS" && AS=as
7950test -z "$CC" && CC=cc
7951test -z "$LTCC" && LTCC=$CC
7952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953test -z "$DLLTOOL" && DLLTOOL=dlltool
7954test -z "$LD" && LD=ld
7955test -z "$LN_S" && LN_S="ln -s"
7956test -z "$MAGIC_CMD" && MAGIC_CMD=file
7957test -z "$NM" && NM=nm
7958test -z "$SED" && SED=sed
7959test -z "$OBJDUMP" && OBJDUMP=objdump
7960test -z "$RANLIB" && RANLIB=:
7961test -z "$STRIP" && STRIP=:
7962test -z "$ac_objext" && ac_objext=o
7963
7964# Determine commands to create old-style static archives.
7965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7966old_postinstall_cmds='chmod 644 $oldlib'
7967old_postuninstall_cmds=
7968
7969if test -n "$RANLIB"; then
7970  case $host_os in
7971  openbsd*)
7972    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7973    ;;
7974  *)
7975    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7976    ;;
7977  esac
7978  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7979fi
7980
7981for cc_temp in $compiler""; do
7982  case $cc_temp in
7983    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7984    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7985    \-*) ;;
7986    *) break;;
7987  esac
7988done
7989cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7990
7991
7992# Only perform the check for file, if the check method requires it
7993case $deplibs_check_method in
7994file_magic*)
7995  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7996    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7997echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001  case $MAGIC_CMD in
8002[\\/*] |  ?:[\\/]*)
8003  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8004  ;;
8005*)
8006  lt_save_MAGIC_CMD="$MAGIC_CMD"
8007  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8008  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009  for ac_dir in $ac_dummy; do
8010    IFS="$lt_save_ifs"
8011    test -z "$ac_dir" && ac_dir=.
8012    if test -f $ac_dir/${ac_tool_prefix}file; then
8013      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8014      if test -n "$file_magic_test_file"; then
8015        case $deplibs_check_method in
8016        "file_magic "*)
8017          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020            $EGREP "$file_magic_regex" > /dev/null; then
8021            :
8022          else
8023            cat <<EOF 1>&2
8024
8025*** Warning: the command libtool uses to detect shared libraries,
8026*** $file_magic_cmd, produces output that libtool cannot recognize.
8027*** The result is that libtool may fail to recognize shared libraries
8028*** as such.  This will affect the creation of libtool libraries that
8029*** depend on shared libraries, but programs linked with such libtool
8030*** libraries will work regardless of this problem.  Nevertheless, you
8031*** may want to report the problem to your system manager and/or to
8032*** bug-libtool@gnu.org
8033
8034EOF
8035          fi ;;
8036        esac
8037      fi
8038      break
8039    fi
8040  done
8041  IFS="$lt_save_ifs"
8042  MAGIC_CMD="$lt_save_MAGIC_CMD"
8043  ;;
8044esac
8045fi
8046
8047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048if test -n "$MAGIC_CMD"; then
8049  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8050echo "${ECHO_T}$MAGIC_CMD" >&6
8051else
8052  echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054fi
8055
8056if test -z "$lt_cv_path_MAGIC_CMD"; then
8057  if test -n "$ac_tool_prefix"; then
8058    echo "$as_me:$LINENO: checking for file" >&5
8059echo $ECHO_N "checking for file... $ECHO_C" >&6
8060if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8061  echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063  case $MAGIC_CMD in
8064[\\/*] |  ?:[\\/]*)
8065  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8066  ;;
8067*)
8068  lt_save_MAGIC_CMD="$MAGIC_CMD"
8069  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8070  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8071  for ac_dir in $ac_dummy; do
8072    IFS="$lt_save_ifs"
8073    test -z "$ac_dir" && ac_dir=.
8074    if test -f $ac_dir/file; then
8075      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8076      if test -n "$file_magic_test_file"; then
8077        case $deplibs_check_method in
8078        "file_magic "*)
8079          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8080          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8082            $EGREP "$file_magic_regex" > /dev/null; then
8083            :
8084          else
8085            cat <<EOF 1>&2
8086
8087*** Warning: the command libtool uses to detect shared libraries,
8088*** $file_magic_cmd, produces output that libtool cannot recognize.
8089*** The result is that libtool may fail to recognize shared libraries
8090*** as such.  This will affect the creation of libtool libraries that
8091*** depend on shared libraries, but programs linked with such libtool
8092*** libraries will work regardless of this problem.  Nevertheless, you
8093*** may want to report the problem to your system manager and/or to
8094*** bug-libtool@gnu.org
8095
8096EOF
8097          fi ;;
8098        esac
8099      fi
8100      break
8101    fi
8102  done
8103  IFS="$lt_save_ifs"
8104  MAGIC_CMD="$lt_save_MAGIC_CMD"
8105  ;;
8106esac
8107fi
8108
8109MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8110if test -n "$MAGIC_CMD"; then
8111  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8112echo "${ECHO_T}$MAGIC_CMD" >&6
8113else
8114  echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116fi
8117
8118  else
8119    MAGIC_CMD=:
8120  fi
8121fi
8122
8123  fi
8124  ;;
8125esac
8126
8127enable_dlopen=no
8128enable_win32_dll=no
8129
8130# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8131if test "${enable_libtool_lock+set}" = set; then
8132  enableval="$enable_libtool_lock"
8133
8134fi;
8135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8136
8137
8138# Check whether --with-pic or --without-pic was given.
8139if test "${with_pic+set}" = set; then
8140  withval="$with_pic"
8141  pic_mode="$withval"
8142else
8143  pic_mode=default
8144fi;
8145test -z "$pic_mode" && pic_mode=default
8146
8147# Use C for the default configuration in the libtool script
8148tagname=
8149lt_save_CC="$CC"
8150ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
8156
8157# Source file extension for C test sources.
8158ac_ext=c
8159
8160# Object file extension for compiled C test sources.
8161objext=o
8162objext=$objext
8163
8164# Code to be used in simple compile tests
8165lt_simple_compile_test_code="int some_variable = 0;\n"
8166
8167# Code to be used in simple link tests
8168lt_simple_link_test_code='int main(){return(0);}\n'
8169
8170
8171# If no C compiler was specified, use CC.
8172LTCC=${LTCC-"$CC"}
8173
8174# If no C compiler flags were specified, use CFLAGS.
8175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8176
8177# Allow CC to be a program name with arguments.
8178compiler=$CC
8179
8180
8181# save warnings/boilerplate of simple test code
8182ac_outfile=conftest.$ac_objext
8183printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8184eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8185_lt_compiler_boilerplate=`cat conftest.err`
8186$rm conftest*
8187
8188ac_outfile=conftest.$ac_objext
8189printf "$lt_simple_link_test_code" >conftest.$ac_ext
8190eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8191_lt_linker_boilerplate=`cat conftest.err`
8192$rm conftest*
8193
8194
8195## CAVEAT EMPTOR:
8196## There is no encapsulation within the following macros, do not change
8197## the running order or otherwise move them around unless you know exactly
8198## what you are doing...
8199
8200lt_prog_compiler_no_builtin_flag=
8201
8202if test "$GCC" = yes; then
8203  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8204
8205
8206echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8207echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8208if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8209  echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211  lt_cv_prog_compiler_rtti_exceptions=no
8212  ac_outfile=conftest.$ac_objext
8213   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8214   lt_compiler_flag="-fno-rtti -fno-exceptions"
8215   # Insert the option either (1) after the last *FLAGS variable, or
8216   # (2) before a word containing "conftest.", or (3) at the end.
8217   # Note that $ac_compile itself does not contain backslashes and begins
8218   # with a dollar sign (not a hyphen), so the echo should work correctly.
8219   # The option is referenced via a variable to avoid confusing sed.
8220   lt_compile=`echo "$ac_compile" | $SED \
8221   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223   -e 's:$: $lt_compiler_flag:'`
8224   (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225   (eval "$lt_compile" 2>conftest.err)
8226   ac_status=$?
8227   cat conftest.err >&5
8228   echo "$as_me:8228: \$? = $ac_status" >&5
8229   if (exit $ac_status) && test -s "$ac_outfile"; then
8230     # The compiler can only warn and ignore the option if not recognized
8231     # So say no if there are warnings other than the usual output.
8232     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8233     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8235       lt_cv_prog_compiler_rtti_exceptions=yes
8236     fi
8237   fi
8238   $rm conftest*
8239
8240fi
8241echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8242echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8243
8244if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8245    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8246else
8247    :
8248fi
8249
8250fi
8251
8252lt_prog_compiler_wl=
8253lt_prog_compiler_pic=
8254lt_prog_compiler_static=
8255
8256echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8258
8259  if test "$GCC" = yes; then
8260    lt_prog_compiler_wl='-Wl,'
8261    lt_prog_compiler_static='-static'
8262
8263    case $host_os in
8264      aix*)
8265      # All AIX code is PIC.
8266      if test "$host_cpu" = ia64; then
8267        # AIX 5 now supports IA64 processor
8268        lt_prog_compiler_static='-Bstatic'
8269      fi
8270      ;;
8271
8272    amigaos*)
8273      # FIXME: we need at least 68020 code to build shared libraries, but
8274      # adding the `-m68020' flag to GCC prevents building anything better,
8275      # like `-m68040'.
8276      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8277      ;;
8278
8279    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8280      # PIC is the default for these OSes.
8281      ;;
8282
8283    mingw* | pw32* | os2*)
8284      # This hack is so that the source file can tell whether it is being
8285      # built for inclusion in a dll (and should export symbols for example).
8286      lt_prog_compiler_pic='-DDLL_EXPORT'
8287      ;;
8288
8289    darwin* | rhapsody*)
8290      # PIC is the default on this platform
8291      # Common symbols not allowed in MH_DYLIB files
8292      lt_prog_compiler_pic='-fno-common'
8293      ;;
8294
8295    interix3*)
8296      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8297      # Instead, we relocate shared libraries at runtime.
8298      ;;
8299
8300    msdosdjgpp*)
8301      # Just because we use GCC doesn't mean we suddenly get shared libraries
8302      # on systems that don't support them.
8303      lt_prog_compiler_can_build_shared=no
8304      enable_shared=no
8305      ;;
8306
8307    sysv4*MP*)
8308      if test -d /usr/nec; then
8309        lt_prog_compiler_pic=-Kconform_pic
8310      fi
8311      ;;
8312
8313    hpux*)
8314      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8315      # not for PA HP-UX.
8316      case $host_cpu in
8317      hppa*64*|ia64*)
8318        # +Z the default
8319        ;;
8320      *)
8321        lt_prog_compiler_pic='-fPIC'
8322        ;;
8323      esac
8324      ;;
8325
8326    *)
8327      lt_prog_compiler_pic='-fPIC'
8328      ;;
8329    esac
8330  else
8331    # PORTME Check for flag to pass linker flags through the system compiler.
8332    case $host_os in
8333    aix*)
8334      lt_prog_compiler_wl='-Wl,'
8335      if test "$host_cpu" = ia64; then
8336        # AIX 5 now supports IA64 processor
8337        lt_prog_compiler_static='-Bstatic'
8338      else
8339        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8340      fi
8341      ;;
8342      darwin*)
8343        # PIC is the default on this platform
8344        # Common symbols not allowed in MH_DYLIB files
8345       case $cc_basename in
8346         xlc*)
8347         lt_prog_compiler_pic='-qnocommon'
8348         lt_prog_compiler_wl='-Wl,'
8349         ;;
8350       esac
8351       ;;
8352
8353    mingw* | pw32* | os2*)
8354      # This hack is so that the source file can tell whether it is being
8355      # built for inclusion in a dll (and should export symbols for example).
8356      lt_prog_compiler_pic='-DDLL_EXPORT'
8357      ;;
8358
8359    hpux9* | hpux10* | hpux11*)
8360      lt_prog_compiler_wl='-Wl,'
8361      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8362      # not for PA HP-UX.
8363      case $host_cpu in
8364      hppa*64*|ia64*)
8365        # +Z the default
8366        ;;
8367      *)
8368        lt_prog_compiler_pic='+Z'
8369        ;;
8370      esac
8371      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8372      lt_prog_compiler_static='${wl}-a ${wl}archive'
8373      ;;
8374
8375    irix5* | irix6* | nonstopux*)
8376      lt_prog_compiler_wl='-Wl,'
8377      # PIC (with -KPIC) is the default.
8378      lt_prog_compiler_static='-non_shared'
8379      ;;
8380
8381    newsos6)
8382      lt_prog_compiler_pic='-KPIC'
8383      lt_prog_compiler_static='-Bstatic'
8384      ;;
8385
8386    linux*)
8387      case $cc_basename in
8388      icc* | ecc*)
8389        lt_prog_compiler_wl='-Wl,'
8390        lt_prog_compiler_pic='-KPIC'
8391        lt_prog_compiler_static='-static'
8392        ;;
8393      pgcc* | pgf77* | pgf90* | pgf95*)
8394        # Portland Group compilers (*not* the Pentium gcc compiler,
8395        # which looks to be a dead project)
8396        lt_prog_compiler_wl='-Wl,'
8397        lt_prog_compiler_pic='-fpic'
8398        lt_prog_compiler_static='-Bstatic'
8399        ;;
8400      ccc*)
8401        lt_prog_compiler_wl='-Wl,'
8402        # All Alpha code is PIC.
8403        lt_prog_compiler_static='-non_shared'
8404        ;;
8405      esac
8406      ;;
8407
8408    osf3* | osf4* | osf5*)
8409      lt_prog_compiler_wl='-Wl,'
8410      # All OSF/1 code is PIC.
8411      lt_prog_compiler_static='-non_shared'
8412      ;;
8413
8414    solaris*)
8415      lt_prog_compiler_pic='-KPIC'
8416      lt_prog_compiler_static='-Bstatic'
8417      case $cc_basename in
8418      f77* | f90* | f95*)
8419        lt_prog_compiler_wl='-Qoption ld ';;
8420      *)
8421        lt_prog_compiler_wl='-Wl,';;
8422      esac
8423      ;;
8424
8425    sunos4*)
8426      lt_prog_compiler_wl='-Qoption ld '
8427      lt_prog_compiler_pic='-PIC'
8428      lt_prog_compiler_static='-Bstatic'
8429      ;;
8430
8431    sysv4 | sysv4.2uw2* | sysv4.3*)
8432      lt_prog_compiler_wl='-Wl,'
8433      lt_prog_compiler_pic='-KPIC'
8434      lt_prog_compiler_static='-Bstatic'
8435      ;;
8436
8437    sysv4*MP*)
8438      if test -d /usr/nec ;then
8439        lt_prog_compiler_pic='-Kconform_pic'
8440        lt_prog_compiler_static='-Bstatic'
8441      fi
8442      ;;
8443
8444    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8445      lt_prog_compiler_wl='-Wl,'
8446      lt_prog_compiler_pic='-KPIC'
8447      lt_prog_compiler_static='-Bstatic'
8448      ;;
8449
8450    unicos*)
8451      lt_prog_compiler_wl='-Wl,'
8452      lt_prog_compiler_can_build_shared=no
8453      ;;
8454
8455    uts4*)
8456      lt_prog_compiler_pic='-pic'
8457      lt_prog_compiler_static='-Bstatic'
8458      ;;
8459
8460    *)
8461      lt_prog_compiler_can_build_shared=no
8462      ;;
8463    esac
8464  fi
8465
8466echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8467echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8468
8469#
8470# Check to make sure the PIC flag actually works.
8471#
8472if test -n "$lt_prog_compiler_pic"; then
8473
8474echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8475echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8476if test "${lt_prog_compiler_pic_works+set}" = set; then
8477  echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479  lt_prog_compiler_pic_works=no
8480  ac_outfile=conftest.$ac_objext
8481   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8482   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8483   # Insert the option either (1) after the last *FLAGS variable, or
8484   # (2) before a word containing "conftest.", or (3) at the end.
8485   # Note that $ac_compile itself does not contain backslashes and begins
8486   # with a dollar sign (not a hyphen), so the echo should work correctly.
8487   # The option is referenced via a variable to avoid confusing sed.
8488   lt_compile=`echo "$ac_compile" | $SED \
8489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8491   -e 's:$: $lt_compiler_flag:'`
8492   (eval echo "\"\$as_me:8492: $lt_compile\"" >&5)
8493   (eval "$lt_compile" 2>conftest.err)
8494   ac_status=$?
8495   cat conftest.err >&5
8496   echo "$as_me:8496: \$? = $ac_status" >&5
8497   if (exit $ac_status) && test -s "$ac_outfile"; then
8498     # The compiler can only warn and ignore the option if not recognized
8499     # So say no if there are warnings other than the usual output.
8500     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8501     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8502     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8503       lt_prog_compiler_pic_works=yes
8504     fi
8505   fi
8506   $rm conftest*
8507
8508fi
8509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8510echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8511
8512if test x"$lt_prog_compiler_pic_works" = xyes; then
8513    case $lt_prog_compiler_pic in
8514     "" | " "*) ;;
8515     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8516     esac
8517else
8518    lt_prog_compiler_pic=
8519     lt_prog_compiler_can_build_shared=no
8520fi
8521
8522fi
8523case $host_os in
8524  # For platforms which do not support PIC, -DPIC is meaningless:
8525  *djgpp*)
8526    lt_prog_compiler_pic=
8527    ;;
8528  *)
8529    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8530    ;;
8531esac
8532
8533#
8534# Check to make sure the static flag actually works.
8535#
8536wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8537echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8538echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8539if test "${lt_prog_compiler_static_works+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  lt_prog_compiler_static_works=no
8543   save_LDFLAGS="$LDFLAGS"
8544   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8545   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8546   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8547     # The linker can only warn and ignore the option if not recognized
8548     # So say no if there are warnings
8549     if test -s conftest.err; then
8550       # Append any errors to the config.log.
8551       cat conftest.err 1>&5
8552       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8553       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554       if diff conftest.exp conftest.er2 >/dev/null; then
8555         lt_prog_compiler_static_works=yes
8556       fi
8557     else
8558       lt_prog_compiler_static_works=yes
8559     fi
8560   fi
8561   $rm conftest*
8562   LDFLAGS="$save_LDFLAGS"
8563
8564fi
8565echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8566echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8567
8568if test x"$lt_prog_compiler_static_works" = xyes; then
8569    :
8570else
8571    lt_prog_compiler_static=
8572fi
8573
8574
8575echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8577if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8578  echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580  lt_cv_prog_compiler_c_o=no
8581   $rm -r conftest 2>/dev/null
8582   mkdir conftest
8583   cd conftest
8584   mkdir out
8585   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8586
8587   lt_compiler_flag="-o out/conftest2.$ac_objext"
8588   # Insert the option either (1) after the last *FLAGS variable, or
8589   # (2) before a word containing "conftest.", or (3) at the end.
8590   # Note that $ac_compile itself does not contain backslashes and begins
8591   # with a dollar sign (not a hyphen), so the echo should work correctly.
8592   lt_compile=`echo "$ac_compile" | $SED \
8593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595   -e 's:$: $lt_compiler_flag:'`
8596   (eval echo "\"\$as_me:8596: $lt_compile\"" >&5)
8597   (eval "$lt_compile" 2>out/conftest.err)
8598   ac_status=$?
8599   cat out/conftest.err >&5
8600   echo "$as_me:8600: \$? = $ac_status" >&5
8601   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602   then
8603     # The compiler can only warn and ignore the option if not recognized
8604     # So say no if there are warnings
8605     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8606     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608       lt_cv_prog_compiler_c_o=yes
8609     fi
8610   fi
8611   chmod u+w . 2>&5
8612   $rm conftest*
8613   # SGI C++ compiler will create directory out/ii_files/ for
8614   # template instantiation
8615   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8616   $rm out/* && rmdir out
8617   cd ..
8618   rmdir conftest
8619   $rm conftest*
8620
8621fi
8622echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8623echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8624
8625
8626hard_links="nottested"
8627if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8628  # do not overwrite the value of need_locks provided by the user
8629  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8630echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8631  hard_links=yes
8632  $rm conftest*
8633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8634  touch conftest.a
8635  ln conftest.a conftest.b 2>&5 || hard_links=no
8636  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8637  echo "$as_me:$LINENO: result: $hard_links" >&5
8638echo "${ECHO_T}$hard_links" >&6
8639  if test "$hard_links" = no; then
8640    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8641echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8642    need_locks=warn
8643  fi
8644else
8645  need_locks=no
8646fi
8647
8648echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8649echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8650
8651  runpath_var=
8652  allow_undefined_flag=
8653  enable_shared_with_static_runtimes=no
8654  archive_cmds=
8655  archive_expsym_cmds=
8656  old_archive_From_new_cmds=
8657  old_archive_from_expsyms_cmds=
8658  export_dynamic_flag_spec=
8659  whole_archive_flag_spec=
8660  thread_safe_flag_spec=
8661  hardcode_libdir_flag_spec=
8662  hardcode_libdir_flag_spec_ld=
8663  hardcode_libdir_separator=
8664  hardcode_direct=no
8665  hardcode_minus_L=no
8666  hardcode_shlibpath_var=unsupported
8667  link_all_deplibs=unknown
8668  hardcode_automatic=no
8669  module_cmds=
8670  module_expsym_cmds=
8671  always_export_symbols=no
8672  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8673  # include_expsyms should be a list of space-separated symbols to be *always*
8674  # included in the symbol list
8675  include_expsyms=
8676  # exclude_expsyms can be an extended regexp of symbols to exclude
8677  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8678  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8679  # as well as any symbol that contains `d'.
8680  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8681  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8682  # platforms (ab)use it in PIC code, but their linkers get confused if
8683  # the symbol is explicitly referenced.  Since portable code cannot
8684  # rely on this symbol name, it's probably fine to never include it in
8685  # preloaded symbol tables.
8686  extract_expsyms_cmds=
8687  # Just being paranoid about ensuring that cc_basename is set.
8688  for cc_temp in $compiler""; do
8689  case $cc_temp in
8690    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8691    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8692    \-*) ;;
8693    *) break;;
8694  esac
8695done
8696cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8697
8698  case $host_os in
8699  cygwin* | mingw* | pw32*)
8700    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8701    # When not using gcc, we currently assume that we are using
8702    # Microsoft Visual C++.
8703    if test "$GCC" != yes; then
8704      with_gnu_ld=no
8705    fi
8706    ;;
8707  interix*)
8708    # we just hope/assume this is gcc and not c89 (= MSVC++)
8709    with_gnu_ld=yes
8710    ;;
8711  openbsd*)
8712    with_gnu_ld=no
8713    ;;
8714  esac
8715
8716  ld_shlibs=yes
8717  if test "$with_gnu_ld" = yes; then
8718    # If archive_cmds runs LD, not CC, wlarc should be empty
8719    wlarc='${wl}'
8720
8721    # Set some defaults for GNU ld with shared library support. These
8722    # are reset later if shared libraries are not supported. Putting them
8723    # here allows them to be overridden if necessary.
8724    runpath_var=LD_RUN_PATH
8725    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8726    export_dynamic_flag_spec='${wl}--export-dynamic'
8727    # ancient GNU ld didn't support --whole-archive et. al.
8728    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8729        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8730      else
8731        whole_archive_flag_spec=
8732    fi
8733    supports_anon_versioning=no
8734    case `$LD -v 2>/dev/null` in
8735      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8736      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8737      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8738      *\ 2.11.*) ;; # other 2.11 versions
8739      *) supports_anon_versioning=yes ;;
8740    esac
8741
8742    # See if GNU ld supports shared libraries.
8743    case $host_os in
8744    aix3* | aix4* | aix5*)
8745      # On AIX/PPC, the GNU linker is very broken
8746      if test "$host_cpu" != ia64; then
8747        ld_shlibs=no
8748        cat <<EOF 1>&2
8749
8750*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8751*** to be unable to reliably create shared libraries on AIX.
8752*** Therefore, libtool is disabling shared libraries support.  If you
8753*** really care for shared libraries, you may want to modify your PATH
8754*** so that a non-GNU linker is found, and then restart.
8755
8756EOF
8757      fi
8758      ;;
8759
8760    amigaos*)
8761      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)'
8762      hardcode_libdir_flag_spec='-L$libdir'
8763      hardcode_minus_L=yes
8764
8765      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8766      # that the semantics of dynamic libraries on AmigaOS, at least up
8767      # to version 4, is to share data among multiple programs linked
8768      # with the same dynamic library.  Since this doesn't match the
8769      # behavior of shared libraries on other platforms, we can't use
8770      # them.
8771      ld_shlibs=no
8772      ;;
8773
8774    beos*)
8775      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8776        allow_undefined_flag=unsupported
8777        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8778        # support --undefined.  This deserves some investigation.  FIXME
8779        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780      else
8781        ld_shlibs=no
8782      fi
8783      ;;
8784
8785    cygwin* | mingw* | pw32*)
8786      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8787      # as there is no search path for DLLs.
8788      hardcode_libdir_flag_spec='-L$libdir'
8789      allow_undefined_flag=unsupported
8790      always_export_symbols=no
8791      enable_shared_with_static_runtimes=yes
8792      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8793
8794      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8795        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8796        # If the export-symbols file already is a .def file (1st line
8797        # is EXPORTS), use it as is; otherwise, prepend...
8798        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8799          cp $export_symbols $output_objdir/$soname.def;
8800        else
8801          echo EXPORTS > $output_objdir/$soname.def;
8802          cat $export_symbols >> $output_objdir/$soname.def;
8803        fi~
8804        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8805      else
8806        ld_shlibs=no
8807      fi
8808      ;;
8809
8810    interix3*)
8811      hardcode_direct=no
8812      hardcode_shlibpath_var=no
8813      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814      export_dynamic_flag_spec='${wl}-E'
8815      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8816      # Instead, shared libraries are loaded at an image base (0x10000000 by
8817      # default) and relocated if they conflict, which is a slow very memory
8818      # consuming and fragmenting process.  To avoid this, we pick a random,
8819      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8820      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8821      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8822      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'
8823      ;;
8824
8825    linux*)
8826      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8827        tmp_addflag=
8828        case $cc_basename,$host_cpu in
8829        pgcc*)                          # Portland Group C compiler
8830          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'
8831          tmp_addflag=' $pic_flag'
8832          ;;
8833        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8834          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'
8835          tmp_addflag=' $pic_flag -Mnomain' ;;
8836        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8837          tmp_addflag=' -i_dynamic' ;;
8838        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8839          tmp_addflag=' -i_dynamic -nofor_main' ;;
8840        ifc* | ifort*)                  # Intel Fortran compiler
8841          tmp_addflag=' -nofor_main' ;;
8842        esac
8843        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844
8845        if test $supports_anon_versioning = yes; then
8846          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8847  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8848  $echo "local: *; };" >> $output_objdir/$libname.ver~
8849          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8850        fi
8851      else
8852        ld_shlibs=no
8853      fi
8854      ;;
8855
8856    netbsd*)
8857      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8858        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8859        wlarc=
8860      else
8861        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8863      fi
8864      ;;
8865
8866    solaris*)
8867      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8868        ld_shlibs=no
8869        cat <<EOF 1>&2
8870
8871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8872*** create shared libraries on Solaris systems.  Therefore, libtool
8873*** is disabling shared libraries support.  We urge you to upgrade GNU
8874*** binutils to release 2.9.1 or newer.  Another option is to modify
8875*** your PATH or compiler configuration so that the native linker is
8876*** used, and then restart.
8877
8878EOF
8879      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8880        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882      else
8883        ld_shlibs=no
8884      fi
8885      ;;
8886
8887    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8888      case `$LD -v 2>&1` in
8889        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8890        ld_shlibs=no
8891        cat <<_LT_EOF 1>&2
8892
8893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8894*** reliably create shared libraries on SCO systems.  Therefore, libtool
8895*** is disabling shared libraries support.  We urge you to upgrade GNU
8896*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8897*** your PATH or compiler configuration so that the native linker is
8898*** used, and then restart.
8899
8900_LT_EOF
8901        ;;
8902        *)
8903          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8904            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8905            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8906            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8907          else
8908            ld_shlibs=no
8909          fi
8910        ;;
8911      esac
8912      ;;
8913
8914    sunos4*)
8915      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8916      wlarc=
8917      hardcode_direct=yes
8918      hardcode_shlibpath_var=no
8919      ;;
8920
8921    *)
8922      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8923        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8925      else
8926        ld_shlibs=no
8927      fi
8928      ;;
8929    esac
8930
8931    if test "$ld_shlibs" = no; then
8932      runpath_var=
8933      hardcode_libdir_flag_spec=
8934      export_dynamic_flag_spec=
8935      whole_archive_flag_spec=
8936    fi
8937  else
8938    # PORTME fill in a description of your system's linker (not GNU ld)
8939    case $host_os in
8940    aix3*)
8941      allow_undefined_flag=unsupported
8942      always_export_symbols=yes
8943      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'
8944      # Note: this linker hardcodes the directories in LIBPATH if there
8945      # are no directories specified by -L.
8946      hardcode_minus_L=yes
8947      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8948        # Neither direct hardcoding nor static linking is supported with a
8949        # broken collect2.
8950        hardcode_direct=unsupported
8951      fi
8952      ;;
8953
8954    aix4* | aix5*)
8955      if test "$host_cpu" = ia64; then
8956        # On IA64, the linker does run time linking by default, so we don't
8957        # have to do anything special.
8958        aix_use_runtimelinking=no
8959        exp_sym_flag='-Bexport'
8960        no_entry_flag=""
8961      else
8962        # If we're using GNU nm, then we don't want the "-C" option.
8963        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8964        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8965          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'
8966        else
8967          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'
8968        fi
8969        aix_use_runtimelinking=no
8970
8971        # Test if we are trying to use run time linking or normal
8972        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8973        # need to do runtime linking.
8974        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8975          for ld_flag in $LDFLAGS; do
8976          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8977            aix_use_runtimelinking=yes
8978            break
8979          fi
8980          done
8981          ;;
8982        esac
8983
8984        exp_sym_flag='-bexport'
8985        no_entry_flag='-bnoentry'
8986      fi
8987
8988      # When large executables or shared objects are built, AIX ld can
8989      # have problems creating the table of contents.  If linking a library
8990      # or program results in "error TOC overflow" add -mminimal-toc to
8991      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8992      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8993
8994      archive_cmds=''
8995      hardcode_direct=yes
8996      hardcode_libdir_separator=':'
8997      link_all_deplibs=yes
8998
8999      if test "$GCC" = yes; then
9000        case $host_os in aix4.[012]|aix4.[012].*)
9001        # We only want to do this on AIX 4.2 and lower, the check
9002        # below for broken collect2 doesn't work under 4.3+
9003          collect2name=`${CC} -print-prog-name=collect2`
9004          if test -f "$collect2name" && \
9005           strings "$collect2name" | grep resolve_lib_name >/dev/null
9006          then
9007          # We have reworked collect2
9008          hardcode_direct=yes
9009          else
9010          # We have old collect2
9011          hardcode_direct=unsupported
9012          # It fails to find uninstalled libraries when the uninstalled
9013          # path is not listed in the libpath.  Setting hardcode_minus_L
9014          # to unsupported forces relinking
9015          hardcode_minus_L=yes
9016          hardcode_libdir_flag_spec='-L$libdir'
9017          hardcode_libdir_separator=
9018          fi
9019          ;;
9020        esac
9021        shared_flag='-shared'
9022        if test "$aix_use_runtimelinking" = yes; then
9023          shared_flag="$shared_flag "'${wl}-G'
9024        fi
9025      else
9026        # not using gcc
9027        if test "$host_cpu" = ia64; then
9028        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9029        # chokes on -Wl,-G. The following line is correct:
9030          shared_flag='-G'
9031        else
9032          if test "$aix_use_runtimelinking" = yes; then
9033            shared_flag='${wl}-G'
9034          else
9035            shared_flag='${wl}-bM:SRE'
9036          fi
9037        fi
9038      fi
9039
9040      # It seems that -bexpall does not export symbols beginning with
9041      # underscore (_), so it is better to generate a list of symbols to export.
9042      always_export_symbols=yes
9043      if test "$aix_use_runtimelinking" = yes; then
9044        # Warning - without using the other runtime loading flags (-brtl),
9045        # -berok will link without error, but may produce a broken library.
9046        allow_undefined_flag='-berok'
9047       # Determine the default libpath from the value encoded in an empty executable.
9048       cat >conftest.$ac_ext <<_ACEOF
9049/* confdefs.h.  */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h.  */
9054
9055int
9056main ()
9057{
9058
9059  ;
9060  return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext conftest$ac_exeext
9064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065  (eval $ac_link) 2>conftest.er1
9066  ac_status=$?
9067  grep -v '^ *+' conftest.er1 >conftest.err
9068  rm -f conftest.er1
9069  cat conftest.err >&5
9070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071  (exit $ac_status); } &&
9072         { ac_try='test -z "$ac_c_werror_flag"
9073                         || test ! -s conftest.err'
9074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075  (eval $ac_try) 2>&5
9076  ac_status=$?
9077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078  (exit $ac_status); }; } &&
9079         { ac_try='test -s conftest$ac_exeext'
9080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081  (eval $ac_try) 2>&5
9082  ac_status=$?
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); }; }; then
9085
9086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9087}'`
9088# Check for a 64-bit object if we didn't find anything.
9089if 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; }
9090}'`; fi
9091else
9092  echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
9094
9095fi
9096rm -f conftest.err conftest.$ac_objext \
9097      conftest$ac_exeext conftest.$ac_ext
9098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9099
9100       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9101        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"
9102       else
9103        if test "$host_cpu" = ia64; then
9104          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9105          allow_undefined_flag="-z nodefs"
9106          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"
9107        else
9108         # Determine the default libpath from the value encoded in an empty executable.
9109         cat >conftest.$ac_ext <<_ACEOF
9110/* confdefs.h.  */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h.  */
9115
9116int
9117main ()
9118{
9119
9120  ;
9121  return 0;
9122}
9123_ACEOF
9124rm -f conftest.$ac_objext conftest$ac_exeext
9125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126  (eval $ac_link) 2>conftest.er1
9127  ac_status=$?
9128  grep -v '^ *+' conftest.er1 >conftest.err
9129  rm -f conftest.er1
9130  cat conftest.err >&5
9131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132  (exit $ac_status); } &&
9133         { ac_try='test -z "$ac_c_werror_flag"
9134                         || test ! -s conftest.err'
9135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136  (eval $ac_try) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); }; } &&
9140         { ac_try='test -s conftest$ac_exeext'
9141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142  (eval $ac_try) 2>&5
9143  ac_status=$?
9144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145  (exit $ac_status); }; }; then
9146
9147aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9148}'`
9149# Check for a 64-bit object if we didn't find anything.
9150if 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; }
9151}'`; fi
9152else
9153  echo "$as_me: failed program was:" >&5
9154sed 's/^/| /' conftest.$ac_ext >&5
9155
9156fi
9157rm -f conftest.err conftest.$ac_objext \
9158      conftest$ac_exeext conftest.$ac_ext
9159if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9160
9161         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9162          # Warning - without using the other run time loading flags,
9163          # -berok will link without error, but may produce a broken library.
9164          no_undefined_flag=' ${wl}-bernotok'
9165          allow_undefined_flag=' ${wl}-berok'
9166          # Exported symbols can be pulled into shared objects from archives
9167          whole_archive_flag_spec='$convenience'
9168          archive_cmds_need_lc=yes
9169          # This is similar to how AIX traditionally builds its shared libraries.
9170          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'
9171        fi
9172      fi
9173      ;;
9174
9175    amigaos*)
9176      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)'
9177      hardcode_libdir_flag_spec='-L$libdir'
9178      hardcode_minus_L=yes
9179      # see comment about different semantics on the GNU ld section
9180      ld_shlibs=no
9181      ;;
9182
9183    bsdi[45]*)
9184      export_dynamic_flag_spec=-rdynamic
9185      ;;
9186
9187    cygwin* | mingw* | pw32*)
9188      # When not using gcc, we currently assume that we are using
9189      # Microsoft Visual C++.
9190      # hardcode_libdir_flag_spec is actually meaningless, as there is
9191      # no search path for DLLs.
9192      hardcode_libdir_flag_spec=' '
9193      allow_undefined_flag=unsupported
9194      # Tell ltmain to make .lib files, not .a files.
9195      libext=lib
9196      # Tell ltmain to make .dll files, not .so files.
9197      shrext_cmds=".dll"
9198      # FIXME: Setting linknames here is a bad hack.
9199      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9200      # The linker will automatically build a .lib file if we build a DLL.
9201      old_archive_From_new_cmds='true'
9202      # FIXME: Should let the user specify the lib program.
9203      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9204      fix_srcfile_path='`cygpath -w "$srcfile"`'
9205      enable_shared_with_static_runtimes=yes
9206      ;;
9207
9208    darwin* | rhapsody*)
9209      case $host_os in
9210        rhapsody* | darwin1.[012])
9211         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9212         ;;
9213       *) # Darwin 1.3 on
9214         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9215           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9216         else
9217           case ${MACOSX_DEPLOYMENT_TARGET} in
9218             10.[012])
9219               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9220               ;;
9221             10.*)
9222               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9223               ;;
9224           esac
9225         fi
9226         ;;
9227      esac
9228      archive_cmds_need_lc=no
9229      hardcode_direct=no
9230      hardcode_automatic=yes
9231      hardcode_shlibpath_var=unsupported
9232      whole_archive_flag_spec=''
9233      link_all_deplibs=yes
9234    if test "$GCC" = yes ; then
9235        output_verbose_link_cmd='echo'
9236        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9237      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9238      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9239      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}'
9240      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}'
9241    else
9242      case $cc_basename in
9243        xlc*)
9244         output_verbose_link_cmd='echo'
9245         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9246         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9247          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9248         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}'
9249          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}'
9250          ;;
9251       *)
9252         ld_shlibs=no
9253          ;;
9254      esac
9255    fi
9256      ;;
9257
9258    dgux*)
9259      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260      hardcode_libdir_flag_spec='-L$libdir'
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    freebsd1*)
9265      ld_shlibs=no
9266      ;;
9267
9268    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9269    # support.  Future versions do this automatically, but an explicit c++rt0.o
9270    # does not break anything, and helps significantly (at the cost of a little
9271    # extra space).
9272    freebsd2.2*)
9273      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9274      hardcode_libdir_flag_spec='-R$libdir'
9275      hardcode_direct=yes
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9280    freebsd2*)
9281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9282      hardcode_direct=yes
9283      hardcode_minus_L=yes
9284      hardcode_shlibpath_var=no
9285      ;;
9286
9287    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9288    freebsd* | kfreebsd*-gnu | dragonfly*)
9289      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9290      hardcode_libdir_flag_spec='-R$libdir'
9291      hardcode_direct=yes
9292      hardcode_shlibpath_var=no
9293      ;;
9294
9295    hpux9*)
9296      if test "$GCC" = yes; then
9297        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'
9298      else
9299        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'
9300      fi
9301      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9302      hardcode_libdir_separator=:
9303      hardcode_direct=yes
9304
9305      # hardcode_minus_L: Not really in the search PATH,
9306      # but as the default location of the library.
9307      hardcode_minus_L=yes
9308      export_dynamic_flag_spec='${wl}-E'
9309      ;;
9310
9311    hpux10*)
9312      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9313        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9314      else
9315        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9316      fi
9317      if test "$with_gnu_ld" = no; then
9318        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9319        hardcode_libdir_separator=:
9320
9321        hardcode_direct=yes
9322        export_dynamic_flag_spec='${wl}-E'
9323
9324        # hardcode_minus_L: Not really in the search PATH,
9325        # but as the default location of the library.
9326        hardcode_minus_L=yes
9327      fi
9328      ;;
9329
9330    hpux11*)
9331      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9332        case $host_cpu in
9333        hppa*64*)
9334          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335          ;;
9336        ia64*)
9337          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9338          ;;
9339        *)
9340          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9341          ;;
9342        esac
9343      else
9344        case $host_cpu in
9345        hppa*64*)
9346          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9347          ;;
9348        ia64*)
9349          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9350          ;;
9351        *)
9352          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353          ;;
9354        esac
9355      fi
9356      if test "$with_gnu_ld" = no; then
9357        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358        hardcode_libdir_separator=:
9359
9360        case $host_cpu in
9361        hppa*64*|ia64*)
9362          hardcode_libdir_flag_spec_ld='+b $libdir'
9363          hardcode_direct=no
9364          hardcode_shlibpath_var=no
9365          ;;
9366        *)
9367          hardcode_direct=yes
9368          export_dynamic_flag_spec='${wl}-E'
9369
9370          # hardcode_minus_L: Not really in the search PATH,
9371          # but as the default location of the library.
9372          hardcode_minus_L=yes
9373          ;;
9374        esac
9375      fi
9376      ;;
9377
9378    irix5* | irix6* | nonstopux*)
9379      if test "$GCC" = yes; then
9380        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'
9381      else
9382        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'
9383        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9384      fi
9385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386      hardcode_libdir_separator=:
9387      link_all_deplibs=yes
9388      ;;
9389
9390    netbsd*)
9391      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9392        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9393      else
9394        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9395      fi
9396      hardcode_libdir_flag_spec='-R$libdir'
9397      hardcode_direct=yes
9398      hardcode_shlibpath_var=no
9399      ;;
9400
9401    newsos6)
9402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403      hardcode_direct=yes
9404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405      hardcode_libdir_separator=:
9406      hardcode_shlibpath_var=no
9407      ;;
9408
9409    openbsd*)
9410      hardcode_direct=yes
9411      hardcode_shlibpath_var=no
9412      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9413        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9415        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416        export_dynamic_flag_spec='${wl}-E'
9417      else
9418       case $host_os in
9419         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9420           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421           hardcode_libdir_flag_spec='-R$libdir'
9422           ;;
9423         *)
9424           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9426           ;;
9427       esac
9428      fi
9429      ;;
9430
9431    os2*)
9432      hardcode_libdir_flag_spec='-L$libdir'
9433      hardcode_minus_L=yes
9434      allow_undefined_flag=unsupported
9435      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'
9436      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9437      ;;
9438
9439    osf3*)
9440      if test "$GCC" = yes; then
9441        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9442        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'
9443      else
9444        allow_undefined_flag=' -expect_unresolved \*'
9445        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'
9446      fi
9447      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448      hardcode_libdir_separator=:
9449      ;;
9450
9451    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9452      if test "$GCC" = yes; then
9453        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9454        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'
9455        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456      else
9457        allow_undefined_flag=' -expect_unresolved \*'
9458        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'
9459        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9460        $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'
9461
9462        # Both c and cxx compiler support -rpath directly
9463        hardcode_libdir_flag_spec='-rpath $libdir'
9464      fi
9465      hardcode_libdir_separator=:
9466      ;;
9467
9468    solaris*)
9469      no_undefined_flag=' -z text'
9470      if test "$GCC" = yes; then
9471        wlarc='${wl}'
9472        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9473        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9474          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9475      else
9476        wlarc=''
9477        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9479        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9480      fi
9481      hardcode_libdir_flag_spec='-R$libdir'
9482      hardcode_shlibpath_var=no
9483      case $host_os in
9484      solaris2.[0-5] | solaris2.[0-5].*) ;;
9485      *)
9486        # The compiler driver will combine linker options so we
9487        # cannot just pass the convience library names through
9488        # without $wl, iff we do not link with $LD.
9489        # Luckily, gcc supports the same syntax we need for Sun Studio.
9490        # Supported since Solaris 2.6 (maybe 2.5.1?)
9491        case $wlarc in
9492        '')
9493          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9494        *)
9495          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' ;;
9496        esac ;;
9497      esac
9498      link_all_deplibs=yes
9499      ;;
9500
9501    sunos4*)
9502      if test "x$host_vendor" = xsequent; then
9503        # Use $CC to link under sequent, because it throws in some extra .o
9504        # files that make .init and .fini sections work.
9505        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9506      else
9507        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9508      fi
9509      hardcode_libdir_flag_spec='-L$libdir'
9510      hardcode_direct=yes
9511      hardcode_minus_L=yes
9512      hardcode_shlibpath_var=no
9513      ;;
9514
9515    sysv4)
9516      case $host_vendor in
9517        sni)
9518          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519          hardcode_direct=yes # is this really true???
9520        ;;
9521        siemens)
9522          ## LD is ld it makes a PLAMLIB
9523          ## CC just makes a GrossModule.
9524          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9525          reload_cmds='$CC -r -o $output$reload_objs'
9526          hardcode_direct=no
9527        ;;
9528        motorola)
9529          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9531        ;;
9532      esac
9533      runpath_var='LD_RUN_PATH'
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    sysv4.3*)
9538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539      hardcode_shlibpath_var=no
9540      export_dynamic_flag_spec='-Bexport'
9541      ;;
9542
9543    sysv4*MP*)
9544      if test -d /usr/nec; then
9545        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546        hardcode_shlibpath_var=no
9547        runpath_var=LD_RUN_PATH
9548        hardcode_runpath_var=yes
9549        ld_shlibs=yes
9550      fi
9551      ;;
9552
9553    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9554      no_undefined_flag='${wl}-z,text'
9555      archive_cmds_need_lc=no
9556      hardcode_shlibpath_var=no
9557      runpath_var='LD_RUN_PATH'
9558
9559      if test "$GCC" = yes; then
9560        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562      else
9563        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565      fi
9566      ;;
9567
9568    sysv5* | sco3.2v5* | sco5v6*)
9569      # Note: We can NOT use -z defs as we might desire, because we do not
9570      # link with -lc, and that would cause any symbols used from libc to
9571      # always be unresolved, which means just about no library would
9572      # ever link correctly.  If we're not using GNU ld we use -z text
9573      # though, which does catch some bad symbols but isn't as heavy-handed
9574      # as -z defs.
9575      no_undefined_flag='${wl}-z,text'
9576      allow_undefined_flag='${wl}-z,nodefs'
9577      archive_cmds_need_lc=no
9578      hardcode_shlibpath_var=no
9579      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9580      hardcode_libdir_separator=':'
9581      link_all_deplibs=yes
9582      export_dynamic_flag_spec='${wl}-Bexport'
9583      runpath_var='LD_RUN_PATH'
9584
9585      if test "$GCC" = yes; then
9586        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588      else
9589        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591      fi
9592      ;;
9593
9594    uts4*)
9595      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596      hardcode_libdir_flag_spec='-L$libdir'
9597      hardcode_shlibpath_var=no
9598      ;;
9599
9600    *)
9601      ld_shlibs=no
9602      ;;
9603    esac
9604  fi
9605
9606echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9607echo "${ECHO_T}$ld_shlibs" >&6
9608test "$ld_shlibs" = no && can_build_shared=no
9609
9610#
9611# Do we need to explicitly link libc?
9612#
9613case "x$archive_cmds_need_lc" in
9614x|xyes)
9615  # Assume -lc should be added
9616  archive_cmds_need_lc=yes
9617
9618  if test "$enable_shared" = yes && test "$GCC" = yes; then
9619    case $archive_cmds in
9620    *'~'*)
9621      # FIXME: we may have to deal with multi-command sequences.
9622      ;;
9623    '$CC '*)
9624      # Test whether the compiler implicitly links with -lc since on some
9625      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9626      # to ld, don't add -lc before -lgcc.
9627      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9629      $rm conftest*
9630      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9631
9632      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9633  (eval $ac_compile) 2>&5
9634  ac_status=$?
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); } 2>conftest.err; then
9637        soname=conftest
9638        lib=conftest
9639        libobjs=conftest.$ac_objext
9640        deplibs=
9641        wl=$lt_prog_compiler_wl
9642        pic_flag=$lt_prog_compiler_pic
9643        compiler_flags=-v
9644        linker_flags=-v
9645        verstring=
9646        output_objdir=.
9647        libname=conftest
9648        lt_save_allow_undefined_flag=$allow_undefined_flag
9649        allow_undefined_flag=
9650        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9651  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9652  ac_status=$?
9653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654  (exit $ac_status); }
9655        then
9656          archive_cmds_need_lc=no
9657        else
9658          archive_cmds_need_lc=yes
9659        fi
9660        allow_undefined_flag=$lt_save_allow_undefined_flag
9661      else
9662        cat conftest.err 1>&5
9663      fi
9664      $rm conftest*
9665      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9666echo "${ECHO_T}$archive_cmds_need_lc" >&6
9667      ;;
9668    esac
9669  fi
9670  ;;
9671esac
9672
9673echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9675library_names_spec=
9676libname_spec='lib$name'
9677soname_spec=
9678shrext_cmds=".so"
9679postinstall_cmds=
9680postuninstall_cmds=
9681finish_cmds=
9682finish_eval=
9683shlibpath_var=
9684shlibpath_overrides_runpath=unknown
9685version_type=none
9686dynamic_linker="$host_os ld.so"
9687sys_lib_dlsearch_path_spec="/lib /usr/lib"
9688if test "$GCC" = yes; then
9689  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9690  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9691    # if the path contains ";" then we assume it to be the separator
9692    # otherwise default to the standard path separator (i.e. ":") - it is
9693    # assumed that no part of a normal pathname contains ";" but that should
9694    # okay in the real world where ";" in dirpaths is itself problematic.
9695    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9696  else
9697    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9698  fi
9699else
9700  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9701fi
9702need_lib_prefix=unknown
9703hardcode_into_libs=no
9704
9705# when you set need_version to no, make sure it does not cause -set_version
9706# flags to be left without arguments
9707need_version=unknown
9708
9709case $host_os in
9710aix3*)
9711  version_type=linux
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9713  shlibpath_var=LIBPATH
9714
9715  # AIX 3 has no versioning support, so we append a major version to the name.
9716  soname_spec='${libname}${release}${shared_ext}$major'
9717  ;;
9718
9719aix4* | aix5*)
9720  version_type=linux
9721  need_lib_prefix=no
9722  need_version=no
9723  hardcode_into_libs=yes
9724  if test "$host_cpu" = ia64; then
9725    # AIX 5 supports IA64
9726    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9727    shlibpath_var=LD_LIBRARY_PATH
9728  else
9729    # With GCC up to 2.95.x, collect2 would create an import file
9730    # for dependence libraries.  The import file would start with
9731    # the line `#! .'.  This would cause the generated library to
9732    # depend on `.', always an invalid library.  This was fixed in
9733    # development snapshots of GCC prior to 3.0.
9734    case $host_os in
9735      aix4 | aix4.[01] | aix4.[01].*)
9736      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9737           echo ' yes '
9738           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9739        :
9740      else
9741        can_build_shared=no
9742      fi
9743      ;;
9744    esac
9745    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9746    # soname into executable. Probably we can add versioning support to
9747    # collect2, so additional links can be useful in future.
9748    if test "$aix_use_runtimelinking" = yes; then
9749      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9750      # instead of lib<name>.a to let people know that these are not
9751      # typical AIX shared libraries.
9752      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753    else
9754      # We preserve .a as extension for shared libraries through AIX4.2
9755      # and later when we are not doing run time linking.
9756      library_names_spec='${libname}${release}.a $libname.a'
9757      soname_spec='${libname}${release}${shared_ext}$major'
9758    fi
9759    shlibpath_var=LIBPATH
9760  fi
9761  ;;
9762
9763amigaos*)
9764  library_names_spec='$libname.ixlibrary $libname.a'
9765  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9766  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'
9767  ;;
9768
9769beos*)
9770  library_names_spec='${libname}${shared_ext}'
9771  dynamic_linker="$host_os ld.so"
9772  shlibpath_var=LIBRARY_PATH
9773  ;;
9774
9775bsdi[45]*)
9776  version_type=linux
9777  need_version=no
9778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779  soname_spec='${libname}${release}${shared_ext}$major'
9780  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9781  shlibpath_var=LD_LIBRARY_PATH
9782  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9783  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9784  # the default ld.so.conf also contains /usr/contrib/lib and
9785  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9786  # libtool to hard-code these into programs
9787  ;;
9788
9789cygwin* | mingw* | pw32*)
9790  version_type=windows
9791  shrext_cmds=".dll"
9792  need_version=no
9793  need_lib_prefix=no
9794
9795  case $GCC,$host_os in
9796  yes,cygwin* | yes,mingw* | yes,pw32*)
9797    library_names_spec='$libname.dll.a'
9798    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9799    postinstall_cmds='base_file=`basename \${file}`~
9800      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9801      dldir=$destdir/`dirname \$dlpath`~
9802      test -d \$dldir || mkdir -p \$dldir~
9803      $install_prog $dir/$dlname \$dldir/$dlname~
9804      chmod a+x \$dldir/$dlname'
9805    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9806      dlpath=$dir/\$dldll~
9807       $rm \$dlpath'
9808    shlibpath_overrides_runpath=yes
9809
9810    case $host_os in
9811    cygwin*)
9812      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9813      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9814      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9815      ;;
9816    mingw*)
9817      # MinGW DLLs use traditional 'lib' prefix
9818      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9819      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9820      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9821        # It is most probably a Windows format PATH printed by
9822        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9823        # path with ; separators, and with drive letters. We can handle the
9824        # drive letters (cygwin fileutils understands them), so leave them,
9825        # especially as we might pass files found there to a mingw objdump,
9826        # which wouldn't understand a cygwinified path. Ahh.
9827        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9828      else
9829        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9830      fi
9831      ;;
9832    pw32*)
9833      # pw32 DLLs use 'pw' prefix rather than 'lib'
9834      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835      ;;
9836    esac
9837    ;;
9838
9839  *)
9840    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9841    ;;
9842  esac
9843  dynamic_linker='Win32 ld.exe'
9844  # FIXME: first we should search . and the directory the executable is in
9845  shlibpath_var=PATH
9846  ;;
9847
9848darwin* | rhapsody*)
9849  dynamic_linker="$host_os dyld"
9850  version_type=darwin
9851  need_lib_prefix=no
9852  need_version=no
9853  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9854  soname_spec='${libname}${release}${major}$shared_ext'
9855  shlibpath_overrides_runpath=yes
9856  shlibpath_var=DYLD_LIBRARY_PATH
9857  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9858  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9859  if test "$GCC" = yes; then
9860    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"`
9861  else
9862    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9863  fi
9864  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9865  ;;
9866
9867dgux*)
9868  version_type=linux
9869  need_lib_prefix=no
9870  need_version=no
9871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9872  soname_spec='${libname}${release}${shared_ext}$major'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  ;;
9875
9876freebsd1*)
9877  dynamic_linker=no
9878  ;;
9879
9880kfreebsd*-gnu)
9881  version_type=linux
9882  need_lib_prefix=no
9883  need_version=no
9884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9885  soname_spec='${libname}${release}${shared_ext}$major'
9886  shlibpath_var=LD_LIBRARY_PATH
9887  shlibpath_overrides_runpath=no
9888  hardcode_into_libs=yes
9889  dynamic_linker='GNU ld.so'
9890  ;;
9891
9892freebsd* | dragonfly*)
9893  # DragonFly does not have aout.  When/if they implement a new
9894  # versioning mechanism, adjust this.
9895  if test -x /usr/bin/objformat; then
9896    objformat=`/usr/bin/objformat`
9897  else
9898    case $host_os in
9899    freebsd[123]*) objformat=aout ;;
9900    *) objformat=elf ;;
9901    esac
9902  fi
9903  version_type=freebsd-$objformat
9904  case $version_type in
9905    freebsd-elf*)
9906      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9907      need_version=no
9908      need_lib_prefix=no
9909      ;;
9910    freebsd-*)
9911      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9912      need_version=yes
9913      ;;
9914  esac
9915  shlibpath_var=LD_LIBRARY_PATH
9916  case $host_os in
9917  freebsd2*)
9918    shlibpath_overrides_runpath=yes
9919    ;;
9920  freebsd3.[01]* | freebsdelf3.[01]*)
9921    shlibpath_overrides_runpath=yes
9922    hardcode_into_libs=yes
9923    ;;
9924  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9925  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9926    shlibpath_overrides_runpath=no
9927    hardcode_into_libs=yes
9928    ;;
9929  freebsd*) # from 4.6 on
9930    shlibpath_overrides_runpath=yes
9931    hardcode_into_libs=yes
9932    ;;
9933  esac
9934  ;;
9935
9936gnu*)
9937  version_type=linux
9938  need_lib_prefix=no
9939  need_version=no
9940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9941  soname_spec='${libname}${release}${shared_ext}$major'
9942  shlibpath_var=LD_LIBRARY_PATH
9943  hardcode_into_libs=yes
9944  ;;
9945
9946hpux9* | hpux10* | hpux11*)
9947  # Give a soname corresponding to the major version so that dld.sl refuses to
9948  # link against other versions.
9949  version_type=sunos
9950  need_lib_prefix=no
9951  need_version=no
9952  case $host_cpu in
9953  ia64*)
9954    shrext_cmds='.so'
9955    hardcode_into_libs=yes
9956    dynamic_linker="$host_os dld.so"
9957    shlibpath_var=LD_LIBRARY_PATH
9958    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960    soname_spec='${libname}${release}${shared_ext}$major'
9961    if test "X$HPUX_IA64_MODE" = X32; then
9962      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9963    else
9964      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9965    fi
9966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9967    ;;
9968   hppa*64*)
9969     shrext_cmds='.sl'
9970     hardcode_into_libs=yes
9971     dynamic_linker="$host_os dld.sl"
9972     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9973     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975     soname_spec='${libname}${release}${shared_ext}$major'
9976     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9978     ;;
9979   *)
9980    shrext_cmds='.sl'
9981    dynamic_linker="$host_os dld.sl"
9982    shlibpath_var=SHLIB_PATH
9983    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985    soname_spec='${libname}${release}${shared_ext}$major'
9986    ;;
9987  esac
9988  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9989  postinstall_cmds='chmod 555 $lib'
9990  ;;
9991
9992interix3*)
9993  version_type=linux
9994  need_lib_prefix=no
9995  need_version=no
9996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9997  soname_spec='${libname}${release}${shared_ext}$major'
9998  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9999  shlibpath_var=LD_LIBRARY_PATH
10000  shlibpath_overrides_runpath=no
10001  hardcode_into_libs=yes
10002  ;;
10003
10004irix5* | irix6* | nonstopux*)
10005  case $host_os in
10006    nonstopux*) version_type=nonstopux ;;
10007    *)
10008        if test "$lt_cv_prog_gnu_ld" = yes; then
10009                version_type=linux
10010        else
10011                version_type=irix
10012        fi ;;
10013  esac
10014  need_lib_prefix=no
10015  need_version=no
10016  soname_spec='${libname}${release}${shared_ext}$major'
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10018  case $host_os in
10019  irix5* | nonstopux*)
10020    libsuff= shlibsuff=
10021    ;;
10022  *)
10023    case $LD in # libtool.m4 will add one of these switches to LD
10024    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10025      libsuff= shlibsuff= libmagic=32-bit;;
10026    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10027      libsuff=32 shlibsuff=N32 libmagic=N32;;
10028    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10029      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10030    *) libsuff= shlibsuff= libmagic=never-match;;
10031    esac
10032    ;;
10033  esac
10034  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10035  shlibpath_overrides_runpath=no
10036  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10037  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10038  hardcode_into_libs=yes
10039  ;;
10040
10041# No shared lib support for Linux oldld, aout, or coff.
10042linux*oldld* | linux*aout* | linux*coff*)
10043  dynamic_linker=no
10044  ;;
10045
10046# This must be Linux ELF.
10047linux*)
10048  version_type=linux
10049  need_lib_prefix=no
10050  need_version=no
10051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052  soname_spec='${libname}${release}${shared_ext}$major'
10053  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10054  shlibpath_var=LD_LIBRARY_PATH
10055  shlibpath_overrides_runpath=no
10056  # This implies no fast_install, which is unacceptable.
10057  # Some rework will be needed to allow for fast_install
10058  # before this can be enabled.
10059  hardcode_into_libs=yes
10060
10061  # Append ld.so.conf contents to the search path
10062  if test -f /etc/ld.so.conf; then
10063    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' ' '`
10064    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10065  fi
10066
10067  # We used to test for /lib/ld.so.1 and disable shared libraries on
10068  # powerpc, because MkLinux only supported shared libraries with the
10069  # GNU dynamic linker.  Since this was broken with cross compilers,
10070  # most powerpc-linux boxes support dynamic linking these days and
10071  # people can always --disable-shared, the test was removed, and we
10072  # assume the GNU/Linux dynamic linker is in use.
10073  dynamic_linker='GNU/Linux ld.so'
10074  ;;
10075
10076knetbsd*-gnu)
10077  version_type=linux
10078  need_lib_prefix=no
10079  need_version=no
10080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10081  soname_spec='${libname}${release}${shared_ext}$major'
10082  shlibpath_var=LD_LIBRARY_PATH
10083  shlibpath_overrides_runpath=no
10084  hardcode_into_libs=yes
10085  dynamic_linker='GNU ld.so'
10086  ;;
10087
10088netbsd*)
10089  version_type=sunos
10090  need_lib_prefix=no
10091  need_version=no
10092  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095    dynamic_linker='NetBSD (a.out) ld.so'
10096  else
10097    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10098    soname_spec='${libname}${release}${shared_ext}$major'
10099    dynamic_linker='NetBSD ld.elf_so'
10100  fi
10101  shlibpath_var=LD_LIBRARY_PATH
10102  shlibpath_overrides_runpath=yes
10103  hardcode_into_libs=yes
10104  ;;
10105
10106newsos6)
10107  version_type=linux
10108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109  shlibpath_var=LD_LIBRARY_PATH
10110  shlibpath_overrides_runpath=yes
10111  ;;
10112
10113nto-qnx*)
10114  version_type=linux
10115  need_lib_prefix=no
10116  need_version=no
10117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118  soname_spec='${libname}${release}${shared_ext}$major'
10119  shlibpath_var=LD_LIBRARY_PATH
10120  shlibpath_overrides_runpath=yes
10121  ;;
10122
10123openbsd*)
10124  version_type=sunos
10125  sys_lib_dlsearch_path_spec="/usr/lib"
10126  need_lib_prefix=no
10127  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10128  case $host_os in
10129    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10130    *)                         need_version=no  ;;
10131  esac
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134  shlibpath_var=LD_LIBRARY_PATH
10135  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136    case $host_os in
10137      openbsd2.[89] | openbsd2.[89].*)
10138        shlibpath_overrides_runpath=no
10139        ;;
10140      *)
10141        shlibpath_overrides_runpath=yes
10142        ;;
10143      esac
10144  else
10145    shlibpath_overrides_runpath=yes
10146  fi
10147  ;;
10148
10149os2*)
10150  libname_spec='$name'
10151  shrext_cmds=".dll"
10152  need_lib_prefix=no
10153  library_names_spec='$libname${shared_ext} $libname.a'
10154  dynamic_linker='OS/2 ld.exe'
10155  shlibpath_var=LIBPATH
10156  ;;
10157
10158osf3* | osf4* | osf5*)
10159  version_type=osf
10160  need_lib_prefix=no
10161  need_version=no
10162  soname_spec='${libname}${release}${shared_ext}$major'
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164  shlibpath_var=LD_LIBRARY_PATH
10165  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10166  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10167  ;;
10168
10169solaris*)
10170  version_type=linux
10171  need_lib_prefix=no
10172  need_version=no
10173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174  soname_spec='${libname}${release}${shared_ext}$major'
10175  shlibpath_var=LD_LIBRARY_PATH
10176  shlibpath_overrides_runpath=yes
10177  hardcode_into_libs=yes
10178  # ldd complains unless libraries are executable
10179  postinstall_cmds='chmod +x $lib'
10180  ;;
10181
10182sunos4*)
10183  version_type=sunos
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10185  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10186  shlibpath_var=LD_LIBRARY_PATH
10187  shlibpath_overrides_runpath=yes
10188  if test "$with_gnu_ld" = yes; then
10189    need_lib_prefix=no
10190  fi
10191  need_version=yes
10192  ;;
10193
10194sysv4 | sysv4.3*)
10195  version_type=linux
10196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197  soname_spec='${libname}${release}${shared_ext}$major'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  case $host_vendor in
10200    sni)
10201      shlibpath_overrides_runpath=no
10202      need_lib_prefix=no
10203      export_dynamic_flag_spec='${wl}-Blargedynsym'
10204      runpath_var=LD_RUN_PATH
10205      ;;
10206    siemens)
10207      need_lib_prefix=no
10208      ;;
10209    motorola)
10210      need_lib_prefix=no
10211      need_version=no
10212      shlibpath_overrides_runpath=no
10213      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10214      ;;
10215  esac
10216  ;;
10217
10218sysv4*MP*)
10219  if test -d /usr/nec ;then
10220    version_type=linux
10221    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10222    soname_spec='$libname${shared_ext}.$major'
10223    shlibpath_var=LD_LIBRARY_PATH
10224  fi
10225  ;;
10226
10227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10228  version_type=freebsd-elf
10229  need_lib_prefix=no
10230  need_version=no
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10232  soname_spec='${libname}${release}${shared_ext}$major'
10233  shlibpath_var=LD_LIBRARY_PATH
10234  hardcode_into_libs=yes
10235  if test "$with_gnu_ld" = yes; then
10236    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10237    shlibpath_overrides_runpath=no
10238  else
10239    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10240    shlibpath_overrides_runpath=yes
10241    case $host_os in
10242      sco3.2v5*)
10243        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10244        ;;
10245    esac
10246  fi
10247  sys_lib_dlsearch_path_spec='/usr/lib'
10248  ;;
10249
10250uts4*)
10251  version_type=linux
10252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253  soname_spec='${libname}${release}${shared_ext}$major'
10254  shlibpath_var=LD_LIBRARY_PATH
10255  ;;
10256
10257*)
10258  dynamic_linker=no
10259  ;;
10260esac
10261echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10262echo "${ECHO_T}$dynamic_linker" >&6
10263test "$dynamic_linker" = no && can_build_shared=no
10264
10265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10266if test "$GCC" = yes; then
10267  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10268fi
10269
10270echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10272hardcode_action=
10273if test -n "$hardcode_libdir_flag_spec" || \
10274   test -n "$runpath_var" || \
10275   test "X$hardcode_automatic" = "Xyes" ; then
10276
10277  # We can hardcode non-existant directories.
10278  if test "$hardcode_direct" != no &&
10279     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10280     # have to relink, otherwise we might link with an installed library
10281     # when we should be linking with a yet-to-be-installed one
10282     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10283     test "$hardcode_minus_L" != no; then
10284    # Linking always hardcodes the temporary library directory.
10285    hardcode_action=relink
10286  else
10287    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10288    hardcode_action=immediate
10289  fi
10290else
10291  # We cannot hardcode anything, or else we can only hardcode existing
10292  # directories.
10293  hardcode_action=unsupported
10294fi
10295echo "$as_me:$LINENO: result: $hardcode_action" >&5
10296echo "${ECHO_T}$hardcode_action" >&6
10297
10298if test "$hardcode_action" = relink; then
10299  # Fast installation is not supported
10300  enable_fast_install=no
10301elif test "$shlibpath_overrides_runpath" = yes ||
10302     test "$enable_shared" = no; then
10303  # Fast installation is not necessary
10304  enable_fast_install=needless
10305fi
10306
10307striplib=
10308old_striplib=
10309echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10310echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10312  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10313  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10314  echo "$as_me:$LINENO: result: yes" >&5
10315echo "${ECHO_T}yes" >&6
10316else
10317# FIXME - insert some real tests, host_os isn't really good enough
10318  case $host_os in
10319   darwin*)
10320       if test -n "$STRIP" ; then
10321         striplib="$STRIP -x"
10322         echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324       else
10325  echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
10327fi
10328       ;;
10329   *)
10330  echo "$as_me:$LINENO: result: no" >&5
10331echo "${ECHO_T}no" >&6
10332    ;;
10333  esac
10334fi
10335
10336if test "x$enable_dlopen" != xyes; then
10337  enable_dlopen=unknown
10338  enable_dlopen_self=unknown
10339  enable_dlopen_self_static=unknown
10340else
10341  lt_cv_dlopen=no
10342  lt_cv_dlopen_libs=
10343
10344  case $host_os in
10345  beos*)
10346    lt_cv_dlopen="load_add_on"
10347    lt_cv_dlopen_libs=
10348    lt_cv_dlopen_self=yes
10349    ;;
10350
10351  mingw* | pw32*)
10352    lt_cv_dlopen="LoadLibrary"
10353    lt_cv_dlopen_libs=
10354   ;;
10355
10356  cygwin*)
10357    lt_cv_dlopen="dlopen"
10358    lt_cv_dlopen_libs=
10359   ;;
10360
10361  darwin*)
10362  # if libdl is installed we need to link against it
10363    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10364echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10365if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10366  echo $ECHO_N "(cached) $ECHO_C" >&6
10367else
10368  ac_check_lib_save_LIBS=$LIBS
10369LIBS="-ldl  $LIBS"
10370cat >conftest.$ac_ext <<_ACEOF
10371/* confdefs.h.  */
10372_ACEOF
10373cat confdefs.h >>conftest.$ac_ext
10374cat >>conftest.$ac_ext <<_ACEOF
10375/* end confdefs.h.  */
10376
10377/* Override any gcc2 internal prototype to avoid an error.  */
10378#ifdef __cplusplus
10379extern "C"
10380#endif
10381/* We use char because int might match the return type of a gcc2
10382   builtin and then its argument prototype would still apply.  */
10383char dlopen ();
10384int
10385main ()
10386{
10387dlopen ();
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392rm -f conftest.$ac_objext conftest$ac_exeext
10393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394  (eval $ac_link) 2>conftest.er1
10395  ac_status=$?
10396  grep -v '^ *+' conftest.er1 >conftest.err
10397  rm -f conftest.er1
10398  cat conftest.err >&5
10399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); } &&
10401         { ac_try='test -z "$ac_c_werror_flag"
10402                         || test ! -s conftest.err'
10403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404  (eval $ac_try) 2>&5
10405  ac_status=$?
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); }; } &&
10408         { ac_try='test -s conftest$ac_exeext'
10409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410  (eval $ac_try) 2>&5
10411  ac_status=$?
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); }; }; then
10414  ac_cv_lib_dl_dlopen=yes
10415else
10416  echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419ac_cv_lib_dl_dlopen=no
10420fi
10421rm -f conftest.err conftest.$ac_objext \
10422      conftest$ac_exeext conftest.$ac_ext
10423LIBS=$ac_check_lib_save_LIBS
10424fi
10425echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10426echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10427if test $ac_cv_lib_dl_dlopen = yes; then
10428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10429else
10430
10431    lt_cv_dlopen="dyld"
10432    lt_cv_dlopen_libs=
10433    lt_cv_dlopen_self=yes
10434
10435fi
10436
10437   ;;
10438
10439  *)
10440    echo "$as_me:$LINENO: checking for shl_load" >&5
10441echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10442if test "${ac_cv_func_shl_load+set}" = set; then
10443  echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445  cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h.  */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h.  */
10451/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10453#define shl_load innocuous_shl_load
10454
10455/* System header to define __stub macros and hopefully few prototypes,
10456    which can conflict with char shl_load (); below.
10457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10458    <limits.h> exists even on freestanding compilers.  */
10459
10460#ifdef __STDC__
10461# include <limits.h>
10462#else
10463# include <assert.h>
10464#endif
10465
10466#undef shl_load
10467
10468/* Override any gcc2 internal prototype to avoid an error.  */
10469#ifdef __cplusplus
10470extern "C"
10471{
10472#endif
10473/* We use char because int might match the return type of a gcc2
10474   builtin and then its argument prototype would still apply.  */
10475char shl_load ();
10476/* The GNU C library defines this for functions which it implements
10477    to always fail with ENOSYS.  Some functions are actually named
10478    something starting with __ and the normal name is an alias.  */
10479#if defined (__stub_shl_load) || defined (__stub___shl_load)
10480choke me
10481#else
10482char (*f) () = shl_load;
10483#endif
10484#ifdef __cplusplus
10485}
10486#endif
10487
10488int
10489main ()
10490{
10491return f != shl_load;
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
10497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498  (eval $ac_link) 2>conftest.er1
10499  ac_status=$?
10500  grep -v '^ *+' conftest.er1 >conftest.err
10501  rm -f conftest.er1
10502  cat conftest.err >&5
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); } &&
10505         { ac_try='test -z "$ac_c_werror_flag"
10506                         || test ! -s conftest.err'
10507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508  (eval $ac_try) 2>&5
10509  ac_status=$?
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); }; } &&
10512         { ac_try='test -s conftest$ac_exeext'
10513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514  (eval $ac_try) 2>&5
10515  ac_status=$?
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); }; }; then
10518  ac_cv_func_shl_load=yes
10519else
10520  echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523ac_cv_func_shl_load=no
10524fi
10525rm -f conftest.err conftest.$ac_objext \
10526      conftest$ac_exeext conftest.$ac_ext
10527fi
10528echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10529echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10530if test $ac_cv_func_shl_load = yes; then
10531  lt_cv_dlopen="shl_load"
10532else
10533  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10534echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10535if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10536  echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538  ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ldld  $LIBS"
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h.  */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h.  */
10546
10547/* Override any gcc2 internal prototype to avoid an error.  */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551/* We use char because int might match the return type of a gcc2
10552   builtin and then its argument prototype would still apply.  */
10553char shl_load ();
10554int
10555main ()
10556{
10557shl_load ();
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>conftest.er1
10565  ac_status=$?
10566  grep -v '^ *+' conftest.er1 >conftest.err
10567  rm -f conftest.er1
10568  cat conftest.err >&5
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); } &&
10571         { ac_try='test -z "$ac_c_werror_flag"
10572                         || test ! -s conftest.err'
10573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574  (eval $ac_try) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); }; } &&
10578         { ac_try='test -s conftest$ac_exeext'
10579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580  (eval $ac_try) 2>&5
10581  ac_status=$?
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); }; }; then
10584  ac_cv_lib_dld_shl_load=yes
10585else
10586  echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589ac_cv_lib_dld_shl_load=no
10590fi
10591rm -f conftest.err conftest.$ac_objext \
10592      conftest$ac_exeext conftest.$ac_ext
10593LIBS=$ac_check_lib_save_LIBS
10594fi
10595echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10596echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10597if test $ac_cv_lib_dld_shl_load = yes; then
10598  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10599else
10600  echo "$as_me:$LINENO: checking for dlopen" >&5
10601echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10602if test "${ac_cv_func_dlopen+set}" = set; then
10603  echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605  cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10612   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10613#define dlopen innocuous_dlopen
10614
10615/* System header to define __stub macros and hopefully few prototypes,
10616    which can conflict with char dlopen (); below.
10617    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618    <limits.h> exists even on freestanding compilers.  */
10619
10620#ifdef __STDC__
10621# include <limits.h>
10622#else
10623# include <assert.h>
10624#endif
10625
10626#undef dlopen
10627
10628/* Override any gcc2 internal prototype to avoid an error.  */
10629#ifdef __cplusplus
10630extern "C"
10631{
10632#endif
10633/* We use char because int might match the return type of a gcc2
10634   builtin and then its argument prototype would still apply.  */
10635char dlopen ();
10636/* The GNU C library defines this for functions which it implements
10637    to always fail with ENOSYS.  Some functions are actually named
10638    something starting with __ and the normal name is an alias.  */
10639#if defined (__stub_dlopen) || defined (__stub___dlopen)
10640choke me
10641#else
10642char (*f) () = dlopen;
10643#endif
10644#ifdef __cplusplus
10645}
10646#endif
10647
10648int
10649main ()
10650{
10651return f != dlopen;
10652  ;
10653  return 0;
10654}
10655_ACEOF
10656rm -f conftest.$ac_objext conftest$ac_exeext
10657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658  (eval $ac_link) 2>conftest.er1
10659  ac_status=$?
10660  grep -v '^ *+' conftest.er1 >conftest.err
10661  rm -f conftest.er1
10662  cat conftest.err >&5
10663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664  (exit $ac_status); } &&
10665         { ac_try='test -z "$ac_c_werror_flag"
10666                         || test ! -s conftest.err'
10667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668  (eval $ac_try) 2>&5
10669  ac_status=$?
10670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671  (exit $ac_status); }; } &&
10672         { ac_try='test -s conftest$ac_exeext'
10673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674  (eval $ac_try) 2>&5
10675  ac_status=$?
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); }; }; then
10678  ac_cv_func_dlopen=yes
10679else
10680  echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683ac_cv_func_dlopen=no
10684fi
10685rm -f conftest.err conftest.$ac_objext \
10686      conftest$ac_exeext conftest.$ac_ext
10687fi
10688echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10689echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10690if test $ac_cv_func_dlopen = yes; then
10691  lt_cv_dlopen="dlopen"
10692else
10693  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10694echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10695if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10696  echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698  ac_check_lib_save_LIBS=$LIBS
10699LIBS="-ldl  $LIBS"
10700cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h.  */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h.  */
10706
10707/* Override any gcc2 internal prototype to avoid an error.  */
10708#ifdef __cplusplus
10709extern "C"
10710#endif
10711/* We use char because int might match the return type of a gcc2
10712   builtin and then its argument prototype would still apply.  */