source: stable/2.6/Cbc/configure @ 1579

Last change on this file since 1579 was 1579, checked in by stefan, 8 years ago

temporarily committing release candidate

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